:root {
  --petrol: #0E3C4B;
  --ozean: #1B7895;
  --ozean-dunkel: #155A70;
  --eis: #D6E7EC;
  --eis-hell: #EEF5F7;
  --oliv: #6C8B19;
  --weiss: #FFFFFF;
  --flaeche: #FFFFFF;
  --eis-fest: #D6E7EC;
  --grund: #FFFFFF;
  --akzent-text: #0E3C4B;
  --text: #0E3C4B;
  --leise: #4A6B76;
  --linie: #D6E7EC;
  --fehler: #9B2C2C;
  --serif: "Times New Roman", Times, Georgia, serif;
  --sans: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  --oben: env(safe-area-inset-top, 0px);
  --unten: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--grund); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--ozean); }
:focus-visible { outline: 3px solid var(--ozean); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.15; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Laden */
.laden { min-height: 100vh; display: grid; place-items: center; background: var(--petrol); }
.laden img { animation: atmen 2.4s ease-in-out infinite; }
@keyframes atmen { 50% { opacity: .55; transform: scale(.94); } }

/* Muster-Hintergrund (Markenzeichen): Spiralen, die nach unten weich auslaufen */
.muster { position: relative; background: var(--petrol); color: var(--weiss); overflow: hidden; isolation: isolate; }
.muster::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(/img/pattern-ozean.png) 0 0 / 420px auto repeat;
  opacity: .55; -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.35) 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.35) 55%, transparent 100%); }

