/* Stunde 02 – Tastatur und Maus */
.huelle-s2 { max-width: 1120px; }
.klein { font-size: 13.5px; color: var(--gedaempft); margin: 6px 0 0; }
.mono { font-family: var(--schrift-mono); font-weight: 700; }
.knopf.gross { padding: 13px 26px; font-size: 16.5px; }

/* ---------- Start ---------- */
.s2-start { display: grid; grid-template-columns: 1.55fr 1fr; gap: 30px; align-items: start; padding: 6px 0 10px; }
.ziel-liste { list-style: none; padding: 0; margin: 22px 0 18px; display: grid; gap: 10px; }
.ziel-liste li { display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; color: var(--tinte-2); }
.ziel-liste span {
  flex: none; width: 23px; height: 23px; border-radius: 7px; margin-top: 1px;
  background: var(--akzent-zart); color: var(--akzent-tief);
  display: grid; place-items: center; font-size: 12.5px; font-weight: 680;
}
.dauer { font-size: 14px; color: var(--gedaempft); margin: 0 0 12px; }
.laufzettel {
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius);
  box-shadow: var(--schatten); padding: 20px 22px;
}
.laufzettel ul { list-style: none; margin: 12px 0 10px; padding: 0; display: grid; gap: 9px; }
.laufzettel li { display: flex; align-items: center; gap: 10px; font-size: 15.5px; }
.laufzettel li b { margin-left: auto; font-size: 13.5px; color: var(--gedaempft); font-weight: 600; }
.lz-haken, .st-haken {
  flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--rand-stark);
  display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; line-height: 1;
}
.laufzettel li.fertig .lz-haken, .station.fertig .st-haken { background: var(--gut); border-color: var(--gut); }
.laufzettel li.fertig .lz-haken::after, .station.fertig .st-haken::after { content: "✓"; }
.laufzettel li.fertig b { color: var(--gut); }

/* ---------- Abschnittsleiste ---------- */
.s2-nav {
  position: sticky; top: 0; z-index: 20; display: flex; gap: 6px; flex-wrap: wrap;
  padding: 10px 0; margin: 14px 0 6px;
  background: color-mix(in srgb, var(--papier) 92%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rand);
}
.s2-nav a {
  padding: 6px 13px; border-radius: 999px; font-size: 14px; font-weight: 600;
  text-decoration: none; color: var(--tinte-2); background: var(--flaeche); border: 1px solid var(--rand);
}
.s2-nav a:hover { border-color: var(--akzent); color: var(--akzent-tief); }
.s2-teil { padding: 34px 0 10px; scroll-margin-top: 60px; }
.unterzeile { margin: 26px 0 4px; font-size: 20px; }
.info-zeile { color: var(--tinte-2); font-size: 15px; margin: 4px 0 14px; }

/* ---------- Spiel-Verlinkung ---------- */
.spiel-link {
  display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--akzent-zart), var(--flaeche));
  border: 1px solid var(--rand-stark); border-radius: var(--radius); padding: 20px 24px; margin: 20px 0;
}
.spiel-link-text { flex: 1 1 360px; }
.spiel-link-text h3 { margin: 0 0 6px; }
.spiel-link-text p { margin: 0 0 6px; color: var(--tinte-2); font-size: 15.5px; }
.spiel-link-text p.klein { color: var(--gedaempft); font-size: 13px; }

/* ---------- Karten ---------- */
.station, .karte-info, .tester, .werk, .frage-karte, .merk, .jagd {
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); box-shadow: var(--schatten);
}
.stationen { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 18px; margin: 14px 0 20px; }
.station { padding: 18px 20px 16px; }
.station header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.station h4 { margin: 0; font-size: 17px; }
.st-haken { margin-left: auto; }
.st-nr {
  width: 26px; height: 26px; border-radius: 8px; background: var(--akzent-zart); color: var(--akzent-tief);
  display: grid; place-items: center; font-weight: 700; font-size: 13.5px;
}
.station p { margin: 0 0 10px; font-size: 15px; color: var(--tinte-2); }
.st-stand { margin: 10px 0 0 !important; font-size: 13.5px !important; color: var(--gedaempft) !important; font-weight: 600; }
.station.fertig .st-stand { color: var(--gut) !important; }
.station.fertig { border-color: color-mix(in srgb, var(--gut) 45%, var(--rand)); }
.merk { padding: 16px 22px; border-left: 4px solid var(--akzent); }
.merk h4 { margin: 0 0 6px; color: var(--akzent-tief); }
.merk ul { margin: 0; padding-left: 20px; }
.merk li { margin-bottom: 3px; font-size: 15px; color: var(--tinte-2); }

