/* Aetheris Cathedral - Stripe-artiger Aufbau in den Cathedral-Farben (Dunkel + Gold). */
:root {
  color-scheme: dark;
  --grund: #0b0d12;
  --flaeche: #11141b;
  --flaeche-2: #161a23;
  --flaeche-3: #1c212c;
  --linie: #232937;
  --linie-stark: #2f3646;
  --text: #e8e9ed;
  --text-2: #aeb5c4;
  --text-3: #7d8596;
  --gold: #d9b76c;
  --gold-hell: #edd399;
  --gold-grund: rgba(217, 183, 108, .12);
  --knopf-text: #15120a;
  --reihe-1: #b38d40;   /* Diagramm Gold, geprueft gegen --flaeche */
  --reihe-2: #3987e5;   /* Diagramm Blau */
  --band: rgba(174, 181, 196, .12);
  --gut: #0ca30c;
  --gut-text: #5fd47a;
  --gut-grund: rgba(12, 163, 12, .14);
  --schlecht: #d03b3b;
  --schlecht-text: #ff8b8b;
  --schlecht-grund: rgba(208, 59, 59, .15);
  --warn: #fab219;
  --warn-grund: rgba(250, 178, 25, .13);
  --schatten: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .25);
  --rund: 12px;
  --nav: 286px;          /* Seitenleiste */
  --logo-gold: #ebbd65;  /* Mittel des Logo-Golds */
  --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, sans-serif;
}
:root[data-theme="light"] {
  color-scheme: light;
  --grund: #f6f8fa;
  --flaeche: #ffffff;
  --flaeche-2: #f9fafb;
  --flaeche-3: #f1f3f6;
  --linie: #e3e8ee;
  --linie-stark: #d5dbe3;
  --text: #1a1f36;
  --text-2: #4f566b;
  --text-3: #697386;
  --gold: #9a7428;
  --gold-hell: #7d5d1c;
  --gold-grund: rgba(154, 116, 40, .10);
  --knopf-text: #ffffff;
  --reihe-1: #9a7428;
  --reihe-2: #2a78d6;
  --band: rgba(79, 86, 107, .10);
  --gut-text: #0a7d0a;
  --gut-grund: rgba(12, 163, 12, .10);
  --schlecht-text: #b42b2b;
  --schlecht-grund: rgba(208, 59, 59, .09);
  --warn-grund: rgba(250, 178, 25, .16);
  --schatten: 0 1px 2px rgba(26, 31, 54, .06), 0 6px 20px rgba(26, 31, 54, .06);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--grund); color: var(--text); }
body { font: 14px/1.5 var(--schrift); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.zahl, td.z, .kpi b { font-variant-numeric: tabular-nums; }

.app { display: flex; min-height: 100vh; }

/* Seitenleiste */
.seite { width: var(--nav); flex: none; background: var(--flaeche); border-right: 1px solid var(--linie);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 18px 14px; }
.marke { display: block; padding: 6px 18px 22px; margin-bottom: 8px; border-bottom: 1px solid var(--linie); }
.marke { --logo-breite: 214px; }
.marke img { display: block; width: var(--logo-breite); max-width: 100%; height: auto; margin: 0 auto; }
/* Die Tagline als echter Text: im Bild waere sie bei dieser Groesse nur 5 px hoch.
   Schriftgroesse wie "AETHERIS" im Logo (Versalhoehe = 4 % der Logobreite), Breite wie "CATHEDRAL". */
.tagline { display: block; width: var(--logo-breite); max-width: 100%; margin: 10px auto 0; text-align: center;
  font-family: Bahnschrift, "Segoe UI", system-ui, sans-serif; font-weight: 600; font-size: calc(var(--logo-breite) * .0568); line-height: 1;
  letter-spacing: .4em; padding-left: .4em; color: var(--logo-gold); white-space: nowrap; }
/* Das Logo ist helles Gold auf transparentem Grund - auf Weiss braucht es mehr Tiefe */
:root[data-theme="light"] .marke img { filter: brightness(.72) saturate(1.25); }
:root[data-theme="light"] .tagline { color: #a07a2e; }
nav { display: flex; flex-direction: column; gap: 2px; }
nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text-2); font-weight: 500; }
nav a svg { width: 18px; height: 18px; flex: none; }
nav a:hover { background: var(--flaeche-3); color: var(--text); }
nav a.aktiv { background: var(--gold-grund); color: var(--gold); }
nav em { margin-left: auto; font-style: normal; font-size: 11px; min-width: 20px; text-align: center;
  padding: 0 6px; border-radius: 10px; background: var(--gold); color: var(--knopf-text); font-weight: 700; }
