/* =========================================================
   CI-Werte: hier die freigegebenen Farben der Kommunikation/CI eintragen.
   Schrift bewusst als Systemschrift (keine Web-Fonts = keine externen Abrufe).
   Gestaltung: klassisch-modern – klare Linien, wenig Rundung, keine Schatten,
   eine kräftige Fläche (Kopfbereich der Startseite), sonst ruhig.
   ========================================================= */
:root {
  --accent: #0b6fb8;        /* Primärfarbe / Akzent (im Studio änderbar) */
  --accent-2: #7cc3ee;      /* helle Akzentvariante für Illustrationen */
  --accent-ink: #ffffff;    /* Text auf Akzentfläche */
  --ink: #1e2a38;           /* Haupttext, Linien der Illustrationen */
  --ink-2: #5a6472;         /* Nebentext */
  --line: #d6dbe1;          /* Rahmen */
  --line-strong: #aeb7c2;   /* Rahmen bei Hover/Fokus */
  --bg: #f3f4f6;            /* Seitenhintergrund */
  --surface: #ffffff;
  --soft: #eef1f4;
  --band: #1e2a38;          /* Fläche Kopfbereich Startseite */
  --ok: #1d7f4e;
  --ok-bg: #e7f3ec;
  --bad: #b4232c;
  --bad-bg: #fbeaeb;
  --warn-bg: #fff3d1;
  --warn-ink: #6e4c00;
  --radius: 4px;
  --shadow: none;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 var(--font);
  border-top: 4px solid var(--accent);
}
a { color: var(--accent); text-underline-offset: 2px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { letter-spacing: -.005em; }

/* ---------- Kopfzeile ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 12px clamp(16px, 4vw, 40px); background: var(--surface); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 32px; height: 32px; border-radius: var(--radius); background: var(--accent); position: relative; flex: none; }
.brand-mark::after { content: ""; position: absolute; inset: 9px 8px 9px 12px; background: var(--accent-ink); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 17px; font-weight: 600; }
.brand-text small { color: var(--ink-2); font-size: 13px; }
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a { color: var(--ink); text-decoration: none; font-size: 15px; padding: 8px 12px; border-bottom: 2px solid transparent; }
.topnav a:hover { border-bottom-color: var(--line-strong); }
.topnav a[aria-current="page"] { border-bottom-color: var(--accent); font-weight: 600; }
.proto-badge { font-size: 12px; font-weight: 600; color: var(--warn-ink); background: var(--warn-bg); padding: 3px 8px; border-radius: 2px; margin-left: 8px; }

main:focus, main:focus-visible { outline: none; }
main { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 48px; outline: none; }
.footer { max-width: 1200px; margin: 0 auto; padding: 20px clamp(16px, 4vw, 40px) 40px; color: var(--ink-2); font-size: 13px; border-top: 1px solid var(--line); }
.footer p { margin: 4px 0; max-width: 90ch; }

/* ---------- Startseite ---------- */
/* Die eine kräftige Fläche: vollflächiger Kopfbereich mit Suche */
.hero {
  background: var(--band); color: #fff; margin-bottom: 32px; padding: 44px 0 40px;
  box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax);
  display: grid; gap: 14px;
}
.hero h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; font-weight: 600; }
.hero p { margin: 0; color: #c9d1db; max-width: 62ch; }
.search { position: relative; max-width: 640px; margin-top: 10px; }
.search input {
  width: 100%; padding: 14px 16px 14px 48px; font: inherit; font-size: 17px;
  border: 1px solid transparent; border-radius: var(--radius); background: var(--surface); color: var(--ink);
}
.search input:focus { outline: 3px solid var(--accent-2); outline-offset: 0; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; stroke: var(--ink-2); }

.home { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 800px) { .home { grid-template-columns: 1fr; gap: 16px; } }
.filter h2 { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.chips { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
@media (max-width: 800px) { .chips { flex-direction: row; flex-wrap: wrap; border-top: 0; gap: 6px; } }
.chip {
  display: flex; justify-content: space-between; gap: 12px; text-align: left;
  border: 0; border-bottom: 1px solid var(--line); border-left: 3px solid transparent;
  background: transparent; padding: 10px 10px 10px 12px; cursor: pointer; font-size: 15px; color: var(--ink);
}
.chip:hover { background: var(--soft); }
.chip[aria-pressed="true"] { border-left-color: var(--accent); background: var(--surface); font-weight: 600; }
.chip .count { color: var(--ink-2); font-weight: 400; font-variant-numeric: tabular-nums; }
@media (max-width: 800px) {
  .chip { border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 10px; background: var(--surface); }
  .chip[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
}

.result-info { color: var(--ink-2); font-size: 14px; margin: 0 0 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--line); text-decoration: none; color: inherit; overflow: hidden;
}
.card:hover { border-color: var(--line-strong); }
.card:hover h2 { text-decoration: underline; text-underline-offset: 3px; }
.card-thumb { aspect-ratio: 16 / 9; background: var(--surface); display: grid; place-items: center; border-bottom: 1px solid var(--line); position: relative; }
.card-thumb svg { width: 62%; height: auto; }
.card-body { padding: 14px 16px 16px; display: grid; gap: 6px; flex: 1; align-content: start; }
.card-kat { font-size: 13px; color: var(--accent); font-weight: 600; }
.card-body h2 { font-size: 18px; margin: 0; line-height: 1.3; font-weight: 600; }
.card-body p { margin: 0; color: var(--ink-2); font-size: 14px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; white-space: nowrap; padding: 10px 16px; border-top: 1px solid var(--soft); font-size: 13px; color: var(--ink-2); }
.meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.tag { border: 1px solid var(--line); background: var(--surface); padding: 1px 7px; border-radius: 2px; color: var(--ink-2); }
.status { padding: 1px 7px; border-radius: 2px; font-size: 12px; font-weight: 600; }
.status.entwurf { background: var(--warn-bg); color: var(--warn-ink); }
.status.freigegeben { background: var(--ok-bg); color: var(--ok); }
.empty { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; color: var(--ink-2); }
mark { background: color-mix(in srgb, var(--accent) 20%, transparent); color: inherit; padding: 0 1px; }

/* ---------- Detailseite ---------- */
.crumbs { font-size: 14px; margin: 24px 0 12px; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); }
.detail-head h1 { margin: 0 0 8px; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.2; font-weight: 600; }
.detail-head .meta { margin-bottom: 24px; }
.detail-head .meta .plain { color: var(--ink-2); }
.detail { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); grid-template-areas: "player side" "quiz side"; gap: 28px; align-items: start; }
.detail > .player { grid-area: player; }
.detail > .side { grid-area: side; }
.detail > .quiz { grid-area: quiz; margin-top: 0; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; grid-template-areas: "player" "side" "quiz"; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.panel h2 { font-size: 16px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.panel h2:not(:first-child) { margin-top: 18px; }
.panel p { margin: 0 0 8px; }
.side { display: grid; gap: 16px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; margin: 0; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; }

/* ---------- Erklärplayer ---------- */
.player { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stage {
  position: relative; aspect-ratio: 16 / 9; background: #fff; overflow: hidden;
  display: grid; place-items: center; cursor: pointer; user-select: none;
}
.stage-inner { width: 100%; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; align-items: center; padding: 4% 6% 3%; }
.stage-visual { width: min(54%, 440px); display: grid; place-items: center; }
.stage-visual svg, .stage-visual video { width: 100%; height: auto; display: block; }
.stage-visual.has-video { width: 86%; height: 100%; min-height: 0; }
.stage-visual .scene-video { width: 100%; height: 100%; object-fit: contain; animation: fade .25s ease both; }
.video-error { font-size: 13px; color: var(--bad); background: var(--bad-bg); padding: 6px 10px; border-radius: 2px; margin: 8px 0 0; text-align: center; }
.card-thumb video { width: 70%; height: auto; }
.preview-banner { background: var(--warn-bg); color: var(--warn-ink); padding: 10px clamp(16px, 4vw, 40px); font-size: 14px; font-weight: 600; }
.stage-word { font-size: clamp(18px, 3vw, 30px); font-weight: 700; letter-spacing: -.01em; text-align: center; color: var(--ink); min-height: 1.3em; }
.stage-word::after { content: ""; display: block; height: 4px; width: 56px; margin: 8px auto 0; background: var(--accent); }
.stage-count { position: absolute; top: 12px; left: 14px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .78); }
.overlay[hidden] { display: none; }
.overlay .big-play {
  width: 80px; height: 80px; border-radius: 50%; border: 0; background: var(--accent); cursor: pointer;
  display: grid; place-items: center;
}
.overlay .big-play:hover { filter: brightness(1.08); }
.overlay .big-play svg { width: 32px; height: 32px; fill: var(--accent-ink); margin-left: 4px; }
.overlay .end { display: grid; gap: 12px; justify-items: center; text-align: center; }
.overlay .end strong { font-size: 22px; font-weight: 600; }
.overlay .end .row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.caption { min-height: 3.4em; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.45; background: var(--surface); }
.caption[hidden] { display: none; }

.progress { display: flex; gap: 2px; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.seg { flex: 1; height: 5px; background: var(--soft); border: 0; padding: 0; cursor: pointer; }
.seg span { display: block; height: 100%; width: 0; background: var(--accent); }
.seg.done span { width: 100%; }

.controls { display: flex; align-items: center; gap: 4px; padding: 8px 10px; flex-wrap: wrap; }
.ctrl {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; background: transparent; cursor: pointer;
  padding: 7px 10px; border-radius: var(--radius); font-size: 14px; color: var(--ink);
}
.ctrl:hover { background: var(--soft); }
.ctrl:disabled { opacity: .35; cursor: default; background: transparent; }
.ctrl svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.ctrl[aria-pressed="false"] { color: var(--ink-2); text-decoration: line-through; text-decoration-thickness: 1px; }
.ctrl.primary { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.ctrl.primary:hover { filter: brightness(1.08); background: var(--accent); }
.spacer { flex: 1; }
.voice-info { font-size: 12px; color: var(--ink-2); padding: 0 14px 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  padding: 9px 18px; border-radius: var(--radius); cursor: pointer; font-weight: 600; text-decoration: none; font-size: 15px;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { filter: none; border-color: var(--ink); }

/* Transkript */
details.transcript summary { cursor: pointer; font-weight: 600; }
details.transcript ol { margin: 10px 0 0; padding-left: 20px; }
details.transcript li { margin-bottom: 8px; }
details.transcript li strong { display: block; }

/* Szenen-Animationen: entsprechen den vier AE-Varianten */
.anim-slide-left  { animation: slideLeft .9s cubic-bezier(.2, .8, .2, 1) both; }
.anim-slide-right { animation: slideRight .9s cubic-bezier(.2, .8, .2, 1) both; }
.anim-pop         { animation: pop .7s cubic-bezier(.3, 1.6, .5, 1) both; }
.anim-fade        { animation: fade 1s ease both; }
.word-in          { animation: wordIn .6s .35s ease both; }
@keyframes slideLeft  { from { transform: translateX(-60%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slideRight { from { transform: translateX(60%);  opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop        { 0% { transform: scale(.2); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes fade       { from { opacity: 0; } to { opacity: 1; } }
@keyframes wordIn     { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.i-float { animation: floatDown 2.4s ease-in-out infinite; }
@keyframes floatDown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  .anim-slide-left, .anim-slide-right, .anim-pop, .word-in { animation: fade .3s ease both; }
  .i-float { animation: none; }
}

/* Illustrations-Klassen */
.i-acc { fill: var(--accent); }
.i-acc2 { fill: var(--accent-2); }
.i-ink { fill: var(--ink); }
.i-soft { fill: var(--soft); }
.i-soft2 { fill: #e3e8ef; }
.i-wht { fill: #fff; }
.i-no { fill: none; }
.i-st, .i-st-thin, .i-st-thick, .i-sta, .i-sta-thin, .i-stw, .i-stw-thin { stroke-linecap: round; stroke-linejoin: round; }
.i-st { stroke: var(--ink); stroke-width: 4; }
.i-st-thin { stroke: var(--ink); stroke-width: 3; }
.i-st-thick { stroke: var(--ink); stroke-width: 8; }
.i-sta { stroke: var(--accent); stroke-width: 5; }
.i-sta-thin { stroke: var(--accent); stroke-width: 4; }
.i-stw { stroke: #fff; stroke-width: 7; }
.i-stw-thin { stroke: #fff; stroke-width: 4; }
.i-txt { fill: var(--ink-2); font-family: var(--font); }
.i-txt-a { fill: var(--accent); font-family: var(--font); }
.i-txt-w { fill: #fff; font-family: var(--font); }

/* ---------- Quiz ---------- */
.quiz { margin-top: 24px; }
.quiz h2 { margin: 0 0 4px; font-size: 22px; font-weight: 600; }
.quiz .hint { color: var(--ink-2); font-size: 14px; margin: 0 0 16px; }
.q { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 12px; }
.q fieldset { border: 0; margin: 0; padding: 0; }
.q legend { font-weight: 600; font-size: 17px; margin-bottom: 12px; padding: 0; }
.q .opts { display: grid; gap: 8px; }
.opt {
  text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 10px 14px;
  cursor: pointer; display: flex; gap: 10px; align-items: center;
}
.opt:hover:not(:disabled) { border-color: var(--line-strong); background: var(--soft); }
.opt:disabled { cursor: default; }
.opt .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.opt.correct { border-color: var(--ok); background: var(--ok-bg); }
.opt.correct .dot { border-color: var(--ok); background: var(--ok); }
.opt.wrong { border-color: var(--bad); background: var(--bad-bg); }
.opt.wrong .dot { border-color: var(--bad); background: var(--bad); }
.feedback { margin-top: 12px; padding: 10px 14px; border-left: 3px solid currentColor; font-size: 15px; }
.feedback.ok { background: var(--ok-bg); color: #13502f; }
.feedback.no { background: var(--bad-bg); color: #7a1219; }
.score { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 16px 20px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.score strong { font-size: 19px; font-weight: 600; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; border-top: 1px solid var(--line); padding-top: 16px; }
.pager a { display: grid; gap: 2px; text-decoration: none; color: var(--ink); padding: 8px 0; }
.pager a small { color: var(--ink-2); font-size: 13px; }
.pager a span { font-weight: 600; }
.pager a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.pager .next { text-align: right; grid-column: 2; }

/* ---------- Hintergründe, Grafiken, weitere Animationen ---------- */
.stage[data-ton="dunkel"] .stage-word { color: #fff; }
.stage[data-ton="dunkel"] .stage-count { color: rgba(255, 255, 255, .8); }
.stage[data-ton="bild"] .stage-word { background: rgba(255, 255, 255, .94); padding: 6px 18px 10px; border-radius: var(--radius); }
.stage[data-ton="bild"] .stage-count { background: rgba(255, 255, 255, .88); padding: 2px 8px; border-radius: 2px; }
.stage-visual .grafik-wrap { width: 100%; display: grid; place-items: center; }
.stage-visual .scene-grafik { width: 100%; height: auto; max-height: 100%; display: block; object-fit: contain; }
.stage-visual:has(.scene-grafik) { width: min(60%, 520px); height: 100%; min-height: 0; }
.stage-visual:has(.scene-grafik) .grafik-wrap { height: 100%; }
.stage-visual:has(.scene-grafik) .scene-grafik { height: 100%; width: 100%; }
.card-thumb .grafik-wrap { width: 62%; height: 80%; display: grid; place-items: center; }
.card-thumb .scene-grafik { max-width: 100%; max-height: 100%; object-fit: contain; }
.anim-slide-up { animation: slideUp .9s cubic-bezier(.2, .8, .2, 1) both; }
.anim-zoom     { animation: zoomIn 1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes slideUp { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes zoomIn  { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .anim-slide-up, .anim-zoom { animation: fade .3s ease both; } }
.small-note { font-size: 13px; color: var(--ink-2); margin: 8px 0 0; }
.dl-btn { width: 100%; justify-content: center; }

.tag.lang { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.card-foot .meta { flex-wrap: nowrap; }

/* Vollbild-Grafiken (fertige Erklärgrafiken mit eigenem Titel) */
.stage.vollbild .stage-inner { padding: 0; grid-template-rows: minmax(0, 1fr); }
.stage.vollbild .stage-visual { width: 100%; height: 100%; }
.stage.vollbild .stage-word { display: none; }
.stage.vollbild .stage-count { background: rgba(255, 255, 255, .88); padding: 1px 7px; border-radius: 2px; top: auto; bottom: 10px; left: auto; right: 12px; }
.card-thumb.vollbild .grafik-wrap { width: 100%; height: 100%; }
.card-thumb.vollbild .scene-grafik { width: 100%; height: 100%; object-fit: cover; object-position: top left; }

/* ---------- Eigener Server: Kontomenü in der Kopfzeile ---------- */
.topbar:has(.konto-menu) { justify-content: flex-start; }
.topbar:has(.konto-menu) .topnav { margin-left: auto; }
.konto-menu { display: flex; align-items: center; gap: 6px; padding-left: 14px; margin-left: 6px; border-left: 1px solid var(--line); }
.konto-menu form { margin: 0; }
.konto-name { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); padding: 4px 8px 4px 4px; border-radius: var(--radius); }
.konto-name:hover { background: var(--soft); }
.konto-name > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.konto-name strong { font-size: 14px; font-weight: 600; }
.konto-name small { font-size: 12px; color: var(--ink-2); }
.konto-initial { width: 30px; height: 30px; border-radius: 50%; background: var(--band); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; flex: none; }
@media (max-width: 720px) { .konto-name > span:last-child { display: none; } .konto-menu { padding-left: 8px; } }

/* ---------- Anmelden, Mein Konto, Konten ---------- */
.konto-main { max-width: 760px; }
.konto-main.breit { max-width: 1200px; }
.band { background: var(--band); color: #fff; padding: 36px 0 32px; margin-bottom: 28px; box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); }
.band h1 { margin: 0 0 6px; font-size: clamp(26px, 3.4vw, 34px); font-weight: 600; line-height: 1.2; }
.band p { margin: 0; color: #c9d1db; max-width: 70ch; }
.form-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: grid; gap: 14px; max-width: 440px; }
.form-panel[hidden] { display: none; }
.form-panel h2 { margin: 0; font-size: 17px; font-weight: 600; }
.form-panel p { margin: 0; }
.konto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.konto-grid .form-panel { max-width: none; }
@media (max-width: 720px) { .konto-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 4px; font-size: 14px; }
.field > span { font-weight: 600; font-size: 13px; color: var(--ink); }
.field .hint { font-size: 12px; color: var(--ink-2); font-weight: 400; font-style: normal; }
.field input, .field select, .field textarea, .liste-kopf input, .tabelle select {
  font: inherit; font-size: 15px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus, .liste-kopf input:focus, .tabelle select:focus { border-color: var(--accent); outline: 1px solid var(--accent); outline-offset: 0; }
.form-actions { display: flex; gap: 10px; }
.form-msg { margin: 0; font-size: 14px; color: var(--bad); min-height: 0; }
.form-msg:empty { display: none; }
.form-msg.gut { color: var(--ok); }
.form-note { font-size: 13px; color: var(--ink-2); }
.hinweis-statisch { background: var(--warn-bg); color: var(--warn-ink); padding: 10px 14px; margin: 16px 0 0; }

.neu-konto { display: grid; grid-template-columns: 1.2fr 1fr 180px auto; gap: 12px 14px; align-items: end; padding: 0 0 24px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.neu-konto h2 { grid-column: 1 / -1; margin: 0; font-size: 17px; font-weight: 600; }
.neu-konto .form-msg { grid-column: 1 / -1; }
.neu-konto .field[hidden] { display: none; }
@media (max-width: 860px) { .neu-konto { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .neu-konto { grid-template-columns: 1fr; } }

.einmal { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px 20px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--ok); padding: 16px 20px; margin-bottom: 24px; }
.einmal[hidden] { display: none; }
.einmal p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); max-width: 70ch; }
.einmal code { font: 600 20px/1.2 ui-monospace, Consolas, monospace; letter-spacing: .04em; background: var(--soft); padding: 8px 12px; border-radius: var(--radius); user-select: all; }
.einmal-actions { display: flex; gap: 6px; }
@media (max-width: 760px) { .einmal { grid-template-columns: 1fr; } }

.tabelle-wrap { margin-top: 24px; overflow-x: auto; position: relative; }
.liste-kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; flex-wrap: wrap; }
.liste-kopf h2 { margin: 0; font-size: 17px; font-weight: 600; }
.liste-kopf input { max-width: 280px; padding: 7px 10px; font-size: 14px; }
.tabelle { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.tabelle th { text-align: left; font-weight: 600; font-size: 13px; color: var(--ink-2); padding: 10px 12px; border-bottom: 1px solid var(--line-strong); background: var(--soft); white-space: nowrap; }
.tabelle td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle code { font-size: 13px; }
.tabelle select { width: auto; padding: 5px 8px; font-size: 14px; }
.tabelle .aktionen { white-space: nowrap; text-align: right; }
.tabelle .aktionen .ctrl { padding: 5px 8px; font-size: 13px; }
.tabelle .leer { color: var(--ink-2); text-align: center; padding: 24px; }
.tabelle.klein { font-size: 13px; }
.tabelle tr.ist-gesperrt td { color: var(--ink-2); }
.tabelle tr.warnzeile td { background: var(--bad-bg); }
.ctrl.gefahr { color: var(--bad); }
.status.gesperrt { background: var(--bad-bg); color: var(--bad); }