/* ---------- Maus-Stationen ---------- */
.m-feld {
  position: relative; height: 190px; border-radius: 12px; overflow: hidden; user-select: none; -webkit-user-select: none;
  background: repeating-linear-gradient(0deg, var(--flaeche-2), var(--flaeche-2) 19px, color-mix(in srgb, var(--rand) 60%, var(--flaeche-2)) 20px);
  border: 1px dashed var(--rand-stark);
}
.m-feld-mitte { display: grid; place-items: center; }
.m-ziel {
  position: absolute; width: 38px; height: 38px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #6AA6FF, var(--akzent)); box-shadow: 0 0 0 5px color-mix(in srgb, var(--akzent) 25%, transparent);
  left: 20px; top: 20px;
}
.m-ziel:active { transform: scale(.9); }
.m-ordner, .m-datei {
  display: grid; justify-items: center; gap: 4px; padding: 10px 14px; border: 2px solid transparent; border-radius: 10px;
  background: transparent; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--tinte); cursor: pointer;
}
.m-ordner svg { width: 66px; height: 54px; }
.m-datei svg { width: 44px; height: 55px; }
.m-ordner.markiert, .m-datei:focus, .m-datei.markiert { border-color: var(--akzent); background: var(--akzent-zart); outline: none; }
.m-ordner.auf svg { transform: scale(1.12) rotate(-3deg); }
.m-offen { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-weight: 700; color: var(--gut); font-size: 14px; }
.m-menue {
  position: absolute; list-style: none; margin: 0; padding: 5px; min-width: 150px; z-index: 5;
  background: var(--flaeche); border: 1px solid var(--rand-stark); border-radius: 10px; box-shadow: var(--schatten-xl);
}
.m-menue li { padding: 7px 12px; border-radius: 7px; font-size: 14.5px; cursor: pointer; }
.m-menue li:hover { background: var(--akzent-zart); color: var(--akzent-tief); }
.m-ziehen { display: flex; justify-content: space-between; align-items: center; padding: 0 22px; touch-action: none; }
.zi-spalte { display: grid; gap: 12px; position: relative; }
.zi-block, .zi-platz { width: 84px; height: 42px; border-radius: 10px; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.zi-block { color: #fff; cursor: grab; touch-action: none; position: relative; z-index: 2; box-shadow: 0 3px 8px rgba(10, 30, 70, .25); }
.zi-block.zieht { cursor: grabbing; z-index: 9; box-shadow: 0 10px 22px rgba(10, 30, 70, .35); }
.zi-block.fest { cursor: default; box-shadow: none; }
.zi-platz { border: 2px dashed; background: transparent; }
.c-rot { background: #D6485C; border-color: #D6485C; color: #D6485C; }
.c-blau { background: #2166C7; border-color: #2166C7; color: #2166C7; }
.c-gruen { background: #1E9B6B; border-color: #1E9B6B; color: #1E9B6B; }
.zi-platz.c-rot, .zi-platz.c-blau, .zi-platz.c-gruen { background: transparent; }
.zi-block.c-rot, .zi-block.c-blau, .zi-block.c-gruen { color: #fff; }
.m-rad { height: 150px; overflow-y: auto; border: 1px dashed var(--rand-stark); border-radius: 12px; background: var(--flaeche-2); }
.m-rad-inhalt { padding: 10px 14px; }
.m-rad-inhalt p { margin: 0 0 12px; font-size: 14.5px; }
.m-rad-inhalt .knopf { margin: 6px 0 4px; }
.m-text { padding: 11px 14px; border-radius: 10px; background: var(--flaeche-2); border: 1px solid var(--rand); font-size: 16px; }
.m-text.ok { border-color: var(--gut); background: color-mix(in srgb, var(--gut) 12%, var(--flaeche)); }

/* ---------- Tastatur ---------- */
.tk-legende { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 12px; }
.tk-l { padding: 4px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; border: 1px solid var(--rand-stark); }
.tk-rahmen { overflow-x: auto; padding: 14px; background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); box-shadow: var(--schatten); margin-bottom: 14px; }
.tastatur { --u: 44px; display: flex; gap: 14px; width: max-content; margin: 0 auto; }
.tk-block { display: grid; grid-auto-rows: var(--u); }
.tk-haupt { grid-template-columns: repeat(60, calc(var(--u) / 4)); }
.tk-nav { grid-template-columns: repeat(12, calc(var(--u) / 4)); }
.tk-num { grid-template-columns: repeat(16, calc(var(--u) / 4)); }
.tk {
  position: relative; margin: 2px; border: 1px solid var(--rand-stark); border-radius: 7px;
  background: var(--flaeche-2); color: var(--tinte); font-size: 12px; font-weight: 600; line-height: 1;
  overflow: hidden; transition: background .08s, transform .08s;
}
.tk i { position: absolute; font-style: normal; }
.tk .k-o { left: 5px; top: 5px; color: var(--tinte-2); font-size: 11.5px; }
.tk .k-u { left: 5px; bottom: 5px; font-size: 13.5px; }
.tk .k-a { right: 5px; bottom: 5px; color: var(--akzent); font-size: 11.5px; font-weight: 700; }
.tk .k-m { inset: 0; display: grid; place-items: center; font-size: 15px; font-weight: 700; text-align: center; }
.tk.kl .k-m { font-size: 10.5px; }
.tk .k-t { inset: 0; display: grid; place-items: center; font-size: 11.5px; text-align: center; padding: 0 2px; }
.tk.g-b, .tk-l.g-b { background: var(--flaeche-2); }
.g-z { background: color-mix(in srgb, #2F7BEA 16%, var(--flaeche)); }
.g-u { background: color-mix(in srgb, #F08A24 24%, var(--flaeche)); }
.g-s { background: color-mix(in srgb, #8B5CF6 20%, var(--flaeche)); }
.g-e { background: color-mix(in srgb, #1E9B6B 22%, var(--flaeche)); }
.g-n { background: color-mix(in srgb, #E8509A 20%, var(--flaeche)); }
.g-f { background: color-mix(in srgb, #E9B80D 28%, var(--flaeche)); }
.tk.noppe::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 12px; height: 2px; margin-left: -6px; background: var(--tinte-2); border-radius: 2px; opacity: .8; }
.tk.an { background: var(--akzent) !important; color: #fff; border-color: var(--akzent-tief); transform: translateY(2px) scale(.96); }
.tk.an .k-o, .tk.an .k-a { color: #fff; }
.tk.tipp { animation: tipp .8s ease-in-out infinite; border-color: #E8509A; }
@keyframes tipp { 50% { background: #FFB24A; transform: scale(1.08); } }
.tk-lese { font-weight: 700; }
.tk-lese-a { color: var(--akzent); }
.tastatur-klein { --u: 38px; margin-top: 16px; }
.tastatur-klein .tk .k-o, .tastatur-klein .tk .k-a { font-size: 9.5px; }
.tastatur-klein .tk .k-u { font-size: 11px; }
.tastatur-klein .tk.kl .k-m { font-size: 10.5px; }
.tk .k-t { font-size: 9px; }
.tastatur-klein .tk .k-m { font-size: 12px; }
.tastatur-klein .tk { margin: 1.5px; border-radius: 5px; }

.tester { padding: 16px 20px; margin: 16px 0 22px; cursor: text; outline: none; border: 2px dashed var(--rand-stark); }
.tester:focus, .tester.aktiv { border-color: var(--akzent); border-style: solid; }
.tester-kopf { display: flex; align-items: center; gap: 12px; }
.tester p { margin: 6px 0 0; color: var(--tinte-2); font-size: 15px; }
.tester-ausgabe { font-size: 20px !important; font-weight: 650; color: var(--tinte) !important; min-height: 28px; }
.chip-led { font-size: 12.5px; font-weight: 700; padding: 3px 11px; border-radius: 999px; background: #F08A24; color: #fff; }
.drei-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; margin: 0 0 18px; }
.karte-info { padding: 18px 22px; }
.karte-info h4 { margin: 0 0 10px; font-size: 17px; }
.karte-info .punkte { margin: 0; padding-left: 20px; }
.karte-info .punkte li { margin-bottom: 8px; font-size: 15px; color: var(--tinte-2); }
.grenz { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.grenz th, .grenz td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--rand); vertical-align: top; }
.grenz th { white-space: nowrap; font-weight: 650; width: 1%; }
.grenz tr:last-child th, .grenz tr:last-child td { border-bottom: 0; }
.zeichen-reihe { font-size: 22px; font-weight: 650; margin: 6px 0 8px; line-height: 1.6; font-family: var(--schrift-mono); }
.zeichen-reihe small { font-size: 12px; font-weight: 600; color: var(--akzent); background: var(--akzent-zart); padding: 1px 5px; border-radius: 5px; font-family: var(--schrift); vertical-align: 3px; }

/* ---------- Tastenjagd ---------- */
.jagd { padding: 20px 22px 22px; margin-top: 16px; }
.jagd-leiste { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.jagd-leiste span { width: 22px; height: 8px; border-radius: 4px; background: var(--rand); }
.jagd-leiste span.aktuell { background: var(--akzent); }
.jagd-leiste span.ok { background: var(--gut); }
.jagd-leiste span.tipp { background: #F08A24; }
.jagd-feld {
  min-height: 150px; border: 2px dashed var(--rand-stark); border-radius: 14px; padding: 22px; text-align: center;
  display: grid; align-content: center; gap: 8px; outline: none; background: var(--flaeche-2);
}
.jagd-feld:focus, .jagd-feld.aktiv { border-style: solid; border-color: var(--akzent); }
.jagd-auftrag { font-size: clamp(20px, 2.8vw, 27px); font-weight: 680; margin: 0; }
.jagd-rueck { margin: 0; min-height: 24px; font-size: 16px; font-weight: 600; color: var(--gedaempft); }
.jagd-rueck.gut { color: var(--gut); }
.jagd-rueck.nein { color: var(--schlecht); }
.jagd-tipp { margin: 0; font-size: 15px; color: var(--tinte-2); background: var(--akzent-zart); padding: 8px 14px; border-radius: 9px; justify-self: center; }
.jagd-feld.wackeln { animation: wackel .3s; }
@keyframes wackel { 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }
.jagd-knoepfe { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.jagd-knoepfe .klein { margin: 0; }

/* ---------- Werkstatt-Karten ---------- */
.werkstatt { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; margin-top: 16px; }
.werk { padding: 16px 18px; position: relative; }
.werk h4 { margin: 0 0 4px; font-size: 16px; display: flex; gap: 10px; align-items: center; }
.werk h4 .st-nr { flex: none; }
.werk p { margin: 0 0 8px; font-size: 14.5px; color: var(--tinte-2); }
.werk .soll {
  font-family: var(--schrift-mono); font-size: 16.5px; font-weight: 700; background: var(--flaeche-2); border: 1px solid var(--rand);
  padding: 8px 12px; border-radius: 9px; margin: 0 0 8px; color: var(--tinte); overflow-wrap: anywhere; user-select: all;
}
.werk input[type=text] {
  width: 100%; font: inherit; font-family: var(--schrift-mono); font-size: 16.5px; font-weight: 600; color: var(--tinte);
  background: var(--flaeche); border: 2px solid var(--rand-stark); border-radius: 9px; padding: 9px 12px;
}
.werk input[type=text]:focus { outline: none; border-color: var(--akzent); }
.werk.ok { border-color: color-mix(in srgb, var(--gut) 55%, var(--rand)); }
.werk.ok input[type=text] { border-color: var(--gut); background: color-mix(in srgb, var(--gut) 10%, var(--flaeche)); }
.werk.ok h4 .st-nr { background: var(--gut); color: #fff; }
.werk-knoepfe { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.werk-knoepfe .knopf { padding: 6px 14px; font-size: 13.5px; }
.werk .tipp-text { margin: 8px 0 0; padding: 8px 12px; border-radius: 8px; background: var(--akzent-zart); color: var(--tinte); font-size: 14px; }
.werk .stat { margin-left: auto; font-weight: 700; font-size: 13.5px; color: var(--gut); }
.werk .quelle { margin-bottom: 8px; }

/* ---------- Quiz ---------- */
.quiz { display: grid; grid-template-columns: repeat(auto-fit, minmax(480px, 1fr)); gap: 14px; margin-top: 16px; align-items: start; }
.frage-karte { padding: 16px 20px; border: 1px solid var(--rand); margin: 0; min-width: 0; }
.frage-karte legend { padding: 0; font-weight: 650; font-size: 16.5px; float: left; width: 100%; margin-bottom: 8px; }
.frage-karte legend span { color: var(--akzent); margin-right: 6px; }
.frage-karte label {
  clear: both; display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; margin: 5px 0;
  border: 1px solid var(--rand); border-radius: 10px; cursor: pointer; font-size: 15.5px; background: var(--flaeche-2);
}
.frage-karte label:hover { border-color: var(--akzent); }
.frage-karte input { margin-top: 4px; accent-color: var(--akzent); }
.frage-karte.ok { border-color: var(--gut); }
.frage-karte.nein { border-color: var(--schlecht); }
.frage-karte label.richtig { border-color: var(--gut); background: color-mix(in srgb, var(--gut) 14%, var(--flaeche)); }
.frage-karte label.falsch { border-color: var(--schlecht); background: color-mix(in srgb, var(--schlecht) 12%, var(--flaeche)); }
.frage-karte .erklaerung { clear: both; margin: 8px 0 0; font-size: 14.5px; color: var(--tinte-2); padding: 8px 12px; border-radius: 8px; background: var(--akzent-zart); }
.quiz-ende { display: flex; gap: 12px; margin: 18px 0; flex-wrap: wrap; }
.quiz-ergebnis {
  padding: 22px 26px; border-radius: var(--radius); background: var(--flaeche); border: 2px solid var(--gut);
  box-shadow: var(--schatten); margin-bottom: 20px;
}
.quiz-ergebnis h3 { font-size: 24px; margin: 0 0 6px; }
.quiz-ergebnis p { margin: 0; color: var(--tinte-2); font-size: 16px; }

@media (max-width: 860px) {
  .s2-start { grid-template-columns: minmax(0, 1fr); }
  .werkstatt, .drei-spalten, .stationen { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .tk.tipp, .jagd-feld.wackeln { animation: none; } }