nav em:empty { display: none; }
.seite-fuss { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.hinweis-chip { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border: 1px solid var(--linie); border-radius: 8px; }
.hinweis-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }

/* Kopf */
.haupt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kopf { display: flex; align-items: center; gap: 16px; padding: 22px 32px 18px; border-bottom: 1px solid var(--linie);
  background: var(--grund); position: sticky; top: 0; z-index: 5; }
.kopf h1 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -.01em; }
.kopf p { margin: 2px 0 0; color: var(--text-2); font-size: 13px; }
.kopf-rechts { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.stand { color: var(--text-3); font-size: 12px; text-align: right; white-space: nowrap; }
@media (max-width: 1100px) { .kopf .stand { display: none; } .kopf p { max-width: 46ch; } }
.menue { display: none; }
main { padding: 24px 32px 56px; max-width: 1440px; width: 100%; }

/* Knoepfe */
.knopf { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--linie-stark); background: var(--flaeche); cursor: pointer; font-weight: 550; font-size: 13px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .12); white-space: nowrap; }
.knopf:hover { border-color: var(--text-3); }
.knopf svg { width: 15px; height: 15px; }
.knopf.gold { background: var(--gold); border-color: var(--gold); color: var(--knopf-text); }
.knopf.gold:hover { filter: brightness(1.06); }
.knopf.klein { height: 26px; padding: 0 9px; font-size: 12px; }
.knopf.gut { background: var(--gut); border-color: var(--gut); color: #fff; }
.knopf.gut:hover { filter: brightness(1.08); border-color: var(--gut); }
tr.mit-verlauf td { border-bottom: 0; }
tr.verlauf-zeile td { padding: 0 20px 16px; white-space: normal; }
tr.verlauf-zeile:hover, tr.mit-verlauf:hover { background: none; }
.diagramm.verlauf { background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: 8px; padding: 6px 8px 2px; }
.knopf.gefahr { color: var(--schlecht-text); }
.knopf[disabled] { opacity: .5; cursor: progress; }
.knopf-leise { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer;
  color: var(--text-2); padding: 7px 10px; border-radius: 8px; }
.knopf-leise:hover { background: var(--flaeche-3); color: var(--text); }
.knopf-leise svg { width: 17px; height: 17px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Raster und Karten */
.raster { display: grid; gap: 16px; margin-bottom: 16px; }
.r4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.r3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.r2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.r21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); box-shadow: var(--schatten); min-width: 0; }
.karte > header { display: flex; align-items: center; gap: 12px; padding: 16px 20px 0; }
.karte > header h2 { margin: 0; font-size: 15px; font-weight: 620; }
.karte > header p { margin: 0; color: var(--text-3); font-size: 12px; }
.karte > header .rechts { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.karte .koerper { padding: 16px 20px 20px; }
.karte .koerper.eng { padding: 8px 0 4px; }
.kpi { padding: 18px 20px; }
.kpi > span { color: var(--text-2); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.kpi b { display: block; font-size: 26px; font-weight: 640; letter-spacing: -.02em; margin: 6px 0 2px; }
.kpi small { color: var(--text-3); font-size: 12px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kpi .spark { margin-top: 10px; height: 34px; }
.leer { color: var(--text-3); padding: 28px 20px; text-align: center; font-size: 13px; }

/* Abzeichen */
.abz { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 1px 8px;
  border-radius: 6px; white-space: nowrap; background: var(--flaeche-3); color: var(--text-2); }
.abz.long, .abz.gut { background: var(--gut-grund); color: var(--gut-text); }
.abz.short, .abz.schlecht { background: var(--schlecht-grund); color: var(--schlecht-text); }
.abz.warn { background: var(--warn-grund); color: var(--warn); }
:root[data-theme="light"] .abz.warn { color: #8a5a00; }
.abz.gold { background: var(--gold-grund); color: var(--gold); }
.plus { color: var(--gut-text); }
.minus { color: var(--schlecht-text); }

/* Tabellen */
.tabelle { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-weight: 600; color: var(--text-3); font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  padding: 10px 12px; border-bottom: 1px solid var(--linie); white-space: nowrap; }
td { padding: 11px 12px; border-bottom: 1px solid var(--linie); white-space: nowrap; }
th:first-child, td:first-child { padding-left: 20px; }
th:last-child, td:last-child { padding-right: 20px; }
tr:last-child td { border-bottom: 0; }
th.z, td.z { text-align: right; }
tbody tr.klickbar { cursor: pointer; }
tbody tr:hover { background: var(--flaeche-2); }
td .sym { font-weight: 620; }
td .sym small { color: var(--text-3); font-weight: 400; margin-left: 2px; }
td .neben { display: block; color: var(--text-3); font-size: 12px; }

/* Filterleiste */
.filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.segment { display: inline-flex; border: 1px solid var(--linie-stark); border-radius: 8px; overflow: hidden; background: var(--flaeche); }
.segment button { border: 0; background: none; padding: 5px 12px; cursor: pointer; color: var(--text-2); font-size: 13px; }
.segment button + button { border-left: 1px solid var(--linie); }
.segment button.an { background: var(--gold-grund); color: var(--gold); font-weight: 600; }
select, input, textarea { background: var(--flaeche); border: 1px solid var(--linie-stark); border-radius: 8px; height: 32px; padding: 0 10px; }
textarea { height: auto; padding: 8px 10px; resize: vertical; }
.filter label { display: inline-flex; gap: 6px; align-items: center; color: var(--text-2); font-size: 13px; }
.filter label input { height: auto; }

/* R-Balken: wie weit der Kurs seit dem Signal gelaufen ist, -1 R (Stop) bis +2 R (Ziel) */
.rbalken { position: relative; width: 96px; height: 6px; border-radius: 3px; background: var(--flaeche-3); display: inline-block; vertical-align: middle; }
.rbalken i { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.rbalken b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text-3); left: 33.33%; }

.gewicht { display: inline-block; height: 6px; border-radius: 3px; vertical-align: middle; margin-right: 8px; }

/* Diagramme */
.diagramm { position: relative; width: 100%; }
.diagramm svg { display: block; width: 100%; overflow: visible; stroke: none; }
.diagramm svg rect[fill="transparent"] { stroke: none; }
.diagramm .achse text, .diagramm text { fill: var(--text-3); stroke: none; font-size: 11px; }
.diagramm .gitter line { stroke: var(--linie); stroke-width: 1; }
.legende { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.legende span { display: inline-flex; align-items: center; gap: 6px; }
.legende i { width: 14px; height: 2px; border-radius: 1px; display: inline-block; }
.legende i.gestrichelt { background: repeating-linear-gradient(90deg, var(--text-3) 0 4px, transparent 4px 7px) !important; }
.legende i.flaeche { height: 10px; border-radius: 2px; }
.tooltip { position: fixed; z-index: 50; pointer-events: none; background: var(--flaeche); border: 1px solid var(--linie-stark);
  border-radius: 8px; box-shadow: var(--schatten); padding: 8px 10px; font-size: 12px; min-width: 140px; }
.tooltip b { display: block; margin-bottom: 4px; font-size: 12px; }
.tooltip div { display: flex; justify-content: space-between; gap: 14px; color: var(--text-2); }
.tooltip div span:last-child { color: var(--text); font-variant-numeric: tabular-nums; }

/* Jetzt zu tun */
.karte.jetzt { margin-bottom: 16px; border-color: color-mix(in srgb, var(--gold) 45%, var(--linie)); }
.karte.jetzt > header h2 { font-size: 17px; }
.tun { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.tun:first-child { padding-top: 4px; }
.tun.leise { opacity: .85; }
.verb { flex: none; width: 92px; text-align: center; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 0; border-radius: 7px; background: var(--flaeche-3); color: var(--text-2); }
.verb.long, .verb.gut { background: var(--gut-grund); color: var(--gut-text); }
.verb.short, .verb.schlecht { background: var(--schlecht-grund); color: var(--schlecht-text); }
.tun-text { flex: 1; min-width: 0; }
.tun-text > b { display: block; font-size: 14px; font-weight: 620; }
.tun-text > span { display: block; color: var(--text-2); font-size: 12.5px; margin-top: 2px; }
.tun-text > span b { color: var(--text); font-variant-numeric: tabular-nums; }
.sterne { color: var(--gold); letter-spacing: 1px; font-size: 14px; flex: none; }
.sterne i { font-style: normal; color: var(--linie-stark); }
.tun-fuss { margin: 12px 0 0; color: var(--text-3); font-size: 12px; }
@media (max-width: 820px) { .tun { flex-wrap: wrap; } .tun-text { flex-basis: calc(100% - 110px); } .tun .knopf { margin-left: 106px; } }

/* Betriebszeilen */
.zeilen { display: flex; flex-direction: column; }
.zeilen > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linie); font-size: 13px; }
.zeilen > div:last-child { border-bottom: 0; }
.zeilen > div > span:first-child { color: var(--text-2); }
.zeilen > div > span:last-child { text-align: right; }

.notiz { border-left: 3px solid var(--gold); background: var(--flaeche-2); padding: 12px 16px; border-radius: 0 8px 8px 0;
  color: var(--text-2); font-size: 13px; margin: 0 0 16px; }
.notiz b { color: var(--text); }

/* Regelkarten */
.regel h3 { margin: 0 0 4px; font-size: 15px; }
.regel p { margin: 0 0 12px; color: var(--text-2); font-size: 13px; }
.regel .klein { color: var(--text-3); font-size: 12px; }
.werte { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; margin: 14px 0; }
.werte b { white-space: nowrap; }
.werte div { background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: 8px; padding: 8px 10px; }
.werte span { display: block; font-size: 11px; color: var(--text-3); }
.werte b { font-size: 16px; font-variant-numeric: tabular-nums; }

/* Schublade */
.schublade { position: fixed; inset: 0; z-index: 40; }
.schublade-grund { position: absolute; inset: 0; background: rgba(5, 6, 10, .55); }
/* volle Hoehe, links 5 % Abstand zur Navigation, rechts bis zum Rand */
.schublade-tafel { position: absolute; top: 0; right: 0; bottom: 0; left: calc(var(--nav) + 5vw); height: 100vh; background: var(--flaeche);
  border-left: 1px solid var(--linie); box-shadow: var(--schatten); display: flex; flex-direction: column; animation: rein .16s ease-out; }
@keyframes rein { from { transform: translateX(24px); opacity: .4; } }
.schublade-tafel > header { display: flex; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--linie); }
.schublade-tafel > header h2 { margin: 0; font-size: 17px; }
.schublade-tafel > header button { margin-left: auto; }
#schublade-inhalt { padding: 18px 22px 28px; overflow-y: auto; }
.formular { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 14px; }
.formular label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--text-2); font-weight: 550; }
.formular .breit { grid-column: 1 / -1; }
.formular input, .formular select { width: 100%; }
.formular .aktionen { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }
.formular .meldung { grid-column: 1 / -1; font-size: 12px; color: var(--schlecht-text); min-height: 16px; }
.kenn { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 14px 0 18px; }
.kenn div { border: 1px solid var(--linie); border-radius: 8px; padding: 8px 10px; }
.kenn span { display: block; font-size: 11px; color: var(--text-3); }
.kenn b { font-variant-numeric: tabular-nums; }

