/* 🧭 Schnellstart (schnellstart.html) und Karte „Als Nächstes“ + Vorschläge (als-naechstes.js) – A-042, Entwürfe H, B, C, E.
   Symbole macht symbole.js gelb auf Grün; hier nur Flächen, Abstände, Zustände. Dunkel/Hoher Kontrast: siehe unten
   bzw. theme.css (setzt Karten, Felder und Knöpfe für alle). */

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

/* ===== Schnellstart ===== */
body.ss-body { background: #e7efe0; min-height: 100vh; margin: 0; color: #1f2a1a; }
main#loginScreen.ss { display: block; width: auto; max-width: 560px; margin: 0 auto; min-height: 0 !important; background: transparent; box-shadow: none; padding: 16px 16px 120px; box-sizing: border-box; }
.ss [hidden] { display: none !important; }
.ss-leiste { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; background: rgba(255,255,255,.55); border-radius: 14px; margin-bottom: 18px; }
.ss-pille { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border: 1.5px solid #c5d0bd; border-radius: 999px;
  background: #fff; color: #1f2a1a; font-size: 16px; font-weight: 600; cursor: pointer; font-family: inherit; }
.ss-pille[aria-pressed="true"] { background: var(--primary-color, #498100); border-color: var(--primary-color, #498100); color: #fff; }
.ss-pille select { border: none; background: transparent; font: inherit; font-weight: 600; color: inherit; padding: 4px 0; min-width: 0; width: auto; }
.ss-aa { font-weight: 800; color: var(--primary-color, #498100); } .ss-aa small { font-size: .7em; }
.ss-pille[aria-pressed="true"] .ss-aa { color: #ffd84a; }
.ss h1 { color: #3f7306; font-size: clamp(1.6rem, 6vw, 2.1rem); margin: 4px 0 6px; line-height: 1.2; }
.ss-unter { color: #4a5544; font-size: 17px; margin: 0 0 18px; }
.ss-karte { background: #fff; border-radius: 16px; border: 0; border-top: 5px solid var(--primary-color, #498100); padding: 18px 18px 14px; margin: 0 0 14px; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.ss-karte h2, .ss-karte legend { display: flex; align-items: center; gap: 10px; color: #3f7306; font-size: 1.35rem; margin: 0 0 10px; padding: 0; font-weight: 700; }
fieldset.ss-karte { min-width: 0; }
fieldset.ss-karte legend { float: left; width: 100%; margin-bottom: 6px; }
fieldset.ss-karte legend + * { clear: both; }
.ss-sym { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: #3f7306; flex: none; font-size: 20px; }
.ss label { display: block; font-weight: 700; margin: 12px 0 5px; }
.ss input[type=text], .ss input[type=password] { width: 100%; padding: 13px; font-size: 17px; box-sizing: border-box; border: 1.5px solid #b5bfae; border-radius: 10px; background: #fff; color: inherit; }
.ss-hinweis { color: #4a5544; font-size: 15px; line-height: 1.45; margin: 6px 0 0; }
.ss-hinweis-box { background: #fff6cc; color: #222; border: 1px solid #d9b93b; border-radius: 10px; padding: 10px 12px; }
.ss-check { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 14px; padding: 16px; margin: 0 0 12px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.ss-check input[type=checkbox] { width: 28px; height: 28px; margin: 1px 0 0; flex: none; accent-color: var(--primary-color, #498100); cursor: pointer; }
.ss-check label { margin: 0; font-weight: 400; font-size: 17px; line-height: 1.45; cursor: pointer; }
.ss-check [aria-invalid="true"] { outline: 3px solid #c0392b; outline-offset: 2px; }
.ss input[aria-invalid="true"] { border-color: #c0392b; border-width: 2px; }
.ss-mehr { margin-top: 6px; }
.ss-mehr summary { cursor: pointer; color: #3f7306; font-weight: 700; padding: 6px 0; min-height: 32px; }
.ss-mehr p { margin: 6px 0; line-height: 1.45; }
.ss-msg { min-height: 1.4em; font-weight: 700; color: #b02a1c; margin: 6px 0 0; }
.ss-fuss { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid #d5ddcd; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; justify-content: flex-end; gap: 10px; z-index: 5; }
.ss-fuss .btn { font-size: 18px; padding: 13px 26px; border-radius: 12px; }
@media (min-width: 600px) { .ss-fuss { justify-content: center; } }
.ss-kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.ss-kachel { position: relative; display: flex !important; flex-direction: column; align-items: flex-start; gap: 10px; margin: 0 !important; padding: 14px; border: 2px solid #dfe6d8; border-radius: 14px; background: #fff; cursor: pointer; font-size: 17px; }
.ss-kachel input { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; accent-color: var(--primary-color, #498100); }
.ss-kachel:has(input:checked) { border-color: var(--primary-color, #498100); background: #eef6e4; }
.ss-kachel:focus-within { outline: 3px solid #1f5fbf; outline-offset: 2px; }

html.dark body.ss-body { background: #121412; color: #e8ebe6; }
html.dark .ss-leiste { background: #1e211e; }
html.dark :is(.ss-pille, .ss-karte, .ss-check, .ss-kachel, .ss-fuss) { background: #1e211e !important; color: #e8ebe6; border-color: #3a3f3a; }
html.dark .ss-pille[aria-pressed="true"] { background: var(--primary-color, #498100) !important; color: #fff; }
html.dark :is(.ss h1, .ss-karte h2, .ss-karte legend, .ss-mehr summary) { color: #9fd36a; }
html.dark :is(.ss-unter, .ss-hinweis) { color: #c3cbc1; }
html.dark .ss-hinweis.ss-hinweis-box, html.dark .ss-hinweis-box { background: #3a3415; color: #fff3c4; border-color: #8a7a2a; } /* sonst heller Text auf hellem Gelb (A-043 Befundrunde 1) */
html.dark .ss-kachel:has(input:checked) { background: #24331b !important; }
html.dark .ss-msg { color: #ff9c8f; }
html.high-contrast body.ss-body { background: #000; }
html.high-contrast .ss-sym { background: #000; border: 2px solid #fff; }

/* ===== Karte „Als Nächstes“ (Startseite) ===== */
#alsNaechstesBox:empty { display: none; }
#alsNaechstesBox { margin-bottom: 16px; }
.an-karte { border-top: 5px solid var(--primary-color, #498100); }
.an-kopf { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; }
.an-kopf h2 { margin: 0; color: #3f7306; font-size: 1.4rem; }
.an-fortschritt { display: flex; align-items: center; gap: 12px; margin: 6px 0 4px; font-weight: 700; color: #3f7306; }
.an-balken { flex: 1; height: 10px; border-radius: 6px; background: #dde6d3; overflow: hidden; min-width: 80px; }
.an-balken i { display: block; height: 100%; background: var(--primary-color, #498100); }
.an-satz { color: #4a5544; margin: 4px 0 10px; }
.an-liste { list-style: none; margin: 0; padding: 0; }
.an-punkt { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 14px 0; border-top: 1px solid #e3e9dc; }
.an-punkt:first-child { border-top: 0; }
.an-punkt h3 { margin: 0; font-size: 1.12rem; color: inherit; }
.an-punkt .an-spart { margin: 2px 0 8px; color: #4a5544; line-height: 1.4; }
.an-punkt .an-spart b { font-weight: 700; color: inherit; }
.an-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.an-knoepfe .btn { min-height: 44px; }
.an-sym { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: #3f7306; font-size: 20px; }
.an-unbekannt { display: inline-block; margin: 2px 0 6px; font-size: 14px; color: #6b5300; background: #fff6cc; border: 1px solid #d9b93b; border-radius: 6px; padding: 2px 8px; }
.an-personen { list-style: none; padding: 0; margin: 4px 0 10px; }
.an-personen li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 4px 0; }
.an-mehr-knopf { margin-top: 8px; }
.an-erledigt { margin-top: 10px; border-top: 1px solid #e3e9dc; padding-top: 8px; }
.an-erledigt summary { cursor: pointer; font-weight: 700; color: #3f7306; min-height: 36px; display: flex; align-items: center; gap: 8px; }
.an-erledigt li { color: #4a5544; padding: 4px 0; }
.an-wofuer { background: #f1f7ea; border: 2px solid #b9d29a; border-radius: 14px; padding: 16px; margin-top: 6px; }
.an-wofuer h3 { margin: 0 0 4px; font-size: 1.2rem; }
.an-wofuer p { margin: 0 0 12px; color: #4a5544; }
.an-kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
@media (min-width: 900px) { .an-kacheln { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.an-kachel { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border: 2px solid #dfe6d8; border-radius: 14px; background: #fff; color: inherit; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; text-align: left; min-height: 96px; }
.an-kachel:hover { border-color: var(--primary-color, #498100); }
.an-fehler { color: #8a2a1c; }
.an-leer { color: #4a5544; }

html.dark :is(.an-kopf h2, .an-fortschritt, .an-erledigt summary) { color: #9fd36a; }
html.dark :is(.an-satz, .an-punkt .an-spart, .an-erledigt li, .an-wofuer p, .an-leer) { color: #c3cbc1; }
html.dark .an-punkt, html.dark .an-erledigt { border-color: #3a3f3a; }
html.dark .an-wofuer { background: #1f2a1a !important; border-color: #4a5a44; }
html.dark .an-kachel { background: #272b27; border-color: #3a3f3a; }
html.dark .an-balken { background: #3a3f3a; }
html.dark .an-unbekannt { background: #3a3218; color: #f3ecd0; border-color: #8a7a2a; }
html.high-contrast .an-sym { background: #000; border: 2px solid #fff; }
html.high-contrast .an-balken { background: #000; border: 2px solid #fff; }
html.high-contrast .an-balken i { background: #ffe600; }

/* Hinweis unten nach „Brauche ich nicht“ (Entwurf C links), mit „Rückgängig“ */
.an-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 3000; width: min(560px, calc(100vw - 24px));
  background: #2c3a24; color: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: 0 8px 24px rgba(0,0,0,.25); display: flex; gap: 12px; align-items: flex-start; box-sizing: border-box; }
.an-toast p { margin: 0; flex: 1; line-height: 1.45; }
.an-toast .an-toast-knoepfe { display: flex; flex-direction: column; gap: 6px; }
.an-toast button { min-height: 40px; }
.an-toast .an-rueck { background: transparent; color: #ffd84a; border: 2px solid #ffd84a; border-radius: 8px; font-weight: 700; padding: 6px 12px; cursor: pointer; font: inherit; font-weight: 700; }
.an-toast .an-zu { background: transparent; color: #fff; border: 1px solid #fff; border-radius: 8px; padding: 6px 12px; cursor: pointer; font: inherit; }
@media (min-width: 900px) { .an-toast { bottom: 24px; } }

/* Fenster (Vorschläge, Anleitung Home-Bildschirm, Einrichtung erneut starten) */
.an-dialog { border: 0; border-radius: 16px; padding: 0; width: min(640px, calc(100vw - 16px)); max-height: calc(100vh - 32px); color: inherit; background: #fff; }
.an-dialog::backdrop { background: rgba(0,0,0,.45); }
.an-dialog-kopf { display: flex; align-items: center; gap: 12px; padding: 16px 18px 6px; }
.an-dialog-kopf h2 { margin: 0; flex: 1; color: #3f7306; font-size: 1.35rem; }
.an-dialog-inhalt { padding: 4px 18px 12px; overflow: auto; max-height: calc(100vh - 220px); }
.an-dialog-fuss { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 12px 18px; border-top: 1px solid #e3e9dc; flex-wrap: wrap; }
.an-reiter { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 10px; }
.an-reiter button { min-height: 46px; border-radius: 10px; border: 0; background: #e6e9e3; color: #222; font: inherit; font-weight: 700; cursor: pointer; }
.an-reiter button[aria-pressed="true"] { background: var(--primary-color, #498100); color: #fff; }
.an-gruppe { margin: 14px 0 4px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #3f7306; }
.an-vorschlag { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #eef2e8; }
.an-vorschlag input { width: 26px; height: 26px; flex: none; accent-color: var(--primary-color, #498100); margin: 0; }
.an-vorschlag label { flex: 1; font-weight: 600; margin: 0; cursor: pointer; }
.an-vorschlag .an-rhythmus { flex: none; border: 1.5px solid #b9d29a; color: #3f7306; background: #f1f7ea; border-radius: 999px; padding: 4px 10px; font-weight: 700; font-size: 14px; }
.an-vorschlag.an-da label, .an-vorschlag.an-da .an-rhythmus { opacity: .75; }
.an-vorschlag .an-da-text { display: block; font-weight: 400; font-size: 14px; color: #5b6656; }
html.dark .an-dialog { background: #1e211e; color: #e8ebe6; }
html.dark .an-dialog-kopf h2, html.dark .an-gruppe { color: #9fd36a; }
html.dark .an-reiter button { background: #272b27; color: #e8ebe6; }
html.dark .an-reiter button[aria-pressed="true"] { background: var(--primary-color, #498100); color: #fff; }
html.dark .an-vorschlag { border-color: #3a3f3a; }
html.dark .an-vorschlag .an-rhythmus { background: #24331b; color: #b9e08a; border-color: #4a5a44; }
html.dark .an-vorschlag .an-da-text { color: #c3cbc1; }
html.dark .an-dialog-fuss { border-color: #3a3f3a; }
html.high-contrast .an-dialog { background: #000; color: #fff; border: 2px solid #fff; }

/* Überschriften der Punkte ohne die Linie von .admin-card h3 */
.admin-card .an-punkt h3, .admin-card .an-wofuer h3 { border: 0; padding: 0; margin: 0; color: inherit; }
/* Einstellungen: kompakte Liste */
#alsNaechstesEinstellungen .an-punkt { padding: 10px 0; }
#alsNaechstesEinstellungen .an-punkt .an-spart { margin: 2px 0 6px; }
#alsNaechstesEinstellungen .an-sym { width: 34px; height: 34px; font-size: 17px; }
#alsNaechstesEinstellungen > h3 { margin-top: 18px; }

/* Befundrunde 1 (Prüfer K9): Schalter in den Einstellungen in der App-Farbe statt Browser-Blau */
.an-schalter { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--primary-color, #498100); }
