/* Devayani Yoga - Stylesheet (Final) */

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

:root {
  --bg-main: #f4e7d8;
  --bg-card: #fff9f1;
  --bg-highlight: #e7d7c5;
  --accent: #4b3a5a;
  --accent-soft: #6c5b7b;
  --accent-light: #a383ba;
  --text-main: #3b2f3f;
  --muted: #7f6d80;
}

/* =========================
   CUSTOM SCROLLBAR
   ========================= */

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-soft) var(--bg-main);
}

body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track {
  background: var(--bg-main);
}

body::-webkit-scrollbar-thumb {
  background-color: var(--accent-soft);
  border-radius: 20px;
  border: 3px solid var(--bg-main);
}

body::-webkit-scrollbar-thumb:hover {
  background-color: var(--accent);
}

body {
  font-family: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, #fdf5ea 0, #f4e7d8 45%, #eddcc9 100%);
  color: var(--text-main);
  line-height: 1.8;
  overflow-x: hidden;
}

/* =========================
   HEADER & SLIDER
   ========================= */

header {
  position: relative;
  height: 100vh;
  min-height: 600px;
  color: #fdf8f3;
  overflow: hidden;
}

.slider {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: 100%;
}

.slider-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.03);
  transition:
    opacity 2.5s ease,
    transform 8s ease;
}

.slider-slide.active {
  opacity: 1;
  transform: scale(1.0);
}

.slider-slide.slide-1 {
  background-image:
    linear-gradient(135deg, rgba(26, 19, 35, 0.25), rgba(42, 60, 67, 0.2)),
    url('img/deva_slider_01.webp');
}

.slider-slide.slide-2 {
  background-image:
    linear-gradient(135deg, rgba(26, 26, 36, 0.3), rgba(65, 52, 79, 0.25)),
    url('img/deva_slider_02.webp');
}

.slider-slide.slide-3 {
  background-image:
    linear-gradient(135deg, rgba(20, 30, 38, 0.3), rgba(55, 70, 69, 0.25)),
    url('img/deva_slider_03.webp');
}

.header-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Navigation */
.header-nav {
  padding: 24px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.nav-menu {
  display: flex;
  gap: 6px;
  list-style: none;
  align-items: center;
  margin-right: 0;
}

.nav-menu li a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f8eee7;
  text-decoration: none;
  background: rgba(9, 8, 14, 0.35);
  border: 1px solid rgba(252, 242, 233, 0.2);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  display: inline-block;
}

.nav-menu li a:hover {
  background: rgba(252, 242, 233, 0.18);
  border-color: rgba(252, 242, 233, 0.4);
  transform: translateY(-1px);
}

.header-logo-large {
  position: relative; 
  display: block;
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 24px;
  z-index: 20;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.mobile-menu-toggle {
  display: none;
  background: rgba(9, 8, 14, 0.45);
  border: 1px solid rgba(252, 242, 233, 0.25);
  color: #f8eee7;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  backdrop-filter: blur(8px);
}

.header-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.header-brand {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.6rem, 1.5vw + 1rem, 2.4rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: #fdf8f3;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header-content h1 {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.6rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header-subline {
  font-size: 1.05rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #e3d6ee;
  margin-bottom: 24px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-welcome {
  font-size: 1.08rem;
  line-height: 1.8;
  color: #f7eee8;
  margin-bottom: 28px;
  max-width: 640px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.header-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}

.header-pill {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(10, 7, 16, 0.5);
  border: 1px solid rgba(252, 242, 233, 0.25);
  backdrop-filter: blur(9px);
  font-size: 0.9rem;
  color: #f3e3d3;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.header-pill:hover {
  background: rgba(252, 242, 233, 0.15);
  border-color: rgba(252, 242, 233, 0.5);
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f3e9e0;
  opacity: 0.8;
}

.scroll-indicator-icon {
  margin-top: 6px;
  width: 18px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(252, 242, 233, 0.65);
  position: relative;
  overflow: hidden;
}

.scroll-indicator-icon::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 4px;
  height: 6px;
  border-radius: 999px;
  background: rgba(252, 242, 233, 0.9);
  transform: translateX(-50%);
  animation: scrollDot 1.6s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { transform: translate(-50%, 0); opacity: 1; }
  70% { transform: translate(-50%, 12px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 0; }
}

/* =========================
   MAIN LAYOUT
   ========================= */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 40px;
}

section {
  background-color: var(--bg-card);
  margin: 34px 0;
  padding: 28px 24px;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(60, 34, 84, 0.08);
  position: relative;
  overflow: hidden;
  scroll-margin-top: 80px;
}

h2 {
  font-family: 'Merriweather', serif;
  color: var(--accent);
  font-size: 1.9rem;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(106, 27, 154, 0));
  border-radius: 999px;
}