.fehlerband { margin: 16px 32px 0; padding: 10px 14px; border-radius: 8px; background: var(--warn-grund); color: var(--text); font-size: 13px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 60; background: var(--text); color: var(--grund);
  padding: 9px 16px; border-radius: 8px; font-size: 13px; font-weight: 550; box-shadow: var(--schatten); }
.lade { height: 120px; border-radius: var(--rund); background: linear-gradient(90deg, var(--flaeche) 0, var(--flaeche-2) 50%, var(--flaeche) 100%);
  background-size: 200% 100%; animation: schimmer 1.3s infinite; border: 1px solid var(--linie); margin-bottom: 16px; }
@keyframes schimmer { to { background-position: -200% 0; } }

@media (max-width: 1180px) { .r4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .r21, .r3 { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .seite { position: fixed; z-index: 30; left: 0; transform: translateX(-100%); transition: transform .18s; }
  .seite.offen { transform: none; box-shadow: var(--schatten); }
  .menue { display: inline-flex; }
  .kopf { padding: 14px 16px; }
  .stand { display: none; }
  main { padding: 16px 16px 48px; }
  .fehlerband { margin: 12px 16px 0; }
  .r4, .r2 { grid-template-columns: 1fr; }
  .werte { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .formular { grid-template-columns: 1fr; }
  .schublade-tafel { left: 5vw; }   /* Navigation ist hier eingeklappt */
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Bot-Seite: Modi, Sperren, Auslastung, Knopfreihe */
.klein { color: var(--text-3); font-size: 12px; margin: 6px 0 0; line-height: 1.5; }
.modi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.modus { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--rund);
  border: 1px solid var(--linie); background: var(--flaeche); font-size: 13px; color: var(--text-2); }
.modus b { color: var(--text); font-size: 14px; font-weight: 620; }
.modus.an { border-color: var(--gut); }
.modus.an b::before { content: "● "; color: var(--gut-text); }
.modus.aus { opacity: .85; }
.modus.aus b::before { content: "○ "; color: var(--text-3); }
.sperren { margin: 8px 0 0; padding-left: 18px; color: var(--schlecht-text); font-size: 14px; line-height: 1.6; }
.balken { height: 6px; border-radius: 3px; background: var(--flaeche-3); margin-top: 8px; overflow: hidden; }
.balken i { display: block; height: 100%; background: var(--gold); border-radius: 3px; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
@media (max-width: 1180px) { .modi { grid-template-columns: 1fr; } }

/* ---------- Einstellungen: Schluesselzeilen */
.schluessel-zeile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: center;
  padding: 14px 0; border-top: 1px solid var(--linie); }
.schluessel-zeile:first-of-type { border-top: 0; }
.schluessel-form { display: flex; flex-wrap: wrap; gap: 8px; }
.schluessel-form input { flex: 1 1 220px; min-width: 0; height: 32px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--linie); background: var(--flaeche-3); color: var(--text); font: inherit; }
@media (max-width: 720px) { .schluessel-zeile { grid-template-columns: 1fr; } }

.unter { font-size: 13px; color: var(--text-2); margin: 16px 0 6px; font-weight: 600; }

.messlatte { border: 1px solid var(--linie); border-radius: var(--rund); padding: 12px 14px; margin: 12px 0; background: var(--flaeche-3); }
.messlatte-kopf { display: flex; gap: 8px; align-items: baseline; margin-bottom: 8px; }
.messlatte .werte b small { font-size: 11px; color: var(--text-3); font-weight: 400; margin-left: 4px; }

/* Bewertung: Zeilen mit Beschriftung links und Fliesstext rechts */
.details { display: flex; flex-direction: column; }
.details > div { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--linie); font-size: 13px; }
.details > div:last-child { border-bottom: 0; }
.details > div > span:first-child { color: var(--text-2); }
#bw-eingabe { background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: 8px; color: var(--text); padding: 10px 12px; font: inherit; }
#bw-eingabe:focus { outline: none; border-color: var(--gold); }
@media (max-width: 700px) { .details > div { grid-template-columns: 1fr; gap: 2px; } }