/* Anmeldung */
.tor { min-height: 100vh; display: flex; flex-direction: column; padding: calc(var(--oben) + 40px) 22px calc(var(--unten) + 28px); }
.tor-kopf { text-align: center; margin-bottom: 28px; }
.tor-kopf img { width: 64px; height: auto; }
.tor-kopf h1 { font-size: 34px; margin-top: 14px; }
.tor-kopf p { margin: 8px auto 0; color: var(--eis-fest); max-width: 30ch; }
.blatt { background: var(--flaeche); color: var(--text); border-radius: 22px; padding: 26px 22px; width: 100%; max-width: 420px; margin: 0 auto; box-shadow: 0 18px 40px rgba(4, 25, 32, .28); }
.blatt h2 { font-size: 26px; margin-bottom: 6px; }
.blatt .hinweis { color: var(--leise); margin: 0 0 18px; font-size: 15px; }
.feld { display: block; margin-bottom: 14px; }
.feld span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.feld input, .feld textarea, .feld select { width: 100%; border: 1.5px solid var(--eis); border-radius: 12px; padding: 12px 14px; font-size: 16px; background: var(--flaeche); }
.feld textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.feld input:focus, .feld textarea:focus, .feld select:focus { outline: none; border-color: var(--ozean); box-shadow: 0 0 0 3px rgba(27, 120, 149, .18); }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; border: 0; border-radius: 14px; padding: 12px 18px; background: var(--ozean); color: var(--weiss); font-weight: 600; font-size: 16px; cursor: pointer; text-decoration: none; }
.knopf:hover { background: var(--ozean-dunkel); }
.knopf[disabled] { opacity: .6; cursor: wait; }
.knopf.zweit { background: transparent; color: var(--ozean); border: 1.5px solid var(--eis); }
.knopf.zweit:hover { background: var(--eis-hell); }
.knopf.klein { width: auto; min-height: 40px; padding: 8px 14px; font-size: 15px; border-radius: 12px; }
.textlink { background: none; border: 0; color: var(--ozean); font-weight: 600; padding: 6px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tor-fuss { text-align: center; margin-top: 18px; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.meldung { border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: 15px; background: var(--eis-hell); }
.meldung.fehler { background: #FBEDED; color: var(--fehler); }
.meldung.gut { background: #EEF3E3; color: #3E5410; }

/* App-Rahmen */
.rahmen { min-height: 100vh; padding-bottom: calc(96px + var(--unten)); }
.kopf { padding: calc(var(--oben) + 26px) 22px 34px; }
.kopf-innen { max-width: 640px; margin: 0 auto; }
.kopf .gruss { font-size: 34px; }
.kopf .unterzeile { color: var(--eis-fest); margin: 6px 0 0; }
.kopf.schmal { padding-bottom: 22px; }
.kopf.schmal h1 { font-size: 28px; }
.zurueck svg { width: 20px; height: 20px; }
.zurueck { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--eis-fest); padding: 0; margin-bottom: 12px; cursor: pointer; font-weight: 600; }
main.inhalt { max-width: 640px; margin: 0 auto; padding: 22px 22px 8px; }
.abschnitt { margin-bottom: 30px; }
.abschnitt > h2 { font-size: 24px; margin-bottom: 4px; }
.abschnitt > p.leise { margin: 0 0 12px; color: var(--leise); font-size: 15px; }

/* Listen */
.liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.zeile { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 14px 14px; border: 1.5px solid var(--eis); border-radius: 16px; width: 100%; background: var(--flaeche); text-align: left; cursor: pointer; text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(14, 60, 75, .06); transition: background .15s, border-color .15s; }
.zeile:hover { background: var(--eis-hell); border-color: var(--ozean); }
.zeile .sym { width: 48px; height: 48px; border-radius: 50%; background: var(--eis); display: grid; place-items: center; color: var(--petrol); }
.zeile .sym svg { width: 24px; height: 24px; }
.zeile .titel { font-family: var(--serif); font-size: 20px; display: block; line-height: 1.2; }
.zeile .unter { display: block; font-size: 14px; color: var(--leise); margin-top: 2px; }
.zeile .ende { font-size: 14px; color: var(--leise); display: flex; align-items: center; gap: 4px; }
.zeile .ende svg { width: 18px; height: 18px; }
.zeile .preis { color: var(--oliv); font-weight: 700; }
.zeile.bald { cursor: default; }
.zeile.bald:hover { background: var(--flaeche); border-color: var(--eis-fest); }
.marke { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 9px; background: var(--eis-hell); color: var(--leise); }
.marke.oliv { background: #EEF3E3; color: #4C6311; }
.leer { padding: 18px; border-radius: 16px; background: var(--eis-hell); color: var(--leise); }

/* Impulskarten */
.karte-buehne { perspective: 1600px; position: relative; padding: 8px 6px 16px; }
.karte-buehne::before, .karte-buehne::after { content: ""; position: absolute; inset: 18px 14px 8px; border-radius: 26px; background: var(--eis); transform: rotate(-3.2deg); z-index: 0; }
.karte-buehne::after { background: var(--ozean); opacity: .22; transform: rotate(2.6deg); }
.karte { position: relative; z-index: 1; display: grid; min-height: 440px; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.karte.offen { transform: rotateY(180deg); }
.karte.weg { animation: wegziehen .45s ease-in forwards; }
@keyframes wegziehen { to { transform: translateX(115%) rotate(14deg); opacity: 0; } }
.karte-seite { grid-area: 1 / 1; position: relative; border-radius: 26px; padding: 28px 26px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.karte-rueck { background: radial-gradient(120% 90% at 50% 0%, #1B7895 0%, #0E3C4B 62%); color: #fff; align-items: center; justify-content: center; text-align: center; box-shadow: 0 18px 40px rgba(14, 60, 75, .30); }
.karte-rueck::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(/img/pattern-ozean.png) center / 260px auto repeat; opacity: .5; }
.karte-rueck::after { content: ""; position: absolute; inset: 14px; border: 1.5px solid rgba(214, 231, 236, .35); border-radius: 18px; z-index: -1; pointer-events: none; }
.karte-label { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--eis-fest); margin-bottom: 18px; }
.karte-rueck img { width: 86px; height: auto; margin-bottom: 18px; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .25)); }
.karte-rueck p { margin: 0 0 22px; color: var(--eis-fest); }
.karte-vorn { background: var(--flaeche); transform: rotateY(180deg); border: 1px solid var(--eis); box-shadow: 0 18px 40px rgba(14, 60, 75, .16); }
.karte-vorn::after { content: ""; position: absolute; right: -50px; bottom: -50px; width: 240px; height: 240px; z-index: -1; background: url(/img/pattern-hell.png) center / 240px auto;
  -webkit-mask-image: radial-gradient(circle at 70% 70%, #000 0%, transparent 70%); mask-image: radial-gradient(circle at 70% 70%, #000 0%, transparent 70%); }
.karte-kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.karte-nr { font-size: 12px; font-weight: 700; color: var(--ozean); background: var(--eis-hell); border-radius: 999px; padding: 5px 11px; }
.karte-kopf img { width: 30px; height: auto; }
.karte-vorn h3 { font-size: 32px; line-height: 1.12; margin-bottom: 14px; color: var(--text); }
.karte-text { margin: 0 0 18px; font-size: 17px; line-height: 1.6; }
.karte-frage { margin-top: auto; position: relative; background: var(--eis-hell); border-radius: 18px; padding: 18px 18px 18px 50px; }
.karte-frage .zitat { position: absolute; left: 14px; top: 4px; font-family: var(--serif); font-size: 60px; line-height: 1; color: var(--oliv); }
.karte-frage p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.4; color: var(--text); }
.karte-aktionen { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.karte-aktionen .knopf { width: auto; flex: 1 1 160px; }
.karte-aktionen .fav-knopf { flex: 0 0 auto; width: 54px; padding: 0; }
.karte-aktionen .fav-knopf svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.karte-aktionen .fav-knopf[aria-pressed="true"] { color: var(--oliv); border-color: var(--oliv); }
.karte-aktionen .fav-knopf[aria-pressed="true"] svg { fill: var(--oliv); }
.karten-gitter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mini-karte { text-align: left; border: 1.5px solid var(--eis); background: var(--flaeche); border-radius: 16px; padding: 12px 12px 14px; cursor: pointer; min-height: 88px; display: flex; flex-direction: column; gap: 6px; color: var(--text); font: inherit; }
.mini-karte:hover { border-color: var(--ozean); background: var(--eis-hell); }
.mini-karte .nr { font-size: 11px; font-weight: 700; color: var(--ozean); }
.mini-karte .t { font-family: var(--serif); font-size: 17px; line-height: 1.2; }
.mini-karte.fav { border-color: var(--oliv); }
html[data-modus="dunkel"] .karte-kopf img { filter: brightness(0) invert(1); opacity: .8; }
html[data-modus="dunkel"] .karte-nr, html[data-modus="dunkel"] .mini-karte .nr { color: #7FC3D8; }

/* Wochen-Reset */
.fortschritt { display: flex; gap: 6px; margin: 4px 0 20px; }
.fortschritt i { flex: 1; height: 5px; border-radius: 3px; background: var(--eis); }
.fortschritt i.an { background: var(--oliv); }
.schritt h2 { font-size: 28px; margin-bottom: 6px; }
.schritt .hinweis { color: var(--leise); margin: 0 0 18px; }
.skala { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.skala button { min-width: 0; padding: 0; aspect-ratio: 1; border-radius: 10px; border: 1.5px solid var(--eis); background: var(--flaeche); font-weight: 600; cursor: pointer; }
.skala button[aria-pressed="true"] { background: var(--petrol); color: var(--weiss); border-color: var(--petrol); }
.schritt-nav { display: flex; gap: 10px; margin-top: 22px; }
.schritt-nav .knopf { flex: 1; }
.rueckschau { border-radius: 18px; background: var(--eis-hell); padding: 20px; }
.rueckschau h3 { font-size: 20px; margin: 16px 0 4px; }
.rueckschau h3:first-child { margin-top: 0; }
.rueckschau p { margin: 0; white-space: pre-wrap; }

/* Profil */
.angaben { margin: 0 0 20px; }
.angaben div { padding: 12px 0; border-bottom: 1px solid var(--linie); }
.angaben dt { font-size: 13px; color: var(--leise); }
.angaben dd { margin: 0; font-weight: 600; word-break: break-word; }
.stapel { display: flex; flex-direction: column; gap: 10px; }
.anleitung { border-radius: 16px; background: var(--eis-hell); padding: 16px 18px; margin-bottom: 18px; }
.anleitung h3 { font-size: 20px; margin-bottom: 6px; }
.anleitung ol { margin: 0; padding-left: 20px; }

/* Verwaltung */
.tabelle { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabelle th, .tabelle td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle th { font-weight: 600; color: var(--leise); }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: var(--eis-hell); padding: 10px; border-radius: 10px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
details summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Leiste unten: schwebende Glas-Leiste */
.leiste { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(6px, calc(var(--unten) - 12px)); width: calc(100% - 24px); max-width: 520px; z-index: 10;
  background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .7); border-radius: 999px; box-shadow: 0 10px 34px rgba(14, 60, 75, .20), inset 0 1px 0 rgba(255, 255, 255, .8); padding: 6px; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .leiste { background: rgba(255, 255, 255, .96); } }
.leiste nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.leiste a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 8px; border-radius: 999px; text-decoration: none; color: var(--leise); font-size: 11.5px; font-weight: 600; transition: background .25s, color .25s; }
.leiste a svg { width: 25px; height: 25px; stroke-width: 1.8; }
.leiste a:hover { color: var(--petrol); }
.leiste a[aria-current="page"] { color: var(--petrol); background: rgba(14, 60, 75, .09); box-shadow: inset 0 0 0 1px rgba(14, 60, 75, .06); }
.leiste a[aria-current="page"] svg { stroke-width: 2.2; }

#toast { position: fixed; left: 50%; bottom: calc(92px + var(--unten)); transform: translateX(-50%) translateY(20px); background: var(--petrol); color: var(--weiss); padding: 12px 18px; border-radius: 14px; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: 90vw; z-index: 20; }
#toast.sichtbar { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .karte { transition: none; }
  .laden img { animation: none; }
  #toast { transition: none; }
}
@media (min-width: 700px) {
  .kopf { padding-top: calc(var(--oben) + 40px); }
  .kopf .gruss { font-size: 42px; }
}

/* Kontakt */
.kontakt { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 6px; }
.kontakt a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--text); font-size: 12px; font-weight: 600; text-align: center; }
.kontakt .rund { width: 54px; height: 54px; border-radius: 50%; background: var(--petrol); color: var(--weiss); display: grid; place-items: center; transition: background .2s; }
.kontakt a:hover .rund { background: var(--ozean); }
.kontakt .rund svg { width: 24px; height: 24px; }

/* Termine */
.termin-karte { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; border-radius: 18px; background: var(--eis-hell); border: 1px solid var(--eis); padding: 16px; }
.termin-karte .sym { width: 48px; height: 48px; border-radius: 50%; background: var(--petrol); color: var(--weiss); display: grid; place-items: center; }
.termin-karte .sym svg { width: 24px; height: 24px; }
.termin-art { display: block; font-family: var(--serif); font-weight: 400; font-size: 20px; }
.termin-zeit { display: block; font-weight: 600; margin-top: 2px; }
.termin-notiz { display: block; color: var(--leise); font-size: 14px; margin-top: 4px; white-space: pre-wrap; }
.termin-karte .karte-aktionen .knopf { flex: 0 1 auto; }
.calendly-box { height: 720px; border-radius: 16px; overflow: hidden; border: 1px solid var(--eis); background: var(--flaeche); }
.calendly-box iframe { width: 100%; height: 100%; border: 0; }

/* Abend-Journal */
.monate { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.monat-karte { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 12px 10px; border-radius: 14px; border: 1.5px solid var(--eis); background: var(--flaeche); cursor: pointer; text-decoration: none; color: var(--text); min-height: 96px; }
.monat-karte.aktiv { border-color: var(--petrol); background: var(--petrol); color: var(--weiss); }
.monat-karte.gesperrt { background: var(--eis-hell); border-style: dashed; }
.monat-nr { font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.monat-titel { font-family: var(--serif); font-size: 17px; line-height: 1.15; }
.monat-status { font-size: 12px; margin-top: auto; padding-top: 6px; opacity: .85; }
.monat-karte.gesperrt .monat-status { color: var(--oliv); font-weight: 700; opacity: 1; }
.hinweis-karte { border-radius: 16px; background: #EEF3E3; border: 1px solid #D5E2B8; padding: 14px 16px; margin-bottom: 18px; }
.hinweis-karte p { margin: 0 0 10px; color: #33450C; }
.hinweis-karte .knopf { background: var(--oliv); }
.hinweis-karte .knopf:hover { background: #56700F; }
.reiter { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--eis-hell); border-radius: 14px; padding: 4px; margin-bottom: 20px; }
.reiter button { border: 0; background: none; padding: 10px 6px; border-radius: 10px; font-weight: 600; cursor: pointer; color: var(--leise); }
.reiter button[aria-selected="true"] { background: var(--flaeche); color: var(--petrol); box-shadow: 0 1px 4px rgba(14, 60, 75, .12); }
.abend-kopf { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; text-align: center; margin-bottom: 14px; }
.abend-nr { display: block; font-family: var(--serif); font-size: 24px; }
.abend-datum { display: block; font-size: 14px; color: var(--leise); }
.pfeil { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--eis); background: var(--flaeche); font-size: 24px; line-height: 1; cursor: pointer; color: var(--petrol); }
.pfeil[disabled] { opacity: .3; cursor: default; }
.impuls-karte { position: relative; overflow: hidden; isolation: isolate; background: var(--petrol); color: var(--weiss); border-radius: 20px; padding: 22px; margin-bottom: 26px; }
.impuls-karte::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(/img/pattern-ozean.png) center / 300px auto repeat; opacity: .35; }
.impuls-karte .nr { font-size: 13px; color: var(--eis-fest); }
.impuls-karte h3 { font-size: 26px; margin: 6px 0 10px; }
.impuls-karte p { margin: 0; font-size: 17px; line-height: 1.6; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--eis); background: var(--flaeche); border-radius: 999px; padding: 8px 14px; font-size: 15px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--petrol); border-color: var(--petrol); color: var(--weiss); }
.uebung { border: 1px solid var(--eis); border-radius: 14px; padding: 4px 14px; margin-bottom: 10px; background: var(--flaeche); }
.uebung summary { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 8px 0; list-style: none; cursor: pointer; }
.uebung summary::-webkit-details-marker { display: none; }
.uebung-name { font-family: var(--serif); font-size: 19px; }
.uebung-meta { font-size: 13px; color: var(--leise); white-space: nowrap; }
.uebung ol { margin: 0 0 12px; padding-left: 20px; }
.uebung li { margin-bottom: 4px; }
.haken { display: flex; align-items: center; gap: 8px; font-weight: 600; padding: 4px 0 12px; }
.haken input { width: 20px; height: 20px; accent-color: var(--oliv); }

/* Verlauf */
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; margin-bottom: 22px; }
.kennzahlen div { background: var(--eis-hell); border-radius: 14px; padding: 12px; text-align: center; }
.kennzahlen strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 28px; }
.kennzahlen span { font-size: 13px; color: var(--leise); }
.diagramm { margin: 0; }
.diagramm svg { width: 100%; height: auto; display: block; }
.legende { display: flex; gap: 16px; font-size: 13px; color: var(--leise); margin-top: 6px; }
.legende i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.balken { display: flex; flex-direction: column; gap: 8px; }
.balken-zeile { display: grid; grid-template-columns: 110px 1fr 28px; gap: 10px; align-items: center; font-size: 14px; }
.balken-spur { background: var(--eis-hell); border-radius: 6px; height: 12px; overflow: hidden; }
.balken-spur i { display: block; height: 100%; border-radius: 6px; }
.balken-zeile b { text-align: right; }
.termin-hinweis { margin: 12px 0 0; font-size: 13px; font-weight: 600; color: var(--leise); }

.fav { width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--leise); padding: 0; }
.fav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.fav[aria-pressed="true"] { color: var(--oliv); }
.fav[aria-pressed="true"] svg { fill: var(--oliv); }
.fav:hover { background: var(--eis-hell); }

.termin-tipp { font-size: 12px; color: var(--leise); margin: 8px 0 0; }

/* Logo oben */
.kopf-innen { position: relative; }
.kopf-logo { position: absolute; top: 0; right: 0; width: 40px; height: auto; opacity: .95; }
.kopf.schmal .kopf-logo { width: 32px; }
.kopf .gruss, .kopf.schmal h1 { padding-right: 52px; }

/* Passwort anzeigen */
.pw-feld { position: relative; display: block; }
.pw-feld input { padding-right: 52px; }
.pw-zeigen { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: var(--leise); cursor: pointer; display: grid; place-items: center; border-radius: 10px; }
.pw-zeigen svg { width: 22px; height: 22px; }
.pw-zeigen:hover { background: var(--eis-hell); }

/* Schalter */
.schalter { display: flex; align-items: center; gap: 12px; font-weight: 600; cursor: pointer; }
.schalter input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.schalter-bahn { width: 52px; height: 30px; border-radius: 15px; background: var(--eis); position: relative; transition: background .2s; flex: none; }
.schalter-bahn::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.schalter input:checked + .schalter-bahn { background: var(--oliv); }
.schalter input:checked + .schalter-bahn::after { transform: translateX(22px); }
.schalter input:focus-visible + .schalter-bahn { outline: 3px solid var(--ozean); outline-offset: 2px; }

/* Inhalte als Kacheln: oben Symbol, darunter Titel und Beschreibung */
.liste.kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.liste.kacheln li { display: flex; }
.liste.kacheln .zeile { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 14px 14px; height: 100%; }
.liste.kacheln .zeile .sym { width: 52px; height: 52px; background: var(--petrol); color: var(--weiss); }
.liste.kacheln .zeile .sym svg { width: 26px; height: 26px; }
.liste.kacheln .zeile .titel { font-size: 19px; }
.liste.kacheln .zeile .unter { font-size: 13px; line-height: 1.45; margin-top: 4px; }
.liste.kacheln .zeile .ende { margin-top: auto; width: 100%; justify-content: flex-end; padding-top: 4px; font-weight: 600; color: var(--ozean); }
.liste.kacheln .zeile.bald .sym { background: var(--eis); color: var(--petrol); }
@media (min-width: 640px) { .liste.kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.erinnerung { border: 1.5px solid var(--eis); border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.erinnerung h3 { font-size: 20px; margin-bottom: 4px; }
.erinnerung .leise { color: var(--leise); font-size: 14px; margin: 0 0 12px; }

.safari-hinweis { background: #FFF6E5; border: 1.5px solid #F0C46B; color: #5A3E00; border-radius: 16px; padding: 14px 16px; margin: 0 auto 18px; max-width: 420px; text-align: left; }
.safari-hinweis strong { display: block; font-size: 16px; margin-bottom: 4px; }
.safari-hinweis p { margin: 0 0 10px; font-size: 14px; color: #5A3E00; }
.safari-hinweis p.klein { margin: 10px 0 0; font-size: 13px; }
.safari-hinweis .knopf { background: #8A5A00; }
.pdf-knopf { display: grid; grid-template-columns: 48px 1fr 22px; gap: 14px; align-items: center; padding: 14px; border: 1.5px solid var(--eis); border-radius: 16px; text-decoration: none; color: inherit; margin-bottom: 20px; background: var(--flaeche); box-shadow: 0 2px 8px rgba(14, 60, 75, .06); }
.pdf-knopf:hover { border-color: var(--ozean); background: var(--eis-hell); }
.pdf-knopf .sym { width: 48px; height: 48px; border-radius: 50%; background: var(--petrol); color: var(--weiss); display: grid; place-items: center; }
.pdf-knopf .sym svg { width: 24px; height: 24px; }
.pdf-knopf strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 19px; }
.pdf-knopf span span { display: block; font-size: 13px; color: var(--leise); }
.pdf-knopf > svg { width: 20px; height: 20px; color: var(--leise); }

/* ---------- Abendmodus ---------- */
html[data-modus="dunkel"] {
  --flaeche: #123542; --grund: #0B2832; --text: #E4EEF1; --leise: #A3BCC4; --linie: #24505E;
  --eis: #24505E; --eis-hell: #163E4C; --akzent-text: #E4EEF1;
  color-scheme: dark;
}
html[data-modus="dunkel"] .zeile .sym { color: var(--text); }
html[data-modus="dunkel"] .reiter button[aria-selected="true"],
html[data-modus="dunkel"] .pfeil,
html[data-modus="dunkel"] .leiste a[aria-current="page"],
html[data-modus="dunkel"] .leiste a:hover,
html[data-modus="dunkel"] .monat-karte { color: var(--text); }
html[data-modus="dunkel"] .monat-karte.aktiv { background: var(--ozean); border-color: var(--ozean); color: #fff; }
html[data-modus="dunkel"] .leiste { background: rgba(18, 53, 66, .78); border-color: rgba(255, 255, 255, .08); box-shadow: 0 10px 34px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06); }
html[data-modus="dunkel"] .leiste a[aria-current="page"] { background: rgba(255, 255, 255, .12); }
html[data-modus="dunkel"] .knopf.zweit { color: var(--text); border-color: var(--linie); }
html[data-modus="dunkel"] .knopf.zweit:hover { background: var(--eis-hell); }
html[data-modus="dunkel"] .textlink, html[data-modus="dunkel"] a { color: #7FC3D8; }
html[data-modus="dunkel"] .kopf a.textlink { color: var(--eis-fest); }
html[data-modus="dunkel"] .chip[aria-pressed="true"], html[data-modus="dunkel"] .skala button[aria-pressed="true"] { background: var(--ozean); border-color: var(--ozean); color: #fff; }
html[data-modus="dunkel"] .hinweis-karte { background: #24361A; border-color: #3E5A22; }
html[data-modus="dunkel"] .hinweis-karte p { color: #D9E8B8; }
html[data-modus="dunkel"] .meldung.gut { background: #24361A; color: #D9E8B8; }
html[data-modus="dunkel"] .meldung.fehler { background: #4A1F1F; color: #F4C7C7; }
html[data-modus="dunkel"] .safari-hinweis { background: #3D2E0D; border-color: #7A5A1A; color: #F3DFAE; }
html[data-modus="dunkel"] .safari-hinweis p { color: #F3DFAE; }
html[data-modus="dunkel"] #toast { background: #E4EEF1; color: #0B2832; }
html[data-modus="dunkel"] .tabelle th { color: var(--leise); }

/* Einwilligung, Gefahr-Knopf, Rechtstext */
.haken-feld { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14px; margin: 0 0 14px; cursor: pointer; }
.haken-feld input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ozean); }
.knopf.gefahr { background: transparent; color: #9B2C2C; border: 1.5px solid #E7C2C2; }
.knopf.gefahr:hover { background: #FBEDED; }
html[data-modus="dunkel"] .knopf.gefahr { color: #F4C7C7; border-color: #6A3030; }
.rechtstext h2 { font-size: 21px; margin: 22px 0 6px; }
.rechtstext p { margin: 0 0 10px; }
.abschnitt .leise { color: var(--leise); font-size: 14px; }

/* Begrüssung */
.willkommen { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; }
.willkommen-innen { max-width: 360px; text-align: center; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.willkommen-innen h2 { font-size: 32px; }
.willkommen-innen p { margin: 0; color: var(--eis-fest); font-size: 17px; line-height: 1.6; }
.willkommen .punkte { display: flex; gap: 8px; margin: 10px 0; }
.willkommen .punkte i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.willkommen .punkte i.an { background: #fff; width: 22px; border-radius: 4px; }
.willkommen .knopf { width: 220px; }

/* Drucken: Monatsrückblick */
#druck { display: none; }
@media print {
  body.drucken > *:not(#druck) { display: none !important; }
  body.drucken #druck { display: block; color: #0E3C4B; font-family: var(--sans); }
  #druck h1 { font-family: var(--serif); font-size: 26pt; margin: 0 0 4pt; }
  #druck h2 { font-family: var(--serif); font-size: 15pt; margin: 14pt 0 4pt; }
  #druck .abend { break-inside: avoid; border-top: 1px solid #D6E7EC; padding: 6pt 0; font-size: 10.5pt; }
  #druck .kennzahlen div { border: 1px solid #D6E7EC; }
  #druck .kopfzeile { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #0E3C4B; padding-bottom: 8pt; margin-bottom: 10pt; }
  #druck .kopfzeile img { width: 40px; }
}

/* Selbstcheck */
.sc-ueber { display: block; font-size: 13px; font-weight: 700; color: var(--ozean); margin-bottom: 6px; }
.sc-start, .sc-modus, .sc-reset { border-radius: 24px; padding: 26px 22px; color: #fff; }
.sc-start .sc-ueber, .sc-modus .sc-ueber { color: var(--eis-fest); }
.sc-start h2, .sc-modus h2 { color: #fff; font-size: 32px; line-height: 1.15; margin-bottom: 10px; }
.sc-start p, .sc-modus p { color: var(--eis-fest); margin: 0 0 12px; }
.sc-unter { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.4; }
.sc-start .sc-unter, .sc-modus .sc-unter { color: #fff; }
.sc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 18px; }
.sc-meta span { font-size: 13px; background: rgba(255, 255, 255, .14); border-radius: 999px; padding: 5px 12px; }
.sc-start .knopf { width: 100%; }
.sc-letztes { border: 1.5px solid var(--eis); border-radius: 20px; padding: 18px; margin-bottom: 16px; background: var(--flaeche); }
.sc-letztes h2 { font-size: 24px; margin-bottom: 12px; }
.sc-fortschritt { height: 6px; border-radius: 3px; background: var(--eis); overflow: hidden; margin-bottom: 18px; }
.sc-fortschritt i { display: block; height: 100%; background: var(--ozean); border-radius: 3px; transition: width .3s; }
.sc-frage h2 { font-size: 26px; line-height: 1.25; margin-bottom: 18px; }
.sc-antworten { display: flex; flex-direction: column; gap: 10px; }
.sc-antwort { text-align: left; font: inherit; font-size: 16px; line-height: 1.45; color: var(--text); background: var(--flaeche); border: 1.5px solid var(--eis); border-radius: 16px; padding: 14px 16px 14px 48px; cursor: pointer; position: relative; }
.sc-antwort::before { content: ""; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--eis); }
.sc-antwort:hover { border-color: var(--ozean); }
.sc-antwort[aria-checked="true"] { border-color: var(--ozean); background: var(--eis-hell); }
.sc-antwort[aria-checked="true"]::before { border-color: var(--ozean); background: var(--ozean); box-shadow: inset 0 0 0 4px var(--flaeche); }
.sc-hinweis { color: #9B2C2C; font-size: 14px; margin: 12px 0 0; }
.sc-nav { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-top: 20px; }
.sc-kombi { border-top: 1px solid rgba(214, 231, 236, .3); padding-top: 14px; margin-top: 14px; }
.sc-kombi h2 { font-size: 26px; }
.sc-liste { margin: 0; padding-left: 20px; }
.sc-liste li { margin-bottom: 6px; }
.sc-tools { display: flex; flex-direction: column; gap: 12px; }
.sc-tool { border: 1.5px solid var(--eis); border-radius: 18px; padding: 16px 18px; background: var(--flaeche); border-left: 5px solid var(--oliv); }
.sc-tool h3 { font-size: 21px; margin-bottom: 6px; }
.sc-tool p { margin: 0; }
.sc-tool ul { margin: 8px 0 0; padding-left: 20px; }
.sc-abschluss { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.45; margin: 18px 0 0; }
.sc-wunsch { background: var(--eis-hell); border-radius: 20px; padding: 18px 20px; }
.sc-kauf { border: 1.5px solid var(--eis); border-radius: 20px; padding: 20px; background: var(--flaeche); }
.sc-kauf h2 { margin-bottom: 8px; }
.sc-preis { font-family: var(--serif); font-size: 30px; margin: 10px 0; }
.sc-kauf .knopf { width: 100%; }
.sc-klein { font-size: 13px; color: var(--leise); margin: 10px 0 0; }
.sc-uebergang p { margin: 0 0 10px; }
.sc-reset { margin-top: 16px; }
.sc-reset h3 { color: #fff; font-size: 26px; letter-spacing: .04em; margin-bottom: 8px; }
.sc-reset p { color: var(--eis-fest); }
.sc-reset .knopf { width: 100%; }
.sc-verlauf { list-style: none; margin: 0; padding: 0; }
.sc-verlauf li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.sc-verlauf span { color: var(--leise); font-size: 14px; }
.sc-nachdenken { font-family: var(--serif); font-style: italic; font-size: 17px; }

.sc-modus { margin-bottom: 26px; }
.sc-heft-modus { font-size: 21px; margin: 18px 0 4px; }
.sc-alle { margin-top: 18px; border-top: 1px solid var(--linie); padding-top: 12px; }
.sc-alle > summary { font-weight: 600; color: var(--ozean); cursor: pointer; }
.gefuehl-gruppe { display: block; font-size: 12px; font-weight: 700; color: var(--leise); margin: 12px 0 6px; text-transform: none; }
.gefuehl-eigen { margin-top: 12px; }

/* Feierabend im Kopf */
.fik h2 { font-size: 26px; margin-bottom: 4px; }
.fik .leise { color: var(--leise); }
.fik-h3 { font-size: 21px; margin: 22px 0 8px; }
.fik-hint { display: block; font-weight: 400; font-size: 13px; color: var(--leise); margin-top: 2px; }
.fik-panel { background: var(--eis-hell); border-left: 4px solid var(--oliv); border-radius: 16px; padding: 16px 18px; margin: 16px 0; }
.fik-panel h3 { font-size: 20px; margin-bottom: 8px; }
.fik-panel ol { margin: 0; padding-left: 20px; }
.fik-panel p { margin: 0 0 10px; }
.fik-schritte { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.fik-schritt { display: flex; align-items: center; gap: 12px; background: var(--flaeche); border: 1.5px solid var(--eis); border-radius: 14px; padding: 10px 14px; }
.fik-schritt b { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--petrol); color: #fff; display: grid; place-items: center; font: 400 17px var(--serif); }
.fik-schritt div { flex: 1; }
.fik-schritt strong { display: block; font: 400 18px var(--serif); }
.fik-schritt span { font-size: 13px; color: var(--leise); }
.fik-schritt em { font-style: normal; font-weight: 700; color: var(--oliv); font-size: 13px; white-space: nowrap; }
.fik-fortschritt { margin-bottom: 8px; }
.fik-fortschritt > div:first-child { font-size: 14px; color: var(--leise); margin-bottom: 6px; }
.lektion { border: 1.5px solid var(--eis); border-radius: 18px; background: var(--flaeche); margin-bottom: 10px; overflow: hidden; }
.lektion > summary { display: flex; gap: 14px; align-items: center; padding: 14px 16px; cursor: pointer; list-style: none; }
.lektion > summary::-webkit-details-marker { display: none; }
.lektion-nr { flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--eis-hell); color: var(--ozean); display: grid; place-items: center; font-weight: 700; }
.lektion-nr.ok { background: var(--oliv); color: #fff; }
.lektion-titel { display: block; font-size: 12px; font-weight: 700; color: var(--ozean); }
.lektion-unter { display: block; font: 400 19px/1.25 var(--serif); }
.lektion-inhalt { padding: 0 16px 16px; }
.lektion-inhalt p { margin: 12px 0 0; }
.fik-platzhalter { border: 1.5px dashed var(--eis); border-radius: 14px; padding: 18px; text-align: center; color: var(--leise); font-size: 14px; margin-top: 4px; }
.fik-medium { width: 100%; border-radius: 14px; margin-top: 4px; }
.fik-uebungswahl { margin-bottom: 18px; }
.fik-morgen { font-size: 12px; font-weight: 700; color: var(--oliv); letter-spacing: .04em; margin: 20px 0 0; }
.chip.fik-voll[aria-pressed="false"] { background: var(--eis-hell); }
.fik-import { margin-top: 24px; font-size: 14px; }
.fik-import summary { cursor: pointer; color: var(--ozean); font-weight: 600; }

/* ---------- Druckvorlagen ---------- */
@page { size: A4; margin: 14mm 14mm 14mm; }
@media print {
  html, body { background: #fff !important; }
  body.drucken #druck .d-seite { break-after: page; page-break-after: always; }
  body.drucken #druck .d-seite:last-child { break-after: auto; page-break-after: auto; }
}
#druck { -webkit-print-color-adjust: exact; print-color-adjust: exact; font-size: 10.5pt; line-height: 1.45; color: #0E3C4B; }
#druck .d-kopf { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #0E3C4B; padding-bottom: 6pt; margin-bottom: 10pt; }
#druck .d-kopf h1 { font-family: var(--serif); font-weight: 400; font-size: 22pt; margin: 0; color: #0E3C4B; }
#druck .d-kopf p { margin: 2pt 0 0; color: #1B7895; }
#druck .d-kopf img { width: 34px; height: auto; }
#druck h2 { font-family: var(--serif); font-weight: 400; font-size: 15pt; margin: 10pt 0 4pt; color: #0E3C4B; }
#druck .d-feld { margin: 7pt 0; break-inside: avoid; }
#druck .d-feld b { display: block; font-size: 10pt; }
#druck .d-feld small { display: block; color: #4A6B76; font-size: 8.5pt; }
#druck .d-linien i { display: block; height: 7.5mm; border-bottom: 1px solid #B1D1DB; }
#druck .d-skala { display: flex; gap: 2.2mm; margin-top: 3pt; }
#druck .d-skala span { width: 7mm; height: 7mm; border: 1px solid #408EA6; border-radius: 50%; display: grid; place-items: center; font-size: 8pt; }
#druck .d-haken { display: flex; flex-wrap: wrap; gap: 3pt 10pt; margin-top: 3pt; }
#druck .d-haken span { display: inline-flex; align-items: center; gap: 4pt; font-size: 9.5pt; }
#druck .d-haken i { width: 3.4mm; height: 3.4mm; border: 1px solid #408EA6; border-radius: 1mm; display: inline-block; }
#druck .d-box { background: #EEF5F7; border-left: 3px solid #6C8B19; border-radius: 3mm; padding: 6pt 10pt; margin: 8pt 0; break-inside: avoid; }
#druck .d-box p { margin: 3pt 0; }
#druck .d-box ol { margin: 3pt 0; padding-left: 14pt; }
#druck .d-box small { display: block; color: #1B7895; font-size: 8.5pt; }
#druck .d-gross { display: block; font-family: var(--serif); font-weight: 400; font-size: 15pt; }
#druck .d-raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8pt; }
#druck .d-raster.d-zwei { grid-template-columns: 1fr 1fr; }
#druck .d-leise { color: #4A6B76; font-size: 9pt; }
#druck .d-morgen { color: #6C8B19; font-weight: 700; font-size: 8.5pt; letter-spacing: .05em; margin: 10pt 0 0; text-transform: uppercase; }
#druck .d-schritt { break-inside: avoid; }
#druck .d-uebung { margin: 5pt 0; break-inside: avoid; }
#druck .d-uebung ol { margin: 2pt 0 0; padding-left: 14pt; }
#druck .d-tabelle { width: 100%; border-collapse: collapse; font-size: 9pt; }
#druck .d-tabelle th, #druck .d-tabelle td { border: 1px solid #B1D1DB; padding: 5pt 3pt; height: 9mm; text-align: left; }
#druck footer { margin-top: 10pt; font-size: 7.5pt; color: #8BBBC9; }
.druck-hinweis { font-size: 13px; color: var(--leise); margin: 8px 0 0; }

.fik-ergebnis { border: 1.5px solid var(--oliv); background: var(--flaeche); border-radius: 20px; padding: 18px 18px 16px; margin: 0 0 18px; }
.fik-ergebnis h3 { font-size: 22px; margin-bottom: 6px; }
.fik-ergebnis p { margin: 0 0 12px; }
.fik-gesendet { color: var(--oliv); font-weight: 600; font-size: 14px; margin: 10px 0 0 !important; }
.fik-senden { margin-top: 14px; border-top: 1px solid var(--linie); padding-top: 14px; }
.erg-zeile { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.erg-zeile span { display: block; font-size: 13px; color: var(--leise); }
.erg-zeile em { display: block; font-size: 14px; margin-top: 4px; }
.erg-knoepfe { display: flex; gap: 6px; flex: none; }
.pdf-leiste { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 26px 0 6px; padding: 12px 14px; border: 1.5px solid var(--eis); border-radius: 16px; background: var(--eis-hell); }
.pdf-leiste span { font-size: 13px; font-weight: 700; color: var(--leise); margin-right: auto; }
.pdf-leiste .knopf { width: auto; }
.fik-lektion { display: flex; flex-direction: column; gap: 2px; background: var(--eis-hell); border-radius: 14px; padding: 10px 14px; margin: 0 0 16px; }
.fik-lektion span { font-size: 12px; font-weight: 700; color: var(--ozean); }
.fik-lektion strong { font: 400 18px/1.25 var(--serif); }
.fik-lektion .textlink { align-self: flex-start; font-size: 14px; margin-top: 4px; }

/* Hinweis MedienWERKstätte */
.credit { text-align: center; font-size: 12.5px; color: var(--leise); margin: 24px 0 8px; line-height: 1.5; }
.credit a { color: inherit; text-decoration: none; display: inline-flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 10px; }
.credit a:hover span { text-decoration: underline; }
.credit img { width: 120px; height: auto; opacity: .85; transition: opacity .2s; }
.credit a:hover img { opacity: 1; }
.credit-hell { color: var(--eis-fest); opacity: .9; }
html[data-modus="dunkel"] .credit img { filter: brightness(0) invert(1); opacity: .75; }
