/* ============================================================
   Linedance Bayern — app.css
   Aus dem Design-Prototyp abgeleitet.
   ============================================================ */

:root{
  --ink:        #12100f;
  --ink-soft:   #24211f;
  --paper:      #f6f4f1;
  --surface:    #ffffff;
  --line:       #e3ded8;
  --text:       #1a1715;
  --text-muted: #6d665f;
  --denim:      #2a4c7d;
  --denim-soft: #eaeff6;

  /* Balken: Monatstrenner und Abschnittsköpfe.
     Eigenes Token, weil --denim im Dunkelmodus zu einem hellen
     Link-Blau wird und als Hintergrund nicht taugt. */
  --balken:       #2a4c7d;
  --balken-hover: #203d66;
  --balken-text:  #ffffff;

  --brass:      #a8781f;
  --brass-soft: #f7f0dd;
  --rot:        #9c2b2b;
  --rot-soft:   #f8e9e9;

  --nav-w: 265px;
  /* Titelleiste 56 + Tabs 46 + Suchzeile 64 + Rahmen 1 */
  --kopf-gesamt: 167px;
  --radius: 10px;
  --tap: 48px;

  --font-ui: "Barlow Semi Condensed", "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark){
  :root{
    --paper:      #171513;
    --surface:    #201d1a;
    --line:       #332e29;
    --text:       #f0ece7;
    --text-muted: #a29a91;
    --denim:      #8fb3e0;
    --denim-soft: #24313f;
    --balken:       #21405f;
    --balken-hover: #2a4f74;
    --balken-text:  #eef3fa;
    --brass:      #d9ac4e;
    --brass-soft: #322a19;
    --rot:        #e8908f;
    --rot-soft:   #3a2422;
  }
}

*,*::before,*::after{ box-sizing:border-box; }

html,body{ margin:0; padding:0; }
body{
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text);
  font-size:16px; line-height:1.45;
  -webkit-text-size-adjust:100%;
}

a{ color: var(--denim); text-decoration:none; }
a:hover{ text-decoration:underline; }

:focus-visible{ outline:3px solid var(--denim); outline-offset:2px; }

.visually-hidden{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.01ms !important; transition-duration:.01ms !important; }
}

/* ---------- Grundgerüst ---------- */
.app{ min-height:100vh; }

.sidebar{
  position:fixed; inset:0 auto 0 0; width:var(--nav-w);
  background:var(--ink); color:#fff;
  display:flex; flex-direction:column; z-index:40;
  transform:translateX(-100%); transition:transform .22s ease;
}
.sidebar[data-open="true"]{ transform:none; }

.sidebar__brand{
  font-family:var(--font-ui); font-weight:700; font-size:22px;
  padding:0 14px; height:56px; display:flex; align-items:center; gap:10px;
  background:var(--balken); color:var(--balken-text); text-decoration:none;
  letter-spacing:.01em;
}
.sidebar__logo{
  width:34px; height:34px; flex-shrink:0;
  border-radius:7px; display:block;
}
.sidebar__brand:hover{ background:var(--balken-hover); text-decoration:none; }
.sidebar__brand:hover{ text-decoration:none; }

.sidebar__nav{ padding:8px 0; flex:1; }

