/* Lernformat-App – Gestaltung nach Flos Palette E „Lomo“ (Welt A): Warmweiß, Petrol, Orange, Sand. */
:root {
  --bg: #F7F4EC; --dark: #1B3A33; --accent: #EE6A24; --muted: #EDE4D2;
  --line: rgba(27, 58, 51, .18); --soft: rgba(27, 58, 51, .65);
  --r: 14px;
  --font: "Nunito", "Nunito Sans", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--dark); font-family: var(--font); font-size: 17px; line-height: 1.45; }
a { color: var(--dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.08rem; }
p { margin: .4em 0 .8em; }
.hidden { display: none !important; }

/* Kopfleiste */
.top { background: var(--dark); color: var(--bg); padding: 10px 16px; display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 10; }
.top .titel { font-weight: 800; font-size: 1.02rem; flex: 1; cursor: pointer; }
.top .titel small { display: block; font-weight: 600; opacity: .7; font-size: .78rem; }
.top button.link { background: none; border: 1.5px solid rgba(247, 244, 236, .5); color: var(--bg); padding: 6px 10px; font-size: .85rem; border-radius: 999px; font-weight: 700; min-height: 0; }
.mockband { background: var(--muted); font-size: .8rem; padding: 4px 16px; text-align: center; }

main { max-width: 760px; margin: 0 auto; padding: 16px 16px 80px; }

/* Karten */
.karte { background: #fff; border-radius: var(--r); padding: 16px; margin: 0 0 14px; border: 1px solid var(--line); }
.karte.sand { background: var(--muted); border-color: transparent; }
.karte.petrol { background: var(--dark); color: var(--bg); border-color: transparent; }
.karte.petrol a, .karte.petrol h2, .karte.petrol h3 { color: var(--bg); }
.klein { font-size: .86rem; color: var(--soft); }
.karte.petrol .klein { color: rgba(247, 244, 236, .75); }
.hinweis { background: var(--muted); border-left: 5px solid var(--accent); padding: 8px 12px; border-radius: 8px; font-size: .9rem; margin: 8px 0 12px; }
.fehler { color: #A8321A; font-weight: 700; }
.ok { color: var(--dark); font-weight: 800; }

/* Knöpfe und Felder */
button, .knopf { font: inherit; font-weight: 800; border: 0; border-radius: 12px; padding: 12px 18px; min-height: 48px; cursor: pointer; background: var(--accent); color: var(--dark); font-size: 1.02rem; }
button:disabled { opacity: .45; cursor: default; }
button.zweit { background: transparent; color: var(--dark); border: 2px solid var(--dark); }
button.dunkel { background: var(--dark); color: var(--bg); }
button.klein { min-height: 36px; padding: 6px 12px; font-size: .88rem; }
button.breit { width: 100%; }
.reihe { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.reihe > * { flex: 0 0 auto; }
.reihe > input, .reihe > select { flex: 1 1 140px; min-width: 0; width: auto; }
label { font-weight: 700; display: block; margin: 10px 0 4px; }
input[type=text], input[type=password], textarea, select { font: inherit; width: 100%; padding: 11px 12px; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--dark); }
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; margin: 12px 0; cursor: pointer; }
.check input { width: 26px; height: 26px; flex: 0 0 26px; accent-color: var(--accent); margin: 0; }

/* Startseite: Modul-Kacheln */
.kacheln { display: grid; grid-template-columns: 1fr; gap: 12px; }
.kachel { display: block; width: 100%; text-align: left; background: #fff; color: var(--dark); border: 2px solid var(--dark); border-radius: var(--r); padding: 16px; font-size: 1.15rem; }
.kachel small { display: block; font-weight: 600; font-size: .88rem; color: var(--soft); margin-top: 2px; }
.kachel.aktiv { background: var(--accent); border-color: var(--accent); }
.kachel.papier { border-style: dashed; opacity: .75; }

/* Experimente */
.schritte { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 14px; }
.schritte button { min-height: 52px; padding: 6px 4px; font-size: .82rem; background: var(--muted); line-height: 1.15; }
.schritte button.an { background: var(--accent); }
.schritte button b { display: block; font-size: 1rem; }
.vergleich { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.antwort { background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 10px; font-size: .9rem; white-space: pre-wrap; min-height: 80px; overflow-wrap: anywhere; }
.antwort.leer { color: var(--soft); font-style: normal; }
.antwort h4 { margin: 0 0 6px; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--soft); }
details { margin: 8px 0; }
summary { cursor: pointer; font-weight: 800; padding: 6px 0; }
.rolle { background: var(--muted); border-radius: 10px; padding: 10px 12px; margin: 8px 0; font-size: .92rem; }
.rolle b { display: block; }
.leitfragen { margin: 6px 0 10px; padding-left: 20px; }
.material { white-space: pre-wrap; font-size: .85rem; background: var(--muted); padding: 10px; border-radius: 8px; max-height: 260px; overflow: auto; }
.foto-vorschau { max-width: 100%; border-radius: 10px; margin-top: 8px; display: block; }
.liste { list-style: none; padding: 0; margin: 0; }
.liste li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.liste li:last-child { border-bottom: 0; }
.status { display: inline-block; font-size: .78rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--muted); }
.status.gut { background: var(--dark); color: var(--bg); }
.status.warn { background: var(--accent); }

/* Sprachnotiz */
.aufnahme { text-align: center; padding: 18px 0 6px; }
.rec-knopf { width: 150px; height: 150px; border-radius: 50%; font-size: 1.1rem; background: var(--accent); border: 6px solid #fff; box-shadow: 0 0 0 3px var(--accent); }
.rec-knopf.laeuft { background: var(--dark); color: var(--bg); box-shadow: 0 0 0 3px var(--dark); animation: puls 1.4s infinite; }
@keyframes puls { 50% { box-shadow: 0 0 0 12px rgba(238, 106, 36, .35); } }
.uhr { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; margin: 10px 0 4px; }
.pegel { height: 10px; background: var(--muted); border-radius: 6px; overflow: hidden; max-width: 260px; margin: 6px auto; }
.pegel i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .1s; }
audio { width: 100%; margin: 10px 0; }
.wahl { display: grid; gap: 8px; }
.wahl label { margin: 0; font-weight: 600; border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; background: #fff; cursor: pointer; }
.wahl label.an { border-color: var(--accent); background: #fff; box-shadow: inset 0 0 0 1px var(--accent); }
.wahl input { margin-top: 4px; accent-color: var(--accent); width: 20px; height: 20px; flex: 0 0 20px; }

/* KI-Stimme */
.erzaehlung { white-space: pre-wrap; font-size: 1.05rem; line-height: 1.45; margin: 8px 0 12px; }
.grossfrage { font-size: 1.55rem; font-weight: 800; line-height: 1.25; margin: 8px 0; }

/* Thesen */
.skala { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 10px; }
.skala button { min-height: 64px; padding: 4px; font-size: .74rem; line-height: 1.1; background: var(--muted); font-weight: 700; }
.skala button b { display: block; font-size: 1.15rem; }
.skala button.an { background: var(--accent); }

/* Ernte (Markdown) */
.md h2 { font-size: 1.2rem; margin-top: 1.1em; border-bottom: 3px solid var(--accent); padding-bottom: 4px; }
.md h3 { margin-top: 1em; }
.md ul, .md ol { padding-left: 22px; }
.md li { margin: 4px 0; }

/* Moderation */
.mod main { max-width: 1180px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.tabs button { background: var(--muted); min-height: 40px; padding: 8px 14px; font-size: .95rem; }
.tabs button.an { background: var(--dark); color: var(--bg); }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--soft); }
.mod textarea.gross { min-height: 360px; font-size: .92rem; }
.zahl { font-size: 1.8rem; font-weight: 800; }
.balken { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; align-items: end; height: 70px; }
.balken i { display: block; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; }
.balken.vorher i { background: var(--dark); }
.qr-box svg { width: 100%; max-width: 240px; display: block; }

/* Bildschirm */
.beamer { background: var(--bg); min-height: 100vh; }
.beamer .buehne { padding: 4vh 5vw; min-height: 100vh; display: flex; flex-direction: column; }
.beamer h1 { font-size: 4.2vw; }
.beamer .kopf { font-size: 1.6vw; font-weight: 800; color: var(--soft); margin-bottom: 2vh; }
.beamer .berzaehlung { font-size: 1.9vw; line-height: 1.4; white-space: pre-wrap; max-width: 86vw; }
.beamer .bfrage { font-size: 4.4vw; font-weight: 800; line-height: 1.2; max-width: 80vw; }
.beamer .md { font-size: 1.7vw; columns: 2; column-gap: 4vw; }
.beamer .md h2 { break-after: avoid; }
.beamer .qr-gross svg { height: 62vh; width: auto; }
.beamer .thesen-b { display: grid; gap: 3vh; }
.beamer .these-zeile { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 3vw; align-items: end; }
.beamer .these-zeile .balken { height: 11vh; }
.beamer .these-zeile .t { font-size: 1.8vw; font-weight: 800; }
.beamer .bl { font-size: 1vw; color: var(--soft); display: grid; grid-template-columns: repeat(5, 1fr); text-align: center; margin-top: 4px; }
.beamer .zettel { background: #fff; border: 2px dashed var(--dark); padding: 2vh 2vw; font-size: 2.2vw; font-weight: 700; margin: 0 0 2vh; border-radius: 8px; }
.beamer .fuss { margin-top: auto; font-size: 1vw; color: var(--soft); }

@media (min-width: 640px) { .kacheln { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .vergleich { gap: 6px; } .antwort { font-size: .8rem; padding: 8px; } .skala button { font-size: .66rem; } }
@media (max-width: 480px) { .top .titel small { display: none; } .top { padding: 8px 12px; } }
