:root {
  --tinte: #10232a;
  --petrol: #0b5563;
  --petrol-hell: #e3eff1;
  --koralle: #f2765a;
  --koralle-hell: #fdeee9;
  --gruen: #2e9e6b;
  --gruen-hell: #e4f4ec;
  --rot: #d0453a;
  --rot-hell: #fbe9e7;
  --gelb-hell: #fff6dd;
  --grund: #f4f6f5;
  --flaeche: #ffffff;
  --linie: #e1e7e6;
  --text: #10232a;
  --text-leise: #56686d;
  --schatten: 0 1px 2px rgba(16,35,42,.06), 0 4px 16px rgba(16,35,42,.05);
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --tinte: #e8f0ef; --petrol: #5fb3c1; --petrol-hell: #16343a; --koralle-hell: #3a2420; --gruen-hell: #173528;
    --rot-hell: #3a1d1a; --gelb-hell: #36301a; --grund: #0d1517; --flaeche: #152024; --linie: #253337;
    --text: #e8f0ef; --text-leise: #9db0b3; --schatten: none;
  }
}
:root[data-theme="dark"] {
  --tinte: #e8f0ef; --petrol: #5fb3c1; --petrol-hell: #16343a; --koralle-hell: #3a2420; --gruen-hell: #173528;
  --rot-hell: #3a1d1a; --gelb-hell: #36301a; --grund: #0d1517; --flaeche: #152024; --linie: #253337;
  --text: #e8f0ef; --text-leise: #9db0b3; --schatten: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; background: var(--grund); color: var(--text); line-height: 1.5; font-size: 16px; }
a { color: var(--petrol); }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: 30px; font-weight: 800; }
h2 { font-size: 21px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
.leise { color: var(--text-leise); }

/* Rahmen */
.rahmen { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.seitenleiste { background: var(--flaeche); border-right: 1px solid var(--linie); padding: 22px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px; }
.marke { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 21px; letter-spacing: -.5px; padding: 0 8px; }
.marke b { color: var(--koralle); font-weight: 800; }
.hauptnav { display: flex; flex-direction: column; gap: 2px; }
.hauptnav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.hauptnav a:hover { background: var(--grund); }
.hauptnav a.aktiv { background: var(--petrol-hell); color: var(--petrol); }
.hauptnav .ico { width: 22px; text-align: center; font-size: 16px; }
.neu { font-style: normal; font-size: 11px; background: var(--koralle-hell); color: var(--koralle); padding: 1px 7px; border-radius: 99px; margin-left: auto; }
.vertrauen { margin-top: auto; background: var(--grund); border-radius: 12px; padding: 14px; display: flex; gap: 10px; font-size: 13px; color: var(--text-leise); }
.vertrauen p { margin: 0; }
.vertrauen b { color: var(--text); }
.darstellung { display: flex; background: var(--grund); border-radius: 10px; padding: 3px; gap: 2px; }
.darstellung button { flex: 1; border: 0; background: transparent; color: var(--text-leise); font-size: 12.5px; font-weight: 600; padding: 6px 4px; border-radius: 8px; }
.darstellung button[aria-checked="true"] { background: var(--flaeche); color: var(--text); box-shadow: 0 1px 2px rgba(16,35,42,.12); }
.darstellung-mobil { display: none; }
@media (max-width: 860px) {
  .darstellung-mobil { display: grid; place-items: center; position: fixed; top: 12px; right: 12px; z-index: 30; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--linie); background: var(--flaeche); color: var(--text); font-size: 18px; }
}
.siegel { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--gruen); color: #fff; display: grid; place-items: center; font-weight: 800; }
main { padding: 32px clamp(16px, 4vw, 48px) 96px; max-width: 1180px; width: 100%; outline: none; }
.mobilnav { display: none; }

@media (max-width: 860px) {
  .rahmen { grid-template-columns: 1fr; }
  .seitenleiste { display: none; }
  main { padding: 20px 16px 96px; }
  h1 { font-size: 25px; }
  .mobilnav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: var(--flaeche); border-top: 1px solid var(--linie); z-index: 20; padding-bottom: env(safe-area-inset-bottom); }
  .mobilnav a { flex: 1; text-align: center; padding: 8px 0 6px; color: var(--text-leise); text-decoration: none; font-size: 18px; display: flex; flex-direction: column; align-items: center; }
  .mobilnav a span { font-size: 11px; font-weight: 600; }
  .mobilnav a.aktiv { color: var(--petrol); }
}

