/* ==========================================================================
   KI-Begriffe für den Verwaltungsalltag — Stylesheet
   Ein einziges Stylesheet für die gesamte Website. Keine Webfonts, keine
   externen Ressourcen. Design-Tokens aus dem Auftragsprompt, Abschnitt 3.2.
   ========================================================================== */

:root {
  /* Farben — von staehelin.eu übernommen */
  --paper:       #ffffff;
  --ink:         #0d0d0d;
  --muted:       #5c5f62;
  --line:        #d8d8d8;
  --soft:        #f5f5f2;
  --accent:      #e44b1a;   /* Warnung / Grenze / Rechtsrisiko — nie als Text */
  --accent-dark: #b83211;   /* Warntext, zulässig */
  --teal:        #00a892;   /* Primärakzent, Flächen/Rahmen — nie als Text auf hell */
  --night:       #111820;
  --max: 1180px;

  --teal-dark:   #007a6a;   /* Linktext, zulässig */
  --teal-soft:   #e6f5f3;
  --accent-soft: #fdeee9;

  --header-hoehe: 74px; /* Fallback ohne JS; wird per site.js exakt gesetzt */
}

/* ---------- Reset ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--teal-dark); }
a:not(.button) { text-underline-offset: 3px; }

ul, ol { margin: 0; padding: 0; }
p { margin: 0 0 1em; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: var(--soft);
  padding: 1px 5px;
  font-size: .92em;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

button { cursor: pointer; }

h1, h2, h3, h4 { margin: 0; font-weight: 750; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Typografie ---------- */