h3 {
  color: var(--accent-soft);
  font-size: 1.3rem;
  margin-top: 18px;
  margin-bottom: 8px;
}

p { 
  font-size: 1rem; 
  margin-bottom: 8px; 
}

/* =========================
   Highlight Box & Features
   ========================= */

.highlight-box {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(75, 58, 90, 0.15);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.highlight-item {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.highlight-icon {
  color: var(--accent);
  font-size: 1.1rem;
}

/* NEU: Dezentere Links (für Textfluss) */
.text-link {
  color: inherit; /* Farbe des umgebenden Textes */
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.text-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* =========================
   KURSE
   ========================= */

.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 18px;
}

.course-card-full {
  grid-column: 1 / -1;
}

@media (min-width: 600px) {
  .course-card-full .course-bottom-row {
    max-width: 600px;
  }
}

.course-card {
  background-color: var(--bg-main);
  border-radius: 18px;
  padding: 18px 18px 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(70, 49, 89, 0.18);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.course-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 4px;
}

.course-title {
  font-family: 'Merriweather', serif;
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.course-time {
  font-size: 0.95rem;
  color: var(--accent-soft);
  margin-bottom: 10px;
}

.course-body {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 10px;
}

.course-note {
  font-size: 0.9rem;
  font-style: italic;
  color: #75637a;
  margin-bottom: 12px;
}

.course-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
  margin-top: auto; 
}

.price-card {
  background: linear-gradient(135deg, #f9efe3, #f1e0d0);
  border-radius: 16px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(75, 58, 90, 0.1);
  font-size: 0.9rem;
}

.price-line-main {
  font-weight: 600;
  color: var(--accent-soft);
  font-size: 0.95rem;
}

.price-line-sub {
  font-size: 0.85rem;
  color: #6c5a6e;
}

.price-highlight {
  color: var(--accent);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.5);
  padding: 2px 6px;
  border-radius: 4px;
}

.action-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Button Styling für mehrzeiligen Text */
.book-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  flex: 1;
  line-height: 1.3;
}

.book-btn:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(75, 58, 90, 0.25);
}

.btn-note {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  text-transform: none;
  opacity: 0.85;
  margin-top: 2px;
}

.schedule-btn-mini {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-soft);
  font-size: 0.8rem;
  font-weight: 600;
  height: 32px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.schedule-btn-mini:hover {
  background: rgba(255, 255, 255, 0.8);
  color: var(--accent);
  transform: translateY(-1px);
}

/* =========================
   Studien-Box Styles
   ========================= */

.study-box {
  background: rgba(255, 255, 255, 0.6);
  border: 2px dashed var(--accent-light);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 16px 0;
  text-align: left;
}

.study-box-header {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}

.study-box-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.study-price {
  font-size: 1.05rem;
  color: var(--text-main);
}

.study-price strong {
  color: var(--accent);
}

.study-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--accent-soft);
}

.counter-badge {
  background: var(--accent);
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  min-width: 30px;
  text-align: center;
}

/* =========================
   BILDER - Placeholder & Lightbox
   ========================= */

.img-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 12px;
}

.img-placeholder {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(75, 58, 90, 0.14) 0, transparent 60%),
    linear-gradient(135deg, #f8efe4, #e7d7c5);
  box-shadow: 0 14px 30px rgba(60, 34, 84, 0.14);
  cursor: pointer;
  transition: all 0.5s ease;
}

.img-placeholder:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(60, 34, 84, 0.22);
}

.img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.img-placeholder:hover img {
  transform: scale(1.06);
}

.img-placeholder::after {
  content: attr(data-label);
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: rgba(0, 0, 0, 0.38);
  color: #fdf5ec;
  transition: all 0.4s ease;
  z-index: 2;
  pointer-events: none; 
}

.img-placeholder:hover::after {
  background: rgba(0, 0, 0, 0.55);
  padding: 6px 14px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
  margin-top: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(75, 58, 90, 0.08);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #6a4a72;
  margin-bottom: 10px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* =========================
   KONTAKT SEKTION & GRID
   ========================= */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 16px;
}

