/* Skizze: Standard-Design der App im Stil der Startseite. Hell: Papier mit Punktraster, Marker-Schwarz, Königsblau
   und ein gelber Textmarker; dunkel (Schalter, data-thema="dunkel"): Graphit, Elfenbein und Champagner.
   Diese Datei liegt als Ebene über dem Stil aus index.html (seit 27.11.2026 das einzige Design). */

:root {
  --papier: #fbfbf9;
  --bg: var(--papier); --bg-2: #f2f2ee; --bg-3: #e6e6e0;
  --tinte: #121212;
  --linie: rgb(18 18 18 / 0.15); --linie-2: rgb(18 18 18 / 0.45);
  --text: #121212; --text-2: #4f535a; --text-3: #666a71;
  --akzent: #2446c8; --akzent-hover: #1b389f; --akzent-flaeche: rgb(36 70 200 / 0.08); --akzent-text: #2446c8; --auf-akzent: #ffffff;
  --gelb-hauch: rgb(255 233 58 / 0.3); --auf-gelb: #121212; --zettel: #fff2a8;
  --punkt: rgb(24 32 56 / 0.17);
  --schatten: none;
  --schatten-gross: 0 2px 4px rgb(18 18 18 / 0.08), 0 30px 60px -28px rgb(18 18 18 / 0.45);
  --serif: var(--sans);
  /* leicht ungleiche Ecken: wie von Hand, ohne Comic */
  --r-s: 3px 5px 4px 6px / 5px 3px 6px 4px; --r: 4px 7px 5px 8px / 7px 4px 8px 5px;
  --r-l: 4px 7px 5px 8px / 7px 4px 8px 5px; --r-xl: 6px 9px 7px 10px / 9px 6px 10px 7px;

  /* Gezeichnetes: Kasten mit überstehenden Strichen (9-teilig gedehnt), Textmarker, Unterstrich, Kreis, Häkchen */
  --rahmen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M1 5.8L37.8 4.5M35.6 1.2L35.1 38.4M38.6 35.4L2.2 35.9M4.4 38.8L5.1 1.6' fill='none' stroke='%23121212' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  --rahmen-2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M2.2 4.4L38.8 5.6M35.8 1.4L35.3 38.6M37.9 35.7L1.3 34.8M4.8 38.4L4.3 1.2' fill='none' stroke='%23121212' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  --rahmen-blau: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M1 5.8L37.8 4.5M35.6 1.2L35.1 38.4M38.6 35.4L2.2 35.9M4.4 38.8L5.1 1.6' fill='none' stroke='%232446c8' stroke-width='2.1' stroke-linecap='round'/%3E%3C/svg%3E");
  --marker: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M1.2 3.6C18 2.4 36 3.4 55 2.6S86 3.3 99 2.2L99.6 17.4C82 18.6 63 17.1 44 18S12 17.2.4 18.3Z' fill='%23ffe93a'/%3E%3C/svg%3E");
  --unterstrich: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9C48 4 104 12 197 5' fill='none' stroke='%232446c8' stroke-width='2.6' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --kreis: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60' preserveAspectRatio='none'%3E%3Cpath d='M33 4.5C49 5 57 17 55.5 32S43 56.5 28.5 55.5 4 45 4.5 29 17 3.5 37 6.5' fill='none' stroke='%23121212' stroke-width='1.5' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --haken-blau: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3.5 10.8Q6.2 12.6 8.1 16.4Q11.6 8.4 17.6 3' fill='none' stroke='%232446c8' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --haken: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3.5 10.8Q6.2 12.6 8.1 16.4Q11.6 8.4 17.6 3' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --strich-senkrecht: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='360' viewBox='0 0 6 360' preserveAspectRatio='none'%3E%3Cpath d='M3 0C1.9 60 4.1 120 3.1 180S2.2 300 3 360' fill='none' stroke='%23121212' stroke-opacity='.6' stroke-width='1.4'/%3E%3C/svg%3E");
  --strich-waagrecht: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='6' viewBox='0 0 360 6' preserveAspectRatio='none'%3E%3Cpath d='M0 3C60 1.9 120 4.1 180 3.1S300 2.2 360 3' fill='none' stroke='%23121212' stroke-opacity='.6' stroke-width='1.4'/%3E%3C/svg%3E");
  --wortmarke: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 694 124'%3E%3Cg fill='none' stroke='%23121212' stroke-width='10' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='translate(6 7.4) rotate(-2.4 25 50)'%3E%3Cpath d='M6 2Q4 52 7 99M6 98Q26 95 50 99'/%3E%3C/g%3E%3Cg transform='translate(73 11.2) rotate(2.4 25 50)'%3E%3Cpath d='M7 3Q5 52 7 98M8 4Q28 1 48 5M8 50Q24 47 41 50M7 97Q28 99 50 95'/%3E%3C/g%3E%3Cg transform='translate(140 9.4) rotate(0.1 27 50)'%3E%3Cpath d='M7 99Q5 52 8 3M8 4C38-1 56 12 51 29C47 45 28 50 9 49M25 50Q38 72 54 99'/%3E%3C/g%3E%3Cg transform='translate(211 8.4) rotate(-0.2 29 50)'%3E%3Cpath d='M6 99Q5 52 7 4M7 4Q30 52 52 98M52 98Q54 52 51 2'/%3E%3C/g%3E%3Cg transform='translate(286 11.4) rotate(0.3 28 50)'%3E%3Cpath d='M6 2Q4 52 7 99M51 3Q53 52 50 99M7 51Q29 47 51 52'/%3E%3C/g%3E%3Cg transform='translate(359 7.9) rotate(-1.2 25 50)'%3E%3Cpath d='M7 3Q5 52 7 98M8 4Q28 1 48 5M8 50Q24 47 41 50M7 97Q28 99 50 95'/%3E%3C/g%3E%3Cg transform='translate(426 10.1) rotate(1.3 25 50)'%3E%3Cpath d='M6 2Q4 52 7 99M6 98Q26 95 50 99'/%3E%3C/g%3E%3Cg transform='translate(493 9.2) rotate(-1.5 23 50)'%3E%3Cpath d='M7 99Q5 52 8 3M8 4Q28 1 46 6M8 51Q23 48 38 51'/%3E%3C/g%3E%3Cg transform='translate(556 10.2) rotate(-1 25 50)'%3E%3Cpath d='M7 3Q5 52 7 98M8 4Q28 1 48 5M8 50Q24 47 41 50M7 97Q28 99 50 95'/%3E%3C/g%3E%3Cg transform='translate(623 12.9) rotate(-1 27 50)'%3E%3Cpath d='M7 99Q5 52 8 3M8 4C38-1 56 12 51 29C47 45 28 50 9 49M25 50Q38 72 54 99'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}

/* Dunkel (nur auf Wunsch): Graphit und Elfenbein, Champagner statt Blau und Gelb. Ruhig, nichts leuchtet. */
:root[data-thema="dunkel"] {
  --papier: #151515; --bg: var(--papier); --schatten: none;
  --bg-2: #1c1c1c; --bg-3: #262626;
  --tinte: #e9e6df;
  --linie: rgb(233 230 223 / 0.1); --linie-2: rgb(233 230 223 / 0.3);
  --text: #e9e6df; --text-2: #a9a59d; --text-3: #8a867f;
  --akzent: #cbb894; --akzent-hover: #ddd0b4; --akzent-flaeche: rgb(203 184 148 / 0.08); --akzent-text: #d3c3a3; --auf-akzent: #151515;
  --ok: #9cc3a8; --ok-flaeche: rgb(156 195 168 / 0.1); --warn: #d6b07a; --warn-flaeche: rgb(214 176 122 / 0.1); --fehler: #d99a92; --fehler-flaeche: rgb(217 154 146 / 0.1);
  --gelb-hauch: rgb(203 184 148 / 0.09); --auf-gelb: #f2efe9; --zettel: #24221e;
  --punkt: rgb(233 230 223 / 0.055);
  --schatten-gross: 0 2px 6px rgb(0 0 0 / 0.5), 0 30px 60px -24px rgb(0 0 0 / 0.8);
  --f-mathe: #8db8ae; --f-vwl: #ccab78; --f-bwl: #b1a5cf; --f-englisch: #cf9fb3;
  --rahmen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M1 5.8L37.8 4.5M35.6 1.2L35.1 38.4M38.6 35.4L2.2 35.9M4.4 38.8L5.1 1.6' fill='none' stroke='%23e9e6df' stroke-opacity='.38' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  --rahmen-2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M2.2 4.4L38.8 5.6M35.8 1.4L35.3 38.6M37.9 35.7L1.3 34.8M4.8 38.4L4.3 1.2' fill='none' stroke='%23e9e6df' stroke-opacity='.38' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  --rahmen-blau: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M1 5.8L37.8 4.5M35.6 1.2L35.1 38.4M38.6 35.4L2.2 35.9M4.4 38.8L5.1 1.6' fill='none' stroke='%23cbb894' stroke-opacity='.75' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  --marker: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M1.2 3.6C18 2.4 36 3.4 55 2.6S86 3.3 99 2.2L99.6 17.4C82 18.6 63 17.1 44 18S12 17.2.4 18.3Z' fill='%23cbb894' fill-opacity='.2'/%3E%3C/svg%3E");
  --unterstrich: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9C48 4 104 12 197 5' fill='none' stroke='%23cbb894' stroke-opacity='.7' stroke-width='2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --kreis: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60' preserveAspectRatio='none'%3E%3Cpath d='M33 4.5C49 5 57 17 55.5 32S43 56.5 28.5 55.5 4 45 4.5 29 17 3.5 37 6.5' fill='none' stroke='%23e9e6df' stroke-opacity='.55' stroke-width='1.4' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --haken-blau: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3.5 10.8Q6.2 12.6 8.1 16.4Q11.6 8.4 17.6 3' fill='none' stroke='%23cbb894' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --haken: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3.5 10.8Q6.2 12.6 8.1 16.4Q11.6 8.4 17.6 3' fill='none' stroke='%23151515' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --strich-senkrecht: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='360' viewBox='0 0 6 360' preserveAspectRatio='none'%3E%3Cpath d='M3 0C1.9 60 4.1 120 3.1 180S2.2 300 3 360' fill='none' stroke='%23e9e6df' stroke-opacity='.22' stroke-width='1.3'/%3E%3C/svg%3E");
  --strich-waagrecht: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='6' viewBox='0 0 360 6' preserveAspectRatio='none'%3E%3Cpath d='M0 3C60 1.9 120 4.1 180 3.1S300 2.2 360 3' fill='none' stroke='%23e9e6df' stroke-opacity='.22' stroke-width='1.3'/%3E%3C/svg%3E");
  --wortmarke: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 694 124'%3E%3Cg fill='none' stroke='%23e9e6df' stroke-width='10' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='translate(6 7.4) rotate(-2.4 25 50)'%3E%3Cpath d='M6 2Q4 52 7 99M6 98Q26 95 50 99'/%3E%3C/g%3E%3Cg transform='translate(73 11.2) rotate(2.4 25 50)'%3E%3Cpath d='M7 3Q5 52 7 98M8 4Q28 1 48 5M8 50Q24 47 41 50M7 97Q28 99 50 95'/%3E%3C/g%3E%3Cg transform='translate(140 9.4) rotate(0.1 27 50)'%3E%3Cpath d='M7 99Q5 52 8 3M8 4C38-1 56 12 51 29C47 45 28 50 9 49M25 50Q38 72 54 99'/%3E%3C/g%3E%3Cg transform='translate(211 8.4) rotate(-0.2 29 50)'%3E%3Cpath d='M6 99Q5 52 7 4M7 4Q30 52 52 98M52 98Q54 52 51 2'/%3E%3C/g%3E%3Cg transform='translate(286 11.4) rotate(0.3 28 50)'%3E%3Cpath d='M6 2Q4 52 7 99M51 3Q53 52 50 99M7 51Q29 47 51 52'/%3E%3C/g%3E%3Cg transform='translate(359 7.9) rotate(-1.2 25 50)'%3E%3Cpath d='M7 3Q5 52 7 98M8 4Q28 1 48 5M8 50Q24 47 41 50M7 97Q28 99 50 95'/%3E%3C/g%3E%3Cg transform='translate(426 10.1) rotate(1.3 25 50)'%3E%3Cpath d='M6 2Q4 52 7 99M6 98Q26 95 50 99'/%3E%3C/g%3E%3Cg transform='translate(493 9.2) rotate(-1.5 23 50)'%3E%3Cpath d='M7 99Q5 52 8 3M8 4Q28 1 46 6M8 51Q23 48 38 51'/%3E%3C/g%3E%3Cg transform='translate(556 10.2) rotate(-1 25 50)'%3E%3Cpath d='M7 3Q5 52 7 98M8 4Q28 1 48 5M8 50Q24 47 41 50M7 97Q28 99 50 95'/%3E%3C/g%3E%3Cg transform='translate(623 12.9) rotate(-1 27 50)'%3E%3Cpath d='M7 99Q5 52 8 3M8 4C38-1 56 12 51 29C47 45 28 50 9 49M25 50Q38 72 54 99'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color-scheme: dark;
}
:root[data-thema="dunkel"] ::selection { background: rgb(203 184 148 / 0.28); }
:root[data-thema="dunkel"] .verlauf .frage { color: var(--text); box-shadow: inset 0 0 0 1px var(--linie); transform: none; }


/* ---------- Grund und Schrift ---------- */
body { background-color: var(--bg); background-image: radial-gradient(circle at 1px 1px, var(--punkt) 1.1px, transparent 1.4px); background-size: 22px 22px; font-weight: 450; }
::selection { background: rgb(255 233 58 / 0.7); }
.sprung { background: var(--marker) center / 100% 100% no-repeat; color: var(--auf-gelb); }
:is(.ausgabe-kopf, .seitenkopf) h1 { width: fit-content; padding-bottom: 0.24em; background: var(--unterstrich) left bottom / 100% 0.36em no-repeat; font-weight: 800; font-stretch: 86%; letter-spacing: -0.01em; }
@media (min-width: 900px) { :is(.ausgabe-kopf, .seitenkopf) h1 { font-size: 2.25rem; } }
main h2, .rubrik > :first-child, .meldung h2 { font-weight: 750; font-stretch: 92%; }
.fach .schlagzeile, #ausgabe .ausgabe-kopf .schlagzeile { font-weight: 600; font-stretch: 94%; letter-spacing: -0.01em; }
.vt-zitat, .vt-du { font-style: normal; }

/* ---------- Gerüst: Seitenleiste mit gezeichnetem Schriftzug und Strich statt Kante ---------- */
@media (min-width: 900px) {
  .seitenleiste { border-right: 0; background: var(--strich-senkrecht) right top / 6px 360px repeat-y; }
}
.marke { width: 172px; height: 40px; color: transparent; background: var(--wortmarke) 10px center / auto 23px no-repeat; -webkit-user-select: none; user-select: none; }
.marke .zeichen { display: none; }
.heute-klein { margin-left: 10px; }
.navi a { color: var(--text-2); }
@media (hover: hover) { .navi a:hover { background: var(--gelb-hauch); color: var(--text); } }
.navi a[aria-current] { background: var(--marker) center / 100% 78% no-repeat; box-shadow: none; color: var(--auf-gelb); }
.navi a[aria-current] svg.ic { color: var(--auf-gelb); }
.navi .punkt::before { border-radius: 50% 42% 55% 46%; }
.navi hr { height: 6px; border: 0; background: var(--strich-waagrecht) left center / 360px 6px repeat-x; opacity: 0.6; }
.tabs { border-top: 0; background: var(--strich-waagrecht) left top / 360px 6px repeat-x, color-mix(in srgb, var(--bg) 90%, transparent); }
.tabs :is(a[aria-current], button[data-hier], button[aria-expanded="true"]) { color: var(--auf-gelb); background: var(--marker) center calc(100% - 7px) / min(80%, 76px) 13px no-repeat; }
.tabs :is(a[aria-current], button[data-hier], button[aria-expanded="true"]) svg.ic { color: var(--text); }

/* ---------- Gezeichnete Kästen ---------- */
:is(.fach, .aufgabe, .schritt, .kal-panel, .tarif, .sperrkarte, .assistent, .liste-rahmen, .woche, .testzeilen, .ul-liste,
  .vt-gesamt, .vt-tipps li, .vt-befund, .vt-abgleich li, .vt-ger-skalen > li, .vt-zahl, .vt-verlauf, .ziel-blatt, .kachel, .frage-karte,
  .tabelle-rahmen, .sperre, .ultra-werbung, .meldung, .vt-spieler, .fo-bereich, .fo-kasten, .fo-beitrag) {
  border: 1.5px solid transparent; border-radius: 0; border-image: var(--rahmen) 10 / 10px / 4px stretch; background-color: var(--bg);
}
:is(.fach, .weiter-ziel, .aufgabe, .kal-panel, .tarif, .vt-tipps li, .vt-befund, .vt-zahl, .kachel, .vt-abgleich li, .fo-bereich, .fo-beitrag):nth-child(even) { border-image-source: var(--rahmen-2); }
/* Forum: neue Threads mit Textmarker, Personenkarte ohne graue Fläche, Bereiche beim Drüberfahren gelb */
.fo-thread[data-neu] .fo-t-titel span { background: var(--marker) center 62% / 100% 58% no-repeat; }
.fo-person { background: none; border-right: 1.5px dashed var(--linie-2); }
@media (hover: hover) { .fo-bereich:hover { background-color: var(--gelb-hauch); } }
@media (max-width: 640px) { .fo-person { border-right: 0; border-bottom: 1.5px dashed var(--linie-2); } }
:is(.schritt .sperre, .assistent > .sperrkarte, .loeser-teil .aufgabe) { border-image: none; background-color: transparent; }
.tarif.empfohlen, .ultra-werbung { border-image-source: var(--rahmen-blau); box-shadow: none; }
.ultra-werbung { background-color: var(--akzent-flaeche); }
.assistent { background-image: none; }
.meldung { box-shadow: var(--schatten-gross); }
.meldung::backdrop { background: rgb(12 14 13 / 0.4); }

/* Fächer auf „Heute“: jede Ausgabe ein Stapel Blätter, wie die Quelle auf der Startseite */
.fach { box-shadow: 6px -6px 0 -1.5px var(--bg), 6px -6px 0 0 var(--linie-2); transition: box-shadow 0.2s cubic-bezier(0.23, 1, 0.32, 1); }
@media (hover: hover) { .fach:hover { border-color: transparent; box-shadow: 9px -9px 0 -1.5px var(--bg), 9px -9px 0 0 var(--linie-2); } }
/* Weiterlernen: derselbe gezeichnete Rahmen und Blätterstapel wie die Fächer, ohne farbigen Balken */
.weiter-ziel { border: 1.5px solid transparent; border-radius: 0; border-image: var(--rahmen) 10 / 10px / 4px stretch; box-shadow: 6px -6px 0 -1.5px var(--bg), 6px -6px 0 0 var(--linie-2); transition: box-shadow 0.2s cubic-bezier(0.23, 1, 0.32, 1); }
@media (hover: hover) { .weiter-ziel:hover { background: var(--bg); box-shadow: 9px -9px 0 -1.5px var(--bg), 9px -9px 0 0 var(--linie-2); } }
.weiter { gap: 16px; padding-top: 6px; }
.glyph { background: none; border: 1.5px solid currentColor; border-radius: 5px 9px 6px 10px / 9px 5px 10px 6px; }

/* ---------- Knöpfe, Felder, Haken ---------- */
.knopf { border: 1.5px solid transparent; border-radius: 0; border-image: var(--rahmen) 10 / 8px / 3px stretch; background: var(--bg); box-shadow: none; }
@media (hover: hover) { .knopf:hover { background: var(--gelb-hauch); } .knopf:disabled:hover { background: var(--bg); } }
/* Hauptknopf: blau gezeichneter Rahmen; angestrichen wird er erst unter der Maus (am Handy beim Tippen) */
.knopf.voll, .knopf.voll:disabled:hover { border-image-source: var(--rahmen-blau); background: var(--bg); color: var(--text); font-weight: 650; }
@media (hover: hover) { .knopf.voll:not(:disabled):hover { background: var(--marker) center / 100% 100% no-repeat; color: var(--auf-gelb); } }
.knopf.voll:not(:disabled):active { background: var(--marker) center / 100% 100% no-repeat; color: var(--auf-gelb); }
.knopf:active { transform: scale(0.97); }
input:not([type="checkbox"], [type="file"], [type="radio"]), textarea, select { border-width: 1.5px; }
.haken input { border: 1.5px solid var(--tinte); border-radius: 3px 5px 4px 6px / 5px 3px 6px 4px; }
.haken input:checked { border-color: var(--tinte); background: var(--bg) var(--haken-blau) center / 18px no-repeat; }
.vorschlag, .vt-filter { border-width: 1.5px; border-radius: var(--r); }
@media (hover: hover) { .vorschlag:hover { border-color: var(--tinte); background: var(--gelb-hauch); color: var(--text); } }
/* Arena: Reiter und Rundenlänge wie Knöpfe gezeichnet, gewählt bleibt angestrichen */
.arena-chips .vt-filter { border: 1.5px solid transparent; border-radius: 0; border-image: var(--rahmen) 10 / 8px / 3px stretch; color: var(--text); }
.arena-chips .vt-filter::before { display: none; }
@media (hover: hover) { .arena-chips .vt-filter:not([aria-pressed="true"]):hover { background: var(--gelb-hauch); } }
.pille { border-radius: 3px 6px 4px 7px / 6px 3px 7px 4px; }
.nr { background: var(--kreis) center / 100% 100% no-repeat; color: var(--text); }
.vt-tipps li::before { background: var(--kreis) center / 100% 100% no-repeat; }

/* Ausgewählt heißt angestrichen */
:is(.abschnitte button, .archiv a, .vt-filter, .fragen-nav button)[aria-current], .vt-filter[aria-pressed="true"],
  .laufzeit label:has(input:checked), .pk-optionen label:has(input:checked) {
  border-color: var(--tinte); background: var(--marker) center / 100% 100% no-repeat; color: var(--auf-gelb);
}
.abschnitte button, .archiv a { border-radius: var(--r); }
/* Fassung wählen: gezeichneter Rahmen, gewählter Name angestrichen, gewählte Kachel blau umrandet */
.fw-pop { border: 1.5px solid transparent; border-radius: 0; border-image: var(--rahmen) 10 / 8px / 3px stretch; }
.fw-option:has(input:checked) { background: none; }
.fw-option:has(input:checked) .fw-name { margin: 0 -4px; padding: 0 4px; background: var(--marker) center / 100% 100% no-repeat; color: var(--auf-gelb); }
.fw-form .fw-option { border-radius: var(--r); }
.fw-form .fw-option:has(input:checked) { border-color: transparent; border-image: var(--rahmen-blau) 10 / 8px / 3px stretch; }
.text .wichtig { border-radius: 2px; background: var(--zettel); color: var(--text); }
.abschnitte { border-bottom: 0; background: var(--strich-waagrecht) left bottom / 360px 6px repeat-x, color-mix(in srgb, var(--bg) 90%, transparent); }

/* ---------- Heute ---------- */
.tagknopf[aria-pressed="true"] { background: none; box-shadow: none; }
.tagknopf[aria-pressed="true"] .tg { margin: -7px -9px; padding: 7px 9px; background: var(--kreis) center / 100% 100% no-repeat; }
.woche-feld, .willkommen { background: var(--bg-2); }
.kal-eintrag { border-radius: var(--r-s); }
.kal-eintrag.ist-frist { background: var(--gelb-hauch); }
.kal-eintrag.ist-frist b { color: var(--text-2); }
.kal-tag.heute { background: var(--akzent-flaeche); }

/* Eigene Fragen stehen auf einem gelben Zettel */
.verlauf .frage { border-radius: 2px; background: var(--zettel); color: #121212; transform: rotate(-0.6deg); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 12px 20px -14px rgb(0 0 0 / 0.45); }

/* ---------- Karteikarten: weiß, rote Kopflinie, blaue Linien; auch auf der Tafel ---------- */
.karte .seite-v, .karte .seite-h {
  --bg: #fffefa; --text: #121212; --text-2: #4f535a; --text-3: #666a71;
  --f-mathe: #0f766e; --f-vwl: #b45309; --f-bwl: #7c3aed; --f-englisch: #be185d;
  border: 0; border-radius: 2px; color: var(--text); color-scheme: light;
  background: linear-gradient(transparent 52px, rgb(214 64 69 / 0.55) 52px 53.5px, transparent 53.5px),
    repeating-linear-gradient(transparent 0 29px, rgb(36 70 200 / 0.14) 29px 30px) 0 53px / 100% calc(100% - 53px) no-repeat, var(--bg);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.12), 0 18px 34px -20px rgb(0 0 0 / 0.5);
}
.karte .seite-h { --bg: #fdfcf3; }

/* Karteikarten im Dunkeln: dunkles Papier statt weißer Fläche */
:root[data-thema="dunkel"] :is(.karte .seite-v, .karte .seite-h) {
  --bg: #1f1e1c; --text: #e9e6df; --text-2: #a9a59d; --text-3: #8a867f;
  --f-mathe: #8db8ae; --f-vwl: #ccab78; --f-bwl: #b1a5cf; --f-englisch: #cf9fb3;
  color-scheme: dark;
  background: linear-gradient(transparent 52px, rgb(207 130 120 / 0.3) 52px 53.5px, transparent 53.5px),
    repeating-linear-gradient(transparent 0 29px, rgb(233 230 223 / 0.06) 29px 30px) 0 53px / 100% calc(100% - 53px) no-repeat, var(--bg);
  box-shadow: inset 0 0 0 1px var(--linie), 0 18px 34px -20px rgb(0 0 0 / 0.7);
}
:root[data-thema="dunkel"] .karte .seite-h { --bg: #222120; }

/* Fuß: gezeichneter Strich statt Linie, Empfehlung als leiser Kasten */
.fuss { border-top: 0; background: var(--strich-waagrecht) left top / 360px 6px repeat-x; }
.empfehlung { border: 1.5px solid transparent; border-radius: 0; border-image: var(--rahmen-2) 10 / 10px / 4px stretch; background-color: var(--bg); }

/* ---------- Arena: Lernmethoden ---------- */
/* Die Energie-Karte liegt auf dem Punktpapier; der Regler schiebt einen Textmarker-Streifen darüber. Marken und Kästen sind gezeichnet,
   gewählt heißt angestrichen. Die Stimmungsfarben bleiben wie Buntstifte, im Dunkeln gedämpft wie die Fachfarben. */
:root[data-thema="dunkel"] { --k-neugier: #d9a27a; --k-knobeln: #c4a3cf; --k-bauen: #9cc3a8; --k-leicht: #8fbfc7; --k-woop: #8a867f; --auf-kat: #151515; }
:is(.ekarte, .mblatt, .buehne, .ergebnis, .estimmung, .karte-bild) { border: 1.5px solid transparent; border-radius: 0; border-image: var(--rahmen) 10 / 10px / 4px stretch; box-shadow: none; }
:is(.mblatt, .ergebnis, .estimmung:nth-child(even)) { border-image-source: var(--rahmen-2); }
:is(.ekarte, .karte-bild) { background: transparent; }
.ekarte::before { width: 6px; border: 0; translate: -3px 0; background: var(--strich-senkrecht) center / 6px 100% no-repeat; }
.ekarte::after { height: 6px; border: 0; translate: 0 -3px; background: var(--strich-waagrecht) center / 100% 6px no-repeat; }
.ekarte-licht { background: var(--gelb-hauch); }
.m-zeichen, .estimmung[aria-pressed="true"] .m-zeichen { background: var(--kreis) center / 100% 100% no-repeat; color: var(--kat-text); }
.emarke { border: 1.5px solid transparent; border-radius: 0; border-image: var(--rahmen) 10 / 8px / 3px stretch; box-shadow: none; }
.emarke:nth-child(even) { border-image-source: var(--rahmen-2); }
.emarke[data-an], .emarke[aria-pressed="true"] { box-shadow: none; border-color: transparent; }
.emarke[aria-pressed="true"] { background: var(--marker) center / 100% 100% no-repeat, var(--bg); color: var(--auf-gelb); }
.estimmung { border-radius: 0; border-image: var(--rahmen) 10 / 8px / 3px stretch; }
.estimmung .m-zeichen, .estimmung[aria-pressed="true"] .m-zeichen { width: 32px; height: 32px; background: var(--kreis) center / 100% 100% no-repeat; color: var(--kat-text); }
.estimmung[aria-pressed="true"] { border-color: transparent; background: var(--marker) center / 100% 100% no-repeat; color: var(--auf-gelb); }
@media (hover: hover) { .estimmung:not([aria-pressed="true"]):hover { border-color: transparent; background: var(--gelb-hauch); } }
/* Hinweise, Lesestücke, Sicherheitsfrage, Rückmeldungen und Musterantworten: gezeichnete Kästen in Tinte; Blau bleibt Handlungen vorbehalten */
:is(.buehne-hinweis, .quiz-sicher, .erg-paar .erg-block, .buehne-lesen) { border: 1.5px solid transparent; border-radius: 0; border-image: var(--rahmen-2) 10 / 10px / 4px stretch; background: transparent; }
.erg-muster { border: 1.5px solid transparent; border-radius: 0; border-image: var(--rahmen) 10 / 8px / 3px stretch; background: transparent; }
:is(.mblatt-kopf, .buehne-kopf, .erg-kopf) { background: var(--strich-waagrecht) left bottom / 100% 6px no-repeat; }
:is(.methoden-kopf, .mblatt, .buehne-titel, .erg-kopf) h2 { font-weight: 800; font-stretch: 88%; }
:is(.mblatt-beispiel, .buehne-aufgabe) { border-radius: 2px; background: var(--zettel); color: var(--text); transform: rotate(-0.5deg);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 12px 20px -14px rgb(0 0 0 / 0.45); }
:root:not([data-thema="dunkel"]) :is(.mblatt-beispiel, .buehne-aufgabe) { color: #121212; }
.buehne-aufgabe { transform: rotate(0.3deg); }
.buehne-fragen .nr { background: var(--kreis) center / 100% 100% no-repeat; color: var(--text); }
.quiz-optionen .knopf[aria-pressed="true"] { box-shadow: none; background: var(--marker) center / 100% 100% no-repeat; color: var(--auf-gelb); }
.quiz-punkte li { border-radius: 2px 4px 3px 5px; }
.knopf.leise, .karte-weg { border-color: transparent; border-image: none; }
.erg-plus { color: var(--text); }
.erg-plus b { padding: 0 0.08em; background: var(--marker) center 58% / 100% 72% no-repeat; color: var(--auf-gelb); }
.erg-kern { border: 1.5px solid transparent; border-image: var(--rahmen-2) 10 / 10px / 4px stretch; background: var(--kat-flaeche); }
.erg-mark.ok { background: var(--haken-blau) center / 18px no-repeat; color: transparent; }
.energie input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: var(--strich-waagrecht) center / 100% 6px no-repeat; }
.energie input[type="range"]::-moz-range-track { height: 6px; background: var(--strich-waagrecht) center / 100% 6px no-repeat; }
.energie input[type="range"]::-moz-range-progress { background: none; }
/* Wie gut kennst du das: gezogener Tintenstrich, darunter der Textmarker bis zum Knopf; der Knopf ein gelb gefüllter Kreis von Hand */
.t-niveau { --strich: var(--strich-waagrecht) center / 100% 6px no-repeat; }
.t-niveau-bahn::before { height: 16px; border-radius: 0; background: var(--marker) center / 100% 100% no-repeat; }
.t-niveau input::-webkit-slider-thumb { border: 1.6px solid var(--tinte); border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%; background: var(--marker) center / 170% 170% no-repeat, var(--bg); rotate: -12deg; }
.t-niveau input::-moz-range-thumb { border: 1.6px solid var(--tinte); border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%; background: var(--marker) center / 170% 170% no-repeat, var(--bg); }
.t-niveau.leer input::-webkit-slider-thumb { border: 1.6px dashed var(--linie-2); background: var(--bg); }
.t-niveau.leer input::-moz-range-thumb { border: 1.6px dashed var(--linie-2); background: var(--bg); }

/* Thema lernen: gezeichnet. Kern mit Textmarker, Antworten und Stationen in Strich-Rahmen, Beispiel und Rückfrage als Zettel */
.t-kern > span { padding: 0 0.1em; background: var(--marker) 0 78% / 100% 42% no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.t-feld textarea { border: 1.5px solid transparent; border-radius: 0; border-image: var(--rahmen-blau) 10 / 10px / 4px stretch; background: var(--bg); }
:is(.t-option, .t-ablauf li) { border: 1.5px solid transparent; border-radius: 0; border-image: var(--rahmen) 10 / 8px / 3px stretch; }
:is(.t-option, .t-ablauf li):nth-child(even) { border-image-source: var(--rahmen-2); }
@media (hover: hover) { .t-option:not([aria-disabled]):hover { border-color: transparent; background: var(--gelb-hauch); } }
.t-option.richtig { border-color: transparent; border-image-source: var(--rahmen-blau); background: var(--bg); }
.t-option.richtig .t-option-text > span:first-child { background: var(--marker) 0 80% / 100% 45% no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.t-option.falsch { border-color: transparent; background: var(--bg); }
.t-option.falsch .t-option-text > span:first-child { text-decoration: line-through; text-decoration-color: var(--fehler); text-decoration-thickness: 2px; }
.t-buchstabe { border: 0; background: var(--kreis) center / 100% 100% no-repeat; }
.t-option.richtig .t-buchstabe { background: var(--haken-blau) center / 70% no-repeat; color: transparent; }
:is(.t-beispiel, .t-du) { border-radius: 2px; background: var(--zettel); color: var(--text); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 14px 22px -16px rgb(0 0 0 / 0.45); }
.t-beispiel { transform: rotate(-0.4deg); }
.t-du { transform: rotate(0.6deg); }
:is(.t-werte, .t-mehr) { border-top: 0; background: var(--strich-waagrecht) top / 100% 6px no-repeat; }
.t-liste a { border-bottom: 0; background: var(--strich-waagrecht) bottom / 100% 6px no-repeat; }
.t-ablauf li + li::before { background: var(--tinte); }
/* Formen, gezeichnet: Rätsel im blauen Strich-Rahmen, Fall-Lage als Zettel, Nummern und „vs.“ im Kreis, Folien-Stellen mit Textmarker */
.t-form-name { border-radius: 0; background: var(--marker) center / 100% 100% no-repeat; color: var(--auf-gelb); }
.t-b-raten .t-quiz { border: 2px solid transparent; border-radius: 0; border-image: var(--rahmen-blau) 10 / 10px / 4px stretch; background: var(--bg); }
.t-fall-lage { border-left: 0; border-radius: 2px; background: var(--zettel); color: var(--text); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 14px 22px -16px rgb(0 0 0 / 0.45); transform: rotate(-0.3deg); }
.t-fall-weg > li::before, .t-vs { border-radius: 0; background: var(--kreis) center / 100% 100% no-repeat; color: var(--text); }
.t-fall-weg > li:not(:last-child)::after { left: 12px; width: 6px; background: var(--strich-senkrecht) center / 6px 100% no-repeat; }
:is(.t-folie, .t-duell, .t-sort-karte) { border: 1.5px solid transparent; border-radius: 0; border-image: var(--rahmen) 10 / 8px / 3px stretch; box-shadow: none; }
.t-sort-karte { border-image-source: var(--rahmen-2); transform: rotate(-0.4deg); }
:is(.t-folie-kopf, .t-duell-kopf) { border-bottom: 0; background: none; }
.t-folie-kopf { background: var(--strich-waagrecht) bottom / 100% 6px no-repeat; }
.t-folie mark { border-radius: 0; background: var(--marker) center / 100% 100% no-repeat; color: var(--auf-gelb); }
.t-duell-zeile { border-top: 0; background: var(--strich-waagrecht) top / 100% 6px no-repeat; }
.t-sort-gruppe { border: 0; border-radius: 2px; background: var(--bg-2); }
.t-bezug { border-radius: 2px; }

/* Admin-Ecke: der aktive Reiter mit Textmarker statt Linie, Zahlen im Kreis */
.admin-reiter { border-bottom: 0; background: var(--bg) var(--strich-waagrecht) bottom / 100% 6px no-repeat; }
.admin-reiter [aria-selected=true] { border-bottom-color: transparent; }
.admin-reiter [aria-selected=true]::after { content: ''; position: absolute; inset: auto 8px 9px; height: 0.62em; z-index: -1; background: var(--marker) center / 100% 100% no-repeat; }
.admin-reiter [role=tab] { position: relative; z-index: 0; }
.admin-todo { border: 1.5px solid transparent; border-radius: 0; border-image: var(--rahmen) 10 / 8px / 3px stretch; }
.admin-todo li + li { border-top: 0; background: var(--strich-waagrecht) top / 100% 6px no-repeat; }

/* Noten: Punkte-Lineal mit Textmarker (sicher) und Bleistift-Schraffur (noch zu holen), Notengrenzen als gezeichnete Striche,
   Noten im Kreis wie vom Lehrer an den Rand geschrieben, Bedingungen auf einem gelben Zettel */
i.l-sicher { background: var(--marker) center / 100% 100% no-repeat; }
:root[data-thema="dunkel"] i.l-sicher { background: rgb(203 184 148 / 0.72); }  /* Daten: im Dunkeln muss „sicher“ klar von der Schraffur abstechen */
.lt-ein { text-decoration: none; background: var(--unterstrich) left bottom 6px / 100% 0.45em no-repeat; }
.l-marke::before { width: 6px; background: var(--strich-senkrecht) center / 6px 100% no-repeat; }
:is(.l-marke, .lv-note) b { border: 0; border-radius: 0; background: var(--kreis) center / 100% 100% no-repeat, var(--bg); }
.lv-note b { background: var(--kreis) center / 100% 100% no-repeat; }
.l-marke[data-z="sicher"] b { background: var(--marker) center / 100% 100% no-repeat, var(--bg); color: var(--auf-gelb); }
.lv-note[data-art="end"] b { background: var(--kreis) center / 100% 100% no-repeat, var(--marker) center / 90% 64% no-repeat; color: var(--auf-gelb); }
.ziel-zeile + .zz-gruppe { border-top: 0; background: var(--strich-waagrecht) left top / 100% 6px no-repeat; }
.ziel-zeile + .ziel-zeile { border-top: 0; background: var(--strich-waagrecht) left top / 100% 6px no-repeat; }
.lv-zettel { border-radius: 2px; background: var(--zettel); transform: rotate(-0.5deg); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 12px 20px -14px rgb(0 0 0 / 0.45); }
:root:not([data-thema="dunkel"]) .lv-zettel { color: #121212; }
:is(.l-liste [data-ziel] b, .l-marke[data-ziel] small) { padding: 0 2px; text-decoration: none; background: var(--marker) 0 70% / 100% 60% no-repeat; color: var(--auf-gelb); }
.noten-abgleich { border-radius: 2px; background: var(--zettel); color: var(--text); }

/* Changelog: Linie gezeichnet, sonst nur Tinte und Grau */
.cl-liste { border-left: 0; background: var(--strich-senkrecht) left top / 6px 100% no-repeat; }
.cl-liste > li::before { left: -2px; }
.cl-pause { border-left-style: dotted; }
.cl-phase { border-top: 0; background: var(--strich-waagrecht) top / 100% 6px no-repeat; }

/* Forum anonym: gezeichnete Rahmen in Bordeaux statt Tinte */
:root { --rahmen-an: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M1 5.8L37.8 4.5M35.6 1.2L35.1 38.4M38.6 35.4L2.2 35.9M4.4 38.8L5.1 1.6' fill='none' stroke='%238e1838' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
:root[data-thema="dunkel"] { --rahmen-an: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M1 5.8L37.8 4.5M35.6 1.2L35.1 38.4M38.6 35.4L2.2 35.9M4.4 38.8L5.1 1.6' fill='none' stroke='%23f08ca0' stroke-opacity='.7' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.fo-anon:is(.fo-bereich, .fo-beitrag, .fo-kasten):nth-child(n) { border-image-source: var(--rahmen-an); }  /* nth-child(n): stärker als der zweite Rahmen für gerade Kästen */
