/* Aufgabenseiten ki-workshop.fruitjuicer.ch, Brand Guide 2026, zuerst fürs Handy */
@font-face { font-family: Noi; src: url("../fonts/NoiGrotesk-Regular.woff2") format("woff2"); font-weight: 400; }
@font-face { font-family: Noi; src: url("../fonts/NoiGrotesk-Semibold.woff2") format("woff2"); font-weight: 600; }
:root { --weiss: #fff; --schwarz: #000; --zitrone: #DAFF62; --heidel: #8762FF; --himbeere: #FF2F6A; --grau: #6E6B78; --nebel: #F3F1F8; --linie: #E6E3EE; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--weiss); color: var(--schwarz); font: 18px/1.5 Noi, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--heidel); }
.rahmen { max-width: 780px; margin: 0 auto; padding: 22px 16px 60px; }

/* Kopf mit Übungsnavigation */
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kopf .marke { font-weight: 600; font-size: 15px; color: var(--schwarz); text-decoration: none; }
.punkte { display: flex; gap: 6px; }
.punkte a { width: 30px; height: 30px; border-radius: 50%; background: var(--nebel); color: var(--schwarz); font-size: 14px; font-weight: 600; display: grid; place-items: center; text-decoration: none; }
.punkte a.hier { background: var(--heidel); color: var(--weiss); }

.eyebrow { margin-top: 34px; font-size: 16px; font-weight: 600; color: var(--heidel); }
h1 { margin-top: 6px; font-size: clamp(38px, 9vw, 64px); font-weight: 600; letter-spacing: -.045em; line-height: .98; text-wrap: balance; }
.lead { margin-top: 18px; font-size: 21px; line-height: 1.4; color: var(--grau); text-wrap: pretty; }
h2 { margin-top: 44px; font-size: 28px; font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
h3 { margin-top: 26px; font-size: 20px; font-weight: 600; }
p { margin-top: 12px; text-wrap: pretty; }
.klein { font-size: 15px; color: var(--grau); }

/* Schritte */
ol.schritte { list-style: none; counter-reset: s; margin-top: 18px; }
ol.schritte > li { counter-increment: s; position: relative; padding: 0 0 0 52px; margin-bottom: 20px; min-height: 36px; }
ol.schritte > li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--heidel); color: var(--weiss); font-weight: 600; font-size: 16px; display: grid; place-items: center; }
ol.schritte b { font-weight: 600; }
.pfad { display: inline; background: var(--nebel); border-radius: 8px; padding: 1px 7px; font-weight: 600; white-space: nowrap; }

/* Prompt zum Kopieren: Balken links, Schreibmaschine, keine Fläche (Flächen sind Knöpfe oder Kästen) */
.prompt { margin-top: 16px; border-left: 5px solid var(--heidel); padding: 2px 0 4px 18px; }
.prompt .leiste { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prompt .leiste span { font: 600 13px/1 Noi, "Helvetica Neue", Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--heidel); }
.prompt pre { margin: 10px 0 0; white-space: pre-wrap; word-wrap: break-word; font: 15.5px/1.55 "SF Mono", ui-monospace, Menlo, Consolas, monospace; }
.prompt mark { background: var(--zitrone); border-radius: 4px; padding: 0 3px; }
.kopieren { border: 1.5px solid var(--schwarz); border-radius: 999px; background: var(--weiss); color: var(--schwarz); font: 600 14px/1 Noi, "Helvetica Neue", Arial, sans-serif; padding: 9px 16px; cursor: pointer; }
.kopieren:hover { background: var(--schwarz); color: var(--weiss); }
.kopieren.ok { background: var(--schwarz); color: var(--weiss); }

