@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #F6F5FA;
  --flaeche: #FFFFFF;
  --rahmen: #ECE9F3;
  --rahmen-stark: #DCD7E8;
  --akzent: #5B3FD9;
  --akzent-dunkel: #4A30C2;
  --akzent-hell: #EFEBFD;
  --violett-dunkel: #34277F;
  --text: #1D1B29;
  --nebentext: #5E5A70;
  --grau-flaeche: #F1EFF6;
  --grau-balken: #E4E1EC;
  --gruen: #1F8A52;
  --gruen-hell: #E5F4EC;
  --orange: #7A4E00;
  --orange-hell: #FBF0DB;
  --orange-rahmen: #F0DDB3;
  --rot: #B42318;
  --rot-hell: #FDECEA;
  --schatten: 0 1px 2px rgba(29, 27, 41, .04), 0 6px 20px rgba(29, 27, 41, .05);
  --radius: 20px;
  --radius-mittel: 16px;
  --radius-klein: 12px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.kopierfeld { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--akzent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }

/* ---------- Kopfzeile ---------- */
.kopf {
  background: var(--flaeche);
  border-bottom: 1px solid var(--rahmen);
}
.kopf-innen {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo-zeichen {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--akzent);
  display: grid;
  place-items: center;
}
.logo-zeichen svg { width: 20px; height: 20px; }

.serverstatus {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--nebentext);
  padding: 8px 14px;
  border: 1px solid var(--rahmen);
  border-radius: 999px;
  background: var(--flaeche);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.serverstatus .punkt {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gruen);
  box-shadow: 0 0 0 3px var(--gruen-hell);
}
.serverstatus.getrennt .punkt { background: #A6A2B5; box-shadow: 0 0 0 3px var(--grau-flaeche); }

/* ---------- Seitenrahmen ---------- */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 32px 120px;
}

h1 {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
h2 {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 0;
}

.datum {
  margin: 0 0 6px;
  color: var(--nebentext);
  font-size: 15px;
  font-weight: 500;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-klein);
  border: 1px solid var(--rahmen);
  background: var(--flaeche);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--rahmen-stark); background: #FBFAFE; text-decoration: none; }