/* Heller Modus: Kacheln und Eingabefeld hoben sich kaum von der weissen Karte ab (12.11.2026) -
   feine, aber deutliche Haarlinie und ein leicht abgesetzter Grund */
:root[data-theme="light"] .werte div { background: var(--flaeche-3); border-color: #c9d1dc; }
:root[data-theme="light"] .werte span { color: var(--text-2); }
:root[data-theme="light"] #bw-eingabe { background: #ffffff; border-color: #b9c2cf; }
:root[data-theme="light"] .details > div { border-bottom-color: var(--linie-stark); }

/* Anmeldeseite */
body.anmelden { min-height: 100vh; display: grid; place-items: center; background: var(--grund); padding: 24px; }
.anmelde-karte { width: min(360px, 100%); padding: 28px 28px 20px; }
.anmelde-karte img { display: block; width: 190px; height: auto; margin: 0 auto 18px; }
:root[data-theme="light"] .anmelde-karte img { filter: brightness(.72) saturate(1.25); }
.anmelde-karte form { display: flex; flex-direction: column; gap: 6px; }
.anmelde-karte label { font-size: 12px; color: var(--text-2); margin-top: 8px; }
.anmelde-karte input { background: var(--flaeche-2); border: 1px solid var(--linie-stark); border-radius: 8px; color: var(--text); padding: 10px 12px; font: inherit; }
.anmelde-karte input:focus { outline: none; border-color: var(--gold); }
.anmelde-karte #meldung { min-height: 18px; margin: 8px 0 4px; font-size: 13px; color: var(--schlecht-text); }
.anmelde-karte .knopf { justify-content: center; padding: 10px 14px; }
.anmelde-karte .neben { text-align: center; margin: 16px 0 0; font-size: 12px; }