h1 {
  font-size: 44px;
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: 0;
}
h2 {
  font-size: 32px;
  font-weight: 750;
  line-height: 1.06;
  letter-spacing: 0;
}
h3, .begriff-titel {
  font-size: 22px;
  font-weight: 730;
  line-height: 1.18;
}
.lead {
  font-size: 20px;
  line-height: 1.42;
  font-weight: 400;
  color: var(--muted);
}
.kurz {
  font-size: 19px;
  line-height: 1.42;
  font-weight: 400;
}
.eyebrow {
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.meta {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

@media (max-width: 980px) {
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  .lead { font-size: 19px; }
}
@media (max-width: 640px) {
  h1 { font-size: 32px; }
  h2 { font-size: 25px; }
  h3, .begriff-titel { font-size: 20px; }
  .lead { font-size: 18px; }
  .kurz { font-size: 18px; }
  body { font-size: 16px; }
}

[lang="en"] { font-style: italic; }

/* ---------- Layout ---------- */

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 72px 28px;
}
@media (max-width: 980px) {
  .section { padding: 56px 22px; }
}

.section > .container { padding: 0; }

.readable { max-width: 760px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Skip-Link ---------- */

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  z-index: 200;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 74px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled {
  box-shadow: 0 10px 24px rgba(0,0,0,.04);
}
.site-header-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.wortmarke {
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wortmarke strong { font-weight: 750; }
.wortmarke em { font-weight: 400; font-style: normal; }
@media (max-width: 640px) {
  .wortmarke { font-size: 20px; }
}

.site-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .site-header-inner {
    flex-wrap: nowrap;
  }
  .site-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav ul {
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  .site-nav a { padding: 10px 8px; }
}
.site-nav a {
  display: inline-block;
  padding: 10px 12px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid transparent;
}
.site-nav a:hover {
  border-color: var(--ink);
}
.site-nav a[aria-current="page"] {
  border-color: var(--ink);
  font-weight: 720;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-size: 15px;
  font-weight: 720;
  line-height: 1.15;
  text-decoration: none;
  background: var(--paper);
  color: var(--ink);
}
.button-primary {
  background: var(--ink);
  color: var(--paper);
}
.button-primary:hover, .button-primary:focus-visible {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  outline: none;
}
.button-secondary {
  background: var(--paper);
}
.button-secondary:hover, .button-secondary:focus-visible {
  background: var(--soft);
  outline: none;
}
.button-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.button-row-center { justify-content: center; }

/* ---------- Ink-Raster (Kachelraster ohne Gaps) ---------- */

.raster {
  display: grid;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.raster > * {
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 28px;
}
.raster-3 { grid-template-columns: repeat(3, 1fr); }
.raster-4 { grid-template-columns: repeat(4, 1fr); }
.raster-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) {
  .raster-3, .raster-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .raster-2, .raster-3, .raster-4 { grid-template-columns: 1fr; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 88px 28px 72px;
  border-bottom: 1px solid var(--ink);
}
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 32px; }

/* ---------- Drei Türen ---------- */

.tuer h2 {
  font-size: 22px;
  margin-bottom: 12px;
}
.tuer p { color: var(--muted); margin-bottom: 16px; }
.tuer a {
  font-weight: 720;
  text-decoration: none;
  border-bottom: 1px solid var(--teal-dark);
}

/* ---------- Statement-Zeile ---------- */

.statement {
  font-size: 24px;
  font-weight: 720;
  line-height: 1.35;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 48px 28px;
  text-align: center;
}
.statement .container { max-width: 900px; }

/* ---------- Cluster-Übersicht ---------- */

.cluster-kachel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  border-top: 3px solid var(--teal);
}
.cluster-kachel .eyebrow { color: var(--teal-dark); }
.cluster-kachel h3 { font-size: 19px; }
.cluster-kachel p { color: var(--muted); font-size: 15px; margin: 0; }
.cluster-kachel .zahl { font-size: 13px; color: var(--muted); }

.section-intro { margin: 10px 0 28px; }

/* ---------- Abgrenzungshinweis ---------- */

.abgrenzung {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 760px;
}
.abgrenzung p { margin: 0 0 .6em; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--ink);
  padding: 48px 28px;
  background: var(--soft);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.site-footer nav ul {
  list-style: none;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer a { color: var(--ink); }
.site-footer .abgrenzung { flex: 1 1 480px; }

/* ==========================================================================
   Steckbrief ChatSTR
   ========================================================================== */

.steckbrief {
  border-top: 3px solid var(--teal);
  background: var(--teal-soft);
  padding: 28px;
}
.steckbrief h2 { font-size: 22px; margin-bottom: 6px; }
.steckbrief-intro { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.steckbrief-liste {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.steckbrief-eintrag {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
}
.steckbrief-eintrag dt { font-size: 13px; font-weight: 750; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.steckbrief-eintrag dd { margin: 6px 0 0; font-size: 16px; }
.steckbrief-eintrag .hinweis { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  .steckbrief-liste { grid-template-columns: 1fr; }
}
.steckbrief-fussnote {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.steckbrief-geprueft { margin-top: 8px; }

/* ==========================================================================
   Vergleichstabelle Automatisierung / Assistent / Agent
   ========================================================================== */

.vergleich-wrap { border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.vergleich {
  width: 100%;
  border-collapse: collapse;
}
.vergleich caption {
  text-align: left;
  padding: 0 0 12px;
  font-size: 15px;
  color: var(--muted);
}
.vergleich th, .vergleich td {
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  font-size: 15px;
}
.vergleich thead th {
  background: var(--soft);
  font-weight: 750;
}
.vergleich tbody th {
  font-weight: 720;
  width: 22%;
}
.vergleich-merksatz {
  border: 1px solid var(--ink);
  border-top: none;
  padding: 20px 18px;
  font-size: 17px;
  font-weight: 600;
  background: var(--teal-soft);
}

@media (max-width: 640px) {
  .vergleich-wrap { border: none; }
  .vergleich, .vergleich thead, .vergleich tbody, .vergleich th, .vergleich td, .vergleich tr {
    display: block;
  }
  .vergleich thead { display: none; }
  .vergleich tr {
    border: 1px solid var(--ink);
    margin-bottom: -1px;
  }
  .vergleich td, .vergleich tbody th {
    border: none;
    border-bottom: 1px solid var(--line);
    width: auto;
  }
  .vergleich td:last-child { border-bottom: none; }
  .vergleich tbody th {
    background: var(--soft);
    border-bottom: 1px solid var(--line);
  }
  .vergleich td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
    margin-bottom: 4px;
  }
}

/* ==========================================================================
   Filterleiste
   ========================================================================== */

.filterleiste {
  position: sticky;
  top: var(--header-hoehe);
  z-index: 90;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  padding: 18px 28px;
}
.filterleiste .container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.suchfeld-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.suchfeld {
  flex: 1 1 260px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-size: 16px;
}
.suchfeld::-webkit-search-cancel-button { -webkit-appearance: none; }

.chip-reihe {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 600;
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.chip.chip-teal[aria-pressed="true"] {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--paper);
}
.filter-gruppe {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-gruppe-label {
  font-size: 13px;
  font-weight: 750;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.eilig-schalter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--ink);
  padding: 9px 14px;
  background: var(--paper);
}
.eilig-schalter[aria-pressed="true"] {
  background: var(--teal-soft);
  border-color: var(--teal-dark);
}
.filter-reset {
  border: none;
  background: none;
  text-decoration: underline;
  color: var(--teal-dark);
  font-size: 14px;
  padding: 9px 4px;
}
.trefferzahl { font-size: 14px; color: var(--muted); }

.karten-sektion { padding-top: 40px; }

/* ==========================================================================
   Downloadleiste
   ========================================================================== */

.downloadleiste {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.downloadleiste .lizenz {
  font-size: 13px;
  color: var(--muted);
}

/* ==========================================================================
   Begriffskarte
   ========================================================================== */

.cluster-block { margin-bottom: 56px; }
.cluster-block-kopf {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}
.cluster-block-kopf h2 { font-size: 26px; }
.cluster-block-kopf p { color: var(--muted); margin: 4px 0 0; }

.karten-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.begriffskarte {
  scroll-margin-top: calc(var(--header-hoehe) + 90px);
  border: 1px solid var(--ink);
  border-top: 3px solid var(--teal);
  padding: 28px;
}
.begriffskarte.ist-hervorgehoben {
  background: var(--teal-soft);
}
.karte-kopf {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.karte-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.stufe-badge {
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .04em;
  border: 1px solid var(--ink);
  padding: 3px 8px;
  white-space: nowrap;
}
.lhs-badge {
  font-size: 13px;
  color: var(--teal-dark);
  white-space: nowrap;
}
.begriff-titel { margin-top: 6px; }
.begriff-englisch { color: var(--muted); font-size: 15px; margin: 2px 0 0; }

.karte-block { margin-top: 20px; }
.karte-block .eyebrow { display: block; margin-bottom: 6px; }
.karte-block.kurz-block .kurz { margin: 0; }

.beispiel-block {
  background: var(--soft);
  padding: 18px 20px;
}

.irrtum-block {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 18px;
}
.irrtum-block .eyebrow { color: var(--accent-dark); }
.irrtum-block .eyebrow .zeichen { margin-right: 4px; }

.unsicher-block {
  border: 1px solid var(--muted);
  padding: 14px 16px;
  font-size: 15px;
  display: flex;
  gap: 10px;
}
.unsicher-block .zeichen { flex: none; }

details.karte-aufklapp {
  border-top: 1px solid var(--line);
  padding-top: 4px;
}
details.karte-aufklapp summary {
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  color: var(--teal-dark);
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
details.karte-aufklapp summary::-webkit-details-marker { display: none; }
details.karte-aufklapp summary::after {
  content: "+";
  color: var(--teal-dark);
  font-size: 20px;
  margin-left: 12px;
}
details.karte-aufklapp[open] summary::after { content: "−"; }
details.karte-aufklapp .aufklapp-inhalt {
  padding: 0 0 14px;
}

.verwandt-liste {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-top: 8px;
}
.verwandt-chip {
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 7px 12px;
  font-size: 14px;
}
.verwandt-chip:hover { background: var(--soft); }

.quellen-liste {
  list-style: none;
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  font-size: 14px;
}
.quellen-liste li:not(:first-child)::before {
  content: "· ";
  color: var(--muted);
  margin: 0 8px 0 0;
}
.quellen-liste li { display: inline-flex; align-items: baseline; }

.karte-fuss {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.karte-fuss .feedback-link {
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--teal-dark);
}

/* Reduzierte Ansicht "Ich hab's eilig" */
.eilig-aktiv .karte-block:not(.kurz-block),
.eilig-aktiv .karte-aufklapp,
.eilig-aktiv .karte-fuss {
  display: none;
}

/* ---------- Begriffsklärung (schlanker Kartentyp) ---------- */

.begriffsklaerung {
  scroll-margin-top: calc(var(--header-hoehe) + 90px);
  border: 1px dashed var(--ink);
  padding: 24px 28px;
  max-width: 640px;
}
.begriffsklaerung .karte-kopf { margin-bottom: 10px; }
.begriffsklaerung .verzweigung-icon {
  display: inline-flex;
  color: var(--teal-dark);
  margin-right: 8px;
  vertical-align: -3px;
}
.lesarten-liste {
  list-style: none;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lesart {
  border: 1px solid var(--line);
  padding: 12px 14px;
}
.lesart .wenn { display: block; color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.lesart a {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--teal-dark);
}
.empfehlung-block {
  background: var(--soft);
  padding: 16px 18px;
  margin-top: 16px;
  font-size: 15px;
}
.empfehlung-block .eyebrow { color: var(--teal-dark); margin-bottom: 6px; }

/* ---------- Leerzustand ---------- */

.leerzustand {
  padding: 60px 28px;
  text-align: center;
  color: var(--muted);
}
.leerzustand p { max-width: 480px; margin: 0 auto 12px; }

/* ==========================================================================
   Kursbereich — Materialübersicht
   ========================================================================== */

.material-sektion { padding-top: 40px; padding-bottom: 40px; }
.material-sektion + .material-sektion { border-top: 1px solid var(--line); }

.material-eintrag {
  border: 1px solid var(--ink);
  padding: 20px 24px;
  margin-top: 20px;
}
.material-eintrag h3 { font-size: 19px; margin-bottom: 8px; }
.material-eintrag > p { color: var(--muted); margin-bottom: 14px; }

.material-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin: 0 0 16px;
}
.material-meta > div { display: flex; gap: 6px; }
.material-meta dt {
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.material-meta dd { margin: 0; font-size: 14px; }

/* ==========================================================================
   404
   ========================================================================== */

.fehlerseite {
  padding: 120px 28px;
  text-align: center;
}
.fehlerseite .code {
  font-size: 96px;
  font-weight: 760;
  color: var(--muted);
  margin-bottom: 12px;
}

/* ==========================================================================
   Werkzeuge — gemeinsame Bausteine
   ========================================================================== */

.werkzeug-sektion { border-top: 1px solid var(--line); padding-top: 48px; }
.werkzeug-sektion:first-of-type { border-top: none; }
.werkzeug-sektion h2 { margin-bottom: 10px; }
.werkzeug-sektion > .container > p:not(.lead) { color: var(--muted); margin-bottom: 20px; }

.werkzeug-box {
  border: 1px solid var(--ink);
  padding: 24px;
}
.werkzeug-box textarea {
  width: 100%;
  border: 1px solid var(--ink);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  margin: 8px 0 16px;
  resize: vertical;
}
.werkzeug-beispiele { margin-bottom: 18px; }
.werkzeug-hinweis { color: var(--muted); margin-top: 12px; }

/* ---------- 1 Token-Zerleger ---------- */

.token-ausgabe {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 14px 0;
  min-height: 44px;
}
.token-block {
  border: 1px solid var(--ink);
  padding: 4px 8px;
  font-size: 14px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: var(--paper);
}
.token-wort { background: var(--teal-soft); }
.token-zahl { background: var(--soft); }
.token-satzzeichen { background: var(--paper); color: var(--muted); }
.token-leerzeichen { background: var(--paper); border-style: dashed; color: var(--muted); min-width: 1.4em; text-align: center; }

/* ---------- 2 Kontextfenster-Lineal ---------- */

#seiten-schieber { width: 100%; margin: 10px 0 20px; accent-color: var(--teal-dark); }
.kontextfenster-balken {
  border: 1px solid var(--ink);
  height: 28px;
  margin-top: 18px;
  background: var(--soft);
  overflow: hidden;
}
.kontextfenster-fuellung {
  height: 100%;
  width: 0;
  background: var(--teal);
}
.kontextfenster-fuellung.ist-voll { background: var(--ink); }

/* ---------- 3 „Darf das in ChatSTR?“ ---------- */

.zuordnung-wrap { margin-top: 20px; display: grid; gap: 24px; }
.karten-stapel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.situationskarte {
  border: 1px solid var(--ink);
  padding: 14px 16px;
  width: 100%;
  max-width: 320px;
  cursor: grab;
  background: var(--paper);
}
.situationskarte p { margin: 0; font-size: 15px; }
.situationskarte:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.ablagezonen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.ablagezone {
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 16px;
  min-height: 120px;
}
.ablagezone h3 { font-size: 16px; margin-bottom: 10px; }
.ablagezone.ist-anvisiert { background: var(--teal-soft); }
@media (max-width: 640px) {
  .ablagezonen { grid-template-columns: 1fr; }
}

.platzierte-karte {
  border: 1px solid var(--line);
  padding: 12px 14px;
  margin-bottom: 12px;
  background: var(--paper);
}
.platzierte-karte-text { font-size: 14px; font-weight: 650; margin: 0 0 8px; }
.platzierte-karte-begruendung { font-size: 14px; color: var(--muted); margin: 0 0 10px; }

/* ---------- 4 Halluzinations-Aufdecker ---------- */

.halluzination-text {
  font-size: 17px;
  line-height: 1.6;
  margin: 18px 0;
}
.halluzination-teil.ist-erfunden {
  background: var(--soft);
}
.zeigt-erfundenes .halluzination-teil.ist-erfunden {
  background: var(--accent-soft);
  border-bottom: 2px solid var(--accent);
}
.halluzination-erklaerungen {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.halluzination-erklaerungen li {
  border-left: 3px solid var(--accent);
  padding: 2px 0 2px 16px;
  font-size: 15px;
}
.halluzination-erklaerungen strong { color: var(--accent-dark); }

/* ---------- 5 Prompt-Vergleich ---------- */

.prompt-paar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  margin-top: 16px;
}
.prompt-karte {
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 18px 20px;
}
.prompt-schlecht { border-left: 3px solid var(--accent); }
.prompt-schlecht .eyebrow { color: var(--accent-dark); }
.prompt-gut { border-left: 3px solid var(--teal); }
.prompt-gut .eyebrow { color: var(--teal-dark); }
.prompt-karte p { margin-top: 8px; font-size: 15px; }
@media (max-width: 640px) {
  .prompt-paar { grid-template-columns: 1fr; }
}

#prompt-tabs { margin-top: 16px; }
#prompt-tabs .chip[aria-selected="true"] { background: var(--ink); color: var(--paper); }

/* ---------- 6 Selbstcheck ---------- */

.selbstcheck-trenner {
  border: none;
  border-top: 1px solid var(--ink);
  margin: 56px 0 0;
}
.selbstcheck-sektion { background: var(--soft); }
.selbstcheck-liste {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 24px;
}
.selbstcheck-frage-text { font-weight: 650; margin-bottom: 12px; }
.selbstcheck-optionen {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.selbstcheck-option { text-align: left; max-width: 100%; }
.selbstcheck-option.ist-ausgewaehlt { background: var(--teal-soft); border-color: var(--teal-dark); }
.selbstcheck-begruendungen {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.selbstcheck-begruendung {
  border: 1px solid var(--line);
  padding: 12px 14px;
  font-size: 15px;
}
.selbstcheck-begruendung.ist-ausgewaehlt { border-color: var(--teal-dark); background: var(--paper); }
.selbstcheck-begruendung-titel { font-weight: 650; margin: 0 0 6px; }

/* ==========================================================================
   Workshop-Ansicht — dezenter Fußbereich-Link auf begriffe.html
   ========================================================================== */

.workshop-ansicht-zeile {
  padding: 20px 0 0;
  text-align: center;
}
.workshop-ansicht-zeile a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.workshop-ansicht-zeile a:hover,
.workshop-ansicht-zeile a:focus-visible {
  color: var(--teal-dark);
  border-bottom-color: var(--teal-dark);
}

/* ==========================================================================
   Workshop-Modus — Vollbild-Beamer-Ansicht (16:9)
   ========================================================================== */

body.workshop-modus-aktiv { overflow: hidden; }

.workshop-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--night);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.workshop-overlay:focus { outline: none; }

.workshop-slide {
  width: min(94vw, calc(94vh * 16 / 9));
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(16px, 3vh, 40px);
  padding: 5vh 6vw;
  position: relative;
  color: var(--paper);
}

.workshop-begriff {
  margin: 0;
  font-size: clamp(32px, 7vw, 88px);
  font-weight: 760;
  line-height: 1.05;
  letter-spacing: 0;
}
.workshop-kurz {
  margin: 0;
  font-size: clamp(18px, 2.6vw, 32px);
  line-height: 1.35;
  max-width: 46ch;
}
.workshop-beispiel {
  margin: 0;
  font-size: clamp(14px, 1.8vw, 24px);
  line-height: 1.4;
  color: #aab3bd;
  max-width: 50ch;
}
.workshop-position {
  position: absolute;
  right: 6vw;
  bottom: 3vh;
  margin: 0;
  font-size: 14px;
  color: #aab3bd;
}
.workshop-tastenhilfe {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  margin: 0;
  font-size: 13px;
  color: #aab3bd;
  background: rgba(255,255,255,.06);
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,.18);
}

@media (max-width: 640px) {
  .workshop-slide { width: 94vw; aspect-ratio: auto; padding: 6vh 6vw; }
}

/* ==========================================================================
   Druckansicht
   ========================================================================== */

@media print {
  .site-header, .site-nav, .skip-link, .filterleiste, .downloadleiste,
  .button, .site-footer nav, .verwandt-chip, .karte-fuss .feedback-link,
  .chip-reihe, .filter-reset { display: none !important; }

  body { font-size: 12pt; color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
  .begriffskarte, .begriffsklaerung { border: 1px solid #000; break-inside: avoid; }
  .begriffskarte { border-top: 3px solid #000; }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #333;
  }
}