/* Bausteine */
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 20px; box-shadow: var(--schatten); }
.raster { display: grid; gap: 16px; }
.raster-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.raster-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 20px; font-weight: 700; background: var(--tinte); color: var(--flaeche); text-decoration: none; font-size: 15px; }
.knopf:hover { filter: brightness(1.1); }
.knopf.akzent { background: var(--koralle); color: #fff; }
.knopf.leise { background: var(--grund); color: var(--text); border: 1px solid var(--linie); }
.knopf.klein { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.knopf:disabled { opacity: .45; cursor: default; filter: none; }
.chip { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--petrol-hell); color: var(--petrol); border: 0; }
.chip.gesetz { background: var(--grund); color: var(--text); border: 1px solid var(--linie); }
.chip.gesetz:hover { border-color: var(--petrol); }
.balken { height: 8px; background: var(--grund); border-radius: 99px; overflow: hidden; }
.balken > i { display: block; height: 100%; background: var(--petrol); border-radius: 99px; }
.balken.gruen > i { background: var(--gruen); }
.kopfzeile { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.kopfzeile p { margin: 0; }
.abschnitt { margin-top: 32px; }

/* Start */
.held { background: var(--tinte); color: #fff; border-radius: 22px; padding: 28px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; position: relative; overflow: hidden; }
:root[data-theme="dark"] .held, .held { background: #10232a; }
.held h1 { color: #fff; }
:root[data-theme="dark"] .held { border: 1px solid #2b444b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .held { border: 1px solid #2b444b; } }
.held p { color: #b9cacd; margin: 0 0 18px; }
.held .zahl { font-size: 46px; font-weight: 800; line-height: 1; }
.held .countdown { background: rgba(255,255,255,.07); border-radius: 16px; padding: 18px; }
.held .countdown label { font-size: 13px; color: #b9cacd; display: block; margin-bottom: 6px; }
.held input[type=date] { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 6px 8px; font: inherit; color-scheme: dark; }
@media (max-width: 760px) { .held { grid-template-columns: 1fr; } }
.bereichkarte h3 { display: flex; justify-content: space-between; }
.bereichkarte .prozent { font-size: 26px; font-weight: 800; }
.modus { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text); transition: transform .12s; }
.modus:hover { transform: translateY(-2px); border-color: var(--petrol); }
.modus .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--petrol-hell); }
.modus.hervor { border: 2px solid var(--koralle); }
.modus.hervor .ico { background: var(--koralle-hell); }
.modus p { margin: 0; color: var(--text-leise); font-size: 14px; }

/* Lernpfad */
.sachgebiet { margin-bottom: 18px; }
.sachgebiet summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; }
.sachgebiet summary::-webkit-details-marker { display: none; }
.roemisch { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--tinte); color: var(--flaeche); display: grid; place-items: center; font-weight: 800; }
.thema { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--linie); }
.thema:first-of-type { margin-top: 14px; }
.thema .nr { font-size: 13px; color: var(--text-leise); width: 44px; flex: none; }
.thema .titel { flex: 1; font-weight: 600; font-size: 15px; }
.thema .info { font-size: 13px; color: var(--text-leise); white-space: nowrap; }
.markierung { font-size: 11px; font-weight: 700; background: var(--koralle-hell); color: var(--koralle); padding: 2px 8px; border-radius: 99px; }

/* Frage */
.fragerahmen { max-width: 760px; margin: 0 auto; }
.fortschritt { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 14px; color: var(--text-leise); }
.fortschritt .balken { flex: 1; }
.fragetext { font-size: 20px; font-weight: 700; margin: 6px 0 6px; }
.hinweis { font-size: 14px; color: var(--text-leise); margin-bottom: 16px; }
.option { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; background: var(--flaeche); border: 1.5px solid var(--linie); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; color: var(--text); font-size: 16px; }
.option:hover:not(:disabled) { border-color: var(--petrol); }
.option .marker { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--linie); display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--text-leise); }
.option.gewaehlt { border-color: var(--petrol); background: var(--petrol-hell); }
.option.gewaehlt .marker { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.option.richtig { border-color: var(--gruen); background: var(--gruen-hell); }
.option.richtig .marker { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.option.falsch { border-color: var(--rot); background: var(--rot-hell); }
.option.falsch .marker { background: var(--rot); border-color: var(--rot); color: #fff; }
.option:disabled { cursor: default; }
.option .etikett { margin-left: auto; font-size: 12px; font-weight: 700; white-space: nowrap; }
.option.richtig .etikett { color: var(--gruen); }
.option.falsch .etikett { color: var(--rot); }
.aktionen { display: flex; gap: 10px; justify-content: space-between; margin-top: 18px; flex-wrap: wrap; }

/* Erklärung */
.erklaerung { margin-top: 22px; border-radius: var(--radius); background: var(--flaeche); border: 1px solid var(--linie); overflow: hidden; }
.erklaerung .ergebnis { padding: 14px 20px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.erklaerung .ergebnis.ok { background: var(--gruen-hell); color: var(--gruen); }
.erklaerung .ergebnis.nein { background: var(--rot-hell); color: var(--rot); }
.erklaerung .teil { padding: 16px 20px; border-top: 1px solid var(--linie); }
.erklaerung .teil h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-leise); }
.erklaerung .teil p { margin: 0; }
.optionsliste { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.optionsliste li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; font-size: 15px; }
.optionsliste .zeichen { font-weight: 800; }
.optionsliste .ja { color: var(--gruen); }
.optionsliste .nein { color: var(--rot); }
.merksatz { background: var(--petrol-hell); }
.merksatz p { font-weight: 700; color: var(--petrol); }
.falle { background: var(--gelb-hell); }
.normen { display: flex; flex-wrap: wrap; gap: 8px; }
.gesetzestext { margin-top: 12px; border-left: 3px solid var(--petrol); padding: 4px 0 4px 14px; font-size: 14.5px; }
.gesetzestext h5 { margin: 0 0 6px; font-size: 14px; }
.gesetzestext p { margin: 0 0 8px; color: var(--text-leise); }
.gesetzestext p.treffer { color: var(--text); background: var(--gelb-hell); border-radius: 6px; padding: 4px 6px; margin-left: -6px; }
.gesetzestext .quelle { font-size: 12px; color: var(--text-leise); }

/* Simulation */
.uhr { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 18px; background: var(--flaeche); border: 1px solid var(--linie); padding: 6px 12px; border-radius: 10px; }
.uhr.knapp { color: var(--rot); border-color: var(--rot); }
.ergebnisliste { display: grid; gap: 10px; }
.ergebniszeile { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.punkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.uebersicht-fragen { display: flex; flex-wrap: wrap; gap: 6px; }
.uebersicht-fragen button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--linie); background: var(--flaeche); font-weight: 700; font-size: 13px; color: var(--text); }
.uebersicht-fragen button.ok { background: var(--gruen-hell); border-color: var(--gruen); color: var(--gruen); }
.uebersicht-fragen button.nein { background: var(--rot-hell); border-color: var(--rot); color: var(--rot); }
.uebersicht-fragen button.offen { background: var(--petrol-hell); }
.uebersicht-fragen button.jetzt { outline: 2px solid var(--tinte); }
.stempel { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; padding: 10px 18px; border-radius: 14px; }
.stempel.ok { background: var(--gruen-hell); color: var(--gruen); }
.stempel.nein { background: var(--rot-hell); color: var(--rot); }

/* Mündlich */
.pruefraum { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
@media (max-width: 980px) { .pruefraum { grid-template-columns: 1fr; } }
.ausschuss { background: #10232a; color: #fff; border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.ausschuss .kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pruefer-reihe { display: flex; gap: 14px; align-items: flex-end; justify-content: center; padding: 8px 0 4px; }
.pruefer { width: 64px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: #b9cacd; }
.pruefer .kopfkreis { width: 54px; height: 54px; border-radius: 50%; background: #1d3a43; display: grid; place-items: center; font-size: 22px; transition: box-shadow .2s, transform .2s; }
.pruefer.spricht .kopfkreis { box-shadow: 0 0 0 4px var(--koralle); transform: scale(1.06); }
.pruefer.mitte .kopfkreis { width: 66px; height: 66px; }
.sprechblase { background: rgba(255,255,255,.08); border-radius: 16px; padding: 16px 18px; font-size: 17px; line-height: 1.55; }
.sprechblase .wer { display: block; font-size: 12px; color: #b9cacd; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.verlauf { display: flex; flex-direction: column; gap: 10px; max-height: 280px; overflow: auto; }
.verlauf .ich { align-self: flex-end; background: var(--petrol); color: #fff; border-radius: 14px 14px 4px 14px; padding: 10px 14px; max-width: 85%; font-size: 15px; }
.verlauf .er { align-self: flex-start; background: rgba(255,255,255,.08); border-radius: 14px 14px 14px 4px; padding: 10px 14px; max-width: 85%; font-size: 15px; }
.antwortfeld { background: rgba(255,255,255,.06); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.antwortfeld textarea { width: 100%; min-height: 110px; resize: vertical; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.2); color: #fff; font: inherit; padding: 10px 12px; }
.antwortfeld .zeile { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mikro { width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--koralle); color: #fff; font-size: 26px; display: grid; place-items: center; flex: none; }
.mikro.an { animation: puls 1.2s infinite; background: var(--rot); }
@keyframes puls { 0% { box-shadow: 0 0 0 0 rgba(242,118,90,.6); } 100% { box-shadow: 0 0 0 18px rgba(242,118,90,0); } }
.ausschuss .knopf.leise { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.15); }
.ausschuss .knopf { background: #fff; color: #10232a; }
.ausschuss .knopf.akzent { background: var(--koralle); color: #fff; }
.statusleiste { font-size: 13px; color: #b9cacd; }
.baustein { display: grid; grid-template-columns: 24px 1fr; gap: 8px; padding: 8px 0; border-top: 1px solid var(--linie); font-size: 14.5px; }
.baustein:first-child { border-top: 0; }
.baustein .zeichen { font-weight: 800; }
.baustein .soll { color: var(--text-leise); font-size: 13.5px; }
.fallliste .fall { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--text); padding: 14px 4px; border-top: 1px solid var(--linie); }
.fallliste .fall:first-child { border-top: 0; }
.sterne { color: var(--koralle); letter-spacing: 2px; font-size: 13px; white-space: nowrap; }
.kopfhinweis { font-size: 13px; padding: 10px 14px; border-radius: 10px; background: var(--gelb-hell); }

/* Gesetze */
.suche { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--linie); background: var(--flaeche); color: var(--text); font: inherit; font-size: 16px; }
.paragraf { margin-bottom: 12px; }
.paragraf summary { cursor: pointer; font-weight: 700; }
.paragraf p { margin: 8px 0 0; font-size: 15px; color: var(--text-leise); }

/* Community */
.vorschau-band { background: var(--koralle-hell); color: var(--koralle); font-weight: 700; padding: 10px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 14px; }
.person { display: flex; gap: 12px; align-items: center; }
.person .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--petrol-hell); color: var(--petrol); display: grid; place-items: center; font-weight: 800; flex: none; }
.kanal { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--linie); font-size: 15px; }
.kanal:first-child { border-top: 0; }
.zur-website { font-size: 13px; color: var(--text-leise); text-decoration: none; padding: 0 8px; }
.zur-website:hover { color: var(--petrol); }
@media (max-width: 600px) {
  .option { flex-wrap: wrap; }
  .option .etikett { order: -1; flex-basis: 100%; margin: 0 0 -4px 36px; }
}
.option > span:not(.marker):not(.etikett) { flex: 1 1 0; min-width: 0; }
/* Konto */
.konto-box { border-top: 1px solid var(--linie); padding-top: 14px; }
.konto-zeile { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--text); font-size: 13px; line-height: 1.35; }
.konto-zeile b { font-size: 13px; word-break: break-all; }
.avatar-klein { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--petrol-hell); color: var(--petrol); display: grid; place-items: center; font-weight: 800; }
.zugang-komplett { color: var(--gruen); font-weight: 700; }
.zugang-schriftlich { color: var(--petrol); font-weight: 700; }
.zugang-gratis, .zugang-gast { color: var(--text-leise); }
.freischalten { display: flex; gap: 16px; align-items: flex-start; max-width: 640px; }
.freischalten .schloss { font-size: 28px; }
.paket { position: relative; }
.paket.hervor { border: 2px solid var(--koralle); }
.paket .preis { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 8px; }
.paket .preis span { font-size: 14px; font-weight: 600; color: var(--text-leise); letter-spacing: 0; }
@media (max-width: 860px) { .konto-box { display: none; } }
/* Lektion */
.lektion { max-width: 820px; }
.lektion-einstieg { font-size: 18px; line-height: 1.6; color: var(--text-leise); margin: 0 0 18px; }
.lektion-abschnitt { margin-bottom: 14px; }
.lektion-abschnitt h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.lektion-abschnitt p { margin: 0 0 10px; line-height: 1.65; }
.lektion-abschnitt ul { margin: 4px 0 10px; padding-left: 20px; line-height: 1.6; }
.lektion-abschnitt li { margin-bottom: 4px; }
.abschnitt-nr { width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--petrol-hell); color: var(--petrol); display: grid; place-items: center; font-size: 14px; font-weight: 800; }
.lektion-tabelle { min-width: 0; font-size: 14px; }
.lektion-tabelle td, .lektion-tabelle th { padding: 10px 12px; }
.lektion-tabelle td:first-child { font-weight: 700; }
.lektion-ende { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; background: var(--petrol-hell); border-color: transparent; }
.tabelle-rahmen { overflow-x: auto; }
.vergleich { width: 100%; border-collapse: collapse; }
.vergleich th, .vergleich td { text-align: left; border-bottom: 1px solid var(--linie); }
.vergleich th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-leise); }

/* Community */
[hidden] { display: none !important; }
.com-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.com-form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.com-form .breit { grid-column: 1 / -1; }
.com-form input:not([type=checkbox]), .com-form textarea, .com-anfrage textarea, .admin-suche, .admin-paket select, .admin-paket input { font: inherit; font-weight: 400; color: var(--text); background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; padding: 9px 11px; width: 100%; box-sizing: border-box; }
.com-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.com-form legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.com-form .chip-wahl { flex-direction: row; align-items: center; gap: 6px; font-weight: 500; border: 1px solid var(--linie); border-radius: 99px; padding: 6px 12px; }
.com-form .schalter { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; background: var(--grund); border-radius: 12px; padding: 12px; }
.com-form .schalter input { margin-top: 3px; }
.com-person { padding: 12px 0; border-top: 1px solid var(--linie); align-items: flex-start; }
.karte h3 + .com-person, .karte h4 + .com-person, .karte p + .com-person { border-top: 0; }
.com-knoepfe { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.com-nachricht { margin: 6px 0 0; font-size: 14px; color: var(--text-leise); }
.com-treffer { font-size: 12px; font-weight: 700; color: var(--gruen); }
.com-anfrage { display: flex; gap: 8px; margin-top: 8px; align-items: flex-end; }
.com-eingang { border-color: var(--koralle); margin-top: 0; }
@media (max-width: 640px) { .com-form { grid-template-columns: 1fr; } .com-person { flex-wrap: wrap; } .com-anfrage { flex-direction: column; align-items: stretch; } }

/* Admin */
.admin-zahlen { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.admin-zahl { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.admin-zahl b { font-size: 24px; }
.admin-zahl span { font-size: 13px; color: var(--text-leise); }
.admin-suche { max-width: 260px; }
.tabelle-rahmen { overflow-x: auto; }
.admin-tabelle { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-tabelle th { text-align: left; font-size: 12px; color: var(--text-leise); font-weight: 700; padding: 8px; border-bottom: 1px solid var(--linie); white-space: nowrap; }
.admin-tabelle td { padding: 10px 8px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.admin-paket { display: flex; gap: 6px; align-items: center; min-width: 260px; }
.admin-paket select { width: auto; }
.admin-paket input { width: 64px; }
#inhalt { min-width: 0; }
.admin-tabelle { min-width: 760px; }
.mehr-liste { display: grid; gap: 10px; }
.mehr-eintrag { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--text); padding: 14px 16px; }
.mehr-eintrag .ico { font-size: 20px; width: 28px; text-align: center; }
.mehr-eintrag .leise { font-size: 13px; }
.mobil-mehr { position: relative; }
.mobil-mehr em { position: absolute; top: 2px; right: 18%; font-style: normal; font-size: 10px; font-weight: 800; background: var(--koralle); color: #fff; border-radius: 99px; padding: 0 5px; }

/* Mini-Player (Hörmodus) – feste Leiste unten auf Handy und Tablet */
.miniplayer { display: none; }
.fall.laeuft { background: var(--petrol-hell); }
.fall.laeuft b { color: var(--petrol); }
@media (max-width: 979px) {
  #player { position: static !important; }
  .miniplayer { display: flex; align-items: center; gap: 4px; position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 30;
    background: var(--tinte); color: var(--flaeche); border-radius: 16px; padding: 10px 8px 8px 14px; box-shadow: 0 8px 28px rgba(0,0,0,.25); overflow: hidden; }
  .mini-balken { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgba(255,255,255,.15); }
  .mini-balken i { display: block; height: 100%; background: var(--koralle); transition: width .3s; }
  .mini-info { flex: 1; min-width: 0; text-align: left; background: none; border: 0; color: inherit; padding: 0; font: inherit; cursor: pointer; }
  .mini-info b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mini-info span { display: block; font-size: 12px; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mini-knopf { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: inherit; font-size: 16px; cursor: pointer; display: grid; place-items: center; }
  .mini-play { background: var(--koralle); color: #fff; width: 44px; height: 44px; font-size: 15px; }
  .mini-zu { opacity: .6; font-size: 15px; }
  body.mit-miniplayer main { padding-bottom: 170px; }
}
@media (max-width: 860px) {
  .miniplayer { bottom: calc(66px + env(safe-area-inset-bottom)); }
}
:root[data-theme="dark"] .miniplayer, :root:not([data-theme="light"]) .miniplayer { color-scheme: dark; }

/* Posteingang (Admin) */
.post-raster { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 16px; align-items: start; }
.post-liste { padding: 6px; max-height: 75vh; overflow: auto; }
.post-filter { display: flex; gap: 4px; padding: 6px 6px 10px; }
.post-filter button { font: inherit; font-size: 13px; font-weight: 600; border: 0; background: none; color: var(--text-leise); padding: 6px 10px; border-radius: 99px; cursor: pointer; }
.post-filter button.aktiv { background: var(--flaeche-2, rgba(29, 111, 122, .1)); color: var(--text); }
.post-filter span { opacity: .7; font-weight: 400; }
.post-zeile { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 12px; border-radius: 12px; color: var(--text); text-decoration: none; font-size: 14px; }
.post-zeile:hover { background: rgba(29, 111, 122, .06); }
.post-zeile.aktiv { background: rgba(29, 111, 122, .12); }
.post-zeile.ungelesen .post-von, .post-zeile.ungelesen .post-betreff { font-weight: 800; }
.post-zeile.ungelesen .post-von::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--koralle); margin-right: 6px; vertical-align: 1px; }
.post-von { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-zeit { font-size: 12px; color: var(--text-leise); white-space: nowrap; }
.post-betreff { grid-column: 1 / -1; color: var(--text-leise); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-marke { font-size: 11px; font-weight: 700; background: rgba(46, 158, 107, .14); color: var(--gruen); padding: 1px 6px; border-radius: 99px; }
.post-detail { min-width: 0; }
.post-leer { display: grid; place-items: center; min-height: 200px; }
.post-knoepfe { display: flex; gap: 6px; flex-wrap: wrap; }
.post-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.55; }
.post-antwort { margin-top: 16px; padding: 12px 14px; border-left: 3px solid var(--gruen); background: rgba(46, 158, 107, .06); border-radius: 0 10px 10px 0; }
.post-schreiben { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--linie); display: grid; gap: 8px; }
.post-schreiben textarea { font: inherit; color: var(--text); background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 11px 13px; width: 100%; box-sizing: border-box; resize: vertical; }
.post-zurueck { display: none; }
@media (max-width: 860px) {
  .post-raster { grid-template-columns: 1fr; }
  .post-raster.mit-mail .post-liste { display: none; }
  .post-raster.mit-mail .post-zurueck { display: block; }
  .post-raster:not(.mit-mail) .post-leer { display: none; }
}