/* Design exakt wie .course-card */
.contact-card {
  background-color: var(--bg-main);
  border-radius: 18px;
  padding: 24px 22px; /* Padding angepasst an Kurs-Karten */
  box-shadow: 0 14px 28px rgba(70, 49, 89, 0.18);
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* WICHTIG: Linksbündig */
  justify-content: flex-start;
  text-align: left; /* WICHTIG: Linksbündig */
  height: 100%;
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
}

/* Stil wie .course-tag */
.contact-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 4px;
}

/* Stil wie .course-title */
.contact-title {
  font-family: 'Merriweather', serif;
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.contact-body {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.6;
}

.contact-links-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.contact-link-item {
  color: var(--accent-soft);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Text links im Button */
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 10px 16px;
  border-radius: 12px;
  width: 100%;
}

.contact-link-item:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(75, 58, 90, 0.1);
}

.contact-link-item .icon {
  margin-right: 12px;
  font-size: 1.1rem;
  opacity: 0.8;
}

/* =========================
   FOOTER (Minimal)
   ========================= */

footer {
  background-color: var(--bg-highlight);
  border-top: 1px solid rgba(75, 58, 90, 0.15);
  position: relative;
  overflow: hidden;
  color: var(--text-main);
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-bottom {
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.copyright {
  opacity: 0.8;
}

.legal-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.legal-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.separator {
  margin: 0 8px;
  opacity: 0.5;
}

/* =========================
   SCROLL ANIMATION
   ========================= */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(4px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out,
    filter 0.8s ease-out;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }

/* =========================
   BACK TO TOP BUTTON
   ========================= */

#backToTop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.4s ease;
  z-index: 90;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#backToTop.visible {
  opacity: 0.9;
  pointer-events: auto;
  transform: translateY(0);
}

#backToTop:hover {
  background: var(--accent-soft);
  transform: translateY(-3px);
  opacity: 1;
}

/* =========================
   COOKIEBANNER
   ========================= */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: linear-gradient(to top, rgba(20, 15, 25, 0.98), rgba(25, 18, 30, 0.96));
  backdrop-filter: blur(12px);
  color: #f4ece7;
  padding: 16px 20px;
  font-size: 0.92rem;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: none;
}

.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-text {
  flex: 1 1 300px;
  line-height: 1.6;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Nunito', sans-serif;
}

.cookie-btn-primary {
  background: linear-gradient(135deg, #f4e7d8, #e7d7c5);
  color: #3b2a35;
  box-shadow: 0 4px 12px rgba(244, 231, 216, 0.3);
}

.cookie-btn-primary:hover {
  background: linear-gradient(135deg, #f8efe4, #e7d7c5);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(244, 231, 216, 0.4);
}

.cookie-btn-secondary {
  background: transparent;
  color: #f4ece7;
  border: 1.5px solid rgba(244, 236, 231, 0.4);
}

.cookie-btn-secondary:hover {
  border-color: rgba(244, 236, 231, 0.7);
  background: rgba(255, 255, 255, 0.05);
}

/* =========================
   MODALS
   ========================= */

#modalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 20, 0.85);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 150;
  padding: 20px;
}

.modal-box {
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  background: #fff9f1;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  padding: 28px 26px 24px;
  position: relative;
  display: none;
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 14px;
  border: none;
  background: rgba(75, 58, 90, 0.08);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  color: #4b3a5a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.modal-close:hover {
  background: rgba(75, 58, 90, 0.16);
  transform: rotate(90deg);
}

.modal-box h2 {
  font-family: 'Merriweather', serif;
  color: #4b3a5a;
  margin-bottom: 14px;
  font-size: 1.8rem;
}

.modal-box p {
  margin-bottom: 12px;
  line-height: 1.7;
}

/* NEU: Datumsliste Styles */
.date-list {
  list-style: none;
  padding: 0;
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}

.date-list li {
  background: rgba(75, 58, 90, 0.05);
  padding: 8px 12px;
  border-radius: 6px;
  text-align: center;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.date-future {
  font-weight: 700;
  color: var(--accent);
  border: 1px solid rgba(75, 58, 90, 0.2);
}

.date-past {
  text-decoration: line-through;
  opacity: 0.5;
  color: var(--muted);
}
.date-past .free-tag { display: none; }

/* Freie-Plätze Indikator */
.next-spots {
  margin-top: 4px;
  font-size: 0.85rem;
}
.free-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: rgba(46, 125, 79, 0.14);
  color: #2e7d4f;
  text-decoration: none;
}
.free-tag.warn {
  background: rgba(184, 115, 10, 0.16);
  color: #8a5a08;
}
.free-tag.full {
  background: rgba(154, 42, 42, 0.14);
  color: #8a2727;
}

/* Buchungs-Button bei Ausgebucht abdämpfen */
.book-btn.is-full {
  opacity: 0.55;
  filter: grayscale(0.2);
}


/* Bilder Lightbox */
#imageModal {
  background: transparent;
  box-shadow: none;
  padding: 0;
  text-align: center;
  max-width: 90vw;
  overflow: visible; 
  display: none;
  align-items: center;
  justify-content: center;
}

