:root{
  /* Etwas helleres Dunkel, leicht warm */
  --bg: #1a1824;
  --panel: #252232;
  --text: #f4f0f7;
  --muted: rgba(244, 240, 247, 0.72);
  /* Akzente: Pink + Rose/Rot */
  --accent: #f472b6;
  --accent-2: #fb7185;
  --accent-rgb: 244, 114, 182;
  --accent-2-rgb: 251, 113, 133;
  --border: rgba(255,255,255,0.12);
  --danger: #ff6b6b;
  --success: #2dd4bf;
  --shadow: 0 14px 40px rgba(0,0,0,0.28);
  /* Platz für fixierte Navigation (auch wenn Menü auf kleinen Screens umbricht) */
  --site-header-height: 5.25rem;
  /* Einheitlicher horizontaler Innenabstand – Header + Inhalt dieselbe Bezugslinie */
  --page-gutter: 18px;
}

*{ box-sizing: border-box; }

html, body{
  height: 100%;
}

html{
  /* Anker-Links (#stundenplan etc.) nicht unter der fixen Leiste verstecken */
  scroll-padding-top: var(--site-header-height);
  /*
   Reserviert Platz für die Scrollleiste, damit fixierter Header und Seiteninhalt
   dieselbe horizontale „Mitte“ nutzen (sonst wirkt der Text versetzt).
   */
  scrollbar-gutter: stable;
}

@supports not (scrollbar-gutter: stable) {
  html{
    overflow-y: scroll;
  }
}

body{
  margin: 0;
  padding-top: var(--site-header-height);
  width: 100%;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

/* Fixes Farb-Overlay: keine Wiederholung/Kachelung und keine harte Naht zwischen Sektionen */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 560px at 12% 10%, rgba(244, 114, 182, 0.22), transparent 58%),
    radial-gradient(760px 460px at 88% 22%, rgba(251, 113, 133, 0.18), transparent 62%),
    radial-gradient(680px 420px at 28% 82%, rgba(244, 114, 182, 0.12), transparent 64%),
    radial-gradient(620px 380px at 84% 78%, rgba(251, 113, 133, 0.10), transparent 66%);
  background-repeat: no-repeat;
}

/* Volle Breite wie der Header-Strip, damit .container dieselbe Bezugsbreite hat */
main{
  width: 100%;
  max-width: none;
}

