/* Kalender-App - eingebettet in Hauptseite, gescopt zur Vermeidung von Konflikten */

/* PAGE TITLE */
.page-title-section {
  background: #f7f7f7;
  padding: 36px 0 32px;
  border-bottom: 3px solid #dd9933;
}
.page-title-section .container {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
}
.page-title-section h1 {
  color: #333; font-size: 32px; font-weight: 300; letter-spacing: .5px; margin: 0;
}

/* EVENTS SECTION (Kalender) */
.kalender-app-section { max-width: 900px; margin: 0 auto; padding: 40px 20px 60px; }
.kalender-app-section .events-subtitle { color: #999; margin-bottom: 24px; font-size: 14px; }

.kalender-app-section .event-card {
  background-color: #fff; border-radius: 6px;
  margin-bottom: 14px; overflow: hidden; display: flex;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #dd9933;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
  flex: none; padding: 0;
}
.kalender-app-section .event-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.kalender-app-section .event-card .date-block {
  background-color: #dd9933; padding: 16px 20px;
  min-width: 90px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
}
.kalender-app-section .date-block .day { font-size: 28px; font-weight: 700; color: #000; line-height: 1; }
.kalender-app-section .date-block .month { font-size: 13px; color: #000; text-transform: uppercase; margin-top: 4px; font-weight: 600; }
.kalender-app-section .date-block .weekday { font-size: 11px; color: rgba(0,0,0,.6); margin-top: 2px; }
.kalender-app-section .event-card .event-info { padding: 16px 20px; flex: 1; }
.kalender-app-section .event-title { font-size: 17px; font-weight: 700; color: #333; margin-bottom: 6px; display: inline; }
.kalender-app-section .event-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: #999; margin-bottom: 6px; }
.kalender-app-section .event-meta span { display: flex; align-items: center; gap: 5px; }
.kalender-app-section .event-desc { font-size: 14px; color: #666; line-height: 1.5; }
.kalender-app-section .icon { width: 14px; height: 14px; }

/* BADGES */
.kalender-app-section .category-badge {
  display: inline-block; padding: 2px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .5px; margin-left: 10px; vertical-align: middle;
}
.kalender-app-section .badge-training  { background: rgba(221,153,51,.12); color: #c98520; }
.kalender-app-section .badge-lehrgang  { background: rgba(142,68,173,.1); color: #8e44ad; }
.kalender-app-section .badge-pruefung  { background: rgba(231,76,60,.1); color: #e74c3c; }
.kalender-app-section .badge-sonstiges { background: rgba(52,152,219,.1); color: #3498db; }

/* SHOW ALL BUTTON */
.kalender-app-section .show-all-btn {
  display: block; margin: 32px auto; padding: 14px 36px;
  background-color: #dd9933; color: #000;
  border: 0; border-radius: 4px; font-size: 15px;
  font-weight: 600; cursor: pointer;
  transition: background-color .25s, transform .15s;
}
.kalender-app-section .show-all-btn:hover { background-color: #c98520; color: #fff; transform: translateY(-1px); }
.kalender-app-section .show-all-btn.hidden { display: none; }

/* CATEGORY FILTER BUTTONS */
.kalender-app-section .filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.kalender-app-section .filter-btn {
  padding: 8px 18px; border-radius: 20px; border: 2px solid #e0e0e0;
  background: #fff; color: #333; font-size: 13px;
  font-weight: 600; cursor: pointer; transition: all .25s;
}
.kalender-app-section .filter-btn:hover { border-color: #dd9933; color: #dd9933; }
.kalender-app-section .filter-btn.active {
  background: #c0392b; color: #fff; border-color: #c0392b;
  box-shadow: 0 0 12px rgba(192,57,43,.4);
}

/* LOADING / NO EVENTS */
.kalender-app-section .loading { text-align: center; padding: 40px; }
.kalender-app-section .spinner {
  display: inline-block; width: 40px; height: 40px;
  border: 3px solid #e0e0e0; border-top-color: #dd9933; border-radius: 50%;
  animation: kal-spin 1s linear infinite;
}
@keyframes kal-spin { to { transform: rotate(360deg); } }
.kalender-app-section .no-events { text-align: center; padding: 40px; color: #999; }

/* SCROLL BUTTONS */
.scroll-btn {
  position: fixed; right: 20px; width: 44px; height: 44px;
  border-radius: 50%; background: #dd9933; color: #000;
  border: 0; cursor: pointer; font-size: 18px; line-height: 1;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transition: opacity .25s, transform .15s;
  z-index: 100;
}
.scroll-btn.visible { opacity: 1; visibility: visible; }
.scroll-btn:hover { transform: scale(1.08); }
.scroll-btn-bottom { bottom: 70px; }
.scroll-btn-top { bottom: 20px; }

@media (max-width: 600px) {
  .kalender-app-section .event-card { flex-direction: column; }
  .kalender-app-section .event-card .date-block { flex-direction: row; gap: 8px; min-width: 0; padding: 10px 16px; }
  .kalender-app-section .date-block .month { margin-top: 0; }
}