#imageModal img {
  max-height: 85vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

#imageModal .modal-close {
  background: rgba(255, 255, 255, 0.8);
  top: -15px;
  right: -15px; 
  color: #000;
  width: 36px;
  height: 36px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

#imageModal .modal-close:hover {
  background: #fff;
  transform: scale(1.1) rotate(90deg);
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px) {
  .header-nav { display: none; }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(18, 10, 26, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 80px 20px 20px;
    gap: 4px;
    align-items: stretch;
    transition: right 0.4s ease;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
    z-index: 50;
    margin-right: 0;
  }

  .nav-menu.active { right: 0; }
  .header-logo-large { display: none; }
  .nav-menu li { width: 100%; }
  .nav-menu li a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 20px;
  }
  .mobile-menu-toggle { display: block; z-index: 60; }
  .header-content h1 { font-size: clamp(1.4rem, 4vw, 2rem); }
  .header-brand { font-size: clamp(1.4rem, 4vw, 1.9rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slider-slide {
    transition: none !important;
    transform: none !important;
  }
  .reveal,
  .reveal.show { transition: none !important; }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 820px) {
  .courses-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
  header { min-height: 580px; }
  .header-nav { padding: 18px 0; }
  section { padding: 22px 18px; margin: 26px 0; scroll-margin-top: 60px; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .scroll-indicator { bottom: 14px; }
  
  #imageModal .modal-close {
    top: 10px;
    right: 10px;
  }

  /* Kontakt Mobile Anpassung */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .footer-bottom {
    flex-direction: column-reverse;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .course-bottom-row { grid-template-columns: minmax(0, 1fr); }
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-text { flex: 1 1 auto; }
  .cookie-actions { width: 100%; justify-content: stretch; }
  .cookie-btn { flex: 1; }
  .header-pills { flex-direction: column; align-items: stretch; }
  .header-pill { text-align: center; }
  
  .study-box-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================
   BUCHUNGSFORMULAR (Modal)
   ========================= */
.booking-intro {
  font-size: 0.95rem;
  color: var(--muted);
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.bf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bf-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.9rem;
}
.bf-field > span {
  font-weight: 600;
  color: var(--accent-soft);
}
.bf-field input,
.bf-field select,
.bf-field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 10px 12px;
  border: 1px solid rgba(75, 58, 90, 0.25);
  border-radius: 8px;
  background: #fff;
  color: var(--text-main);
  width: 100%;
}
.bf-field textarea { resize: vertical; min-height: 60px; }
.bf-field input:focus,
.bf-field select:focus,
.bf-field textarea:focus {
  outline: 2px solid var(--accent-light);
  border-color: var(--accent-light);
}

.bf-address {
  border: 1px solid rgba(75, 58, 90, 0.15);
  border-radius: 8px;
  padding: 8px 12px;
  background: rgba(75, 58, 90, 0.03);
}
.bf-address summary,
.bf-details summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-soft);
}
.bf-address > .bf-field,
.bf-address > .bf-row { margin-top: 10px; }
.bf-field-zip { max-width: 120px; }

.bf-details {
  border: 1px solid rgba(75, 58, 90, 0.15);
  border-radius: 8px;
  padding: 8px 12px;
  background: rgba(75, 58, 90, 0.03);
}
.bf-details > .bf-field,
.bf-details > .bf-row { margin-top: 10px; }
.bf-details-note {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Honeypot: für Menschen unsichtbar */
.bf-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.bf-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-main);
}
.bf-consent input {
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.bf-consent a { color: var(--accent); text-decoration: underline; }

/* Submit (button mit book-btn-Klasse) */
button.book-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}
.bf-submit {
  margin-top: 4px;
  padding: 13px 16px;
  font-size: 0.95rem;
}
.bf-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.bf-message {
  margin: 4px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.bf-message.ok {
  background: rgba(46, 125, 79, 0.12);
  color: #2e7d4f;
}
.bf-message.err {
  background: rgba(154, 42, 42, 0.12);
  color: #8a2727;
}

@media (max-width: 600px) {
  .bf-row { grid-template-columns: 1fr; }
  .bf-field-zip { max-width: none; }
}