/* Prompt zum Lesen mit Notizen am Rand (Übung 1) */
.lesen { margin-top: 16px; border-left: 5px solid var(--linie); padding-left: 18px; }
.lesezeile { display: grid; grid-template-columns: 1fr 210px; gap: 22px; padding: 8px 0; border-bottom: 1px solid var(--linie); }
.lesezeile:last-child { border-bottom: 0; }
.lesezeile pre { margin: 0; white-space: pre-wrap; word-wrap: break-word; font: 15.5px/1.55 "SF Mono", ui-monospace, Menlo, Consolas, monospace; }
.lesezeile span { font-size: 15px; line-height: 1.4; color: var(--heidel); font-weight: 600; }
@media (max-width: 640px) { .lesezeile { grid-template-columns: 1fr; gap: 4px; } }

/* Kästen */
.schritt h2.noch { margin-top: 64px; }
.kasten { margin-top: 18px; border-radius: 22px; padding: 18px 20px; }
.kasten > :first-child { margin-top: 0; }
.kasten.ok { background: var(--zitrone); }
.kasten.info { background: var(--nebel); }
.kasten b.titel { display: block; font-size: 15px; letter-spacing: .02em; margin-bottom: 4px; }
ul.punktliste { margin: 10px 0 0 22px; }
ul.punktliste li { margin-bottom: 6px; }

/* Screenshot; fehlt er, bleibt er für Teilnehmende unsichtbar */
figure.shot { margin: 32px auto 32px; width: fit-content; max-width: 100%; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
/* Originalgrösse (Breite kommt aus seiten.py), schmaler nur, wenn die Spalte zu schmal ist. Klick zeigt das Bild gross. */
figure.shot img { display: block; max-width: 100%; height: auto; }
figure.shot figcaption { display: none; }
figure.shot.fehlt { display: none; }
.notizen-an figure.shot.fehlt { display: block; box-shadow: none; outline: 2px dashed var(--heidel); outline-offset: -2px; padding: 18px; background: var(--nebel); }
.notizen-an figure.shot.fehlt figcaption { display: block; font-size: 14px; color: var(--grau); }
.notizen-an figure.shot.fehlt img { display: none; }

/* Downloads */
.datei { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 14px 18px; border-radius: 18px; background: var(--weiss); box-shadow: inset 0 0 0 1.5px var(--linie); text-decoration: none; color: var(--schwarz); }
.datei span { font-size: 14px; color: var(--grau); }
.datei b { font-weight: 600; }

/* Übersicht auf der Startseite */
.uebungen { list-style: none; margin-top: 20px; display: grid; gap: 12px; }
.uebungen a { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 22px; background: var(--nebel); text-decoration: none; color: var(--schwarz); }
.uebungen a i { font-style: normal; width: 46px; height: 46px; border-radius: 50%; background: var(--heidel); color: var(--weiss); display: grid; place-items: center; font-weight: 600; font-size: 19px; }
.uebungen b { display: block; font-size: 20px; letter-spacing: -.01em; }
.uebungen span { display: block; font-size: 15px; color: var(--grau); line-height: 1.35; }
.tipps { list-style: none; margin-top: 16px; counter-reset: t; display: grid; gap: 10px; }
.tipps li { counter-increment: t; border-radius: 18px; background: var(--nebel); padding: 14px 18px 14px 58px; position: relative; }
.tipps li::before { content: counter(t); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--zitrone); font-weight: 600; font-size: 15px; display: grid; place-items: center; }
.tipps b { display: block; }
.tipps span { display: block; font-size: 16px; color: var(--grau); }

/* Weiter und zurück */
.wechsel { display: flex; justify-content: space-between; gap: 12px; margin-top: 50px; }
.wechsel a { flex: 1; padding: 16px 18px; border-radius: 20px; background: var(--nebel); text-decoration: none; color: var(--schwarz); font-weight: 600; }
.wechsel a span { display: block; font-size: 14px; font-weight: 400; color: var(--grau); }
.wechsel a.vor { text-align: right; background: var(--schwarz); color: var(--weiss); }
.wechsel a.vor span { color: rgba(255,255,255,.7); }
.fusszeile { margin-top: 40px; font-size: 14px; color: var(--grau); }