.navlink{
  display:flex; align-items:center; min-height:var(--tap);
  padding:0 18px; color:rgba(255,255,255,.82);
  font-family:var(--font-ui); font-weight:500; font-size:19px;
  border-left:3px solid transparent; text-decoration:none;
}
.navlink:hover{ color:#fff; background:rgba(255,255,255,.05); text-decoration:none; }
.navlink[aria-current="page"]{
  color:#fff; border-left-color:var(--brass); background:rgba(255,255,255,.07);
}

/* ---------- Kontoblock in der Seitenleiste ---------- */
.konto{
  display:flex; align-items:stretch;
  margin:10px 12px 14px; border-radius:var(--radius);
  background:var(--balken); overflow:hidden;
  color:var(--balken-text); text-decoration:none;
}
.konto:hover{ text-decoration:none; }
.konto--aktiv{ box-shadow:inset 0 0 0 2px var(--brass); }

.konto__link{
  flex:1; min-width:0; display:flex; align-items:center; gap:11px;
  padding:11px 12px; min-height:var(--tap);
  color:var(--balken-text); text-decoration:none;
}
.konto__link:hover{ background:rgba(255,255,255,.10); text-decoration:none; }

.konto__initialen{
  flex-shrink:0; width:38px; height:38px; border-radius:50%;
  display:grid; place-items:center;
  background:rgba(255,255,255,.17); color:var(--balken-text);
  font-family:var(--font-ui); font-weight:700; font-size:15px; letter-spacing:.03em;
}
.konto__text{ min-width:0; display:flex; flex-direction:column; gap:1px; }
.konto__name{
  font-family:var(--font-ui); font-weight:600; font-size:17px; line-height:1.2;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.konto__zusatz{
  font-size:12px; color:rgba(255,255,255,.65); line-height:1.2;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.konto__abmelden{
  flex-shrink:0; width:46px; display:grid; place-items:center;
  color:rgba(255,255,255,.72); border-left:1px solid rgba(255,255,255,.15);
}
.konto__abmelden:hover{ background:rgba(255,255,255,.10); color:#fff; }

.konto--anmelden{ padding:0; }
.konto--anmelden .konto__link{ width:100%; }
.konto--anmelden:hover{ background:var(--balken-hover); }

/* Bild statt Initialen im Kontoblock */
.konto__initialen img{
  width:100%; height:100%; object-fit:cover; border-radius:50%; display:block;
}
.konto__initialen{ overflow:hidden; }

/* ---------- Profilbild ---------- */
.bildbereich{ display:flex; gap:18px; align-items:flex-start; }
.bildbereich__vorschau{
  flex-shrink:0; width:120px; height:120px; border-radius:50%;
  overflow:hidden; background:var(--paper); border:1px solid var(--line);
  display:grid; place-items:center;
}
.bildbereich__vorschau img{ width:100%; height:100%; object-fit:cover; display:block; }
.bildbereich__initialen{
  font-family:var(--font-ui); font-weight:700; font-size:38px;
  color:var(--text-muted); letter-spacing:.03em;
}
.bildbereich__aktionen{ display:flex; flex-direction:column; gap:10px; min-width:0; }
.bildbereich__knoepfe{ display:flex; gap:8px; flex-wrap:wrap; }
.versteckt{ display:none; }

/* ---------- Personen mit Bild ---------- */
.personen li.person{
  flex-direction:row; align-items:center; gap:11px;
}
.person__bild{
  flex-shrink:0; width:40px; height:40px; border-radius:50%;
  overflow:hidden; background:var(--paper); border:1px solid var(--line);
  display:grid; place-items:center;
}
.person__bild img{ width:100%; height:100%; object-fit:cover; display:block; }
.person__initialen{
  font-family:var(--font-ui); font-weight:700; font-size:14px; color:var(--text-muted);
}
.person__text{ min-width:0; display:flex; flex-direction:column; gap:1px; }

.artwahl{ display:flex; flex-direction:column; gap:10px; }
.artwahl__option{
  display:flex; align-items:flex-start; gap:12px;
  padding:12px 14px; border:1px solid var(--line); border-radius:var(--radius);
  background:var(--surface); cursor:pointer;
}
.artwahl__option:hover{ border-color:var(--denim); }
.artwahl__option input{ width:20px; height:20px; margin-top:2px; accent-color:var(--denim); flex-shrink:0; }
.artwahl__option:has(input:checked){ border-color:var(--denim); background:var(--denim-soft); }
.artwahl__text{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.artwahl__text strong{ font-family:var(--font-ui); font-weight:600; font-size:16px; }
.artwahl__text small{ font-size:13px; line-height:1.4; color:var(--text-muted); }

/* ---------- Tanz-Live-Suche ---------- */
/* Bezugspunkt fuer die Trefferliste. Sie haengt unter .tanzsuche,
   nicht unter dem Wrap - ohne diese Zeile positioniert sie sich
   an einem ganz anderen Element und ist nicht zu sehen. */
.tanzsuche{ position:relative; }

.tanzsuche__wrap{
  display:flex; align-items:center; gap:6px;
}
.tanzsuche__eingabe{
  flex:1;
}
.tanzsuche__loeschen{
  flex-shrink:0; width:34px; height:34px; border-radius:50%;
  background:none; border:1px solid var(--line); color:var(--text-muted);
  font-size:20px; line-height:1; cursor:pointer;
  display:grid; place-items:center;
}
.tanzsuche__loeschen:hover{ background:var(--paper); color:var(--text); }

.tanzsuche__liste{
  position:absolute; top:calc(100% + 4px); left:0; right:0;
  z-index:60;
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--radius); box-shadow:0 6px 20px rgba(0,0,0,.14);
  list-style:none; margin:0; padding:4px 0;
  max-height:260px; overflow-y:auto;
}
.tanzsuche__liste li{
  padding:10px 14px; font-size:15px; cursor:pointer;
}
.tanzsuche__liste li:hover,
.tanzsuche__liste li.aktiv{
  background:var(--denim-soft); color:var(--denim);
}

/* ---------- Verwalten von Veranstaltungen ---------- */
.formular textarea{
  width:100%; min-height:110px; padding:12px 14px;
  font:inherit; font-size:16px; line-height:1.5;
  border:1px solid var(--line); border-radius:var(--radius);
  background:var(--surface); color:var(--text); resize:vertical;
}
.formular textarea:focus{ border-color:var(--denim); }
.formular input[type=date],
.formular input[type=time]{
  width:100%; min-height:48px; padding:0 12px;
  font:inherit; font-size:16px;
  border:1px solid var(--line); border-radius:var(--radius);
  background:var(--surface); color:var(--text);
}
.formular input[type=date]:focus,
.formular input[type=time]:focus{ border-color:var(--denim); }

.formular__knopfreihe{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.formular__knopfreihe .btn--breit{ flex:1; }

.dateiname{ font-size:14px; color:var(--text-muted); margin-left:8px; }
.loeschen-link{ color:var(--rot); }

.flyer-vorschau{
  display:flex; flex-direction:column; gap:10px; align-items:flex-start;
  margin-bottom:14px;
}
.flyer-vorschau img{
  max-width:220px; height:auto; border:1px solid var(--line); border-radius:var(--radius);
}

/* ---------- Koordinatenpflege ---------- */
.kartenflaeche--gross{ height:380px; }
.koord{ font-family:ui-monospace,Menlo,Consolas,monospace; font-size:13px; }
.marke--warnung{ background:var(--brass); color:#fff; }

.suchzeile{ display:flex; gap:8px; }
.suchzeile input{
  flex:1; min-height:44px; padding:0 12px; font:inherit; font-size:16px;
  border:1px solid var(--line); border-radius:var(--radius);
  background:var(--surface); color:var(--text);
}

.trefferliste{ list-style:none; margin:0 0 14px; padding:0; }
.trefferliste__zeile{
  padding:10px 12px; border:1px solid var(--line); border-radius:var(--radius);
  margin-bottom:6px; cursor:pointer; font-size:14px; line-height:1.4;
}
.trefferliste__zeile:hover{ border-color:var(--denim); background:var(--denim-soft); }
.trefferliste__leer{
  padding:10px 12px; color:var(--text-muted); font-size:14px;
}

/* ---------- Formatierter Text aus dem Editor ---------- */
.editorfeld{
  min-height:170px; background:var(--surface);
  border:1px solid var(--line); border-radius:var(--radius);
  padding:12px; font:inherit; font-size:16px;
}
.editorfeld:focus{ outline:none; border-color:var(--denim); }
.trix-content{ line-height:1.65; }
.trix-content h1{ font-family:var(--font-ui); font-size:21px; margin:14px 0 6px; }
.trix-content ul,
.trix-content ol{ padding-left:22px; margin:0 0 12px; }
.trix-content li{ margin-bottom:5px; }
.trix-content blockquote{
  margin:12px 0; padding-left:14px; border-left:3px solid var(--line);
  color:var(--text-muted);
}
.trix-content a{ color:var(--denim); }

/* Kontaktdaten als Bild im Impressum */
.kontaktbild{
  display:inline-block; vertical-align:middle;
  max-width:100%; height:auto;
}
.kontaktlink{ margin-left:12px; font-size:14px; }

/* ---------- Bilder im Formular ---------- */
.bilderfeld{ display:flex; flex-direction:column; gap:12px; }

.bilderliste{
  list-style:none; margin:0; padding:0;
  display:flex; flex-wrap:wrap; gap:10px;
}
.bildkachel{
  position:relative; width:110px; height:110px; flex-shrink:0;
  border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; background:var(--paper);
}
.bildkachel__zeigen{
  display:block; width:100%; height:100%;
  padding:0; border:0; background:none; cursor:zoom-in; line-height:0;
}
.bildkachel__zeigen:focus-visible{ outline:2px solid var(--denim); outline-offset:-2px; }
.bildkachel img{ width:100%; height:100%; object-fit:cover; display:block; }

/* Die beiden Knöpfe liegen über dem Bild und dürfen nicht
   versehentlich die Vorschau öffnen */
.bildkachel__knoepfe{ z-index:2; }

.bildkachel__marke{
  position:absolute; left:0; bottom:0; right:0;
  padding:3px 6px; background:rgba(42,76,125,.92); color:#fff;
  font-family:var(--font-ui); font-weight:600; font-size:11.5px;
  text-align:center;
}
.bildkachel__knoepfe{
  position:absolute; top:4px; right:4px; display:flex; gap:4px;
}
.bildkachel__knopf{
  width:26px; height:26px; border-radius:50%;
  border:0; cursor:pointer; line-height:1; font-size:14px;
  background:rgba(255,255,255,.92); color:var(--text);
  display:grid; place-items:center;
}
.bildkachel__knopf:hover{ background:#fff; color:var(--denim); }
.bildkachel__knopf--weg:hover{ color:var(--rot); }

.bildkachel--laedt{
  display:grid; place-items:center; background:var(--paper);
}
.bildkachel__balken{
  width:60%; height:4px; border-radius:2px;
  background:linear-gradient(90deg, var(--line) 25%, var(--denim) 50%, var(--line) 75%);
  background-size:200% 100%;
  animation:laufen 1.1s linear infinite;
}
@keyframes laufen{ from{ background-position:200% 0; } to{ background-position:-200% 0; } }

.bildablage{
  display:flex; align-items:center; gap:14px;
  padding:16px; cursor:pointer;
  border:2px dashed var(--line); border-radius:var(--radius);
  background:var(--surface);
}
.bildablage:hover,
.bildablage--bereit{ border-color:var(--denim); background:var(--denim-soft); }
.bildablage__symbol{
  width:46px; height:46px; flex-shrink:0; border-radius:50%;
  display:grid; place-items:center;
  background:var(--paper); color:var(--denim);
}
.bildablage__text{ display:flex; flex-direction:column; gap:2px; }
.bildablage__text strong{ font-family:var(--font-ui); font-weight:600; font-size:16px; }
.bildablage__text small{ font-size:13px; color:var(--text-muted); }

.bildmeldung{ margin:0; font-size:14px; color:var(--text-muted); }
.bildmeldung--fehler{ color:var(--rot); font-weight:600; }

/* ---------- Galerie auf der Terminseite ---------- */
.flyergalerie{ display:flex; flex-wrap:wrap; gap:10px; }

/* Steht Text darüber, braucht die Galerie Luft nach oben */
.flyergalerie--unter{ margin-top:14px; }
.flyergalerie__knopf{
  padding:0; border:1px solid var(--line); border-radius:var(--radius);
  background:var(--paper); cursor:zoom-in; overflow:hidden; line-height:0;
  width:104px; height:104px; flex-shrink:0;
}
.flyergalerie__knopf img{ width:100%; height:100%; object-fit:cover; display:block; }
.flyergalerie__knopf:hover{ border-color:var(--denim); }

/* Das erste Bild gross - meist der Flyer, den man lesen will */
.flyergalerie__knopf--erst{
  width:100%; height:auto; max-height:520px; cursor:zoom-in;
}
.flyergalerie__knopf--erst img{
  width:100%; height:auto; max-height:520px; object-fit:contain;
  background:var(--paper);
}

@media (max-width:520px){
  .bildkachel{ width:94px; height:94px; }
  .flyergalerie__knopf{ width:88px; height:88px; }
}

.row--mitabmelden{ position:relative; }
.row--mitabmelden .row__link{ padding-right:56px; }
.row--mitabmelden .chevron{ display:none; }

.teachdatum small{
  display:block; font-size:12px; opacity:.75;
}
.teachdatum{
  font-size:13px; color:var(--text-muted);
  font-variant-numeric:tabular-nums; white-space:nowrap;
}

.row__abmelden{
  position:absolute; top:0; right:0; bottom:0;
  display:flex; align-items:center; margin:0;
}
.row__abmelden-knopf{
  width:44px; height:44px; margin-right:6px;
  display:grid; place-items:center;
  border:0; border-radius:50%; cursor:pointer;
  background:none; color:var(--text-muted);
}
.row__abmelden-knopf:hover{ background:var(--paper); color:var(--rot); }

.fact__verein{
  color:var(--denim); text-decoration:none;
  border-bottom:1px solid transparent;
}
.fact__verein:hover{ border-bottom-color:var(--denim); }
.fact__datum{ color:var(--text-muted); }

.benutzerfilter{
  display:flex; flex-direction:column; gap:8px;
  padding:12px 14px; background:var(--paper);
  border-bottom:1px solid var(--line);
}
.benutzerfilter__zeile{ display:flex; gap:8px; flex-wrap:wrap; }
.benutzerfilter__zeile input[type=search]{
  flex:1; min-width:180px; min-height:42px; padding:0 12px;
  font:inherit; font-size:16px;
  border:1px solid var(--line); border-radius:var(--radius);
  background:var(--surface); color:var(--text);
}
.benutzerfilter__zeile select{
  min-height:42px; padding:0 10px; font:inherit; font-size:15px;
  border:1px solid var(--line); border-radius:var(--radius);
  background:var(--surface); color:var(--text); max-width:100%;
}

/* ---------- Vorstände ---------- */
.vorstandsliste{ list-style:none; margin:0; padding:0; }
.vorstandskarte{
  padding:14px 16px; border-bottom:1px solid var(--line);
}
.vorstandskarte--offen{ background:var(--denim-soft); }

.vorstandskarte__kopf{ display:flex; gap:12px; align-items:center; margin-bottom:10px; }
.vorstandskarte__logo{
  width:38px; height:38px; flex-shrink:0; border-radius:8px;
  overflow:hidden; background:var(--paper); border:1px solid var(--line);
  display:grid; place-items:center;
}
.vorstandskarte__logo img{ width:100%; height:100%; object-fit:contain; display:block; }
.vorstandskarte__text{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.vorstandskarte__name{
  font-family:var(--font-ui); font-weight:600; font-size:16px;
  color:var(--text); text-decoration:none;
}
.vorstandskarte__name:hover{ color:var(--denim); }
.vorstandskarte__text small{ font-size:13px; color:var(--text-muted); }

.vorstandsform__felder{
  display:flex; gap:12px; flex-wrap:wrap; align-items:flex-end;
}
.vorstandsform__felder .feld{ flex:1; min-width:200px; margin:0; }
.vorstandsform__felder select{
  width:100%; min-height:42px; padding:0 10px; font:inherit; font-size:15px;
  border:1px solid var(--line); border-radius:var(--radius);
  background:var(--surface); color:var(--text);
}

.feld__hilfe--block{ padding:12px 16px; margin:0; }

/* Adresse als eigener Knopf - als beiläufiger Link mit kleinem
   Symbol wurde er übersehen. */
.btn--karte{
  display:inline-flex; align-items:center; gap:8px;
  margin-top:10px;
}

.dateihinweis{
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  margin:0 0 10px; padding:10px 12px;
  background:var(--paper); border:1px solid var(--line);
  border-radius:var(--radius);
}
.dateihinweis__name{
  font-family:ui-monospace,Menlo,Consolas,monospace; font-size:13.5px;
  word-break:break-all;
}

.pruefliste{ list-style:none; margin:0 0 20px; padding:0; }
.pruefzeile{
  display:flex; gap:12px; align-items:flex-start;
  padding:12px 14px; margin-bottom:8px;
  border:1px solid var(--line); border-radius:var(--radius);
  background:var(--surface);
}
.pruefzeile__marke{
  width:26px; height:26px; flex-shrink:0; border-radius:50%;
  display:grid; place-items:center;
  font-weight:700; font-size:15px; color:#fff;
}
.pruefzeile--gut     .pruefzeile__marke{ background:#2e7d4f; }
.pruefzeile--schlecht .pruefzeile__marke{ background:var(--rot); }
.pruefzeile--neutral .pruefzeile__marke{ background:var(--text-muted); }
.pruefzeile--gut{ border-color:#2e7d4f; }
.pruefzeile--schlecht{ border-color:var(--rot); }

.pruefzeile__text{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.pruefzeile__text strong{ font-family:var(--font-ui); font-weight:600; font-size:15.5px; }
.pruefzeile__text small{ font-size:13.5px; line-height:1.5; color:var(--text-muted); }

/* ---------- Statistik ---------- */
.kennzahlen{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(140px, 1fr));
  gap:10px; padding:16px;
}
.kennzahl{
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--radius); padding:14px;
  display:flex; flex-direction:column; gap:2px;
}
.kennzahl__wert{
  font-family:var(--font-ui); font-weight:700; font-size:28px; line-height:1.1;
  color:var(--denim); font-variant-numeric:tabular-nums;
}
.kennzahl__text{ font-size:14px; color:var(--text-muted); }
.kennzahl__zusatz{ font-size:12.5px; color:var(--brass); font-weight:600; }

.verlauf{
  display:flex; align-items:flex-end; gap:5px;
  height:150px; padding-top:8px;
}
.verlauf__tag{
  flex:1; min-width:0; height:100%;
  display:flex; flex-direction:column; justify-content:flex-end; align-items:center; gap:3px;
}
.verlauf__balken{
  width:100%; background:var(--balken); border-radius:4px 4px 0 0;
  min-height:3px;
}
.verlauf__tag:hover .verlauf__balken{ background:var(--brass); }
.verlauf__zahl{
  font-size:11px; color:var(--text-muted); font-variant-numeric:tabular-nums;
  order:-1;
}
.verlauf__datum{ font-size:10.5px; color:var(--text-muted); white-space:nowrap; }
.verlauf--monate{ height:130px; }

.anteile{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px; }
.anteil{ display:flex; align-items:center; gap:10px; font-size:14px; }
.anteil__name{ min-width:110px; flex-shrink:0; }
.anteil__bahn{
  flex:1; height:10px; background:var(--paper);
  border-radius:999px; overflow:hidden;
}
.anteil__fuell{ display:block; height:100%; background:var(--denim); border-radius:999px; }
.anteil__wert{
  min-width:56px; text-align:right; font-variant-numeric:tabular-nums;
  color:var(--text-muted); flex-shrink:0;
}

.rangliste{ list-style:none; margin:0; padding:0; counter-reset:rang; }
.rangliste__zeile{
  display:flex; align-items:center; gap:12px;
  padding:11px 16px; border-bottom:1px solid var(--line);
}
.rangliste__zeile:last-child{ border-bottom:0; }
.rangliste__platz{
  width:26px; flex-shrink:0; text-align:right;
  font-family:var(--font-ui); font-weight:700; font-size:15px;
  color:var(--text-muted); font-variant-numeric:tabular-nums;
}
.rangliste__name{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rangliste__wert{
  flex-shrink:0; font-variant-numeric:tabular-nums;
  font-family:var(--font-ui); font-weight:600; color:var(--denim);
}
.rangliste__wert small{ font-weight:400; color:var(--text-muted); }

@media (max-width:560px){
  .anteil__name{ min-width:84px; font-size:13px; }
  .verlauf__zahl{ display:none; }
}

/* ---------- Verwaltung ---------- */
.row--verwaltung{
  display:flex; align-items:center; gap:12px; padding:12px 16px;
  border-bottom:1px solid var(--line);
}
.row--verwaltung .row__main{ flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.row__werkzeug{ display:flex; gap:8px; align-items:center; flex-shrink:0; flex-wrap:wrap; }
.row__form{ margin:0; }

.chip--admin{ background:var(--balken); color:var(--balken-text); border-color:var(--balken); }
.tab__zahl--offen{ background:var(--brass); border-color:var(--brass); color:#fff; }

/* ---------- Dialog ---------- */
.dialog{ position:fixed; inset:0; z-index:200; display:grid; place-items:center; padding:16px; }
.dialog[hidden]{ display:none; }
.dialog__hintergrund{ position:absolute; inset:0; background:rgba(0,0,0,.45); }
.dialog__kasten{
  position:relative; width:100%; max-width:520px; max-height:90vh; overflow-y:auto;
  background:var(--surface); border-radius:var(--radius);
  box-shadow:0 12px 40px rgba(0,0,0,.3);
}
.dialog__kopf{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:14px 16px; background:var(--balken); color:var(--balken-text);
  border-radius:var(--radius) var(--radius) 0 0;
  position:sticky; top:0; z-index:1;
}
.dialog__titel{
  margin:0; font-family:var(--font-ui); font-weight:600; font-size:18px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.dialog__schliessen{
  background:none; border:0; color:var(--balken-text);
  font-size:26px; line-height:1; cursor:pointer;
  width:34px; height:34px; border-radius:50%; flex-shrink:0;
}
.dialog__schliessen:hover{ background:rgba(255,255,255,.15); }
.dialog__form{ padding:16px; display:flex; flex-direction:column; gap:14px; }
.dialog__fuss{
  display:flex; gap:10px; align-items:center; flex-wrap:wrap;
  border-top:1px solid var(--line); margin-top:4px; padding-top:14px;
}
/* Löschen sitzt rechts abgesetzt, damit es nicht versehentlich
   neben Speichern getroffen wird. */
.dialog__fuss [data-loeschen]{ margin-left:auto; }

@media (max-width:560px){
  .row--verwaltung{ flex-wrap:wrap; }
  .row__werkzeug{ width:100%; justify-content:flex-end; }
}

.rollenmarke{
  display:inline-block; margin-left:7px; padding:1px 8px;
  border-radius:5px; background:var(--balken); color:var(--balken-text);
  font-family:var(--font-body); font-weight:400; font-size:11.5px;
  vertical-align:middle; white-space:nowrap;
}
.rollenmarke--leise{
  background:var(--paper); color:var(--text-muted);
  border:1px solid var(--line);
}

.person--klickbar{ cursor:pointer; }
.person--klickbar:hover{ background:var(--denim-soft); }
.person--klickbar:focus-visible{ outline:2px solid var(--denim); outline-offset:-2px; }
.person--klickbar .chevron{ margin-left:auto; flex-shrink:0; color:var(--text-muted); }

.werkzeugleiste--unten{
  border-top:1px solid var(--line); border-bottom:0;
  justify-content:flex-start;
}

.dialog__kasten--schmal{ max-width:420px; }
.dialog__posten{
  margin:0; font-size:14px; color:var(--denim); font-weight:600;
  font-family:var(--font-ui);
}

.rollenwahl{ margin:0 0 0 auto; flex-shrink:0; }
.rollenwahl select{
  min-height:38px; padding:0 8px; font:inherit; font-size:14px;
  border:1px solid var(--line); border-radius:var(--radius);
  background:var(--surface); color:var(--text); cursor:pointer;
}
.rollenwahl select:focus{ border-color:var(--denim); }

@media (max-width:560px){
  .personen li.person{ flex-wrap:wrap; }
  .rollenwahl{ width:100%; margin:6px 0 0; }
  .rollenwahl select{ width:100%; }
}

/* ---------- Pinnwand ---------- */
.pw-form{ display:flex; flex-direction:column; gap:10px; margin:0; }
.pw-form textarea{
  width:100%; min-height:80px; padding:12px 14px;
  font:inherit; font-size:16px; line-height:1.5;
  border:1px solid var(--line); border-radius:var(--radius);
  background:var(--surface); color:var(--text); resize:vertical;
}
.pw-form textarea:focus{ border-color:var(--denim); }
.pw-form__leiste{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.pw-form__leiste .btn[type=submit]{ margin-left:auto; }

.pw-beitrag{
  background:var(--surface); border-bottom:1px solid var(--line);
  padding:14px 16px;
}
.pw-kopf{ display:flex; align-items:center; gap:11px; margin-bottom:10px; }
.pw-kopf__text{ flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
.pw-kopf__name{ font-family:var(--font-ui); font-weight:600; font-size:16px; }
.pw-kopf__zeit{ font-size:12.5px; color:var(--text-muted); }
.pw-kopf__aktion{ margin:0; flex-shrink:0; }

.pw-text{ margin:0 0 10px; font-size:16px; line-height:1.55; white-space:pre-wrap; }
.pw-text--klein{ font-size:15px; margin-bottom:6px; }

/* Miniaturen nebeneinander, unabhaengig von der Anzahl.
   Grosse Ansicht kommt erst beim Antippen. */
.pw-bilder{
  display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px;
}
.pw-bild{
  width:96px; height:96px; flex-shrink:0;
  padding:0; border:1px solid var(--line); background:var(--paper);
  border-radius:8px; overflow:hidden; cursor:zoom-in; line-height:0;
}
.pw-bild:hover{ border-color:var(--denim); }
.pw-bild:focus-visible{ outline:2px solid var(--denim); outline-offset:2px; }
.pw-bild img{ width:100%; height:100%; object-fit:cover; display:block; }

/* In Kommentaren etwas kleiner */
.pw-bilder--klein .pw-bild{ width:72px; height:72px; }

@media (max-width:520px){
  .pw-bild{ width:84px; height:84px; }
  .pw-bilder--klein .pw-bild{ width:64px; height:64px; }
}

/* Blaettern im Betrachter */
.lupe__zaehler{
  margin-right:auto; padding-left:6px;
  color:rgba(255,255,255,.85); font-size:15px;
  font-family:var(--font-ui); font-variant-numeric:tabular-nums;
}
.lupe__pfeil{
  position:absolute; top:50%; transform:translateY(-50%); z-index:2;
  width:52px; height:52px; border-radius:50%;
  display:grid; place-items:center;
  background:rgba(255,255,255,.14); border:0; color:#fff; cursor:pointer;
}
.lupe__pfeil:hover{ background:rgba(255,255,255,.28); }
.lupe__pfeil--links { left:max(10px, env(safe-area-inset-left)); }
.lupe__pfeil--rechts{ right:max(10px, env(safe-area-inset-right)); }
.lupe__pfeil[hidden]{ display:none; }

.pw-kommentare{
  display:flex; flex-direction:column; gap:12px;
  margin:12px 0; padding-left:14px; border-left:2px solid var(--line);
}
.pw-kommentar{ display:flex; gap:9px; align-items:flex-start; }
.pw-kommentar__inhalt{ flex:1; min-width:0; }
.pw-kommentar__kopf{ display:flex; gap:8px; align-items:baseline; flex-wrap:wrap; }
.pw-kommentar__kopf b{ font-family:var(--font-ui); font-weight:600; font-size:14.5px; }
.pw-kommentar__kopf small{ font-size:12px; color:var(--text-muted); }
.person__bild--klein{ width:32px; height:32px; }
.person__bild--klein .person__initialen{ font-size:12px; }
.entfernen--klein{ width:30px; height:30px; font-size:18px; }

.pw-antwort{ display:flex; gap:8px; align-items:center; margin:0; }
.pw-antwort input[type=text]{
  flex:1; min-width:0; min-height:42px; padding:0 12px;
  font:inherit; font-size:16px;
  border:1px solid var(--line); border-radius:999px;
  background:var(--paper); color:var(--text);
}
.pw-antwort input[type=text]:focus{ border-color:var(--denim); background:var(--surface); }
.pw-antwort__foto{
  width:40px; height:40px; flex-shrink:0; border-radius:50%;
  display:grid; place-items:center; cursor:pointer;
  color:var(--text-muted); border:1px solid var(--line);
}
.pw-antwort__foto:hover{ color:var(--denim); border-color:var(--denim); }

/* ---------- Antrag am Ende der Vereinsliste ---------- */
.vereinantrag{
  margin:20px 16px 32px; padding:20px 18px;
  background:var(--surface); border:1px dashed var(--line);
  border-radius:var(--radius);
  display:flex; flex-direction:column; align-items:flex-start; gap:12px;
}
.vereinantrag__text{
  margin:0; font-size:15px; line-height:1.5; color:var(--text-muted); max-width:52ch;
}

.hinweisleiste{
  margin:0; padding:12px 16px;
  background:var(--brass-soft); border-bottom:1px solid var(--line);
  font-size:15px; line-height:1.45;
}

/* ---------- Vereinskopf auf der Detailseite ---------- */
.vereinskopf{
  display:flex; align-items:center; gap:14px;
  padding:16px; background:var(--surface); border-bottom:1px solid var(--line);
}
.vereinskopf__logo{
  width:72px; height:72px; object-fit:contain;
  background:var(--paper); border:1px solid var(--line);
  border-radius:8px; padding:4px; flex-shrink:0;
}
.vereinskopf__text{ flex:1; min-width:0; }
.vereinskopf__name{ margin:0; font-size:22px; font-family:var(--font-ui); font-weight:700; }
.vereinskopf__ort{ margin:3px 0 0; font-size:15px; color:var(--text-muted); }
.vereinskopf__bearbeiten{ flex-shrink:0; }

.banner{ padding:12px 16px; font-size:15px; display:flex; align-items:center; gap:12px; }
.banner--warnung{ background:var(--brass-soft); color:var(--text); border-bottom:1px solid var(--line); }
.banner__form{ margin:0; }

/* ---------- Freischaltung ---------- */
.wartend__knoepfe{ display:flex; gap:8px; align-items:center; }
.wartend__knoepfe form{ margin:0; }

.feld select{
  width:100%; min-height:48px; padding:0 12px;
  font:inherit; font-size:16px;
  border:1px solid var(--line); border-radius:var(--radius);
  background:var(--surface); color:var(--text); cursor:pointer;
}
.feld select:focus{ border-color:var(--denim); }
.kontrollkaestchen span{ line-height:1.4; }
.kontrollkaestchen small{ color:var(--text-muted); font-size:13px; }

/* ---------- Terminspalte: Datum mit Vereinslogo ---------- */
.terminspalte{
  display:flex; flex-direction:column; align-items:center; gap:8px;
  min-width:96px;
}
/* Flyer wenn vorhanden, sonst das Vereinslogo. Der Flyer fuellt
   den Rahmen aus, das Logo behaelt seinen Rand - sonst wuerden
   Schriftzuege abgeschnitten. */
.terminspalte__bild{
  width:62px; height:62px;
  background:var(--paper); border:1px solid var(--line);
  border-radius:8px;
  object-fit:contain; padding:4px;
}
.terminspalte__bild--flyer{
  object-fit:cover; padding:0;
}

.herkunft{
  margin:0; padding:12px 16px;
  font-size:13.5px; color:var(--text-muted);
  border-top:1px solid var(--line); background:var(--paper);
}
.herkunft strong{ font-weight:600; color:var(--text); }

/* ---------- Flyer mit Lupe ---------- */
.flyer__knopf{
  display:block; width:100%; padding:0; border:0; background:none;
  cursor:zoom-in; position:relative; line-height:0;
}
.flyer__lupe{
  position:absolute; right:10px; bottom:10px;
  width:38px; height:38px; border-radius:50%;
  display:grid; place-items:center;
  background:rgba(0,0,0,.55); color:#fff;
  opacity:0; transition:opacity .15s;
}
.flyer__knopf:hover .flyer__lupe,
.flyer__knopf:focus-visible .flyer__lupe{ opacity:1; }

.lupe{ position:fixed; inset:0; z-index:300; }
.lupe[hidden]{ display:none; }
.lupe__hintergrund{ position:absolute; inset:0; background:rgba(0,0,0,.88); }

.lupe__leiste{
  position:absolute; top:0; left:0; right:0; z-index:4;
  display:flex; gap:8px; justify-content:center; align-items:center;

  /* Oben muss der sichere Bereich mit hinein, sonst liegt der
     Schliessen-Knopf beim iPhone hinter der Kamera und ist nicht
     antippbar. Links und rechts galt das schon. */
  padding:
    calc(10px + env(safe-area-inset-top))
    calc(12px + env(safe-area-inset-right))
    10px
    calc(12px + env(safe-area-inset-left));

  /* Damit die Knöpfe auch über einem hellen Bild zu sehen sind */
  background:linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,0));
}
.lupe__knopf{
  min-width:46px; height:46px; padding:0 12px;
  display:grid; place-items:center;
  background:rgba(255,255,255,.14); border:0; border-radius:8px;
  color:#fff; font-family:var(--font-ui); font-weight:600; font-size:17px;
  cursor:pointer; text-decoration:none;
}
.lupe__knopf:hover{ background:rgba(255,255,255,.26); text-decoration:none; color:#fff; }
.lupe__knopf--zu{
  background:rgba(255,255,255,.26);
  font-size:26px; font-weight:400;
}

.lupe__buehne{
  padding-top:calc(56px + env(safe-area-inset-top));
  padding-bottom:calc(16px + env(safe-area-inset-bottom));
  position:absolute; inset:0;
  display:grid; place-items:center;
  overflow:hidden; touch-action:none;
}
.lupe__bild{
  max-width:94vw; max-height:82vh;
  transform-origin:center center;
  will-change:transform;
  user-select:none; -webkit-user-drag:none;
}

@media (max-width:520px){
  .lupe__bild{ max-width:98vw; max-height:76vh; }
}

.plaetze{
  display:inline-block; margin-left:8px; padding-left:10px;
  border-left:1px solid var(--line); color:var(--text-muted);
}
.plaetze__voll{
  display:inline-block; padding:2px 10px; border-radius:5px;
  background:var(--rot); color:#fff;
  font-family:var(--font-ui); font-weight:600; font-size:13.5px;
}

.teilnehmer__aktion{ margin:0 0 12px; }

.pushschalter{
  display:flex; gap:10px; flex-wrap:wrap; margin:0 0 14px;
}
.meldungsform{
  display:flex; flex-direction:column; gap:10px;
  padding-top:6px; border-top:1px solid var(--line);
}
.meldungsform__titel{
  margin:8px 0 2px; font-family:var(--font-ui); font-weight:600; font-size:15px;
}

/* ---------- Schaltzeile im Formular ---------- */
.schaltzeile{
  display:flex; align-items:flex-start; gap:12px;
  padding:12px 14px; border:1px solid var(--line); border-radius:var(--radius);
  background:var(--surface); cursor:pointer;
}
.schaltzeile:hover{ border-color:var(--denim); }
.schaltzeile:has(input:checked){ border-color:var(--denim); background:var(--denim-soft); }
.schaltzeile input{ width:22px; height:22px; margin-top:2px; accent-color:var(--denim); flex-shrink:0; }
.schaltzeile__text{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.schaltzeile__text strong{ font-family:var(--font-ui); font-weight:600; font-size:16px; }
.schaltzeile__text small{ font-size:13px; line-height:1.45; color:var(--text-muted); }

.untereinstellung{
  margin:-4px 0 0 34px; padding:12px 14px;
  border-left:2px solid var(--denim); background:var(--paper);
  border-radius:0 var(--radius) var(--radius) 0;
}
.untereinstellung[hidden]{ display:none; }
.untereinstellung__felder{ display:flex; gap:18px; flex-wrap:wrap; }
.untereinstellung__feld{ display:flex; flex-direction:column; gap:5px; }
.untereinstellung__feld label{
  font-family:var(--font-ui); font-weight:600; font-size:14px;
}
.untereinstellung__feld input[type=date]{
  min-height:44px; padding:0 10px; font:inherit; font-size:16px;
  border:1px solid var(--line); border-radius:var(--radius);
  background:var(--surface); color:var(--text);
}
.untereinstellung__hinweis{ font-size:12.5px; color:var(--text-muted); }

@media (max-width:520px){
  .untereinstellung{ margin-left:0; }
  .untereinstellung__felder{ gap:12px; }
}

/* ---------- Tanzwünsche ---------- */
.wunsch{
  display:flex; align-items:center; gap:12px;
  padding:12px 16px; border-bottom:1px solid var(--line);
}
.wunsch__stimmen{
  flex-shrink:0; min-width:58px;
  display:flex; flex-direction:column; align-items:center; gap:2px;
}
.wunsch__knopf{
  width:44px; height:44px; border-radius:50%;
  display:grid; place-items:center; cursor:pointer;
  background:var(--surface); border:1px solid var(--line); color:var(--text-muted);
}
.wunsch__knopf:hover{ border-color:var(--denim); color:var(--denim); }
.wunsch__knopf--dafuer{
  background:var(--denim); border-color:var(--denim); color:#fff;
}
.wunsch__zahl{
  font-family:var(--font-ui); font-weight:700; font-size:15px;
  font-variant-numeric:tabular-nums; color:var(--text);
}
.wunsch__text{ flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.wunsch__name{ font-family:var(--font-ui); font-weight:600; font-size:16px; }
.wunsch__wer{ font-size:13px; color:var(--text-muted); line-height:1.4; }
.wunsch__aktion{ margin:0; flex-shrink:0; }

.wunschform{
  display:flex; gap:10px; align-items:flex-end; flex-wrap:wrap;
  padding:14px 16px; border-bottom:1px solid var(--line);
}
.wunschform .tanzsuche{ flex:1; min-width:200px; }

/* ---------- Schalter im Abschnittskopf ---------- */
.schalter{
  display:inline-flex; align-items:center; gap:8px;
  background:none; border:0; padding:0; cursor:pointer;
  color:rgba(255,255,255,.8);
  font-family:var(--font-body); font-size:14px;
}
.schalter__bahn{
  width:42px; height:24px; border-radius:999px; flex-shrink:0;
  background:rgba(255,255,255,.25);
  display:block; position:relative;
  transition:background .15s;
}
.schalter__knopf{
  position:absolute; top:3px; left:3px;
  width:18px; height:18px; border-radius:50%;
  background:#fff; display:block;
  transition:transform .15s;
}
.schalter--an .schalter__bahn{ background:var(--brass); }
.schalter--an .schalter__knopf{ transform:translateX(18px); }
.schalter--an{ color:#fff; }
.schalter:hover .schalter__bahn{ background:rgba(255,255,255,.4); }
.schalter--an:hover .schalter__bahn{ filter:brightness(1.1); }

/* ---------- Zahlenfeld mit Plus und Minus ---------- */
.zahlfeld{
  display:inline-flex; align-items:stretch;
  border:1px solid var(--line); border-radius:var(--radius);
  background:var(--surface); overflow:hidden;
}
.zahlfeld input[type=number]{
  width:74px; min-height:44px; padding:0 6px;
  border:0; background:none; color:var(--text);
  font:inherit; font-size:16px; text-align:center;
  font-variant-numeric:tabular-nums;
  -moz-appearance:textfield;
}
.zahlfeld input[type=number]::-webkit-outer-spin-button,
.zahlfeld input[type=number]::-webkit-inner-spin-button{
  -webkit-appearance:none; margin:0;
}
.zahlfeld input:focus{ outline:none; }
.zahlfeld:focus-within{ border-color:var(--denim); }
.zahlfeld__knopf{
  width:42px; border:0; background:var(--paper); color:var(--text);
  font-size:20px; line-height:1; cursor:pointer;
}
.zahlfeld__knopf:hover{ background:var(--denim-soft); color:var(--denim); }

/* ---------- Einstellungen zur Anmeldung ---------- */
.anmeldeoptionen{
  display:flex; gap:16px; align-items:flex-end; flex-wrap:wrap;
  margin:0 0 16px; padding:14px;
  background:var(--paper); border:1px solid var(--line);
  border-radius:var(--radius);
}
.anmeldeoptionen__feld{ display:flex; flex-direction:column; gap:5px; }
.anmeldeoptionen__feld label{
  font-family:var(--font-ui); font-weight:600; font-size:14px;
}
.anmeldeoptionen__feld input[type=date]{
  min-height:44px; padding:0 10px; font:inherit; font-size:16px;
  border:1px solid var(--line); border-radius:var(--radius);
  background:var(--surface); color:var(--text);
}
.anmeldeoptionen__hinweis{ font-size:12.5px; color:var(--text-muted); }

.anmeldung__hinweis{ margin:0 0 12px; font-size:16px; }
.anmeldung__knoepfe{ display:flex; gap:10px; flex-wrap:wrap; margin:0 0 12px; }

/* Formular des Veranstalters fuer Personen ohne Konto */
.gastform{
  display:flex; gap:12px; align-items:flex-end; flex-wrap:wrap;
  margin:0 0 16px; padding:14px;
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius);
}
.gastform__feld{ display:flex; flex-direction:column; gap:5px; flex:1; min-width:170px; }
.gastform__feld label{ font-family:var(--font-ui); font-weight:600; font-size:14px; }
.gastform__feld input{
  min-height:44px; padding:0 12px; font:inherit; font-size:16px;
  border:1px solid var(--line); border-radius:var(--radius);
  background:var(--surface); color:var(--text);
}
.gastform__feld input:focus{ border-color:var(--denim); }

/* ---------- Anmeldung zur Veranstaltung ---------- */
.kopfform{ margin:0; display:flex; }
.kopfform button{ background:none; border:0; cursor:pointer; padding:0; }

.anmeldezahl{ margin:0 0 12px; font-size:16px; }

.anmeldung__form{
  display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin:0;
}
.anmeldung__form input[type=text]{
  flex:1; min-width:170px; min-height:46px; padding:0 14px;
  font:inherit; font-size:16px;
  border:1px solid var(--line); border-radius:var(--radius);
  background:var(--surface); color:var(--text);
}
.anmeldung__form input:focus{ border-color:var(--denim); }

/* Koederfeld gegen automatisierte Eintraege: fuer Menschen
   unsichtbar, aber nicht display:none - manche Skripte
   ueberspringen ausgeblendete Felder. */
.koeder{
  position:absolute !important; left:-9999px !important;
  width:1px !important; height:1px !important; opacity:0 !important;
}

.anmeldung__status{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  padding:12px 14px; border-radius:var(--radius);
  background:var(--denim-soft); border:1px solid var(--denim);
  font-size:16px;
}
.anmeldung__status form{ margin:0 0 0 auto; }
.anmeldung__haken{
  width:30px; height:30px; border-radius:50%; flex-shrink:0;
  display:grid; place-items:center;
  background:var(--denim); color:#fff;
}

.person__nummer{
  flex-shrink:0; width:26px; text-align:right;
  font-family:var(--font-ui); font-weight:600; font-size:14px;
  color:var(--text-muted); font-variant-numeric:tabular-nums;
}
.person__aktion{ margin:0 0 0 auto; }
.entfernen{
  width:38px; height:38px; border-radius:50%;
  background:none; border:1px solid var(--line);
  color:var(--text-muted); font-size:22px; line-height:1; cursor:pointer;
}
.entfernen:hover{ background:var(--rot-soft); border-color:var(--rot); color:var(--rot); }

.marke{
  display:inline-block; margin-left:6px; padding:1px 7px;
  border-radius:5px; background:var(--paper); border:1px solid var(--line);
  font-family:var(--font-body); font-weight:400; font-size:11.5px;
  color:var(--text-muted); vertical-align:middle;
}

/* ---------- Hinweis auf die neue Fassung ---------- */
.neuhinweis{
  display:flex; align-items:stretch; gap:0;
  background:var(--denim-soft); border-bottom:1px solid var(--denim);
}
.neuhinweis[hidden]{ display:none; }
.neuhinweis__text{
  flex:1; min-width:0;
  display:flex; align-items:flex-start; gap:10px;
  padding:12px 16px; color:var(--text); text-decoration:none;
  font-size:14.5px; line-height:1.45;
}
.neuhinweis__text:hover{ text-decoration:none; background:rgba(42,76,125,.08); }
.neuhinweis__text strong{ color:var(--denim); white-space:nowrap; }
.neuhinweis__marke{
  flex-shrink:0; padding:2px 9px; border-radius:5px;
  background:var(--balken); color:var(--balken-text);
  font-family:var(--font-ui); font-weight:700; font-size:12px;
  letter-spacing:.04em; text-transform:uppercase;
}
.neuhinweis__zu{
  flex-shrink:0; width:46px; border:0; background:none;
  color:var(--text-muted); font-size:24px; line-height:1; cursor:pointer;
}
.neuhinweis__zu:hover{ color:var(--text); background:rgba(0,0,0,.05); }

/* ---------- Beschreibungsliste der Neuerungen ---------- */
.neuliste{ margin:0 0 18px; }
.neuliste dt{
  font-family:var(--font-ui); font-weight:600; font-size:17px;
  color:var(--denim); margin-top:16px;
}
.neuliste dd{ margin:4px 0 0; line-height:1.6; }

/* ---------- Vereinsband auf der Startseite ---------- */
.karussell{
  overflow:hidden; padding:14px 0;
  background:var(--surface); border-bottom:1px solid var(--line);
}
.karussell__bahn{
  display:flex; width:max-content;
  animation:karussell-lauf 80s linear infinite;
}
.karussell:hover .karussell__bahn,
.karussell:focus-within .karussell__bahn{ animation-play-state:paused; }

@keyframes karussell-lauf{
  from{ transform:translateX(0); }
  to  { transform:translateX(-50%); }
}

.vkachel{
  flex-shrink:0; width:104px; margin-right:10px;
  display:flex; flex-direction:column; align-items:center; gap:7px;
  padding:8px 4px; border-radius:var(--radius);
  color:var(--text); text-decoration:none;
}
.vkachel:hover{ background:var(--denim-soft); text-decoration:none; }
.vkachel__logo{
  width:64px; height:64px; object-fit:contain;
  background:var(--paper); border:1px solid var(--line);
  border-radius:8px; padding:5px;
}
.vkachel__name{
  font-size:12px; line-height:1.25; text-align:center;
  color:var(--text-muted);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.vkachel:hover .vkachel__name{ color:var(--denim); }

/* Wer Bewegung reduziert haben will, bekommt ein Band zum Wischen */
@media (prefers-reduced-motion: reduce){
  .karussell{ overflow-x:auto; scroll-snap-type:x mandatory; }
  .karussell__bahn{ animation:none; }
  .vkachel{ scroll-snap-align:start; }
}

/* ---------- Abschnittskopf mit Verweis ---------- */
.section__mehr{
  font-family:var(--font-body); font-weight:400; font-size:14px;
  color:rgba(255,255,255,.78); text-decoration:none; white-space:nowrap;
}
.section__mehr:hover{ color:#fff; text-decoration:underline; }

.content{ min-height:100vh; }

.topbar{
  position:sticky; top:0; z-index:30;
  background:var(--ink); color:#fff; height:56px;
  display:flex; align-items:center; padding:0 8px;
}
.topbar__zurueck{
  width:44px; height:44px; flex-shrink:0; margin-left:auto;
  display:grid; place-items:center;
  background:none; border:0; color:inherit; cursor:pointer;
}
.topbar__zurueck:active{ opacity:.6; }

.topbar__burger{
  width:var(--tap); height:var(--tap); display:grid; place-items:center;
  background:none; border:0; color:#fff; cursor:pointer; border-radius:8px;
}
.topbar__burger:hover{ background:rgba(255,255,255,.1); }
.topbar__title{
  flex:1; min-width:0; text-align:center; margin:0;
  font-family:var(--font-ui); font-weight:600; font-size:21px;
  line-height:1.2;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

.scrim{ position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:35; border:0; padding:0; }
.scrim[hidden]{ display:none; }

/* ---------- Meldungen ---------- */
.meldung{
  margin:0; padding:12px 16px; font-size:15px;
  border-bottom:1px solid var(--line);
}
.meldung--erfolg{ background:var(--denim-soft); color:var(--text); }
.meldung--hinweis{ background:var(--brass-soft); color:var(--text); }
.meldung--fehler{ background:var(--rot-soft); color:var(--rot); }

.banner{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  flex-wrap:wrap; padding:12px 16px; border-bottom:1px solid var(--line);
}
.banner--warnung{ background:var(--brass-soft); }

/* ---------- Filterleiste ---------- */
.filterbar{
  position:sticky; top:56px; z-index:25;
  background:var(--surface); border-bottom:1px solid var(--line);
}
.tabs{ display:flex; }
.tab{
  flex:1; min-height:46px; display:flex; align-items:center; justify-content:center;
  border-bottom:3px solid transparent;
  font-family:var(--font-ui); font-weight:600; font-size:16px;
  color:var(--text-muted); text-decoration:none; text-align:center;
}
.tab:hover{ color:var(--text); text-decoration:none; }
.tab[aria-selected="true"]{ color:var(--denim); border-bottom-color:var(--denim); }

.searchwrap{ padding:10px 12px; display:flex; gap:8px; margin:0; }
.search{
  flex:1; display:flex; align-items:center; gap:9px;
  background:var(--paper); border:1px solid var(--line);
  border-radius:999px; padding:0 16px; min-height:44px;
}
.search input{ flex:1; border:0; background:none; outline:none; font:inherit; color:var(--text); min-width:0; }
.search svg{ flex-shrink:0; color:var(--text-muted); }

.trefferzeile{
  margin:0; padding:10px 16px; font-size:14px; color:var(--text-muted);
  background:var(--surface); border-bottom:1px solid var(--line);
}

/* ---------- Listen ---------- */
.list{ list-style:none; margin:0; padding:0; background:var(--surface); }

.row{ border-bottom:1px solid var(--line); }
.row:last-child{ border-bottom:0; }

.row__link{
  display:grid; grid-template-columns:76px 1fr auto auto; gap:14px;
  align-items:start; padding:14px 12px; color:inherit; text-decoration:none;
}
.row__link:hover{ background:var(--denim-soft); text-decoration:none; }

.thumb{
  width:76px; aspect-ratio:1; border-radius:8px;
  background:var(--paper); border:1px solid var(--line);
  display:grid; place-items:center; overflow:hidden;
}
.thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.thumb__initialen{
  font-family:var(--font-ui); font-weight:700; font-size:19px;
  color:var(--text-muted); letter-spacing:.03em; text-transform:uppercase;
}

.row__main{ min-width:0; display:block; }
.row__title{
  display:block; font-family:var(--font-ui); font-weight:600;
  font-size:20px; line-height:1.2; color:var(--text); margin-bottom:4px;
}
.row__link:hover .row__title{ color:var(--denim); }
.row__desc{
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  overflow:hidden; font-size:14.5px; color:var(--text-muted);
}
.row__place{ display:flex; align-items:center; gap:5px; margin-top:5px; font-size:13.5px; color:var(--text-muted); }
.row__aside{ display:flex; flex-direction:column; align-items:flex-end; gap:8px; text-align:right; }

.chevron{ color:var(--line); flex-shrink:0; align-self:center; }
.row__link:hover .chevron{ color:var(--denim); }

/* ---------- Chips, Level, Wertung ---------- */
.spec{ display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.chip{
  display:inline-flex; align-items:center; gap:5px;
  padding:3px 9px; border-radius:6px;
  background:var(--paper); border:1px solid var(--line);
  font-size:13px; color:var(--text-muted); white-space:nowrap;
}
.chip b{
  font-family:var(--font-ui); font-weight:700; font-size:15px;
  color:var(--text); font-variant-numeric:tabular-nums;
}
.chip--warnung{ background:var(--brass-soft); border-color:var(--brass); color:var(--brass); }

.level{ display:inline-flex; align-items:center; gap:6px; }
.level__dots{ display:inline-flex; gap:3px; }
.level__dots i{ width:7px; height:7px; border-radius:50%; background:var(--line); display:block; }
.level__dots i[data-on="1"]{ background:var(--denim); }

.rating{
  display:inline-flex; align-items:center; gap:5px;
  font-family:var(--font-ui); font-weight:700; font-size:17px;
  color:var(--brass); font-variant-numeric:tabular-nums;
}
.rating small{ font-weight:500; font-size:12px; color:var(--text-muted); }
.rating--leer{ font-size:12px; font-weight:500; color:var(--text-muted); line-height:1.25; }

/* ---------- Detailansicht ---------- */
.detail{ background:var(--surface); }

.detail__head{
  display:grid; gap:22px;
  grid-template-columns:1fr;
  padding:18px 16px; border-bottom:1px solid var(--line);
}
.detail__facts{ display:flex; flex-direction:column; gap:12px; }
.fact{ display:flex; align-items:baseline; gap:10px; }
.fact__label{
  font-family:var(--font-ui); font-weight:600; font-size:13px;
  letter-spacing:.10em; text-transform:uppercase; color:var(--text-muted);
  min-width:120px;
}
.fact__value{ font-family:var(--font-ui); font-weight:600; font-size:20px; font-variant-numeric:tabular-nums; }
.fact__value--klein{ font-size:16px; font-weight:500; }


/* Laeuft das Video, stoert der Hinweistext darunter nur */
.videoframe--laeuft .videoframe__hinweis,
.videoframe--laeuft .videoframe__play{ display:none; }

.learnbar{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  flex-wrap:wrap; padding:12px 16px;
  background:var(--brass-soft); border-bottom:1px solid var(--line);
}
.learnbar__text{ font-size:14.5px; }
.learnbar form{ margin:0; }

/* ---------- Abschnitte ---------- */
.section{ border-bottom:1px solid var(--line); }
.section__head{
  width:100%; min-height:52px;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:0 16px; background:var(--balken); color:var(--balken-text);
  border:0; cursor:pointer;
  font-family:var(--font-ui); font-weight:600; font-size:17px;
  letter-spacing:.03em; text-align:left;
}
.section__head:hover{ background:var(--balken-hover); }
.section__head--statisch{ cursor:default; }
.section__head--statisch:hover{ background:var(--balken); }

/* Abschnittskopf bleibt beim Scrollen unter der Titelleiste stehen.
   Nur dort gesetzt, wo es gewollt ist - auf Seiten mit Reitern sässe
   der Kopf sonst hinter der Filterleiste.

   Wichtig: der Abschnitt selbst darf kein overflow setzen, sonst
   greift sticky im Inneren nicht. */
.section--klebend{ overflow:visible; }
.section--klebend > .section__head{
  position:sticky;
  top:56px;
  z-index:20;
}
.section__head svg{ transition:transform .2s ease; }
.section__head[aria-expanded="true"] svg{ transform:rotate(180deg); }
.section__body{ padding:14px 16px; }
.section__body[hidden]{ display:none; }

.steps{ margin:0; font-size:15px; line-height:1.65; }

.songlist{ list-style:none; margin:0; padding:0; }
.songlist li{
  min-height:48px; display:flex; align-items:center; gap:10px;
  border-bottom:1px solid var(--line); font-size:15px;
}
.songlist li:last-child{ border-bottom:0; }
.songlist svg{ color:var(--brass); flex-shrink:0; }

/* ---------- Video ---------- */
.videoframe{ position:relative; aspect-ratio:16/9; border-radius:var(--radius); overflow:hidden; background:var(--paper); }
.videoframe img{ width:100%; height:100%; object-fit:cover; display:block; }
.videoframe__play{
  position:absolute; inset:0; margin:auto; width:84px; height:84px;
  display:grid; place-items:center; border:0; border-radius:50%;
  background:rgba(0,0,0,.62); color:#fff; cursor:pointer;
}
.videoframe__play:hover{ background:rgba(0,0,0,.8); }
.videoframe__hinweis{
  position:absolute; left:0; right:0; bottom:0; margin:0; padding:7px 12px;
  background:rgba(0,0,0,.62); color:#fff; font-size:12px; text-align:center;
}
.section__body iframe{ width:100%; aspect-ratio:16/9; border:0; border-radius:var(--radius); }

/* ---------- Video am Kopf einer Tanzseite ----------

   Ein fester Kasten, mittig. Vorschaubild und laufendes Video
   sitzen im selben Kasten und sind damit exakt gleich gross -
   beim Antippen springt und verrutscht nichts mehr.

   Diese Regeln stehen bewusst HINTER .videoframe. Beide Klassen
   sitzen am selben Element und sind gleich stark; dann gewinnt
   die spaetere. Standen sie davor, wurden sie ueberschrieben.
*/
.videobuehne{
  display:flex; justify-content:center;
  padding:16px;
  background:var(--surface);
}

.videoframe--gross{
  width:100%;
  max-width:640px;            /* darueber wird es am Schreibtisch unruhig */
  aspect-ratio:16/9;
  margin:0;
  border-radius:var(--radius);
  overflow:hidden;
  background:#000;
  border:1px solid var(--line);
}

/* Beides fuellt denselben Kasten vollstaendig aus */
.videoframe--gross img,
.videoframe--gross iframe{
  width:100%; height:100%;
  display:block; border:0;
}
.videoframe--gross img{ object-fit:cover; }

@media (max-width:640px){
  /* Auf dem Handy ueber die ganze Breite, ohne Rand */
  .videobuehne{ padding:0 0 12px; }
  .videoframe--gross{
    border-radius:0; border-left:0; border-right:0;
  }
}

/* ---------- Choreographie ---------- */
.choreo{
  border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; background:#fff; margin-bottom:12px;
}
.choreo iframe{ width:100%; height:min(70vh,620px); border:0; display:block; }

.quelle{
  display:flex; align-items:center; gap:14px;
  padding:14px 16px; min-height:var(--tap);
  border:1px solid var(--line); border-radius:var(--radius);
  background:var(--paper); color:var(--text); text-decoration:none;
}
.quelle:hover{ background:var(--denim-soft); border-color:var(--denim); text-decoration:none; }
.quelle__icon{
  flex-shrink:0; width:42px; height:42px; border-radius:50%;
  display:grid; place-items:center;
  background:var(--surface); border:1px solid var(--line); color:var(--denim);
}
.quelle__text{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.quelle__text strong{ font-family:var(--font-ui); font-weight:600; font-size:18px; }
.quelle__text small{ font-size:13px; color:var(--text-muted); }
.quelle__hinweis{ margin:10px 0 0; font-size:13px; color:var(--text-muted); }

/* ---------- Sterne ---------- */
.sterne{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin:0; }
.sterne__feld{ border:0; margin:0; padding:0; display:flex; flex-direction:row-reverse; }
.sterne__feld input{ position:absolute; opacity:0; width:0; height:0; }
.sterne__feld label{
  font-size:34px; line-height:1; color:var(--line); cursor:pointer;
  padding:0 3px; min-width:40px; text-align:center;
}
.sterne__feld input:checked ~ label,
.sterne__feld label:hover,
.sterne__feld label:hover ~ label{ color:var(--brass); }
.sterne__feld input:focus-visible + label{ outline:3px solid var(--denim); outline-offset:2px; }

/* ---------- Werkzeugleiste ---------- */
.werkzeugleiste{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  padding:10px 14px; background:var(--surface);
  border-bottom:1px solid var(--line);
}
.werkzeugleiste--karte{ border-bottom:0; padding:8px 12px; }
.werkzeugleiste__zustand{
  display:inline-flex; align-items:center; gap:6px;
  font-size:14px; color:var(--denim); font-weight:600;
}
.bezirkswahl{ margin:0 0 0 auto; }
.bezirkswahl select{
  min-height:40px; padding:0 12px; border-radius:999px;
  border:1px solid var(--line); background:var(--paper);
  color:var(--text); font:inherit; font-size:14px; cursor:pointer;
}
.standort-fehler{
  margin:0; padding:12px 16px; background:var(--brass-soft);
  border-bottom:1px solid var(--line); font-size:14px;
}
.standort-fehler[hidden]{ display:none; }

.entfernung{
  display:inline-flex; align-items:baseline; gap:3px;
  font-family:var(--font-ui); color:var(--denim);
  font-variant-numeric:tabular-nums;
}
.entfernung b{ font-weight:700; font-size:19px; }
.entfernung small{ font-size:12px; color:var(--text-muted); }

/* ---------- Karte ---------- */
.kartenflaeche{
  height:min(70vh,640px); width:100%;
  border-bottom:1px solid var(--line); background:var(--paper); z-index:1;
}
.kartenflaeche--klein{ height:280px; border:1px solid var(--line); border-radius:var(--radius); }
.kartenfuss{ margin:0; padding:10px 16px; font-size:13px; color:var(--text-muted); }

.kartenplatzhalter{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:10px; height:200px; margin-top:12px;
  border:1px dashed var(--line); border-radius:var(--radius); background:var(--paper);
}
.kartenplatzhalter__hinweis{ margin:0; font-size:12.5px; color:var(--text-muted); text-align:center; padding:0 16px; }
.routenlink{ margin:12px 0 0; font-size:15px; }

.kartenpopup{ display:flex; flex-direction:column; gap:2px; }
.kartenpopup__titel{ font-family:var(--font-ui); font-weight:600; font-size:17px; }
.kartenpopup__ort, .kartenpopup__haus{ font-size:13px; color:#555; }

/* Leaflet-Bedienelemente unter unsere Kopfleisten legen */
.leaflet-top, .leaflet-bottom{ z-index:20; }

/* ---------- Verein ---------- */
.vereinskopf{
  display:flex; gap:18px; align-items:flex-start;
  padding:18px 16px; border-bottom:1px solid var(--line); background:var(--surface);
}
.vereinskopf__logo{
  width:96px; height:96px; object-fit:contain; flex-shrink:0;
  border:1px solid var(--line); border-radius:var(--radius);
  background:var(--paper); padding:6px;
}
.vereinskopf__text{ min-width:0; display:flex; flex-direction:column; gap:8px; }
.vereinskopf__ort{ margin:0; font-size:15px; color:var(--text-muted); }
.vereinskopf__link{ margin:0; font-size:15px; }

.fliesstext{ margin:0; font-size:15px; line-height:1.65; }
.adresse{ margin:0 0 4px; font-size:15px; line-height:1.5; }
.adresse--zusatz{ color:var(--text-muted); font-size:14px; }
.hinweiszeile{ margin:10px 0 0; font-size:13px; color:var(--text-muted); }

.personen{ list-style:none; margin:0; padding:0; }
.personen li{
  display:flex; flex-direction:column; gap:2px;
  padding:10px 0; border-bottom:1px solid var(--line);
}
.personen li:last-child{ border-bottom:0; }
.personen__name{ font-family:var(--font-ui); font-weight:600; font-size:17px; }
.personen__kontakt{ font-size:14px; }
.personen__zusatz{ font-size:13.5px; color:var(--text-muted); }
.personen--kompakt{ columns:2; column-gap:24px; }
.personen--kompakt li{ break-inside:avoid; }

.row__link--schmal{ grid-template-columns:auto 1fr auto; }

@media (max-width:560px){
  .personen--kompakt{ columns:1; }
  .vereinskopf__logo{ width:68px; height:68px; }
}

/* ---------- Werkzeug: Geocoding ---------- */
.werkzeug{ padding:16px; display:flex; flex-direction:column; gap:20px; }
.werkzeug__stand{ margin:0; font-size:15px; color:var(--text-muted); }
.werkzeug__block{
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--radius); padding:16px;
}
.werkzeug__titel{
  margin:0 0 12px; font-family:var(--font-ui); font-weight:600; font-size:21px;
}
.werkzeug__quelldaten{
  margin:0 0 14px; display:grid; grid-template-columns:auto 1fr;
  gap:4px 14px; font-size:14.5px;
}
.werkzeug__quelldaten dt{ color:var(--text-muted); }
.werkzeug__quelldaten dd{ margin:0; }
.werkzeug__suchform{ display:flex; flex-direction:column; gap:8px; align-items:flex-start; margin-bottom:16px; }
.werkzeug__label{ font-size:13px; color:var(--text-muted); }
.werkzeug__suchform textarea{
  width:100%; padding:10px 12px; font:inherit; font-size:15px;
  border:1px solid var(--line); border-radius:var(--radius);
  background:var(--paper); color:var(--text); resize:vertical;
}
.werkzeug__leer{ margin:0; padding:14px 0; color:var(--text-muted); font-size:14.5px; }
.werkzeug__manuell{ margin-top:16px; border-top:1px solid var(--line); padding-top:12px; }
.werkzeug__manuell summary{ cursor:pointer; font-size:15px; color:var(--denim); }
.werkzeug__hilfe{ font-size:13.5px; color:var(--text-muted); }
.werkzeug__handform{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.werkzeug__handform label{ font-size:14px; color:var(--text-muted); }
.werkzeug__handform input{
  width:130px; min-height:40px; padding:0 10px; font:inherit;
  border:1px solid var(--line); border-radius:8px;
  background:var(--paper); color:var(--text);
}

.trefferliste{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.treffer{
  display:grid; grid-template-columns:1fr 200px auto; gap:14px; align-items:center;
  padding:12px; border:1px solid var(--line); border-radius:var(--radius); background:var(--paper);
}
.treffer form{ margin:0; }
.treffer__name{ margin:0 0 4px; font-size:15px; line-height:1.4; }
.treffer__meta{ margin:0; font-size:12.5px; color:var(--text-muted); font-variant-numeric:tabular-nums; }
.treffer__karte{ height:120px; border-radius:8px; overflow:hidden; border:1px solid var(--line); }

@media (max-width:760px){
  .treffer{ grid-template-columns:1fr; }
  .treffer__karte{ height:160px; }
}

/* ---------- Reiter-Zahl ---------- */
.tab__zahl{
  display:inline-grid; place-items:center; min-width:20px; height:20px;
  padding:0 6px; margin-left:3px; border-radius:999px;
  background:var(--paper); border:1px solid var(--line);
  font-size:12px; font-weight:700; color:var(--text-muted);
  font-variant-numeric:tabular-nums; vertical-align:middle;
}
.tab[aria-selected="true"] .tab__zahl{
  background:var(--denim); border-color:var(--denim); color:#fff;
}

/* ---------- Untergeordnete Umschaltung ----------

   Zweite Leiste innerhalb eines Reiters, etwa Teaching gegen
   Beliebteste. Bewusst anders gestaltet als die Reiter darüber:
   dort ein Unterstrich, hier eine gefüllte Pille. So sieht man
   auf einen Blick, welche Ebene man gerade bedient.

   Steht hinter den Grundregeln, weil .tab--unter[aria-selected]
   und .tab[aria-selected] gleich stark sind - dann gewinnt die
   spätere.
*/
.filterbar--unter{
  position:static;              /* sonst klebt sie über der Leiste darüber */
  background:var(--paper);
  padding:10px 12px;
}
.tabs--unter{ gap:8px; }

.tab--unter{
  flex:0 1 auto;
  min-height:40px; padding:0 18px;
  border:1px solid var(--line); border-bottom-width:1px;
  border-radius:999px;
  background:var(--surface); color:var(--text-muted);
  font-size:15px;
}
.tab--unter:hover{
  border-color:var(--denim); color:var(--denim);
}
.tab--unter[aria-selected="true"]{
  background:var(--denim); border-color:var(--denim); color:#fff;
}
.tab--unter[aria-selected="true"]:hover{ color:#fff; }

.tab--unter .tab__zahl{
  background:var(--paper); border-color:var(--line); color:var(--text-muted);
}
.tab--unter[aria-selected="true"] .tab__zahl{
  background:rgba(255,255,255,.24); border-color:transparent; color:#fff;
}
.section__body--blank{ padding:0; }

/* ---------- Schwebender Anmeldeknopf (nur Handy) ---------- */
.fab-anmelden{ display:none; }

@media (max-width:899px){
  .fab-anmelden{
    position:fixed;
    right:16px; bottom:calc(16px + env(safe-area-inset-bottom));
    z-index:38;
    display:inline-flex; align-items:center; gap:8px;
    height:52px; padding:0 22px; border-radius:999px;
    background:var(--balken); color:var(--balken-text);
    font-family:var(--font-ui); font-weight:600; font-size:17px;
    text-decoration:none;
    box-shadow:0 4px 16px rgba(0,0,0,.28);
  }
  .fab-anmelden:hover,
  .fab-anmelden:active{ background:var(--balken-hover); text-decoration:none; color:var(--balken-text); }
}

/* ---------- Formulare ---------- */
.formularseite{ max-width:460px; margin:0 auto; padding:24px 16px 40px; }
.formularseite--breit{ max-width:640px; }

.formular{ display:flex; flex-direction:column; gap:18px; }
.formular__block{
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--radius); padding:16px;
  display:flex; flex-direction:column; gap:16px;
}
.formular__titel{
  margin:0; font-family:var(--font-ui); font-weight:600; font-size:19px;
}
.formular__fuss{
  margin:18px 0 0; text-align:center; font-size:15px;
  display:flex; gap:10px; justify-content:center; flex-wrap:wrap;
}

.feld{ display:flex; flex-direction:column; gap:6px; }
.feld label{
  font-family:var(--font-ui); font-weight:600; font-size:15px;
  letter-spacing:.02em; color:var(--text);
}
.feld input[type=text],
.feld input[type=email],
.feld input[type=tel],
.feld input[type=url],
.feld input[type=search],
.feld input[type=number],
.feld input[type=date],
.feld input[type=time],
.feld input[type=password]{
  width:100%; min-height:48px; padding:0 14px;
  font:inherit; font-size:16px;   /* unter 16px zoomt iOS beim Tippen */
  border:1px solid var(--line); border-radius:var(--radius);
  background:var(--surface); color:var(--text);
}
.feld input:focus{ border-color:var(--denim); }
.feld__hilfe{ margin:0; font-size:13px; color:var(--text-muted); line-height:1.4; }
.feld--paar{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.feld--paar > div{ display:flex; flex-direction:column; gap:6px; }
.feld--zeile{ flex-direction:row; align-items:center; }

.kontrollkaestchen{
  display:flex; align-items:center; gap:10px;
  font-weight:400; font-family:var(--font-body); font-size:15px; cursor:pointer;
  min-height:var(--tap);
}
.kontrollkaestchen input{ width:22px; height:22px; accent-color:var(--denim); }

.passwortfeld{ position:relative; display:flex; }
.passwortfeld input{ padding-right:52px !important; }
.passwortfeld__zeigen{
  position:absolute; right:4px; top:50%; transform:translateY(-50%);
  width:44px; height:44px; display:grid; place-items:center;
  background:none; border:0; color:var(--text-muted); cursor:pointer; border-radius:8px;
}
.passwortfeld__zeigen:hover{ background:var(--paper); color:var(--text); }
.passwortfeld__zeigen--aktiv{ color:var(--denim); }

.btn--breit{ width:100%; }

.feld--dreier{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; }
.feld--dreier > div{ display:flex; flex-direction:column; gap:6px; }
.feld input[type=number],
.feld--dreier input[type=number]{
  width:100%; min-height:48px; padding:0 12px;
  font:inherit; font-size:16px; font-variant-numeric:tabular-nums;
  border:1px solid var(--line); border-radius:var(--radius);
  background:var(--surface); color:var(--text);
}
.feld--dreier input:focus{ border-color:var(--denim); }

@media (max-width:520px){
  .feld--paar{ grid-template-columns:1fr; }
  .feld--dreier{ grid-template-columns:1fr; }
}

.werkzeug__sql, .werkzeug__ausgabe{
  width:100%; font-family:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  font-size:12.5px; line-height:1.5; padding:12px;
  border:1px solid var(--line); border-radius:var(--radius);
  background:var(--paper); color:var(--text);
  white-space:pre; overflow:auto;
}
.werkzeug__ausgabe{ margin:0; max-height:340px; white-space:pre-wrap; }
.idliste{ list-style:none; margin:0; padding:0; columns:2; column-gap:24px; font-size:14px; }
.idliste li{ padding:3px 0; break-inside:avoid; }
.idliste b{ display:inline-block; min-width:30px; color:var(--denim); font-variant-numeric:tabular-nums; }
@media (max-width:600px){ .idliste{ columns:1; } }

.startblock{ padding:16px; }
.startblock__hinweis{
  margin:0; padding:14px 16px; font-size:14px; color:var(--text-muted);
  background:var(--surface); border:1px dashed var(--line); border-radius:var(--radius);
}
.kacheln{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; padding:16px; }
.kachel{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:4px; padding:20px 10px; min-height:96px;
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--radius); color:var(--text); text-decoration:none;
}
.kachel:hover{ background:var(--denim-soft); border-color:var(--denim); text-decoration:none; }
.kachel__zahl{
  font-family:var(--font-ui); font-weight:700; font-size:28px;
  color:var(--denim); font-variant-numeric:tabular-nums; line-height:1;
}
.kachel__text{ font-size:14px; color:var(--text-muted); }

/* ---------- Veranstaltungen ---------- */
.monatstrenner{
  padding:11px 16px;
  background:var(--balken); color:var(--balken-text);
  font-family:var(--font-ui); font-weight:600; font-size:15px;
  letter-spacing:.06em; text-transform:uppercase;
  position:sticky; top:var(--kopf-gesamt); z-index:15;
}

.terminkopf{
  display:flex; gap:18px; align-items:flex-start;
  padding:18px 16px; border-bottom:1px solid var(--line); background:var(--surface);
}
.terminkopf__text{ min-width:0; display:flex; flex-direction:column; gap:6px; }
.terminkopf__datum{ margin:0; font-family:var(--font-ui); font-weight:600; font-size:19px; }
.terminkopf__zeit{ margin:0; font-size:16px; color:var(--text-muted); }

/* Datums-Kasten in den Terminlisten: einzeilig, immer blau.
   "Fr 24. Jul" steht als eine Zeile - datum_zeile() liefert
   den fertigen Text, deshalb hier kein Grid mehr. */
.datebadge{
  display:inline-flex; align-items:center; justify-content:center;
  white-space:nowrap;
  padding:7px 12px; border-radius:8px;
  background:var(--balken); color:var(--balken-text);
  font-family:var(--font-ui); font-weight:600; font-size:15px;
  letter-spacing:.01em; line-height:1;
  font-variant-numeric:tabular-nums;
}

/* Grosser Kasten auf der Detailseite bleibt dreizeilig */
.datebadge--gross{
  display:grid; place-items:center; white-space:normal;
  min-width:78px; padding:10px 12px; gap:1px;
}
.datebadge--gross .datebadge__dow,
.datebadge--gross .datebadge__mon{
  font-size:12px; letter-spacing:.09em; text-transform:uppercase;
  font-weight:600; color:rgba(255,255,255,.75);
}
.datebadge--gross .datebadge__day{
  font-size:32px; font-weight:700; color:inherit;
}

.terminaktionen__form{ margin:0; }
.terminaktionen{
  display:flex; gap:10px; flex-wrap:wrap;
  padding:14px 16px; border-bottom:1px solid var(--line); background:var(--surface);
}
.chip--link{ color:var(--denim); border-color:var(--denim); text-decoration:none; }
.chip--link:hover{ background:var(--denim-soft); text-decoration:none; }

.flyer{
  width:100%; max-width:520px; height:auto; display:block; margin:0 auto;
  border:1px solid var(--line); border-radius:var(--radius);
}

.installhinweis{
  margin:16px 0; padding:16px;
  background:var(--denim-soft); border:1px solid var(--denim);
  border-radius:var(--radius);
}
.installhinweis p{ margin:0 0 10px; }

.anleitung{ margin:0 0 16px; padding-left:24px; }
.anleitung li{ margin-bottom:8px; line-height:1.55; }

/* ---------- Platz für Kamera und Statusleiste ---------- */
/*
   Als App vom Startbildschirm gestartet reicht die Seite bis unter
   die Statusleiste. Ohne Ausgleich läge der Menüknopf beim iPhone
   hinter der Kamera und wäre nicht antippbar.

   env(safe-area-inset-top) liefert die Höhe, die das Gerät selbst
   für ausgespart hält - beim iPhone mit Kamerainsel rund 59px,
   bei älteren Geräten 20px, am Rechner 0.
*/
@media (display-mode: standalone), (display-mode: fullscreen) {
  /*
     Der sichere Bereich kommt als Innenabstand oben dazu, die
     Leiste selbst bleibt 56px hoch. Mittige Ausrichtung sorgt
     dafür, dass Menüknopf, Titel und Pfeil auf einer Linie
     sitzen - flex-end richtete sie an der Unterkante aus, und
     weil der Titel niedriger ist als die Knöpfe, stand er
     dadurch tiefer.
  */
  .topbar{
    height:calc(56px + env(safe-area-inset-top));
    padding-top:env(safe-area-inset-top);
    align-items:center;
  }

  .sidebar{ padding-top:env(safe-area-inset-top); }

  /* Alles, was unter der Leiste klebt, rutscht mit */
  .section--klebend > .section__head,
  .monatstrenner{
    top:calc(56px + env(safe-area-inset-top));
  }
  .filterbar{ top:calc(56px + env(safe-area-inset-top)); }
}

/* ---------- Fehlerseiten ---------- */
.fehlerseite{
  min-height:100vh; min-height:100dvh;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:16px; padding:32px 20px; text-align:center;
  background:var(--paper); color:var(--text);
}
.fehlerseite__zahl{
  margin:0; font-family:var(--font-ui); font-weight:700; font-size:64px;
  line-height:1; color:var(--balken); letter-spacing:-.02em;
}
.fehlerseite__titel{
  margin:0; font-family:var(--font-ui); font-weight:600; font-size:26px;
}
.fehlerseite__text{
  margin:0; max-width:46ch; font-size:16px; line-height:1.6;
  color:var(--text-muted);
}
.fehlerseite__knoepfe{
  display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-top:8px;
}
.fehlerseite__fuss{
  margin:18px 0 0; display:flex; gap:10px; font-size:14px; color:var(--text-muted);
}
.fehlerseite__fuss a{ color:var(--text-muted); }

/* ---------- Rechtstexte ---------- */
.rechtstext{
  max-width:70ch; margin:0 auto; padding:22px 18px 40px;
  font-size:16px; line-height:1.65;
}
.rechtstext h1{
  margin:0 0 18px; font-family:var(--font-ui);
  font-weight:700; font-size:27px;
}
.rechtstext h2{
  margin:28px 0 8px; font-family:var(--font-ui);
  font-weight:600; font-size:19px; color:var(--denim);
}
.rechtstext p{ margin:0 0 12px; }
.rechtstext ul{ margin:0 0 14px; padding-left:22px; }
.rechtstext li{ margin-bottom:7px; }
.rechtstext code{
  font-family:ui-monospace,Menlo,Consolas,monospace; font-size:14px;
  background:var(--paper); padding:1px 5px; border-radius:4px;
}
.rechtstext__stand{
  margin-top:30px; padding-top:14px; border-top:1px solid var(--line);
  font-size:14px; color:var(--text-muted);
}

/* ---------- Fußbereich ---------- */
.fussbereich{
  display:flex; gap:10px; justify-content:center; align-items:center;
  flex-wrap:wrap;
  padding:22px 16px calc(22px + env(safe-area-inset-bottom));
  border-top:1px solid var(--line);
  font-size:14px; color:var(--text-muted);
}
.fussbereich a{ color:var(--text-muted); }
.fussbereich a:hover{ color:var(--denim); }

@media (max-width:899px){
  /* Platz fuer den schwebenden Anmeldeknopf */
  .fussbereich{ padding-bottom:calc(80px + env(safe-area-inset-bottom)); }
}

/* Waehrend nachgeladen wird, bleibt die alte Liste stehen und wird
   nur blasser - so springt nichts, und man sieht trotzdem, dass
   etwas passiert. */
.trefferbereich--laedt{
  opacity:.45;
  transition:opacity .12s;
  pointer-events:none;
}

.rating__stimmen{
  display:block; margin-top:2px;
  font-family:var(--font-body); font-weight:400; font-size:11px;
  color:var(--text-muted); white-space:nowrap;
}

/* ---------- Knöpfe und Kleinteile ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  min-height:44px; padding:0 20px; border-radius:999px;
  border:1px solid var(--denim); background:var(--denim); color:#fff;
  font-family:var(--font-ui); font-weight:600; font-size:16px;
  cursor:pointer; text-decoration:none;
}
.btn:hover{ background:#203d66; text-decoration:none; color:#fff; }
.btn--ghost{ background:none; color:var(--denim); }

/* Muss nach .btn stehen, sonst ueberschreibt die Grundregel
   den Hintergrund - gleiche Spezifitaet, die spaetere gewinnt. */
.btn--rot{
  background:var(--rot);
  border-color:var(--rot);
  color:#fff;
}
.btn--rot:hover{ background:var(--rot); filter:brightness(.88); color:#fff; }
.btn--ghost:hover{ background:var(--denim-soft); color:var(--denim); }
.btn--klein{ min-height:40px; padding:0 16px; font-size:15px; gap:6px; }
.btn[disabled]{ opacity:.55; cursor:default; }

.mehr{ margin:0; padding:18px 16px; text-align:center; }
.mehr--ende{ font-size:13.5px; color:var(--text-muted); }
.aktionen{ margin:0; padding:16px; }
.leer{ margin:0; padding:36px 16px; text-align:center; color:var(--text-muted); background:var(--surface); }

/* ---------- Desktop ---------- */
@media (min-width:900px){
  .sidebar{ transform:none; }
  .content{ margin-left:var(--nav-w); }
  .topbar__burger{ display:none; }
  .topbar__zurueck{ display:none; }
  .topbar__title{ padding-right:0; }
  .scrim{ display:none !important; }
  /* min-content statt fester Breite: die Spalte richtet sich nach
     ihrem Inhalt - Vorschaubild oder Datumsblock. Sonst laeuft der
     breitere Datumsblock ueber und frisst den Abstand zum Text. */
  .row__link{ grid-template-columns:min-content 1fr auto auto; padding:16px; }
  .thumb{ width:86px; }
}

@media (max-width:560px){
  .detail__head{ grid-template-columns:1fr; gap:16px; }
  .fact__label{ min-width:104px; }
  .row__link{ grid-template-columns:min-content 1fr auto; gap:12px; }
  .thumb{ width:64px; }

  /* Auf schmalen Geraeten etwas kompakter, damit fuer den Text
     genug Platz bleibt. */
  .terminspalte{ min-width:0; }
  .terminspalte__bild{ width:52px; height:52px; }
  .datebadge{ padding:6px 10px; font-size:14px; }
  .chevron{ display:none; }
}
