/* Lernformat-App – Gestaltung im CI von Convention Partner Vorarlberg (ab 0.3.3, 27.11.2026):
   Fahnenrot, ausbalanciert mit Schwarz und Weiß; Grautöne nur als Aufhellung von Schwarz.
   Schrift Fira Sans (Ersatz für die Hausschrift Akko, freie Lizenz, vom eigenen Server). Vorgaben: CPV CI/CI-Vorgaben_Lernformat.md */
@font-face { font-family: "Fira Sans"; src: url("/fonts/FiraSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("/fonts/FiraSans-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("/fonts/FiraSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("/fonts/FiraSans-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("/fonts/FiraSans-Black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
:root {
  --bg: #FFFFFF; --dark: #231F20; --accent: #EE0000; --muted: #F1F0F0;
  --line: rgba(35, 31, 32, .18); --soft: rgba(35, 31, 32, .65);
  --hell-auf-dunkel: rgba(255, 255, 255, .6);   /* Weiß, aufgehellt, für Text auf Schwarz */
  --r: 14px;
  --font: "Fira Sans", 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: 700; }
h1 { font-weight: 900; }
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: 700; font-size: 1.02rem; flex: 1; cursor: pointer; }
.top .titel small { display: block; font-weight: 400; opacity: .75; font-size: .78rem; }
.top button.link { background: none; border: 1.5px solid var(--hell-auf-dunkel); color: var(--bg); padding: 6px 10px; font-size: .85rem; border-radius: 999px; font-weight: 600; min-height: 0; }
/* Logo: weiße Fassung auf Schwarz; in der Kopfleiste 28 px hoch (Vorgabe Flo, 27.11.), Schutzraum rundum ca. eine Zeile „VOR“ */
.top .logo { display: block; height: 28px; width: auto; flex: 0 0 auto; margin: 4px 12px 4px 0; }
@media (max-width: 639px) {
  .top .logo { order: 0; }
  .top button.link { order: 1; margin-left: auto; max-width: 150px; line-height: 1.2; text-align: center; }
  .top .titel { order: 2; flex-basis: 100%; margin-top: 2px; }
  .top .weg { order: 3; }
}
/* Wegweiser: der ganze Vormittag als Band unter der Kopfleiste (bleibt beim Scrollen sichtbar) */
.top { flex-wrap: wrap; }
.weg { flex-basis: 100%; overflow-x: auto; scrollbar-width: none; margin: 2px -16px -6px; padding: 2px 16px 6px; }
.weg::-webkit-scrollbar { display: none; }
.weg ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; white-space: nowrap; }
.weg li { display: flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; font-size: .74rem; font-weight: 600; color: var(--hell-auf-dunkel); position: relative; }
.weg li + li::before { content: ""; position: absolute; left: -3px; top: 50%; width: 4px; border-top: 1.5px solid rgba(255, 255, 255, .3); }
.weg .punkt { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--hell-auf-dunkel); flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; font-size: 8px; line-height: 1; }
.weg li.app { color: var(--bg); }
.weg li.app { font-weight: 700; }
.weg li.app .punkt { width: 14px; height: 14px; background: var(--accent); border-color: var(--accent); color: #FFFFFF; font-size: 10px; font-weight: 900; }   /* Text auf Rot immer weiß */
.weg li.ohne { font-weight: 400; }
.weg li.vorbei { opacity: .55; }
.weg li.jetzt { background: var(--bg); color: var(--dark); opacity: 1; }
.weg li.jetzt.ohne .punkt { border-color: var(--dark); }
.weg li.offen { cursor: pointer; }
.weg .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.beamer .weg { margin: 0 0 1.5vh; padding: 0; overflow: visible; }
.beamer .weg ol { flex-wrap: wrap; gap: .4vw; background: var(--dark); border-radius: 999px; padding: .6vh .8vw; }
.beamer .weg li { font-size: .92vw; padding: .35vh .6vw; }
.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: #FFFFFF; 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(255, 255, 255, .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: var(--accent); color: color-mix(in srgb, var(--accent) 80%, var(--dark)); font-weight: 700; }   /* Rot, zu Schwarz vertieft: besser lesbar als reines Rot auf Weiß */
.ok { color: var(--dark); font-weight: 700; }

/* Knöpfe und Felder */
button, .knopf { font: inherit; font-weight: 700; border: 0; border-radius: 12px; padding: 12px 18px; min-height: 48px; cursor: pointer; background: var(--accent); color: #FFFFFF; font-size: 1.02rem; }   /* Text auf Rot immer weiß */
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.klein:not(.zweit):not(.dunkel) { color: #FFFFFF; }   /* .klein färbt sonst grau; auf Rot bleibt Text weiß */
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: #FFFFFF; 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: #FFFFFF; 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); color: #FFFFFF; }
.kachel.aktiv small { color: rgba(255, 255, 255, .85); }
.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); color: var(--dark); line-height: 1.15; }
.schritte button.an { background: var(--accent); color: #FFFFFF; }
.schritte button b { display: block; font-size: 1rem; }
.vergleich { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.antwort { background: #FFFFFF; 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: .86rem; font-weight: 700; color: var(--soft); }   /* CI: normale Groß- und Kleinschreibung */
details { margin: 8px 0; }
summary { cursor: pointer; font-weight: 700; 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; }
.abschrift { margin-top: 6px; }
.abschrift summary { cursor: pointer; font-weight: 700; }
.abschrift div { white-space: pre-wrap; background: #FFFFFF; border-radius: 8px; padding: 8px 10px; margin-top: 6px; font-size: .92rem; }
.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: 700; padding: 2px 8px; border-radius: 999px; background: var(--muted); }
.status.gut { background: var(--dark); color: var(--bg); }
.status.warn { background: var(--accent); color: #FFFFFF; }

/* 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 #FFFFFF; box-shadow: 0 0 0 3px var(--accent); color: #FFFFFF; }
.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, 0, 0, .3); } }
.uhr { font-size: 2rem; font-weight: 700; 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: #FFFFFF; cursor: pointer; }
.wahl label.an { border-color: var(--accent); background: #FFFFFF; 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; }
.erzaehlung.md { white-space: normal; }
.erzaehlung.md p { margin: 0 0 .7em; }
/* KI-Antworten in Übung 1: Formatierung klein halten, damit sie in die schmalen Spalten passt */
.antwort .md { white-space: normal; }
.antwort .md p { margin: 0 0 .5em; }
.antwort .md h2, .antwort .md h3, .antwort .md h4 { font-size: .95rem; margin: .7em 0 .25em; border: 0; padding: 0; text-transform: none; letter-spacing: 0; color: var(--dark); }
.antwort .md ul, .antwort .md ol { padding-left: 18px; margin: .3em 0 .6em; }
.antwort .md li { margin: 2px 0; }
.grossfrage { font-size: 1.55rem; font-weight: 700; 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); color: var(--dark); font-weight: 600; }
.skala button b { display: block; font-size: 1.15rem; }
.skala button.an { background: var(--accent); color: #FFFFFF; }

/* 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); color: var(--dark); 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: .84rem; font-weight: 700; color: var(--soft); }
.mod textarea.gross { min-height: 360px; font-size: .92rem; }
.zahl { font-size: 1.8rem; font-weight: 700; }
.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: 700; 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: 700; 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: 2.4vh; }
.beamer .these-zeile { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 3vw; align-items: end; }
.beamer .these-zeile .balken { height: 9.5vh; }
.beamer .these-zeile .t { font-size: 1.8vw; font-weight: 700; }
.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: #FFFFFF; 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); }
/* Bildschirm: Logo oben rechts, gut sichtbar, nicht dominant (ca. 12 % der Breite, mind. 160 px); positive Fassung auf Weiß */
.beamer .b-oben { display: flex; align-items: flex-start; justify-content: space-between; gap: 2.5vw; }
.beamer .b-oben .weg { flex: 1; }
.beamer .b-logo { width: 12vw; min-width: 160px; height: auto; flex: 0 0 auto; margin: 0 0 2vh auto; }

/* Übung 1 ab 0.3.4: Versionen und Nachfrage */
.antwort [data-ant] { white-space: normal; }
.versionen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; }
.versionen button { padding: 4px 10px; min-height: 0; }
.antwort .eure { background: var(--muted); border-radius: 8px; padding: 8px; margin: 6px 0 4px; }
.nachfrage { border-left: 4px solid var(--accent); padding: 4px 0 4px 12px; margin: 12px 0 4px; }
.nachfrage label { margin-top: 0; }
details.beispiel { background: var(--muted); border-radius: 8px; padding: 4px 10px; margin: 10px 0; }

@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: 10px 12px 8px; } }