.btn:focus-visible { outline: 3px solid #C9BDF7; outline-offset: 2px; }

.btn-primaer {
  background: var(--akzent);
  border-color: var(--akzent);
  color: #fff;
}
.btn-primaer:hover { background: var(--akzent-dunkel); border-color: var(--akzent-dunkel); }

.btn-sekundaer {
  color: var(--akzent);
  border-color: #D5CCF8;
  background: var(--flaeche);
}
.btn-sekundaer:hover { background: var(--akzent-hell); border-color: #C9BDF7; }

.btn-hell {
  color: var(--akzent);
  border-color: var(--akzent-hell);
  background: var(--akzent-hell);
}
.btn-hell:hover { background: #E5DFFC; border-color: #E5DFFC; }

.btn:disabled,
.btn:disabled:hover {
  background: var(--grau-flaeche);
  border-color: var(--grau-flaeche);
  color: #A6A2B5;
  cursor: not-allowed;
}

.btn-klein {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

/* Kopieren-Button: beide Beschriftungen liegen übereinander, die Breite bleibt gleich */
.kopieren {
  display: inline-grid;
  grid-template-areas: "x";
}
.kopieren > span { grid-area: x; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.kopieren .ok { visibility: hidden; }
.kopieren.war-kopiert {
  background: var(--akzent-hell);
  border-color: var(--akzent-hell);
  color: var(--akzent);
}
.kopieren.kopiert,
.kopieren.kopiert:hover {
  background: var(--gruen);
  border-color: var(--gruen);
  color: #fff;
}
.kopieren.kopiert .normal { visibility: hidden; }
.kopieren.kopiert .ok { visibility: visible; }
.kopieren svg { width: 16px; height: 16px; flex: none; }

/* ---------- Karten ---------- */
.karte {
  background: var(--flaeche);
  border: 1px solid var(--rahmen);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
}

.titelzeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* ---------- Kacheln der Übersicht ---------- */
.kacheln {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.kachel {
  background: var(--flaeche);
  border: 1px solid var(--rahmen);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 22px 24px 24px;
  min-height: 168px;
  display: flex;
  flex-direction: column;
}
.kachel-titel {
  font-size: 14px;
  font-weight: 600;
  color: var(--nebentext);
  letter-spacing: 0;
}
.kachel-zahl {
  font-size: 44px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 10px 0 12px;
  font-variant-numeric: tabular-nums;
}
.kachel-unten {
  margin-top: auto;
  color: var(--nebentext);
  font-size: 14px;
  min-height: 42px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  overflow-wrap: anywhere;
}
.kachel-zeile { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kachel-dunkel {
  background: var(--violett-dunkel);
  border-color: var(--violett-dunkel);
  color: #fff;
}
.kachel-dunkel .kachel-titel,
.kachel-dunkel .kachel-unten { color: #D9D2FF; }

/* ---------- Balken ---------- */
.balken {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: var(--grau-balken);
  overflow: hidden;
}
.balken-fuellung {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--akzent);
  transition: width .6s ease;
}
.balken-gruen { width: 72px; height: 5px; }
.balken-gruen .balken-fuellung { background: var(--gruen); }

.stufenbalken {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  width: 152px;
}
.stufenbalken > span { height: 6px; border-radius: 999px; background: var(--grau-balken); }
.stufenbalken > .abschnitt-erledigt { background: var(--gruen); }
.stufenbalken > .abschnitt-aktuell { background: var(--akzent); }
.stufenbalken.klein { width: 132px; }
.stufenbalken.klein > span { height: 5px; }

/* ---------- Filter und Tabelle ---------- */
.filter {
  display: flex;
  gap: 10px;
  margin: 32px 0 20px;
  flex-wrap: wrap;
}
.filter .btn[aria-pressed="true"] {
  background: var(--akzent-hell);
  border-color: #C9BDF7;
  color: var(--akzent);
}
.filter .btn { gap: 5px; }
.filter .anzahl { font-variant-numeric: tabular-nums; }

.tabellenkarte { overflow: hidden; }
.tabelle {
  width: 100%;
  border-collapse: collapse;
}
.tabelle th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--nebentext);
  padding: 18px 20px;
  border-bottom: 1px solid var(--rahmen);
  white-space: nowrap;
}
.tabelle td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--rahmen);
  vertical-align: middle;
  height: 84px;
}
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle .gespraech { font-weight: 600; font-size: 16px; }
.tabelle .neben, .neben { color: var(--nebentext); }
.tabelle .rechts { text-align: right; }
.tabelle .zeit { font-variant-numeric: tabular-nums; white-space: nowrap; }

.neu {
  display: inline-block;
  vertical-align: 2px;
  margin-right: 8px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--akzent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
}

.fortschritt { display: inline-flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.uebernommen { display: inline-flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.status-fertig { background: var(--gruen-hell); color: var(--gruen); }
.status-in_arbeit { background: var(--akzent-hell); color: var(--akzent); }
.status-pruefen { background: var(--orange-hell); color: var(--orange); }

.leer {
  padding: 56px 24px;
  text-align: center;
  color: var(--nebentext);
}

/* ---------- Detailansicht ---------- */
.zurueck {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 20px;
}
.zurueck svg { width: 18px; height: 18px; }

.meta {
  color: var(--nebentext);
  margin: 8px 0 0;
  font-size: 15px;
}

.kopfkarte { padding: 26px 28px; }
.kopfkarte-oben {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.kopfkarte-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; }
.kopfkarte-unten {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--rahmen);
}
.kopierstand { display: flex; flex-direction: column; gap: 9px; min-width: 220px; }
.kopier-zaehler { font-size: 14px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.segmente { display: flex; gap: 4px; max-width: 360px; }
.segmente > span { flex: 1; min-width: 10px; height: 6px; border-radius: 999px; background: var(--grau-balken); }
.segmente > span.an { background: var(--gruen); }

/* Player „Aufnahme anhören“ */
.player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--rahmen);
  border-radius: 999px;
  background: var(--flaeche);
  width: 300px;
  max-width: 100%;
}
.player-knopf {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--akzent);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.player-knopf:focus-visible { outline: 3px solid #C9BDF7; outline-offset: 2px; }
.player-knopf svg { width: 16px; height: 16px; }
.player-mitte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.player-titel { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1; }
.player-leiste { height: 5px; cursor: pointer; }
.player-leiste .balken-fuellung { transition: none; }
.player-zeit { flex: none; font-size: 13px; color: var(--nebentext); font-variant-numeric: tabular-nums; min-width: 74px; text-align: right; }

.spruenge {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.abschnitt { margin-top: 40px; scroll-margin-top: 24px; }
.abschnitt-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.abschnitt-kopf .dauer { color: var(--nebentext); font-weight: 500; font-size: 16px; margin-left: 6px; }

.hinweis {
  border: 1px solid var(--orange-rahmen);
  background: var(--orange-hell);
  color: var(--orange);
  border-radius: var(--radius-klein);
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: 15px;
}
.hinweis-neutral {
  border-color: var(--rahmen);
  background: var(--flaeche);
  color: var(--nebentext);
}
.hinweis-neutral strong { color: var(--text); }

/* Je Feld eine Zeile: links Text für JUS-IT, rechts die Stelle im Original */
.zeile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 16px;
}
.spaltenkopf { margin-bottom: 10px; align-items: end; }
.spaltentitel {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--nebentext);
}
.spaltentitel-rechts { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.legende { display: inline-flex; gap: 10px; text-transform: none; letter-spacing: 0; font-weight: 500; }

del, ins { border-radius: 4px; padding: 0 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
del { color: var(--rot); background: var(--rot-hell); text-decoration: line-through; text-decoration-thickness: 1.5px; }
ins { color: var(--gruen); background: var(--gruen-hell); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

.feld { padding: 20px 22px 22px; }
.feld-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  min-height: 38px;
}
.feld-name {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--nebentext);
}
.abzeichen-kopiert {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gruen-hell);
  color: var(--gruen);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  font-variant-numeric: tabular-nums;
}
.abzeichen-kopiert svg { width: 13px; height: 13px; }
.feld-text,
.quelle-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
}

.quelle {
  border: 1.5px dashed var(--rahmen-stark);
  border-radius: var(--radius);
  background: #FAF9FC;
  padding: 18px 22px;
}
.quelle-text { color: #3A3748; font-size: 15px; }
.quelle-hinweis { color: var(--nebentext); font-size: 13px; margin-bottom: 8px; }
.feld-weggelassen {
  align-self: center;
  color: var(--nebentext);
  font-size: 14px;
  padding: 0 4px;
}

/* ---------- Meldung unten ---------- */
.meldung {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: #1D1B29;
  color: #fff;
  border-radius: 14px;
  padding: 10px 10px 10px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(29, 27, 41, .22);
  max-width: calc(100% - 32px);
}
.meldung[hidden] { display: none; }
.meldung .btn {
  min-height: 40px;
  background: transparent;
  border-color: #4A4660;
  color: #CFC4FF;
}
.meldung .btn:hover { background: #2C2940; }

/* ---------- Testseite ---------- */
.formular { padding: 28px; max-width: 640px; display: grid; gap: 20px; }
.formular label { display: grid; gap: 8px; font-weight: 600; font-size: 14px; }
.formular input,
.formular select {
  font: inherit;
  font-weight: 400;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: var(--radius-klein);
  border: 1px solid var(--rahmen);
  background: #fff;
  color: var(--text);
}
.formular .zeile { display: flex; gap: 10px; }
.formular .zeile input { flex: 1; min-width: 0; }
.formular fieldset { border: 0; padding: 0; margin: 0; display: flex; gap: 10px; }
.formular legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.formular .wahl { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; min-height: 46px; padding: 0 16px; border: 1px solid var(--rahmen); border-radius: var(--radius-klein); }
.formular .wahl input { min-height: 0; }
.ergebnis { white-space: pre-wrap; color: var(--nebentext); font-size: 14px; }
.unsichtbar { display: none !important; }

/* ---------- Seite /app ---------- */
.app-karte { max-width: 560px; margin: 0 auto; padding: 40px 32px; text-align: center; }
.app-symbol { display: block; margin: 0 auto 20px; border-radius: 18px; }
.app-knopf { margin: 28px 0 8px; min-height: 56px; padding: 0 36px; font-size: 17px; }
.app-knopf:hover { text-decoration: none; }
.app-schritte { text-align: left; color: var(--nebentext); margin: 24px auto 0; max-width: 400px; padding-left: 22px; line-height: 1.7; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 1000px) {
  .kacheln { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .kachel { min-height: 0; }
  .zeile { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 22px; }
  .spaltenkopf { display: none; }
  .feld-weggelassen { padding: 0; }
}
@media (max-width: 760px) {
  .kopf-innen { padding: 0 16px; height: 64px; }
  .serverstatus { font-size: 13px; padding: 7px 11px; }
  main { padding: 24px 16px 120px; }
  h1 { font-size: 24px; }
  .kopfkarte { padding: 20px 18px; }
  .kopfkarte-knoepfe, .kopfkarte-knoepfe .btn { width: 100%; }
  .player { width: 100%; }
  .tabelle thead { display: none; }
  .tabelle, .tabelle tbody, .tabelle tr, .tabelle td { display: block; width: 100%; }
  .tabelle tr { padding: 16px 18px; border-bottom: 1px solid var(--rahmen); }
  .tabelle tr:last-child { border-bottom: 0; }
  .tabelle td { border: 0; padding: 3px 0; height: auto; }
  .tabelle .rechts { text-align: left; padding-top: 12px; }
  .tabelle .rechts .btn { width: 100%; }
  .fortschritt { margin: 6px 0; }
}

/* ================= Version 3 ================= */

:root {
  --gelb: #FDF3D7;
  --gelb-strich: #E3A008;
  --gelb-flaeche: #FFF8E6;
  --gelb-rahmen: #F2D891;
  --gruen-flaeche: #F5FBF7;
  --gruen-rahmen: #CFE9DA;
  --zitat: #34277F;
  --zitat-hell: #F1EEFD;
  --spielt: #E4DEFB;
  --spielt-ring: #CFC6F5;
}

/* Navigation in der Kopfzeile */
.kopf-innen { justify-content: flex-start; }
.hauptnavi { display: flex; gap: 4px; margin-left: 28px; margin-right: auto; }
.hauptnavi a {
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--nebentext);
  font-weight: 600;
  font-size: 15px;
}
.hauptnavi a:hover { text-decoration: none; background: var(--grau-flaeche); }
.hauptnavi a.aktiv { background: var(--akzent-hell); color: var(--akzent); }

/* Weiche Übergänge (ca. 300 ms) */
.balken-fuellung { transition: width .3s ease; }
.btn, .kopieren > span { transition: background-color .3s, border-color .3s, color .3s, opacity .3s; }
.kopieren .ok, .kopieren .normal { transition: opacity .3s; }
.kopieren .ok { visibility: visible; opacity: 0; }
.kopieren.kopiert .normal { visibility: visible; opacity: 0; }
.kopieren.kopiert .ok { opacity: 1; }

/* Anfangsbuchstabe */
.buchstabe {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 19px;
}
.buchstabe.gross { width: 56px; height: 56px; border-radius: 16px; font-size: 24px; }
.tabelle .buchstabe { width: 32px; height: 32px; border-radius: 10px; font-size: 14px; }
.zelle-name { display: inline-flex; align-items: center; gap: 10px; }

/* Übersicht: oben Begrüßung und Wochenkarte */
.held {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: stretch;
}
.held-links { display: flex; align-items: center; gap: 24px; }
.held-links h1 { font-size: 34px; }
.held-satz { margin: 8px 0 0; font-size: 17px; color: var(--nebentext); }
.illustration { flex: none; display: block; }

.karten-titel { font-size: 14px; font-weight: 600; color: var(--nebentext); letter-spacing: 0; margin: 0; }
.woche { padding: 20px 24px; }
.woche-zahl { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; margin: 4px 0 10px; font-variant-numeric: tabular-nums; }
.diagramm { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; }
.tag { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.saeule-platz { height: 72px; display: flex; align-items: flex-end; width: 100%; justify-content: center; }
.saeule { display: block; width: 100%; max-width: 30px; border-radius: 7px 7px 4px 4px; background: #D9D1FA; transition: height .3s ease; }
.saeule.stark { background: var(--akzent); }
.saeule.ohne { background: var(--grau-balken); }
.tag-name { font-size: 12px; color: var(--nebentext); font-weight: 500; }
.tag.heute .tag-name { color: var(--text); font-weight: 700; }

.bereich { margin-top: 36px; }
.bereich-titel { display: flex; align-items: center; gap: 10px; font-size: 19px; margin: 0 0 14px; }
.bereich-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bereich-kopf .bereich-titel { margin-bottom: 14px; }
.anzahl-marke {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px;
  border-radius: 999px; background: var(--grau-flaeche); color: var(--nebentext); font-size: 13px; font-weight: 700;
}
.link-klein { font-weight: 600; font-size: 14px; }

.karten-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.bereit-karte { position: relative; padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.bereit-kopf { display: flex; align-items: center; gap: 14px; }
.bereit-titel h3 { margin: 0; font-size: 17px; }
.bereit-titel p { margin: 2px 0 0; font-size: 14px; }
.abzeichen-reihe { display: flex; gap: 8px; flex-wrap: wrap; min-height: 22px; }
.bereit-stand { display: flex; flex-direction: column; gap: 8px; }
.bereit-zeile { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 500; }
.bereit-knopf { align-self: flex-start; }
.bereit-haken {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--gruen); color: #fff; display: grid; place-items: center;
  animation: hakenPop .4s ease-out both;
}
.bereit-haken svg { width: 18px; height: 18px; }
@keyframes hakenPop { from { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); opacity: 1; } to { transform: scale(1); opacity: 1; } }

.abzeichen-wichtig {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px;
  background: var(--gelb); color: #7A4E00; border: 1px solid var(--gelb-rahmen); font-size: 12px; font-weight: 600;
  text-transform: none; letter-spacing: 0;
}
.abzeichen-wichtig svg { width: 12px; height: 12px; }
.abzeichen-pruefen, .abzeichen-luecke {
  display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--orange-hell); color: var(--orange);
}
.abzeichen-luecke { background: var(--gelb-flaeche); }

.zwei-spalten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.stapel { display: flex; flex-direction: column; gap: 12px; }
.arbeit-karte { padding: 16px 18px; display: flex; gap: 14px; align-items: center; }
.arbeit-mitte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.klein { font-size: 13px; }
.zuletzt-liste { list-style: none; margin: 0; padding: 6px 0; }
.zuletzt-liste li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--rahmen); flex-wrap: wrap; }
.zuletzt-liste li:last-child { border-bottom: 0; }
.zuletzt-name { font-weight: 600; color: var(--text); }
.haken-gruen { width: 24px; height: 24px; border-radius: 50%; background: var(--gruen-hell); color: var(--gruen); display: grid; place-items: center; flex: none; }
.haken-gruen svg { width: 14px; height: 14px; }
.leer-karte { padding: 28px; display: flex; align-items: center; gap: 22px; color: var(--nebentext); }
.leer-karte p { margin: 0; max-width: 460px; }
.leer-klein { padding: 22px; color: var(--nebentext); }

/* Detail: Kopfkarte mit Buchstabe */
.kopfkarte-titel { display: flex; align-items: center; gap: 16px; }

/* „Als Nächstes“-Balken */
.naechstes-balken {
  margin-top: 14px;
  background: var(--violett-dunkel);
  color: #fff;
  border-radius: var(--radius-mittel);
  padding: 14px 16px 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 72px;
}
.naechstes-links { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.naechstes-klein { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: #CFC6F5; }
.naechstes-titel { font-size: 17px; font-weight: 650; }
.naechstes-knopf { background: #fff; border-color: #fff; color: var(--violett-dunkel); }
.naechstes-knopf:hover { background: #F4F1FE; border-color: #F4F1FE; }
.naechstes-knopf.war-kopiert { background: #fff; border-color: #fff; color: var(--violett-dunkel); }
kbd {
  font: inherit; font-size: 12px; font-weight: 600; padding: 2px 7px; margin-left: 4px;
  border-radius: 6px; background: var(--akzent-hell); color: var(--akzent); border: 1px solid #DCD3FB;
}

.spruenge .btn.sprung-fertig { background: var(--gruen-hell); border-color: var(--gruen-rahmen); color: var(--gruen); }
.spruenge .btn.sprung-aktuell { background: var(--akzent-hell); border-color: #C9BDF7; color: var(--akzent); }

/* Feldkarten: nächstes Feld, Bearbeiten */
.feld { transition: border-color .3s, box-shadow .3s; }
.feld.naechstes, .feld.bearbeitet-wird { border-color: var(--akzent); box-shadow: 0 0 0 4px var(--akzent-hell), var(--schatten); }
.abzeichen-naechstes, .abzeichen-bearbeitung, .abzeichen-grau {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600;
  letter-spacing: 0; text-transform: none; background: var(--akzent-hell); color: var(--akzent);
}
.abzeichen-grau { background: var(--grau-flaeche); color: var(--nebentext); }
.feld-knoepfe { display: inline-flex; gap: 8px; align-items: center; flex: none; }
.stift {
  width: 44px; height: 44px; border-radius: var(--radius-klein); border: 1px solid var(--rahmen-stark);
  background: #fff; color: var(--nebentext); display: grid; place-items: center; cursor: pointer;
}
.stift:hover { color: var(--akzent); border-color: #C9BDF7; }
.stift:focus-visible { outline: 3px solid #C9BDF7; outline-offset: 2px; }
.stift svg { width: 18px; height: 18px; }
.feld-kopf .kopieren { min-height: 44px; }
.feld-eingabe {
  width: 100%;
  font: inherit;
  line-height: 1.65;
  color: var(--text);
  border: 1.5px solid var(--akzent);
  border-radius: var(--radius-klein);
  box-shadow: 0 0 0 4px var(--akzent-hell);
  padding: 10px 12px;
  resize: vertical;
  outline: none;
  min-height: 120px;
}
.bearbeiten-leiste { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.bearbeiten-knoepfe { display: inline-flex; gap: 10px; align-items: center; }
.btn-text { background: none; border: 0; color: var(--nebentext); font-weight: 600; cursor: pointer; padding: 8px 10px; border-radius: 8px; }
.btn-text:hover { color: var(--text); background: var(--grau-flaeche); }

/* Wichtige Stellen und Zitate */
.wichtig { background: var(--gelb); text-decoration: underline; text-decoration-color: var(--gelb-strich); text-decoration-thickness: 2px; text-underline-offset: 3px; border-radius: 3px; }
.zitat { color: var(--zitat); background: var(--zitat-hell); font-style: italic; border-radius: 3px; }
.satz.wichtig del, .satz.wichtig ins { text-decoration-line: line-through; }
.satz.wichtig ins { text-decoration-line: underline; }

/* Anklickbare Sätze */
.satz { border-radius: 5px; transition: background-color .2s, box-shadow .2s; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.satz.anklickbar { cursor: pointer; }
.satz.anklickbar:hover { background: #F1EEFD; }
.satz.anklickbar:focus-visible { outline: 2px solid #C9BDF7; outline-offset: 1px; }
.satz.spielt { background: var(--spielt); box-shadow: 0 0 0 2px var(--spielt-ring); }
.legende-spielt { background: var(--spielt); box-shadow: 0 0 0 2px var(--spielt-ring); border-radius: 4px; padding: 0 4px; color: var(--text); }

/* Leeres Feld: schmale graue Zeile */
.leer-zeile {
  display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap;
  padding: 10px 18px; margin-bottom: 16px; border-radius: var(--radius-klein);
  background: var(--grau-flaeche); color: var(--nebentext); font-size: 14px;
}
.leer-name { font-size: 12px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; }

/* Gesamtübersicht */
.kaesten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.kasten { border-radius: var(--radius); padding: 18px 22px 20px; border: 1px solid; }
.kasten-gruen { background: var(--gruen-flaeche); border-color: var(--gruen-rahmen); }
.kasten-gelb { background: var(--gelb-flaeche); border-color: var(--gelb-rahmen); }
.punkte { margin: 0; padding-left: 20px; line-height: 1.65; }
.punkte li { margin-bottom: 6px; }
.vereinbarungen { padding: 18px 22px 10px; }
.tabelle-klein th, .tabelle-klein td { padding: 12px 14px; height: auto; font-size: 15px; }
.tabelle-klein td { vertical-align: top; }

/* Wörterbuch */
.untertitel { color: var(--nebentext); margin: 6px 0 24px; font-size: 16px; }
.begriff-formular { display: flex; gap: 14px; align-items: flex-end; padding: 20px 22px; flex-wrap: wrap; }
.begriff-formular label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--nebentext); }
.begriff-feld { flex: 1; min-width: 220px; }
.begriff-formular input, .begriff-formular select {
  font: inherit; min-height: 46px; padding: 0 14px; border-radius: var(--radius-klein);
  border: 1px solid var(--rahmen-stark); background: #fff; color: var(--text);
}
.begriff-formular input:focus, .begriff-formular select:focus { outline: none; border-color: var(--akzent); box-shadow: 0 0 0 4px var(--akzent-hell); }
.fehlertext { width: 100%; margin: 0; color: var(--rot); font-size: 14px; }
.vorschlaege { margin-top: 20px; padding: 20px 22px; }
.vorschlaege .karten-titel { margin-bottom: 10px; }
.vorschlaege > p { margin: 0; }
.vorschlag-liste { list-style: none; margin: 0; padding: 0; }
.vorschlag-liste li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rahmen); flex-wrap: wrap; }
.vorschlag-knoepfe { display: inline-flex; gap: 8px; align-items: center; }
.begriffe-karte { padding: 8px 22px 18px; }
.begriff-gruppe { padding-top: 14px; }
.gruppen-titel { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; margin: 0 0 10px; }
.farbpunkt { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.begriff-liste { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.begriff { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; border-radius: 999px; border: 1px solid var(--rahmen-stark); background: #fff; font-weight: 500; }
.begriff-loeschen { width: 28px; height: 28px; border-radius: 50%; border: 0; background: none; color: var(--nebentext); cursor: pointer; display: grid; place-items: center; }
.begriff-loeschen:hover { background: var(--grau-flaeche); color: var(--rot); }
.begriff-loeschen svg { width: 14px; height: 14px; }

/* Bewegung reduzieren: keine Animationen */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 1000px) {
  .held { grid-template-columns: minmax(0, 1fr); }
  .karten-raster, .zwei-spalten, .kaesten { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .hauptnavi { margin-left: 8px; }
  .hauptnavi a { padding: 7px 9px; font-size: 14px; }
  #serverstatus-text { display: none; }
  .serverstatus { padding: 10px; }
  .held-links { gap: 14px; }
  .held-links .illustration { width: 72px; height: 72px; }
  .held-links h1 { font-size: 26px; }
  .naechstes-balken > div:last-child, .naechstes-knopf { width: 100%; }
  kbd { display: none; }
  .leer-karte { flex-direction: column; text-align: center; }
}

.player { width: 360px; }
.player-titel { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }

/* Keine passende Stelle / ganzer Originaltext (einmal je Abschnitt, ohne eigenen Scrollbereich) */
.quelle-keine { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; }
.btn-link { background: none; border: 0; padding: 4px 0; color: var(--akzent); font-weight: 600; cursor: pointer; font-size: 15px; }
.btn-link:hover { text-decoration: underline; }
.btn-link:focus-visible { outline: 2px solid #C9BDF7; outline-offset: 2px; border-radius: 4px; }
.ganzer-text { border: 1.5px dashed var(--rahmen-stark); border-radius: var(--radius); background: #FAF9FC; padding: 18px 22px; margin-bottom: 16px; scroll-margin-top: 24px; }

/* ---------- Anmeldung (Zugriff über die Webadresse) ---------- */
.anmelde-seite { min-height: 100vh; display: grid; place-items: center; }
.anmelde-rahmen { width: 100%; max-width: 420px; padding: 24px 16px; margin: 0 auto; }
.anmelde-karte { padding: 32px 28px; display: flex; flex-direction: column; gap: 18px; }
.anmelde-logo { margin-bottom: 6px; }
.anmelde-feld { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; color: var(--nebentext); }
.anmelde-feld input {
  font: inherit; font-weight: 400; min-height: 50px; padding: 0 14px; border-radius: var(--radius-klein);
  border: 1px solid var(--rahmen-stark); background: #fff; color: var(--text);
}
.anmelde-feld input:focus { outline: none; border-color: var(--akzent); box-shadow: 0 0 0 4px var(--akzent-hell); }
.anmelde-haken { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text); min-height: 44px; cursor: pointer; }
.anmelde-haken input { width: 20px; height: 20px; accent-color: var(--akzent); }
.anmelde-fehler { margin: 0; padding: 12px 14px; border-radius: var(--radius-klein); background: var(--rot-hell); color: var(--rot); font-size: 14px; }
.anmelde-knopf { width: 100%; min-height: 52px; font-size: 16px; }
.abmelden-link { color: var(--nebentext); font-size: 14px; font-weight: 500; margin-left: 14px; background: none; border: 0; cursor: pointer; padding: 6px 4px; }
.abmelden-link:hover { color: var(--text); text-decoration: underline; }