/* Schritt für Schritt (seite.js setzt .schritte-an; ohne JS stehen alle Schritte da) */
.schritt { margin-top: 10px; }
.schritt-marke { margin-top: 34px; font-size: 14px; font-weight: 600; color: var(--grau); }
.schritt h2 { margin-top: 4px; }
.schritt > h2:first-child { margin-top: 34px; }
.schritte-an .schritt { display: none; }
.schritte-an .schritt.aktiv { display: block; }
.schritte-an .wechsel { display: none; }
ol.vorschau { margin: 10px 0 0 24px; }
ol.vorschau li { margin-bottom: 4px; }
.fortschritt { display: flex; gap: 6px; margin-top: 22px; }
.fortschritt button { flex: 1; min-width: 0; height: 34px; border: 0; border-radius: 999px; background: var(--nebel); color: var(--grau); font: 600 14px/1 Noi, "Helvetica Neue", Arial, sans-serif; cursor: pointer; }
.fortschritt button.fertig { background: #E3DBFF; color: var(--heidel); }
.fortschritt button.hier { background: var(--heidel); color: var(--weiss); }
.schrittnav { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; margin: 36px -16px 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(255,255,255,0), var(--weiss) 22%); }
.schrittnav a { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 18px; background: var(--weiss); box-shadow: inset 0 0 0 1.5px var(--schwarz); color: var(--schwarz); font-weight: 600; text-decoration: none; cursor: pointer; user-select: none; }
.schrittnav a span { display: block; font-size: 12.5px; font-weight: 400; color: var(--grau); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schrittnav a.weiter { text-align: right; background: var(--schwarz); color: var(--weiss); }
.schrittnav a.weiter span { color: rgba(255,255,255,.7); }
.notizen-an .schrittnav { padding-bottom: 70px; }

.kopf + h1 { margin-top: 40px; }

/* Auswahl einer Frage (Übung 5): Karten mit Kreis, gewählt = Heidel */
.wahl { margin-top: 10px; }
.kategorie { margin-top: 10px; border-radius: 16px; background: var(--nebel); padding: 0 14px; }
.kategorie summary { list-style: none; cursor: pointer; padding: 15px 30px 15px 2px; position: relative; font-weight: 600; }
.kategorie summary::-webkit-details-marker { display: none; }
.kategorie summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--heidel); }
.kategorie[open] summary::after { content: "–"; }
.kategorie[open] { padding-bottom: 14px; }
.kategorie .wahl-option:first-of-type { margin-top: 0; }
.wahl-option { display: block; width: 100%; margin-top: 8px; padding: 13px 16px 13px 50px; position: relative; text-align: left; border: 1.5px solid var(--linie); border-radius: 16px; background: var(--weiss); color: var(--schwarz); font: 17px/1.4 Noi, "Helvetica Neue", Arial, sans-serif; cursor: pointer; }
.wahl-option::before { content: ""; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; border: 1.5px solid var(--grau); box-sizing: border-box; }
.wahl-option:hover { border-color: var(--heidel); }
.wahl-option.an { border-color: var(--heidel); background: #F1ECFF; }
.wahl-option.an::before { border: 6px solid var(--heidel); }
.schrittnav a.weiter.zu { opacity: .35; pointer-events: none; }
.fortschritt button:disabled { opacity: .45; cursor: default; }

/* Zwei Karten nebeneinander (Übung 6: Unterlagen und Anweisungen) */
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.zwei > div { border-radius: 16px; background: var(--nebel); padding: 14px 16px; }
.zwei b { display: block; margin-bottom: 4px; }
@media (max-width: 560px) { .zwei { grid-template-columns: 1fr; } }

/* Screenshot gross */
figure.shot img { cursor: zoom-in; }
.grossbild { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.82); cursor: zoom-out; }
.grossbild img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }

.platzhalter { margin-top: 6px; font: 13px/1.4 Noi, "Helvetica Neue", Arial, sans-serif; color: var(--grau); }
.kasten.schnell .platzhalter { color: inherit; }
