/* TanzRuum Einsiedeln – Stil der Webseite (PM-Webdesign) */

@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --magenta: #65016d;
  --magenta-dunkel: #4b0051;
  --magenta-hell: #f3e6f4;
  --navy: #09264e;
  --creme: #faf3eb;
  --hell: #f9f9fb;
  --dunkel: #212326;
  --grau: #434549;
  --text: #050505;
  --leise: #5b5d63;
  --linie: #e6e2dc;
  --weiss: #fff;
  --radius: 20px;
  --radius-klein: 10px;
  --rand: clamp(12px, 2vw, 20px);
  --breite: 1280px;
  /* Innenabstand für Flächen über die ganze Breite, damit der Inhalt auf der Inhaltsbreite steht */
  --innen-rand: max(clamp(1.25rem, 4vw, 3rem), calc((100% - var(--breite)) / 2));
  --schatten: 0 10px 30px rgba(9, 38, 78, .08);
  --schrift: "Sora", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; font-family: var(--schrift); font-size: 16px; line-height: 1.7; letter-spacing: .01em;
  color: var(--text); background: var(--weiss);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--magenta); text-underline-offset: .15em; }
a:hover { color: var(--magenta-dunkel); }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; letter-spacing: -.02em; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 600; }
h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
h1, h2, h3 { overflow-wrap: break-word; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprung { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--magenta); color: #fff; padding: .7rem 1rem; border-radius: var(--radius-klein); }
.sprung:focus { top: 1rem; }
.leise { color: var(--leise); }
.zentriert { text-align: center; justify-content: center; }
main:focus { outline: none; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .85rem 1.4rem;
  border-radius: var(--radius-klein); border: 2px solid var(--magenta); background: var(--weiss); color: var(--magenta);
  font: inherit; font-size: .95rem; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.knopf:hover { background: var(--magenta-hell); color: var(--magenta-dunkel); }
.knopf.haupt { background: var(--magenta); color: #fff; }
.knopf.haupt:hover { background: var(--magenta-dunkel); border-color: var(--magenta-dunkel); color: #fff; }
.knopf.hell { background: #fff; border-color: #fff; color: var(--text); }
.knopf.hell:hover { background: var(--creme); border-color: var(--creme); }
.knopf.rand-hell { background: transparent; border-color: #fff; color: #fff; }
.knopf.rand-hell:hover { background: rgba(255,255,255,.15); color: #fff; }
.knopf.gross { width: 100%; min-height: 56px; font-size: 1.05rem; }
.knopf svg { width: .8em; height: .8em; fill: none; stroke: currentColor; stroke-width: 1.8; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: .75rem; }
.knopfliste { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Kopf und Menü ---------- */
.kopf { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.kopf.gescrollt { border-color: var(--linie); box-shadow: 0 4px 20px rgba(0,0,0,.05); }
.kopf-innen { max-width: calc(var(--breite) + 2 * var(--rand)); margin: 0 auto; padding: 0 var(--rand); min-height: 70px; display: flex; align-items: center; gap: 1rem; position: relative; }
/* Logo in einer weissen Lasche, die über die Farbfläche ragt (wie im Original) */
.logo { display: block; flex: none; align-self: flex-start; position: relative; z-index: 2; background: #fff; border-radius: 0 0 10px 10px; padding: 0 12px 8px; margin: 0 0 -36px 0; }
.logo img { width: 170px; height: auto; margin-top: -4px; }
@media (max-width: 1080px) { .logo { margin-bottom: -20px; padding-bottom: 6px; } .logo img { width: 120px; } }
.hauptmenue { margin-left: auto; }
.hauptmenue > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.hauptmenue li { position: relative; }
.menue-punkt {
  display: inline-flex; align-items: center; gap: .35rem; padding: 10px; border-radius: 8px;
  font: inherit; font-size: 14px; line-height: 24px; color: var(--navy); text-decoration: none; background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.menue-punkt:hover, .hat-unter.offen > .menue-punkt { background: var(--hell); color: var(--magenta); }
.hauptmenue li.aktiv > .menue-punkt { background: var(--magenta); color: #fff; }
.menue-punkt svg { width: 10px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .2s; }
.hat-unter.offen > .menue-punkt svg { transform: rotate(180deg); }
.untermenue {
  list-style: none; margin: 0; padding: .5rem; position: absolute; top: calc(100% + .4rem); left: 0; min-width: 230px;
  background: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(9,38,78,.15); display: none;
}
.hat-unter.offen > .untermenue { display: block; }
.untermenue a { display: block; padding: .6rem .8rem; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .92rem; }
.untermenue a:hover, .untermenue a[aria-current] { background: var(--magenta-hell); color: var(--magenta); }
.menue-knopf { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; border-radius: var(--radius-klein); background: var(--magenta); cursor: pointer; position: relative; }
.menue-striche, .menue-striche::before, .menue-striche::after { position: absolute; left: 13px; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, top .2s, opacity .2s; content: ""; }
.menue-striche { top: 23px; }
.menue-striche::before { left: 0; top: -7px; }
.menue-striche::after { left: 0; top: 7px; }
.menue-knopf[aria-expanded="true"] .menue-striche { background: transparent; }
.menue-knopf[aria-expanded="true"] .menue-striche::before { top: 0; transform: rotate(45deg); }
.menue-knopf[aria-expanded="true"] .menue-striche::after { top: 0; transform: rotate(-45deg); }

/* Megamenü (breite Bildschirme): weisses Feld in Inhaltsbreite mit dunkelblauen Karten, wie im Original */
@media (min-width: 1081px) {
  .hauptmenue li.hat-unter { position: static; }
  .untermenue {
    top: 100%; left: var(--rand); right: var(--rand); min-width: 0; padding: 20px; border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 24px 40px rgba(9, 38, 78, .18); gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); z-index: 5;
  }
  .untermenue.spalten-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hat-unter.offen > .untermenue { display: grid; }
  .untermenue a { height: 100%; display: flex; flex-direction: column; gap: .5rem; padding: 22px 25px 24px; border-radius: var(--radius); background: var(--navy); color: #fff; transition: background .2s; }
  .untermenue a strong { font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
  .untermenue a span { font-size: 14px; line-height: 1.7; max-width: 34em; opacity: .95; }
  .untermenue a:hover, .untermenue a:focus-visible, .untermenue a[aria-current] { background: var(--magenta); color: #fff; }
}
@media (hover: hover) and (min-width: 1081px) {
  .hat-unter:hover > .untermenue, .hat-unter:focus-within > .untermenue { display: grid; }
  .hat-unter:hover > .untermenue::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
}

@media (max-width: 1080px) {
  .menue-knopf { display: block; }
  .hauptmenue { position: fixed; top: var(--kopf-hoehe, 76px); left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; overflow-y: auto; overscroll-behavior: contain; padding: 1rem var(--rand) 2rem; display: none; border-top: 1px solid var(--linie); }
  .hauptmenue.offen { display: block; }
  .hauptmenue > ul { flex-direction: column; align-items: stretch; gap: .25rem; }
  .menue-punkt { width: 100%; justify-content: space-between; font-size: 1.1rem; padding: .9rem 1rem; }
  .untermenue { position: static; box-shadow: none; padding: 0 0 .5rem 1rem; min-width: 0; }
  .untermenue a { font-size: 1rem; padding: .75rem 1rem; }
  .untermenue a strong { font-weight: 400; }
  .untermenue a span { display: none; }
  html.menue-offen { overflow: hidden; }
}

/* ---------- Startseite: Held ---------- */
.held { padding: 0 var(--rand); }
.held-innen { position: relative; margin: 0 auto; min-height: max(520px, calc(100vh - var(--kopf-hoehe, 76px) - 20px)); border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; background: var(--dunkel); }
.held-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.held-innen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,5,.45), rgba(5,5,5,.1) 70%); }
.held-text { position: relative; z-index: 1; width: 100%; padding: clamp(3rem, 8vw, 6rem) var(--innen-rand); color: #fff; }
.held-text > * { max-width: 640px; }
.held h1 { color: #fff; font-size: clamp(2.2rem, 5.5vw, 60px); font-weight: 700; margin-bottom: .3em; }
.dachzeile { display: block; font-size: clamp(.85rem, 1.4vw, 1rem); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .6em; color: inherit; opacity: .9; }
.held-unter { font-size: clamp(1.05rem, 2vw, 1.3rem); margin-bottom: 1.5rem; }
.held-pause { position: absolute; right: 1rem; bottom: 1rem; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); cursor: pointer; display: grid; place-items: center; }
.held-pause svg { width: 18px; height: 18px; fill: var(--text); }
.held-pause.pausiert svg { display: none; }
.held-pause.pausiert::after { content: ""; border-left: 14px solid var(--text); border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }

/* Drei Bereiche (crèmefarbener Block direkt unter dem Held, wie auf der alten Seite) */
.drei { margin: 20px var(--rand) 0; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--creme); border-radius: var(--radius); overflow: hidden; scroll-margin-top: 100px; }
.drei-karte { display: block; padding: 30px; text-decoration: none; color: var(--text); transition: background .2s; }
.drei-karte + .drei-karte { border-left: 1px solid #e0d5c4; }
.drei-karte:hover { background: #f4e9dd; color: var(--text); }
.drei-karte h2 { font-size: 1.25rem; margin-bottom: .5rem; }
.drei-karte p { margin: 0; font-size: .95rem; }
.drei-karte:hover h2 { color: var(--magenta); }
@media (max-width: 860px) { .drei { grid-template-columns: 1fr; } .drei-karte + .drei-karte { border-left: 0; border-top: 1px solid #e0d5c4; } }

/* ---------- Abschnitte ---------- */
.abschnitt { max-width: calc(var(--breite) + 2 * var(--rand)); margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) var(--rand); }
.abschnitt.schmal { max-width: calc(820px + 2 * var(--rand)); }
.abschnitt-kopf { max-width: 760px; margin-bottom: 2.5rem; }
.abschnitt-kopf.zentriert { margin-left: auto; margin-right: auto; text-align: center; }
.abschnitt-kopf p { font-size: 1.05rem; color: var(--grau); }
.creme-flaeche { background: var(--creme); border-radius: var(--radius); max-width: calc(var(--breite) + 2 * var(--rand)); margin-left: max(var(--rand), calc((100% - var(--breite)) / 2 - var(--rand))); margin-right: max(var(--rand), calc((100% - var(--breite)) / 2 - var(--rand))); }
[id] { scroll-margin-top: 96px; }

/* Seitenkopf der Unterseiten */
.seitenkopf {
  margin: 0 var(--rand); border-radius: var(--radius); background: var(--magenta); color: #fff; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(2rem, 6vw, 6rem); align-items: center;
  padding: clamp(4rem, 7vw, 100px) max(clamp(1.25rem, 4vw, 3rem), calc((100% - var(--breite)) / 2 - var(--rand))) clamp(2.5rem, 4vw, 60px);
}
.seitenkopf-text { align-self: center; }
.seitenkopf h1 { color: #fff; hyphens: manual; font-size: clamp(1.75rem, 3.2vw, 40px); font-weight: 600; line-height: 1.2; }
.seitenkopf .dachzeile { color: #fff; }
.seitenkopf-intro { font-size: 1rem; max-width: 620px; }
/* Querformat 2:1 wie im Original, Ausschnitt pro Bild (object-position im style-Attribut) */
.seitenkopf-bild img { width: 100%; aspect-ratio: var(--verhaeltnis, 2 / 1); object-fit: cover; object-position: 50% 35%; border-radius: var(--radius); }
.anker { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.anker .knopf { min-height: 42px; padding: .6rem 1rem; font-size: .88rem; }
@media (max-width: 860px) { .seitenkopf { grid-template-columns: 1fr; row-gap: 1.5rem; padding-top: clamp(1.25rem, 4vw, 3rem); } /* oben gleich wie seitlich */ .seitenkopf-bild { order: -1; } .seitenkopf-bild img { aspect-ratio: var(--verhaeltnis, 16 / 9); } }

/* Kurskarten */
.kurskarten { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 960px) { .kurskarten { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .kurskarten { grid-template-columns: minmax(0, 1fr); } }
.kurskarte { display: block; height: 100%; text-decoration: none; color: var(--text); border-radius: var(--radius); overflow: hidden; background: var(--hell); transition: transform .25s, box-shadow .25s; }
.kurskarte:hover { transform: translateY(-4px); box-shadow: var(--schatten); color: var(--text); }
.kurskarte img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 35%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.kurskarte:hover img { transform: scale(1.05); }
.kurskarte-text { display: flex; flex-direction: column; gap: .35rem; padding: 1.3rem 1.4rem 1.6rem; }
.kurskarte strong { font-size: 1.3rem; font-weight: 600; color: var(--navy); }
.kurskarte-text > span:last-child { color: var(--grau); font-size: .95rem; }
.etikett { display: inline-block; align-self: flex-start; padding: .2rem .7rem; border-radius: 99px; background: var(--magenta-hell); color: var(--magenta); font-size: .8rem; font-weight: 500; letter-spacing: 0; vertical-align: middle; }

/* Geteilt: Text + Bild */
.geteilt { max-width: calc(var(--breite) + 2 * var(--rand)); margin: 0 auto; padding: clamp(1rem, 3vw, 2rem) var(--rand); display: grid; grid-template-columns: 1fr 1fr; }
.geteilt-text { padding: clamp(2rem, 6vw, 5.5rem); align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.geteilt-text.creme { background: var(--creme); border-radius: var(--radius) 0 0 var(--radius); }
.geteilt-bild { overflow: hidden; border-radius: 0 var(--radius) var(--radius) 0; }
.geteilt-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.abschnitt-geteilt .geteilt-bild { border-radius: var(--radius); align-self: start; }
.geteilt-bild.logo-bild { overflow: visible; border-radius: 0; }
.geteilt-bild.logo-bild { display: flex; align-items: flex-start; justify-content: center; padding-top: clamp(0rem, 3vw, 2.5rem); }
.geteilt-bild.logo-bild img, .abschnitt-geteilt .geteilt-bild.logo-bild img { max-width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 0; }
.abschnitt-geteilt { gap: 3rem; padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.abschnitt-geteilt .geteilt-text { padding: 0; }
.abschnitt-geteilt .geteilt-bild img { border-radius: var(--radius); max-height: 640px; }
.abschnitt-geteilt.umgekehrt .geteilt-bild { order: -1; }
@media (max-width: 860px) {
  .geteilt { grid-template-columns: 1fr; }
  .geteilt-text.creme { border-radius: var(--radius) var(--radius) 0 0; }
  .geteilt-bild { border-radius: 0 0 var(--radius) var(--radius); } .geteilt-bild img { aspect-ratio: 4 / 3; }
  .abschnitt-geteilt .geteilt-bild, .abschnitt-geteilt.umgekehrt .geteilt-bild { order: -1; }
}

/* Bühne (dunkles Bild) */
.buehne { margin: clamp(2rem, 5vw, 4rem) var(--rand); border-radius: var(--radius); padding: clamp(5rem, 14vw, 11rem) var(--innen-rand); background-size: cover; background-position: 50% 0%; background-attachment: fixed; color: #fff; text-align: center; }
/* iOS/Tablets können «fixed» nicht sauber – dort normal mitscrollen */
@media (hover: none), (max-width: 1080px), (prefers-reduced-motion: reduce) { .buehne { background-attachment: scroll; } }
.buehne h2 { color: #fff; font-size: clamp(2rem, 4.5vw, 50px); }
.buehne p { max-width: 720px; margin-left: auto; margin-right: auto; font-size: clamp(1.05rem, 2vw, 1.3rem); }

/* Team */
/* Team: Reihen mittig (die letzte, unvollständige Reihe hängt nicht links), am Handy zum Wischen */
.teamraster { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem 1.5rem; }
.teamraster > li { flex: 0 1 calc((100% - 4.5rem) / 4); min-width: 0; }
@media (max-width: 980px) { .teamraster > li { flex-basis: calc((100% - 3rem) / 3); } }
@media (max-width: 640px) {
  .teamraster { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; padding-bottom: .8rem; margin-right: calc(-1 * var(--rand)); padding-right: var(--rand); scrollbar-width: thin; }
  .teamraster > li { flex: 0 0 62%; scroll-snap-align: start; }
}
.teamraster a { display: flex; flex-direction: column; gap: .3rem; text-decoration: none; color: var(--text); }
.teamraster img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); margin-bottom: .6rem; transition: transform .25s; }
.teamraster a:hover img { transform: scale(1.02); }
.teamraster strong { font-size: 1.15rem; font-weight: 600; color: var(--navy); }
.teamraster span { color: var(--grau); font-size: .92rem; }
.teamliste { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.person { display: grid; grid-template-columns: minmax(200px, 360px) 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); position: sticky; top: 100px; }
.person .rolle { color: var(--magenta); font-weight: 500; margin-top: -.4rem; }
.stile { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.stile li { padding: .35rem .85rem; border-radius: 99px; background: var(--creme); font-size: .88rem; }
@media (max-width: 700px) { .person { grid-template-columns: 1fr; } .person img { position: static; max-width: 360px; } }

/* News */
.newskarten { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.newskarte { display: block; height: 100%; border-radius: var(--radius); overflow: hidden; background: var(--hell); color: var(--text); text-decoration: none; }
.newskarte img, .newskarte video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; display: block; background: #000; }
.video-vorschau { position: relative; display: block; }
.video-vorschau .play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(255,255,255,.9); }
.video-vorschau .play::after { content: ""; position: absolute; left: 22px; top: 17px; border-left: 18px solid var(--magenta); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.newskarte-text { display: flex; flex-direction: column; gap: .3rem; padding: 1.2rem 1.4rem 1.5rem; }
.newskarte time { color: var(--magenta); font-size: .85rem; }
.newskarte strong { color: var(--navy); font-size: 1.15rem; font-weight: 600; line-height: 1.35; }
.newskarte-text > span { color: var(--grau); font-size: .92rem; }
.newsliste { display: grid; gap: 3.5rem; }
.beitrag time { color: var(--magenta); font-size: .9rem; font-weight: 500; }
.beitrag h2 { margin-top: .2rem; font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.beitrag .text { font-size: 1.02rem; }
.beitrag { scroll-margin-top: 110px; }
.beitrag-medien { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.beitrag-medien a { display: block; border-radius: var(--radius-klein); overflow: hidden; }
.beitrag-medien img, .beitrag-medien video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 25%; border-radius: var(--radius-klein); background: #000; transition: transform .3s; }
.beitrag-medien a:hover img { transform: scale(1.03); }
/* «Gross untereinander» (z. B. Flyer): ganzes Bild, höchstens halbe Inhaltsbreite */
.beitrag.breit .beitrag-medien { grid-template-columns: minmax(0, 1fr); max-width: 50%; }
.beitrag.breit .beitrag-medien img { aspect-ratio: auto; object-fit: contain; background: none; }
@media (max-width: 900px) { .beitrag-medien { grid-template-columns: repeat(2, minmax(0, 1fr)); } .beitrag.breit .beitrag-medien { max-width: 100%; } }
@media (max-width: 480px) { .beitrag-medien { grid-template-columns: minmax(0, 1fr); } }

/* Kursbeschriebe */
.kursliste { display: grid; gap: clamp(3rem, 7vw, 6rem); }
.kurs { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.kurs:nth-child(even) .kurs-bild { order: 2; }
.kurs-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 35%; border-radius: var(--radius); position: sticky; top: 100px; }
.kurs-kurz { font-size: 1.15rem; color: var(--navy); }
.kurs h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
.kurs h2 .etikett { margin-left: .4rem; }
.kurs-fakten { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.2rem; margin: 1.5rem 0; padding: 1.2rem 1.4rem; background: var(--creme); border-radius: var(--radius-klein); }
.kurs-fakten dt { font-weight: 600; color: var(--navy); }
.kurs-fakten dd { margin: 0; }
.kurszeiten { margin: 0 0 1.5rem; border: 1px solid var(--linie); border-radius: var(--radius-klein); padding: .2rem 1.2rem; }
.kurszeiten summary { cursor: pointer; font-weight: 600; padding: .7rem 0; color: var(--magenta); }
.kurszeiten ul { padding-left: 1.1rem; margin: 0 0 .8rem; }
.kurszeiten li { margin-bottom: .35rem; }
@media (max-width: 860px) { .kurs { grid-template-columns: 1fr; } .kurs:nth-child(even) .kurs-bild { order: 0; } .kurs-bild img { position: static; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--linie); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 600; color: var(--navy); position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: .85rem; font-size: 1.6rem; font-weight: 400; color: var(--magenta); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-right: 2rem; }

/* Preise */
.preiskarten { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.preiskarte { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.8rem 1.6rem; display: flex; flex-direction: column; box-shadow: var(--schatten); }
.preiskarte h3 { margin-bottom: .1rem; font-size: 1.15rem; }
.preiskarte p { margin: 0; }
.preiskarte .preis { font-size: 2rem; font-weight: 700; color: var(--navy); letter-spacing: -.02em; margin: .9rem 0 .1rem; }
.preiskarten > li { display: flex; }
.preiskarte { width: 100%; }
.preiskarte .knopf { margin-top: auto; }
.preiskarte > :nth-last-child(2) { margin-bottom: 1.4rem; }
.preise.creme-flaeche { margin-top: 2rem; margin-bottom: 2rem; }
.wissen dt { font-weight: 600; color: var(--navy); margin-top: 1.2rem; }
.wissen dd { margin: .2rem 0 0; }
.swica { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: center; margin-top: 2.5rem; padding: 1.5rem; background: var(--creme); border-radius: var(--radius); }
.swica h3 { margin-bottom: .4rem; }
.swica p { margin: 0; }
@media (max-width: 640px) { .swica { grid-template-columns: 1fr; } }

/* Stundenplan */
.reiter { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
/* Raum-Reiter in der Farbe des Raums (RUUM magenta / RUUM blau) wie auf der bisherigen Seite */
.reiter button { font: inherit; font-weight: 500; padding: .75rem 1.4rem; border-radius: 99px; border: 2px solid var(--raumfarbe, var(--magenta)); background: #fff; color: var(--raumfarbe, var(--magenta)); cursor: pointer; min-height: 48px; }
.reiter button[aria-selected="true"] { background: var(--raumfarbe, var(--magenta)); color: #fff; }
.reiter { display: none; }
.js .reiter { display: flex; }
.js .raum[hidden] { display: none; }
.raum-titel { margin-top: 1rem; }
.js .raum-titel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.woche {
  display: grid; grid-template-columns: 64px repeat(var(--tage), minmax(0, 1fr)); grid-template-rows: auto repeat(var(--zeilen), 9px);
  column-gap: 8px; background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem 1rem 1.2rem 0; position: relative;
}
.woche-ecke { grid-column: 1; grid-row: 1; }
.woche-tag { grid-row: 1; text-align: center; font-weight: 600; color: var(--navy); padding-bottom: .6rem; }
.woche-zeit { grid-column: 1; font-size: .75rem; color: var(--leise); text-align: right; padding-right: .7rem; transform: translateY(-.55em); }
.woche-linie { grid-column: 2 / -1; border-top: 1px solid #f0ece6; z-index: 0; }
.woche-luecke { grid-column: 1 / -1; display: flex; align-items: center; z-index: 0; background: repeating-linear-gradient(90deg, var(--linie) 0 6px, transparent 6px 12px) center / 100% 1px no-repeat; }
.woche-luecke span { background: #fff; color: var(--leise); font-size: .8rem; padding: 0 .6rem; margin-left: 1.2rem; line-height: 1; }
.woche-kurs {
  z-index: 1; margin: 1px 0; padding: .35rem .5rem; border-radius: 8px; overflow: hidden; background: var(--farbe); color: var(--textfarbe, #fff);
  font-size: .74rem; line-height: 1.3; display: flex; flex-direction: column; box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.woche-kurs strong { font-size: .85rem; font-weight: 600; }
.woche-kurs .zeit { opacity: .9; }
.woche-kurs .notiz { font-style: italic; }
.tagesliste { display: none; }
.tagesliste .tag { margin-bottom: 1.5rem; }
.tagesliste h4 { font-size: 1.15rem; color: var(--navy); margin: 0 0 .6rem; display: flex; justify-content: space-between; }
.tagesliste h4 span { color: var(--leise); font-weight: 400; font-size: .9rem; }
.tagesliste ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.tagesliste li { display: grid; padding: .7rem .9rem; border-radius: var(--radius-klein); background: var(--farbe); color: var(--textfarbe, #fff); box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.tagesliste .zeit { font-size: .85rem; opacity: .9; }
.tagesliste li > span:last-child { font-size: .9rem; opacity: .9; }
@media (max-width: 900px) { .woche { display: none; } .tagesliste { display: block; } }
.legende { margin-top: 1.5rem; font-size: .92rem; }
.legende p { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; align-items: center; }
.legende-punkt { display: inline-block; padding: .25rem .7rem; border-radius: 6px; background: var(--farbe); color: var(--textfarbe, #fff); font-size: .88rem; }
.legende-punkt[style*="#faf3eb"] { box-shadow: inset 0 0 0 1px #e0d5c4; }
.hinweis-box { padding: .9rem 1.2rem; background: var(--magenta-hell); border-radius: var(--radius-klein); color: var(--magenta-dunkel); }
.extern-info { margin-top: 2.5rem; }

/* Tabellen (Ferien, externe Lehrpersonen) */
.tabelle { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .98rem; table-layout: fixed; }
/* Spalten so, dass «E-Mail» und «Datum» auf derselben Linie beginnen */
.tabelle.zwei-spalten th, .tabelle.zwei-spalten td { width: 50%; }
.tabelle.drei-spalten th:nth-child(1) { width: 30%; } .tabelle.drei-spalten th:nth-child(2) { width: 20%; } .tabelle.drei-spalten th:nth-child(3) { width: 50%; }
.tabelle tr.vorbei td { color: #9a9a9a; }
.tabelle tr.vorbei td a { color: inherit; }
.tabelle th, .tabelle td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle th { font-weight: 600; color: var(--navy); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; border-bottom: 2px solid var(--linie); }
.tabelle td { overflow-wrap: anywhere; }
.ferien .hervor { font-weight: 600; color: var(--magenta); }
@media (max-width: 600px) {
  .tabelle th, .tabelle td { padding: .6rem .5rem; font-size: .92rem; }
  /* Externe Lehrpersonen: Zeilen als Blöcke, nichts läuft über */
  .tabelle.drei-spalten thead { display: none; }
  .tabelle.drei-spalten tr { display: grid; grid-template-columns: 1fr; padding: .6rem 0; border-bottom: 1px solid var(--linie); }
  .tabelle.drei-spalten td { width: auto !important; border: 0; padding: .1rem .5rem; }
  .tabelle.drei-spalten td:first-child { font-weight: 600; }
}

/* Galerie, Videos, Presse */
.galerie { margin-bottom: 3rem; }
.galerie-titel { font-size: 1.2rem; }
.galerie-raster { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.galerie-raster a { display: block; border-radius: var(--radius-klein); overflow: hidden; }
.galerie-raster img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .3s; }
.galerie-raster a:hover img { transform: scale(1.05); }
.videos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem 1.5rem; }
.video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; border-radius: var(--radius-klein); }
.video h3 { font-size: 1.05rem; margin: .8rem 0 .2rem; }
.video p { color: var(--grau); font-size: .92rem; margin: 0; }
.presse { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 980px) { .presse { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .presse { grid-template-columns: minmax(0, 1fr); } }
.presse a { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; align-items: center; padding: 1rem; border-radius: var(--radius); background: var(--hell); color: var(--text); text-decoration: none; height: 100%; }
.presse a:hover { background: var(--creme); }
.presse img, .presse-platz { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius-klein); display: grid; place-items: center; font-size: 2rem; background: #fff; }
.presse strong { display: block; color: var(--navy); line-height: 1.3; }
.presse .leise { display: block; font-size: .88rem; }
.presse .mehr { display: block; color: var(--magenta); font-size: .88rem; margin-top: .3rem; }

/* Raumvermietung */
.haekchen { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .5rem; }
.haekchen li { padding-left: 1.8rem; position: relative; }
.haekchen li::before { content: ""; position: absolute; left: .2rem; top: .45em; width: .9rem; height: .5rem; border-left: 2px solid var(--magenta); border-bottom: 2px solid var(--magenta); transform: rotate(-45deg); }
.raumbilder { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 900px) { .raumbilder { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .raumbilder { grid-template-columns: minmax(0, 1fr); } }
.raumbilder a { display: block; overflow: hidden; border-radius: var(--radius); }
.raumbilder img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.raumbilder a:hover img { transform: scale(1.05); }
.raumbilder h3 { margin-top: .8rem; font-size: 1.05rem; }

/* Showgruppen */
.repertoire { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0 0; }
@media (max-width: 1100px) { .repertoire { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .repertoire { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .repertoire { grid-template-columns: minmax(0, 1fr); } }
.repertoire-abschnitt h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
.repertoire div { padding: .8rem 1rem; background: var(--creme); border-radius: var(--radius-klein); }
.repertoire dt { font-size: .8rem; color: var(--magenta); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.repertoire dd { margin: 0; font-weight: 500; }
.creme-karte { background: var(--creme); border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 3.5rem); margin-top: 1rem; margin-bottom: 1rem; }
/* Referenzen: Auswahl als Karten, alles andere zum Aufklappen (gleichmässig in Spalten verteilt) */
.referenzen-auswahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-top: 1rem; }
.referenz-karte { background: var(--creme); border-radius: var(--radius-klein); padding: 1.2rem 1.4rem; }
.referenz-karte h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.referenz-karte ul { padding-left: 1.1rem; margin: 0; font-size: .95rem; }
.referenzen-alle { margin-top: 1.5rem; }
.referenzen-alle > summary { list-style: none; }
.referenzen-alle > summary::-webkit-details-marker { display: none; }
.referenzen-alle .auf, .referenzen-alle[open] .zu { display: none; }
.referenzen-alle[open] .auf { display: inline; }
.referenzen-alle .referenzen { margin-top: 1.5rem; font-size: .94rem; }
.referenzen { columns: 3 260px; column-gap: 2.5rem; }
.referenzen > div { margin-bottom: 1.2rem; }
.referenzen h3 { font-size: 1.05rem; break-after: avoid; }
.referenzen li { break-inside: avoid; }
.referenzen ul { padding-left: 1.1rem; margin: 0; }
.referenzen li { margin-bottom: .25rem; }

/* Kontakt und Formulare */
.kontakt-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-areas: "kontakt formular" "standort formular"; grid-template-rows: auto 1fr; gap: 1.5rem clamp(1.5rem, 4vw, 3rem); align-items: start; }
.kontakt-karte { grid-area: kontakt; }
.standort-karte { grid-area: standort; position: sticky; top: 100px; }
.formular-karte { grid-area: formular; background: #fff; border: 1px solid var(--linie); }
.formular-karte h2 { margin-bottom: .8rem; }
@media (max-width: 960px) { .kontakt-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "kontakt" "formular" "standort"; grid-template-rows: auto; } .standort-karte { position: static; } }
.karte { background: var(--hell); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); }
@media (max-width: 760px) { .kontakt-raster-alt { grid-template-columns: 1fr; } }
.formular { display: grid; gap: 1.1rem; }
.formular.zwei, .formular .zwei { grid-template-columns: 1fr 1fr; display: grid; gap: 1.1rem 1.2rem; }
.formular .ganz { grid-column: 1 / -1; }
.formular label { display: grid; gap: .35rem; font-weight: 500; font-size: .95rem; }
.formular fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.formular fieldset > legend { font-weight: 600; color: var(--navy); font-size: 1.1rem; padding: 0; margin-bottom: .7rem; }
.formular .wahl-feld legend { font-size: .95rem; font-weight: 500; color: var(--text); margin-bottom: .35rem; }
.formular input[type=text], .formular input[type=email], .formular input[type=tel], .formular select, .formular textarea {
  width: 100%; min-height: 50px; padding: .75rem .95rem; font: inherit; font-weight: 400; color: var(--text);
  background: #fff; border: 1.5px solid #cfc9c0; border-radius: var(--radius-klein);
}
.formular textarea { resize: vertical; min-height: 130px; }
.formular input:focus, .formular select:focus, .formular textarea:focus { border-color: var(--magenta); outline: 3px solid var(--magenta-hell); }
.formular [aria-invalid="true"] { border-color: #b3261e; }
.formular .inline { display: flex; align-items: center; gap: .6rem; font-weight: 400; min-height: 44px; }
.formular input[type=radio], .formular input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--magenta); flex: none; margin: 0; }
.formular .haken { display: flex; gap: .8rem; align-items: flex-start; font-weight: 400; }
.formular .haken input { margin-top: .2rem; }
.pflicht { color: var(--magenta); }
.feld-fehler { color: #b3261e; font-size: .88rem; font-weight: 500; }
.honig { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.js [data-wenn][hidden] { display: none; }
@media (max-width: 640px) { .formular.zwei, .formular .zwei { grid-template-columns: 1fr; } }
.meldung { padding: 1rem 1.2rem; border-radius: var(--radius-klein); margin: 0 0 1.2rem; }
.meldung p:last-child { margin: 0; }
.meldung.ok { background: #e6f4ec; color: #14532d; }
.meldung.fehler { background: #fdecea; color: #8c1d18; }

/* Rechtstexte */
.recht h2 { font-size: 1.3rem; margin-top: 2rem; }

/* 404 */
.nicht-gefunden { text-align: center; }
.nicht-gefunden .knopfliste { justify-content: center; }

/* Aufruf (CTA) */
.cta { padding: 20px var(--rand) 0; background: var(--magenta); margin-top: clamp(2rem, 5vw, 4rem); }
.cta-innen { border-radius: var(--radius); background-size: cover; background-position: center; color: #fff; text-align: center; padding: 100px var(--innen-rand); }
.cta-titel { color: #fff; font-size: clamp(1.8rem, 4vw, 40px); font-weight: 600; line-height: 1.2; margin: 0 0 .4em; }
.cta p { font-size: clamp(1rem, 1.6vw, 1.15rem); margin-bottom: 0; }
.cta .knopfreihe { margin-top: 3.2rem; gap: 10px; }
.knopf-weiss { display: inline-flex; align-items: center; gap: .6rem; min-height: 52px; padding: 0 22px; border-radius: 10px; background: #fff; color: var(--text); font-size: 14px; text-decoration: none; transition: background .2s; }
.knopf-weiss:hover { background: var(--creme); color: var(--text); }
.knopf-weiss svg { width: 9px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.knopf-symbol { width: 52px; height: 52px; padding: 0; justify-content: center; }
.knopf-symbol svg { width: 28px; height: 32px; fill: currentColor; stroke: none; }

/* Fuss */
.fuss { background: var(--magenta); color: #fff; padding: clamp(2.5rem, 5vw, 4rem) var(--rand) 2rem; font-size: .95rem; }
.fuss a { color: #fff; text-decoration: none; }
.fuss a:hover { text-decoration: underline; color: #fff; }
.fuss-innen { max-width: var(--breite); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-top: 1rem; }
.fuss-titel { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8rem; }
.fuss ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.fuss-logo img { height: 64px; width: auto; border-radius: 8px; margin-bottom: 1.2rem; }
.sozial { display: flex; gap: .6rem; }
.sozial a { width: 42px; height: 42px; border-radius: 10px; background: #fff; color: var(--text); display: grid; place-items: center; }
.sozial a:hover { background: var(--creme); color: var(--text); text-decoration: none; }
.sozial svg { width: 21px; height: 24px; fill: currentColor; }
.tvs img { height: 50px; width: auto; border-radius: 6px; margin-top: .5rem; }
.fuss-unten { max-width: var(--breite); margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; }
.fuss-unten p { margin: 0; }
.pmw { display: inline-flex; align-items: center; gap: .5rem; }
.pmw img { height: 18px; width: auto; }
@media (max-width: 900px) { .fuss-innen { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fuss-innen { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5,5,5,.92); display: flex; align-items: center; justify-content: center; padding: 3.5rem 4rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 6px; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.15); color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.3); }
.lightbox .lb-zu { top: 1rem; right: 1rem; }
.lightbox .lb-zurueck { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-weiter { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-zahl { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: #fff; font-size: .9rem; }
@media (max-width: 640px) { .lightbox { padding: 4rem .5rem; } .lightbox .lb-zurueck, .lightbox .lb-weiter { top: auto; bottom: .7rem; transform: none; } }

/* Druckansicht Stundenplan */
.druck { padding: 1.5rem; }
.druck-kopf { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1rem; }
.druck-kopf img { height: 60px; width: auto; }
.druck-kopf h1 { font-size: 1.6rem; margin: 0; }
.druck-kopf p { margin: 0; font-size: .8rem; color: var(--leise); }
.druck-kopf .knopf { margin-left: auto; }
.druck .reiter { display: none !important; }
.druck .raum, .druck .raum[hidden] { display: block !important; page-break-inside: avoid; break-inside: avoid; margin-bottom: 1rem; }
.druck .raum-titel { display: none !important; }
.druck .woche { display: grid !important; grid-template-rows: auto repeat(var(--zeilen), var(--zeile, 6px)); }
.druck .tagesliste { display: none !important; }
@media print {
  @page { size: A4 landscape; margin: 8mm; }
  .kopf, .fuss, .cta, .nicht-drucken, .held-pause { display: none !important; }
  .druck { padding: 0; }
  .druck .raum + .raum { page-break-before: always; break-before: page; }
  .woche-kurs { -webkit-print-color-adjust: exact; print-color-adjust: exact; box-shadow: none; }
  .legende-punkt { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Text links, Formular rechts (z. B. Geschenkgutschein) */
.seitenraster { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 900px) { .seitenraster { grid-template-columns: 1fr; } }
/* Beim Scrollen wird das Logo kleiner und ragt nicht mehr über den Inhalt */
.logo, .logo img { transition: margin .2s, width .2s, padding .2s; }
.kopf.gescrollt .logo { margin-bottom: 0; padding-bottom: 4px; }
.kopf.gescrollt .logo img { width: 105px; }
@media (max-width: 600px) { .cta-innen { padding: 4rem 12px; } .cta .knopfreihe { margin-top: 2rem; } }

/* Abstände: zwei Abschnitte hintereinander addieren ihre Innenabstände nicht (ausser Flächen mit Hintergrund) */
.abschnitt:not(.creme-flaeche):not(.creme-karte) + .abschnitt:not(.creme-flaeche):not(.creme-karte) { padding-top: 0; }
.abschnitt:has(+ .cta) { padding-bottom: clamp(2rem, 4vw, 3.5rem); }
#plan .knopfreihe { margin-bottom: 0; }
/* Nichts darf seitlich über den Rand laufen */
body { overflow-x: clip; }
.seitenkopf-text, .geteilt-text, .karte, .abschnitt-kopf { min-width: 0; }
.anker .knopf { white-space: normal; text-align: left; }

/* ---------- Sprungleiste Kursbeschriebe (läuft unter dem Menü mit) ---------- */
.sprungleiste { position: sticky; top: var(--kopf-hoehe, 70px); z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--linie); margin-top: 1.5rem; }
.sprungleiste ul { list-style: none; margin: 0 auto; padding: .6rem var(--rand); max-width: calc(var(--breite) + 2 * var(--rand)); display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; }
.sprungleiste ul::-webkit-scrollbar { display: none; }
.sprungleiste a { display: block; white-space: nowrap; padding: .45rem .95rem; border-radius: 99px; font-size: .9rem; color: var(--navy); text-decoration: none; transition: background .2s, color .2s; }
.sprungleiste a:hover { background: var(--hell); color: var(--magenta); }
.sprungleiste a.aktiv { background: var(--magenta); color: #fff; }
/* Am Handy: weicher Rand zeigt, dass es seitlich weitergeht */
.sprungleiste.mehr-rechts ul { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.sprungleiste.mehr-links ul { -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%); mask-image: linear-gradient(90deg, transparent, #000 15%); }
.sprungleiste.mehr-links.mehr-rechts ul { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.kursliste .kurs, body:has(.sprungleiste) [id] { scroll-margin-top: calc(var(--kopf-hoehe, 70px) + 70px); }

/* ---------- Stundenplan am Handy: ein Wochentag pro Reiter ---------- */
.tag-reiter { display: none; }
@media (max-width: 900px) {
  .js .tag-reiter { display: flex; gap: .4rem; margin: 0 0 1rem; overflow-x: auto; scrollbar-width: none; }
  .tag-reiter button { flex: 1 0 auto; min-width: 52px; min-height: 44px; font: inherit; font-weight: 600; border-radius: 10px; border: 2px solid var(--linie); background: #fff; color: var(--navy); cursor: pointer; }
  .tag-reiter button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
  .js .tagesliste.mit-reitern .tag:not(.aktiv) { display: none; }
  .js .tagesliste.mit-reitern .tag h4 { display: none; }
}

/* ---------- Laufband mit den Tanzstilen ---------- */
.laufband { overflow: hidden; margin: clamp(1rem, 3vw, 2rem) 0; padding: .9rem 0; background: var(--magenta); color: #fff; }
.laufband-spur { display: flex; width: max-content; }
.laufband-teil { display: flex; flex: none; }
.laufband-teil span { font-size: clamp(1.1rem, 2.4vw, 1.6rem); font-weight: 600; letter-spacing: -.01em; padding: 0 1.4rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 2.8rem; }
.laufband-teil span::after { content: ""; width: .5em; height: .5em; border-radius: 50%; background: rgba(255,255,255,.55); margin-left: 0; }

/* ---------- Bewegung (nur wenn «Bewegung reduzieren» nicht eingestellt ist) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Einblenden beim Scrollen */
  .js .einblenden { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--verz, 0) * 90ms); }
  .js .einblenden.sichtbar { opacity: 1; transform: none; }
  /* Startseite: Titel Wort für Wort, danach Text und Knöpfe */
  .held .wort { display: inline-block; opacity: 0; transform: translateY(.45em); animation: wort-rein .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(200ms + var(--n) * 130ms); }
  .held .dachzeile, .held-unter, .held .knopfreihe { opacity: 0; animation: wort-rein .9s cubic-bezier(.2,.7,.2,1) forwards; }
  .held .dachzeile { animation-delay: .05s; }
  .held-unter { animation-delay: .75s; }
  .held .knopfreihe { animation-delay: .95s; }
  @keyframes wort-rein { from { opacity: 0; transform: translateY(.45em); } to { opacity: 1; transform: none; } }
  /* Kopfbild der Unterseiten öffnet sich mit einer Wischbewegung */
  .seitenkopf-bild img { animation: wischen 1.1s cubic-bezier(.65,0,.25,1) .15s both; }
  .seitenkopf-text > * { animation: wort-rein .8s cubic-bezier(.2,.7,.2,1) both; }
  .seitenkopf-text > :nth-child(2) { animation-delay: .1s; }
  .seitenkopf-text > :nth-child(3) { animation-delay: .2s; }
  .seitenkopf-text > :nth-child(4) { animation-delay: .3s; }
  @keyframes wischen { from { clip-path: inset(0 100% 0 0 round var(--radius)); } to { clip-path: inset(0 0 0 0 round var(--radius)); } }
  /* Laufband */
  .laufband-spur { animation: laufen 45s linear infinite; }
  .laufband:hover .laufband-spur { animation-play-state: paused; }
  @keyframes laufen { to { transform: translateX(-50%); } }
  /* Tiefe: Bild bewegt sich im Rahmen leicht mit (Wert setzt site.js) */
  .js .geteilt-bild:not(.logo-bild) img { transform: translateY(var(--tiefe, 0px)) scale(1.1); will-change: transform; }
}
.druck .tag-reiter { display: none !important; }
.abschnitt-geteilt + .repertoire-abschnitt { padding-top: 0; }

/* Farbflächen im Inhalt (Booking, Unlimited-Abos) wie der Kopfbereich: bis 20 px vor den Fensterrand,
   Inhalt bleibt auf der Inhaltsbreite */
.abschnitt.creme-karte, .abschnitt.creme-flaeche {
  max-width: none; margin-left: var(--rand); margin-right: var(--rand); border-radius: var(--radius);
  padding-left: max(clamp(1.25rem, 4vw, 3rem), calc((100% - var(--breite)) / 2 - var(--rand)));
  padding-right: max(clamp(1.25rem, 4vw, 3rem), calc((100% - var(--breite)) / 2 - var(--rand)));
}
/* Tablet und Handy: Logo ragt nicht in die Farbfläche (sonst wird die Ecke angeschnitten) */
@media (max-width: 1080px) {
  .logo, .kopf.gescrollt .logo { margin-bottom: 0; padding-bottom: 4px; }
  /* Logo oben gleich weit vom Rand wie der Menü-Knopf (12 px); das Logo-Bild hat oben ca. 7 px Weissraum */
  .logo img, .kopf.gescrollt .logo img { margin-top: 5px; }
  .menue-knopf { align-self: flex-start; margin-top: 12px; }
}

/* Druck: ein Raum pro A4-Seite (quer), Auswahl oben */
.druck-wahl { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--linie); }
.druck-wahl span { font-weight: 600; margin-right: .3rem; }
.druck-seite + .druck-seite { margin-top: 2.5rem; }
.druck .druck-seite .legende { margin-top: .6rem; font-size: .8rem; }
@media print {
  .druck-wahl { display: none !important; }
  .druck-seite { break-after: page; page-break-after: always; break-inside: avoid; }
  .druck-seite:last-child { break-after: auto; page-break-after: auto; }
  .druck-seite + .druck-seite { margin-top: 0; }
}