.container{
  box-sizing: border-box;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.small{
  font-size: 0.92rem;
}

.muted{
  color: var(--muted);
}

.section{
  padding: 56px 0;
}

.section-alt{
  background: rgba(255,255,255,0.035);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.section-title{
  margin: 0 0 10px;
  font-size: 2.05rem;
  letter-spacing: -0.02em;
}

.section-lead{
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 100%;
  white-space: nowrap; /* ganzer Satz soll nicht umbrechen */
}

.section-lead a{
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.section-lead a:hover{
  text-decoration: underline;
}

.site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(26, 24, 36, 0.92);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  width: 100%;
  min-width: 0;
}

.brand{
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.brand-mark{
  font-size: 1.4rem;
}

.brand-title{
  font-size: clamp(1.2rem, 1.1vw + 0.9rem, 1.65rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.brand-subtitle{
  font-size: 0.95rem;
  color: var(--muted);
}

.nav{
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.nav-link{
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: 150ms ease;
}

/* Letzter Link: kein rechter Innenabstand → Text endet auf derselben Kante wie der Seiteninhalt (z. B. Hero-Karte) */
.nav-link:last-of-type{
  padding-inline-end: 0;
}

.nav-toggle{
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
  color: var(--text);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.nav-toggle:hover{
  border-color: var(--border);
  background: rgba(255,255,255,0.06);
}

.nav-toggle-bars{
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}

.nav-toggle-bar{
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 1px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1){
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2){
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3){
  transform: translateY(-7px) rotate(-45deg);
}

.nav-link:hover{
  color: var(--text);
  border-color: var(--border);
  background: rgba(255,255,255,0.04);
}

.lang-select{
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 10px 10px;
  color: var(--text);
  font-weight: 650;
  outline: none;
  cursor: pointer;
}

.lang-select option{
  background: rgba(26, 24, 36, 0.98);
  color: var(--text);
}

@media (min-width: 981px){
  .nav-toggle{
    display: none !important;
  }
  .nav-backdrop{
    display: none !important;
  }
  .nav{
    margin-left: auto;
    flex-wrap: nowrap;
  }
}

.hero{
  padding: 44px 0 34px;
}

.hero-inner{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.hero-col{
  min-width: 0;
}

.hero-title{
  margin: 0 0 18px;
  padding: 0;
  font-size: clamp(1.5rem, 3vw + 0.95rem, 2.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.hero-cta{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.hero-start{
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 650;
  max-width: 60ch;
}

.hero-start strong{
  color: var(--text);
  font-weight: 800;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-weight: 650;
  cursor: pointer;
  transition: 160ms ease;
}

.btn-primary{
  background: rgba(var(--accent-rgb), 0.62);
  border-color: rgba(var(--accent-rgb), 0.62);
  box-shadow: 0 12px 34px rgba(var(--accent-rgb), 0.28);
}

.btn-primary:hover{
  transform: translateY(-1px);
  background: rgba(var(--accent-rgb), 0.78);
  border-color: rgba(var(--accent-rgb), 0.78);
}

.btn-ghost{
  background: rgba(255,255,255,0.02);
}

.btn-ghost:hover{
  background: rgba(255,255,255,0.06);
}

.hero-card{
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 18px;
  box-shadow: var(--shadow);
  width: max-content;
  max-width: 100%;
  margin-top: 0;
  justify-self: end;
  align-self: start;
  box-sizing: border-box;
}

.hero-card-title{
  font-weight: 800;
  margin-bottom: 10px;
}

.list{
  margin: 0;
  padding-left: 18px;
}
.list li{
  margin: 8px 0;
  color: var(--muted);
}

/* Hero-Karte: nur im 2-Spalten-Layout ein Zeile pro Punkt (sonst Umbruch auf schmal) */
@media (min-width: 981px){
  .hero-card .list li{
    white-space: nowrap;
  }
}

.gallery-section{
  padding-top: 40px;
  padding-bottom: 40px;
}

.gallery-frame{
  max-width: 920px;
  margin: 0 auto;
}

.gallery-item{
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  background: rgba(0,0,0,0.2);
}

.gallery-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: middle;
  transition: opacity 0.55s ease;
}

.grid-2{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.style-video-wrap{
  margin-top: 28px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.style-video{
  display: block;
  width: 100%;
  height: auto;
  max-height: min(70vh, 640px);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #000;
  vertical-align: middle;
}

.video-switcher-label{
  display: block;
  margin-top: 12px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.video-switcher{
  width: 100%;
  max-width: 320px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  outline: none;
}

.video-switcher:focus{
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14);
}

.video-fallback{
  margin: 14px 0 0;
  font-size: 0.95rem;
}

.video-fallback a{
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.video-fallback a:hover{
  text-decoration: underline;
}

.style-card{
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.style-title{
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.style-desc{
  margin: 0 0 14px;
  color: var(--muted);
}

.style-meta{
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 10px;
}

.meta-item{
  background: rgba(0,0,0,0.12);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 12px;
}

.meta-label{
  color: var(--muted);
  font-size: 0.9rem;
}
.meta-value{
  margin-top: 6px;
  font-weight: 700;
  white-space: nowrap;
}

.meta-value a{
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.meta-value a:hover{
  text-decoration: underline;
}

.timetable-wrap{
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  box-shadow: var(--shadow);
}

.timetable{
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.timetable th,
.timetable td{
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
}

.timetable th{
  color: rgba(232,238,252,0.88);
  font-weight: 800;
}

.timetable tr:last-child td{
  border-bottom: none;
}

.promo-note{
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.42);
  background: linear-gradient(
    135deg,
    rgba(var(--accent-rgb), 0.18),
    rgba(var(--accent-2-rgb), 0.10)
  );
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.20);
  color: var(--text);
  font-size: 1rem;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.promo-link{
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  transition: 150ms ease;
}

.promo-link:hover{
  color: #ff9ccd;
}

.callout{
  margin-top: 18px;
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  background: rgba(var(--accent-rgb), 0.08);
  border-radius: 18px;
  padding: 16px;
}

.callout-plain{
  margin-top: 18px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.callout-title{
  font-weight: 900;
  margin-bottom: 6px;
}
.callout-text{
  color: var(--muted);
  margin: 0;
}

.form-layout{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.form-sidebar{
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.side-list{
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 12px;
  line-height: 1.5;
  font-size: 0.95rem;
}

.side-list li::marker{
  color: rgba(var(--accent-rgb), 0.75);
}

.side-list strong{
  color: rgba(232,238,252,0.92);
  font-weight: 750;
}

.form-card-wrap{
  position: relative;
  width: 100%;
  min-width: 0;
}

.form-success-overlay{
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 18px;
  border-radius: 18px;
  background: rgba(26, 24, 36, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.form-success-overlay.is-visible{
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.form-success-overlay-text{
  margin: 0;
  text-align: center;
  font-size: 1.08rem;
  font-weight: 750;
  color: var(--text);
  line-height: 1.45;
  max-width: 32ch;
}

@media (prefers-reduced-motion: reduce){
  .form-success-overlay{
    transition: opacity 0.01s linear, transform 0.01s linear;
  }
}

.form-card{
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  align-items: start;
}

.field{
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field-full{
  grid-column: 1 / -1;
}

.label{
  font-weight: 750;
  color: rgba(232,238,252,0.92);
  font-size: 0.95rem;
}

input, select, textarea{
  width: 100%;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 12px 12px;
  color: var(--text);
  outline: none;
}

select{
  cursor: pointer;
}

/* Dropdown-Optionen: je nach Browser werden diese Styles teils ignoriert,
   aber es hilft meistens gegen zu niedrigen Kontrast. */
select option{
  background: rgba(26, 24, 36, 0.98);
  color: var(--text);
}

input:focus, select:focus, textarea:focus{
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14);
}

textarea{
  resize: vertical;
}

.error{
  min-height: 18px;
  font-size: 0.9rem;
  color: var(--danger);
}

.honeypot{
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.consent{
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.consent-legend{
  font-weight: 900;
  padding: 0 2px;
  color: rgba(232,238,252,0.92);
}

.checkbox{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 12px 0;
  color: var(--muted);
}

.checkbox input{
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.checkbox a{
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.checkbox a:hover{
  text-decoration: underline;
}

.form-actions{
  margin-top: 14px;
}

.form-actions .btn{
  margin-right: 10px;
}

.form-status{
  margin-top: 14px;
  padding: 16px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.16);
  color: var(--text);
  min-height: 44px;
  width: 100%;
}

/* Kein leerer Kasten, solange keine Fehlermeldung angezeigt wird */
.form-status:empty{
  display: none;
}

.form-status.success{
  /* neutraler Banner-Look wie im Beispiel */
  border-color: rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.04);
}
.form-status.error{
  border-color: rgba(255,107,107,0.35);
  background: rgba(255,107,107,0.08);
}

.side-card{
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.side-title{
  font-weight: 950;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.side-text{
  margin: 0 0 14px;
  color: var(--muted);
}

.side-text a{
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.side-text a:hover{
  text-decoration: underline;
}

.site-footer{
  border-top: 1px solid var(--border);
  padding: 18px 0;
  background: rgba(255,255,255,0.02);
}

.footer-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-left{
  color: var(--muted);
}

.footer-right a{
  color: var(--muted);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.10);
  padding: 8px 10px;
  border-radius: 12px;
}
.footer-right a:hover{
  color: var(--text);
  border-color: var(--border);
  background: rgba(255,255,255,0.04);
}

.inline-code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.12);
}

.clipboard-fallback{
  margin-top: 14px;
}

.clipboard-fallback.hidden{
  display: none;
}

.clipboard-fallback-text{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.45;
}

@media (max-width: 980px){
  .brand{
    margin-left: calc(14px + env(safe-area-inset-left, 0px));
  }

  .hero-inner{
    grid-template-columns: 1fr;
  }

  .hero-card{
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    margin-top: 28px;
  }

  .hero-title{
    white-space: normal;
    font-size: clamp(1.45rem, 6.2vw, 2.2rem);
  }
  .grid-2{
    grid-template-columns: 1fr;
  }
  .form-layout{
    grid-template-columns: 1fr;
  }

  .form-grid{
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-card{
    min-width: 0;
    padding: 16px;
  }

  .form-actions{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .form-actions .btn{
    width: 100%;
    margin-right: 0;
  }

  .style-meta{
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px;
  }

  .meta-item{
    min-width: 0;
  }

  .meta-value{
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .meta-value a{
    white-space: normal;
  }

  .style-video-wrap{
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .style-video{
    width: 100%;
    max-width: 100%;
    max-height: 56vh;
    object-fit: contain;
  }

  .video-switcher{
    max-width: none;
  }

  .section-lead{
    white-space: normal;
    max-width: 70ch;
  }
  .timetable{
    min-width: 420px;
  }

  .nav-toggle{
    display: inline-flex;
  }

  .nav-backdrop{
    display: block;
    position: fixed;
    top: var(--site-header-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(0,0,0,0.48);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .nav-backdrop.is-open{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav{
    display: none;
    position: fixed;
    top: var(--site-header-height);
    left: 0;
    right: 0;
    z-index: 1002;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    justify-content: flex-start;
    padding: 10px 18px 18px;
    margin: 0;
    min-width: 0;
    background: rgba(26, 24, 36, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .nav.is-open{
    display: flex;
  }

  .nav-link{
    padding: 14px 10px;
  }

  .nav-link:last-of-type{
    padding-inline-end: 10px;
  }

  .lang-select{
    width: 100%;
    margin: 8px 0 0;
    padding: 12px 12px;
  }

  body.nav-open{
    overflow: hidden;
  }
}

