0,700;1,400&family=Big+Shoulders+Display:wght@800;900&family=Courier+Prime:wght@400;700&display=swap");

/* Quatscho — Komponenten-Stile („Rampenlicht“).
   Nur Tokens aus tokens.css: Farben var(--<name>), Abstände --space-*, Radien --radius-*,
   Schrift --font-display / --font-text / --font-mono. Handy zuerst, Tippflächen mind. 44 px,
   Fokus 3 px --fokus (auf Bühnen --fokus-buehne), ab 360 px ohne waagerechtes Scrollen. */

/* Alte Namen, die website/statisch/rueckmeldung.css liest */
:root { --display: var(--font-display); --text: var(--font-text); --mono: var(--font-mono); }

:root, [data-theme="light"] { color-scheme: light; }
[data-theme="dark"] { color-scheme: dark; }

body { background: var(--grund); color: var(--fg); font-family: var(--font-text); }

/* ---- Grundregeln ---- */

/* Fokusregel: überall gleich, auf Bühnenflächen gelb */
.q-buehne, .q-kopf, .q-fuss { --fokus: var(--fokus-buehne); }

:is(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--fokus);
  outline-offset: 2px;
}

/* Witzliste: eine Spalte, ab 720 px zwei, ab 1080 px drei */
.q-witzliste {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 720px) {
  .q-witzliste { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
}
@media (min-width: 1080px) {
  .q-witzliste { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Links im Fließtext */
.q-hinweis a,
.q-seitenkopf__einleitung a,
.q-suche__leer a,
.q-suche__hilfe a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--akzent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color var(--dauer-kurz) ease;
}
.q-hinweis a:hover,
.q-seitenkopf__einleitung a:hover,
.q-suche__leer a:hover,
.q-suche__hilfe a:hover { color: var(--akzent); }

/* ---- Logo ---- */

.q-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25em;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
  color: var(--fg);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.q-logo--gross { font-size: 48px; }
.q-buehne .q-logo, .q-kopf .q-logo, .q-fuss .q-logo { color: var(--buehne-fg); }

.q-logo__zeichen {
  display: block;
  flex: none;
  width: 1.2em;
  height: 1.2em;
  /* Ringunterkante außen (y = 40 von 48, wie in assets/Logo) auf die Grundlinie der Wortmarke:
     1.2em × (48 − 40) / 48 = 0.2em */
  position: relative;
  top: 0.2em;
  overflow: visible;
}
.q-logo__tinte { stroke: currentColor; }
.q-logo__spot { fill: var(--gelb); }

.q-logo__wort {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ---- Witzkarte ---- */

.q-witz {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: var(--space-5);
  background: var(--flaeche);
  color: var(--fg);
  border: 1px solid var(--linie);
  border-radius: var(--radius-karte);
}
@media (min-width: 720px) {
  .q-witz { padding: var(--space-6); }
}

.q-witz__kopf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  margin: calc(-1 * var(--space-3)) 0 var(--space-3);
}

.q-witz__nr {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leise);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dauer-kurz) ease;
}
.q-witz__nr:hover {
  color: var(--akzent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.q-witz__titel {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fg);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.q-witz__text { margin: 0; }

.q-witz__aufbau,
.q-witz__text > p:not(.q-pointe) {
  max-width: 62ch;
  margin: 0;
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--fg);
  hyphens: auto;
  overflow-wrap: anywhere;
}
.q-witz__aufbau + .q-witz__aufbau { margin-top: var(--space-2); }

/* Signatur: die Kunstpause */
.q-pause {
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--pause);
  padding-left: var(--space-1);
}
.q-pause i {
  display: block;
  flex: none;
  width: 2px;
  height: 14px;
  border-radius: 1px;
  background: var(--rand);
}

/* Signatur: die Pointe im Lichtkegel */
.q-pointe {
  position: relative;
  isolation: isolate;
  max-width: 62ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.005em;
  color: var(--fg);
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.q-pointe::before {
  content: "";
  position: absolute;
  inset: -8px -12px -10px -16px;
  z-index: -1;
  background: radial-gradient(ellipse 90% 140% at 8% 100%, var(--spot) 0%, var(--spot) 22%, transparent 72%);
  pointer-events: none;
}
.q-pointe--lang {
  font-family: var(--font-text);
  font-size: 20px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: 0;
  hyphens: auto;
}

@keyframes q-licht {
  from { opacity: 0; }
  to { opacity: 1; }
}
@supports (animation-timeline: view()) {
  .q-pointe::before {
    /* Dauer und Verzögerung gelten als Zeitwerte; mit view() steuert der Bereich den Ablauf */
    animation: q-licht var(--dauer-licht) ease-out var(--verzoegerung-licht) both;
    animation-timeline: view();
    animation-range: entry 40% cover 45%;
  }
}

/* Zielgruppen-Varianten ändern nur die Kennzeichnung, nicht den Look der Karte */
.q-witz--kinder, .q-witz--ab18 { background: var(--flaeche); }

/* Ungeteilte Witze: keine Pause, kein Lichtkegel */
.q-witz--ungeteilt .q-pause { display: none; }
.q-witz--ungeteilt .q-pointe::before { display: none; }

.q-witz__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}
.q-witz__tags li { margin: 0; padding: 0; }

/* Witz des Tages auf der Bühne: kein eigener Rand, die Pointe ist das Licht */
.q-witz--buehne {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--buehne-fg);
}
.q-buehne .q-pointe { color: var(--gelb); }
.q-buehne .q-pointe::before { display: none; }
.q-buehne .q-witz__nr:hover { color: var(--gelb); }

/* ---- Rueckmeldung ---- */
/* Gleiche Selektoren wie website/statisch/rueckmeldung.css, ohne Rückfallwerte, direkt mit Tokens.
   Markup und Texte baut statisch/rueckmeldung.js. */

.rm {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px dashed var(--linie);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.45;
  min-width: 0;
}
.rm [hidden] { display: none !important; }
.rm *, .rm *::before, .rm *::after { box-sizing: border-box; }

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

.rm__leiste {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}
.rm__daumen-gruppe { display: flex; gap: var(--space-2); }

.rm__daumen,
.rm__auf {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  margin: 0;
  padding: 0 14px;
  border: 1.5px solid var(--rand);
  border-radius: var(--radius-pille);
  background: transparent;
  color: var(--fg);
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dauer-kurz) ease, border-color var(--dauer-kurz) ease, color var(--dauer-kurz) ease, transform var(--dauer-kurz) ease;
}
.rm__daumen { padding: 0 12px; }
.rm__auf { margin-left: auto; padding: 0 16px; }

.rm__daumen:hover:not(:disabled),
.rm__auf:hover { border-color: var(--leise); }

.rm__daumen:focus-visible,
.rm__auf:focus-visible,
.rm__senden:focus-visible,
.rm__regeln input:focus-visible {
  outline: 3px solid var(--fokus);
  outline-offset: 2px;
}

.rm__svg { display: block; flex: none; }
.rm__zahl {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  min-width: 1ch;
}
.rm__zahl:empty { display: none; }

.rm__daumen--hoch[aria-pressed="true"] {
  background: var(--gruen-bg);
  border-color: var(--gruen);
  color: var(--gruen);
}
.rm__daumen--runter[aria-pressed="true"] {
  background: var(--warn-bg);
  border-color: var(--warn);
  color: var(--warn);
}
.rm__daumen[aria-pressed="true"] .rm__svg path { fill: currentColor; fill-opacity: .22; }
.rm__daumen[aria-busy="true"] { cursor: progress; }
.rm__daumen:disabled { opacity: .5; cursor: not-allowed; }

.rm__daumen.rm--neu { animation: rm-huepfen .45s ease; }
.rm__daumen--hoch.rm--neu { animation: rm-huepfen .45s ease, q-tusch var(--dauer-tusch) ease-out; }
@keyframes rm-huepfen {
  0% { transform: scale(1); }
  40% { transform: scale(1.14); }
  100% { transform: scale(1); }
}
@keyframes q-tusch {
  from { box-shadow: var(--schatten-tusch); }
  to { box-shadow: 0 0 0 12px transparent; }
}

.rm__auf[aria-expanded="true"] {
  background: var(--akzent-hell);
  border-color: var(--akzent);
}

.rm__hinweis {
  margin: var(--space-2) 0 0;
  color: var(--leise);
  font-size: 14px;
  line-height: 1.45;
}

.rm__meldung,
.rm__formmeldung {
  margin: 10px 0 0;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-karte);
  font-size: 14px;
  line-height: 1.45;
  background: var(--akzent-hell);
  color: var(--fg);
  overflow-wrap: anywhere;
}
.rm__meldung--fehler,
.rm__formmeldung--fehler { background: var(--warn-bg); color: var(--warn); }
.rm__formmeldung--danke { background: var(--gruen-bg); color: var(--gruen); font-weight: 700; }

.rm__bereich { margin-top: 14px; }

.rm__liste { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.rm__kommentar {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--linie);
  border-radius: var(--radius-karte);
  background: var(--flaeche);
}
.rm__kopf {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) 10px;
  margin: 0 0 var(--space-1);
}
.rm__name { font-family: var(--font-text); font-weight: 700; overflow-wrap: anywhere; }
.rm__zeit {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--leise);
}
.rm__text { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.rm__antwort {
  margin-top: 10px;
  padding: var(--space-2) var(--space-3);
  border: 0;
  border-radius: var(--radius-karte);
  background: var(--akzent-hell);
}
.rm__antwort-titel {
  margin: 0 0 2px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--akzent);
}
.rm__leer { margin: 0 0 14px; color: var(--leise); }

.rm__form { margin: 0; }
.rm__felder { border: 0; margin: 0; padding: 0; min-width: 0; }
.rm__felder:disabled { opacity: .6; }
.rm__legende {
  padding: 0;
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.rm__feld { margin: 0 0 var(--space-3); }
.rm__label { display: block; margin: 0 0 var(--space-1); font-weight: 700; }
.rm__klein { font-weight: 400; color: var(--leise); }
.rm__hilfe { margin: var(--space-1) 0 0; color: var(--leise); font-size: 14px; line-height: 1.45; }

.rm__eingabe {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px var(--space-3);
  border: 1.5px solid var(--rand);
  border-radius: var(--radius-karte);
  background: var(--flaeche);
  color: var(--fg);
  font: inherit;
  font-size: 16px; /* verhindert das Hineinzoomen auf iPhones */
  transition: border-color var(--dauer-kurz) ease;
}
.rm__eingabe--text { min-height: 110px; resize: vertical; }
.rm__eingabe:focus {
  border-color: var(--fokus);
  outline: 3px solid var(--fokus);
  outline-offset: 2px;
}

.rm__regeln {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  min-height: 44px;
  cursor: pointer;
}
.rm__regeln input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--akzent);
}

.rm__unten { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }

.rm__senden {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-5);
  border: 0;
  border-radius: var(--radius-karte);
  background: var(--akzent);
  color: var(--akzent-fg);
  box-shadow: var(--schatten-knopf);
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform var(--dauer-kurz) ease, box-shadow var(--dauer-kurz) ease, filter var(--dauer-kurz) ease;
}
.rm__senden:hover:not(:disabled) { filter: brightness(1.08); }
.rm__senden:active:not(:disabled) { transform: translateY(3px); box-shadow: none; }
.rm__senden:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }

/* Honigtopf: aus dem Blick, aber nicht display:none (manche Bots überspringen verborgene Felder) */
.rm__honig {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Rückmeldung auf einer Bühnenfläche (rueckmeldung.js füllt auch die Karte im Bühnenblock):
   kein akzent und kein akzent-hell auf buehne, sonst fällt buehne-fg auf akzent-hell hell durch (1,1:1) */
.q-buehne .rm__auf[aria-expanded="true"] { background: transparent; border-color: var(--gelb); }
.q-buehne .rm__meldung:not(.rm__meldung--fehler),
.q-buehne .rm__formmeldung:not(.rm__formmeldung--fehler):not(.rm__formmeldung--danke),
.q-buehne .rm__antwort {
  background: transparent;
  border: 1px solid var(--buehne-leise);
}
.q-buehne .rm__antwort-titel { color: var(--gelb); }
.q-buehne .rm__regeln input { accent-color: var(--gelb); }
.q-buehne .rm__senden {
  background: var(--gelb);
  color: var(--gelb-fg);
  box-shadow: var(--schatten-knopf-leise);
}

@media (prefers-reduced-motion: reduce) {
  .rm__daumen, .rm__auf, .rm__senden { transition: none; }
  .rm__daumen.rm--neu, .rm__daumen--hoch.rm--neu { animation: none; }
  .rm__senden:active:not(:disabled) { transform: none; }
}

@media print {
  .rm { display: none !important; }
}

/* ---- Schalter ---- */

.q-schalter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  margin: 0;
  padding: 0 var(--space-5);
  border: 0;
  border-radius: var(--radius-karte);
  background: transparent;
  color: var(--fg);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--dauer-kurz) ease, box-shadow var(--dauer-kurz) ease, border-color var(--dauer-kurz) ease, color var(--dauer-kurz) ease, filter var(--dauer-kurz) ease;
}
.q-schalter svg { display: block; flex: none; width: 20px; height: 20px; }

.q-schalter--primaer {
  background: var(--akzent);
  color: var(--akzent-fg);
  box-shadow: var(--schatten-knopf);
}
.q-schalter--primaer:hover { filter: brightness(1.08); }

.q-schalter--sekundaer {
  background: var(--flaeche);
  color: var(--fg);
  border: 1.5px solid var(--rand);
  box-shadow: var(--schatten-knopf-leise);
}
.q-schalter--sekundaer:hover { border-color: var(--fg); }

.q-schalter--leise {
  background: transparent;
  color: var(--fg);
  padding: 0 var(--space-2);
  text-decoration: underline;
  text-decoration-color: var(--akzent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.q-schalter--leise:hover { color: var(--akzent); }

.q-schalter--buehne {
  background: var(--gelb);
  color: var(--gelb-fg);
  box-shadow: var(--schatten-knopf-leise);
}
.q-schalter--buehne:hover { filter: brightness(1.06); }

.q-schalter--primaer:active,
.q-schalter--sekundaer:active,
.q-schalter--buehne:active {
  transform: translateY(3px);
  box-shadow: none;
}

.q-schalter:disabled,
.q-schalter[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
  filter: none;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .q-schalter { transition: none; }
  .q-schalter:active { transform: none; }
}

/* ---- Tag ---- */

.q-tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 var(--space-3);
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--fg);
  background: var(--flaeche);
  border: 1.5px solid var(--rand);
  border-radius: var(--radius-ticket);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color var(--dauer-kurz) ease, border-color var(--dauer-kurz) ease, color var(--dauer-kurz) ease;
}
.q-tag:hover {
  background: var(--akzent-hell);
  border-color: var(--akzent);
}
.q-tag[aria-current="page"] {
  background: var(--fg);
  color: var(--flaeche);
  border-color: var(--fg);
}
.q-tag--mehr {
  background: transparent;
  color: var(--leise);
  border-color: transparent;
}
.q-tag--mehr:hover {
  background: transparent;
  color: var(--akzent);
  border-color: var(--rand);
}
.q-buehne .q-tag:hover { background: transparent; border-color: var(--gelb); }
.q-buehne .q-tag[aria-current="page"] { background: var(--gelb); color: var(--gelb-fg); border-color: var(--gelb); }

@media (prefers-reduced-motion: reduce) {
  .q-tag { transition: none; }
}

/* ---- Kennzeichnung ---- */

.q-kennzeichnung {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 26px;
  padding: 0 var(--space-3);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--jugendfrei);
  background: var(--jugendfrei-bg);
  border: 1.5px solid currentColor;
  border-radius: var(--radius-ticket);
  /* Eintrittskarten-Perforation: #000 ist Maskenwert, keine Farbe */
  -webkit-mask: radial-gradient(circle 4px at 0 50%, transparent 98%, #000 100%) left / 51% 100% no-repeat, radial-gradient(circle 4px at 100% 50%, transparent 98%, #000 100%) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 4px at 0 50%, transparent 98%, #000 100%) left / 51% 100% no-repeat, radial-gradient(circle 4px at 100% 50%, transparent 98%, #000 100%) right / 51% 100% no-repeat;
}
.q-kennzeichnung--kinder { color: var(--kinder); background: var(--kinder-bg); }
.q-kennzeichnung--jugendfrei { color: var(--jugendfrei); background: var(--jugendfrei-bg); }
.q-kennzeichnung--ab18 { color: var(--ab18); background: var(--ab18-bg); }

.q-kennzeichnung--gross {
  min-height: 36px;
  padding: 0 var(--space-4);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.01em;
}

/* ---- Rubrik ---- */

.q-rubrik {
  min-width: 0;
  padding: var(--space-5);
  background: var(--flaeche-tief);
  color: var(--fg);
  border-radius: var(--radius-karte);
}

.q-rubrik__nr {
  margin: 0 0 var(--space-1);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--akzent);
  font-variant-numeric: tabular-nums;
}

.q-rubrik__titel {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--fg);
  overflow-wrap: anywhere;
}

.q-rubrik__liste {
  margin: 0;
  padding: 0;
  list-style: none;
}
.q-rubrik__liste li { margin: 0; padding: 0; break-inside: avoid; }
@media (min-width: 720px) {
  .q-rubrik__liste { columns: 2; column-gap: var(--space-6); }
}
@media (min-width: 1080px) {
  .q-rubrik__liste { columns: 3; }
}

.q-rubrik__link {
  display: flex;
  align-items: baseline;
  min-height: 44px;
  padding: var(--space-3) 0;
  box-sizing: border-box;
  border-bottom: 1px solid var(--linie);
  color: var(--fg);
  text-decoration: none;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.25;
}
/* Programmheft: gepunktete Füllung zwischen Name und Zahl */
.q-rubrik__link::after {
  content: "";
  order: 1;
  flex: 1;
  min-width: var(--space-4);
  border-bottom: 2px dotted var(--rand);
  margin: 0 var(--space-2) 6px;
}
.q-rubrik__name { order: 0; min-width: 0; overflow-wrap: anywhere; transition: color var(--dauer-kurz) ease; }
.q-rubrik__zahl {
  order: 2;
  flex: none;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--leise);
  font-variant-numeric: tabular-nums;
}
.q-rubrik__link:hover .q-rubrik__name {
  color: var(--akzent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ---- Seitenwechsel ---- */

.q-seitenwechsel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-2);
  margin: var(--space-8) 0 0;
}

.q-seitenwechsel__schritt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--space-5);
  background: var(--flaeche);
  color: var(--fg);
  border: 1.5px solid var(--rand);
  border-radius: var(--radius-karte);
  box-shadow: var(--schatten-knopf-leise);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--dauer-kurz) ease, box-shadow var(--dauer-kurz) ease, border-color var(--dauer-kurz) ease;
}
.q-seitenwechsel__schritt:hover { border-color: var(--fg); }
.q-seitenwechsel__schritt:active { transform: translateY(3px); box-shadow: none; }
.q-seitenwechsel__schritt[rel="next"] { margin-left: auto; }

.q-seitenwechsel__liste {
  order: -1;
  flex: 1 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}
.q-seitenwechsel__liste li { margin: 0; padding: 0; }
.q-seitenwechsel__liste a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  border: 1.5px solid var(--rand);
  border-radius: var(--radius-ticket);
  background: transparent;
  color: var(--fg);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition: border-color var(--dauer-kurz) ease;
}
.q-seitenwechsel__liste a:hover { border-color: var(--fg); }
.q-seitenwechsel__liste a[aria-current="page"] {
  background: var(--akzent);
  color: var(--akzent-fg);
  border-color: var(--akzent);
}
.q-seitenwechsel__luecke {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--space-4);
  height: 44px;
  color: var(--leise);
}

.q-seitenwechsel__stand {
  flex: 1 0 100%;
  margin: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--leise);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 720px) {
  .q-seitenwechsel { justify-content: center; gap: var(--space-3); }
  .q-seitenwechsel__liste { order: 0; flex: 0 1 auto; gap: var(--space-2); }
  .q-seitenwechsel__schritt[rel="next"] { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .q-seitenwechsel__schritt, .q-seitenwechsel__liste a { transition: none; }
  .q-seitenwechsel__schritt:active { transform: none; }
}

/* ---- Suchfeld ---- */

.q-suche { margin: 0; min-width: 0; }

.q-suche__label {
  display: block;
  margin: 0 0 var(--space-2);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--fg);
}

.q-suche__zeile {
  display: flex;
  gap: var(--space-2);
  align-items: stretch;
}

.q-suche__feld {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 0 var(--space-4);
  box-sizing: border-box;
  background: var(--flaeche);
  color: var(--fg);
  border: 1.5px solid var(--rand);
  border-radius: var(--radius-karte);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  transition: border-color var(--dauer-kurz) ease;
}
.q-suche__feld::placeholder { color: var(--leise); opacity: 1; }
.q-suche__feld:hover { border-color: var(--fg); }
.q-suche__feld:focus {
  border-color: var(--fokus);
  outline: 3px solid var(--fokus);
  outline-offset: 2px;
}
.q-suche__zeile .q-schalter { flex: none; min-height: 48px; }

.q-suche__hilfe {
  margin: var(--space-2) 0 0;
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1.45;
  color: var(--leise);
}

.q-suche__leer {
  max-width: 62ch;
  margin: var(--space-4) 0 0;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  overflow-wrap: anywhere;
}

/* ---- Anzeigenplatz ---- */

.q-anzeige {
  min-width: 0;
  margin: 0;
  padding: var(--space-2) var(--space-3) var(--space-3);
  background: var(--flaeche-tief);
  border: 1px dashed var(--rand);
  border-radius: var(--radius-ticket);
}
.q-witzliste > .q-anzeige { grid-column: 1 / -1; }

.q-anzeige__etikett {
  margin: 0 0 var(--space-2);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leise);
}

.q-anzeige__platz {
  min-height: 90px;
  max-width: 100%;
  overflow: hidden;
}
.q-anzeige--rechteck .q-anzeige__platz {
  min-height: 250px;
  max-width: 336px;
  margin: 0 auto;
}
.q-anzeige--banner .q-anzeige__platz { min-height: 90px; }

/* ---- Kopfzeile ---- */

.q-kopf {
  background: var(--buehne);
  color: var(--buehne-fg);
  box-shadow: var(--schatten-buehne);
  border-top: 6px solid var(--akzent);
}

.q-kopf__innen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-3) var(--space-4);
  box-sizing: border-box;
}
.q-kopf .q-logo { order: 1; padding-block: var(--space-1); }

.q-kopf__suche {
  order: 2;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  color: var(--buehne-fg);
  border: 1.5px solid var(--buehne-leise);
  border-radius: var(--radius-karte);
  transition: border-color var(--dauer-kurz) ease;
}
.q-kopf__suche:hover { border-color: var(--buehne-fg); }
.q-kopf__suche svg { display: block; width: 22px; height: 22px; }

.q-kopf__nav {
  order: 3;
  flex: 1 0 100%;
  display: flex;
  gap: var(--space-1);
  margin: 0 calc(-1 * var(--space-4));
  padding: var(--space-1) var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}
.q-kopf__nav::-webkit-scrollbar { display: none; }

.q-kopf__nav a {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 44px;
  padding: 0 var(--space-3);
  color: var(--buehne-fg);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.q-kopf__nav a:hover,
.q-kopf__nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--gelb);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

@media (min-width: 720px) {
  .q-kopf__innen { flex-wrap: nowrap; }
  .q-kopf__nav {
    order: 2;
    flex: 0 1 auto;
    margin: 0 0 0 auto;
    padding: 0;
    overflow: visible;
  }
  .q-kopf__suche { order: 3; margin-left: 0; }
}

/* ---- Buehne ---- */

.q-buehne {
  --fg: var(--buehne-fg);
  --leise: var(--buehne-leise);
  --linie: var(--buehne-linie);
  --rand: var(--buehne-leise);
  --flaeche: var(--buehne);
  --fokus: var(--fokus-buehne);
  background: var(--buehne);
  color: var(--buehne-fg);
  box-shadow: var(--schatten-buehne);
  padding: var(--space-9) var(--space-4);
}

.q-buehne__innen {
  max-width: 1120px;
  margin: 0 auto;
}

.q-buehne__kicker {
  margin: 0 0 var(--space-3);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gelb);
}

.q-buehne__titel {
  margin: 0;
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--buehne-fg);
  text-wrap: balance;
  overflow-wrap: break-word;
}
@media (min-width: 720px) {
  .q-buehne__titel { font-size: 88px; }
}

.q-buehne__unterzeile {
  max-width: 62ch;
  margin: var(--space-4) 0 0;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  color: var(--buehne-leise);
}

.q-buehne__witz {
  max-width: 62ch;
  margin-top: var(--space-8);
}

.q-buehne__aktion { margin: var(--space-7) 0 0; }

/* Links im Text auf der Bühne */
.q-buehne__unterzeile a,
.q-buehne__witz .q-witz__text a {
  color: var(--buehne-fg);
  text-decoration: underline;
  text-decoration-color: var(--gelb);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ---- Seitenkopf ---- */

.q-seitenkopf {
  margin: 0 0 var(--space-7);
  min-width: 0;
}

.q-seitenkopf__brotkrume ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 var(--space-2);
  padding: 0;
  list-style: none;
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1.45;
  color: var(--leise);
}
.q-seitenkopf__brotkrume li {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.q-seitenkopf__brotkrume li + li::before {
  content: "/";
  content: "/" / "";
  margin: 0 var(--space-2);
  color: var(--leise);
}
.q-seitenkopf__brotkrume a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--leise);
  text-decoration: underline;
  text-decoration-color: var(--akzent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color var(--dauer-kurz) ease;
}
.q-seitenkopf__brotkrume a:hover { color: var(--akzent); }
.q-seitenkopf__brotkrume [aria-current="page"] { color: var(--fg); }

.q-seitenkopf__titel {
  margin: 0;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--fg);
  text-wrap: balance;
  overflow-wrap: break-word;
}
@media (min-width: 720px) {
  .q-seitenkopf__titel { font-size: 56px; }
}

.q-seitenkopf__zahl {
  margin: var(--space-3) 0 0;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--leise);
  font-variant-numeric: tabular-nums;
}

.q-seitenkopf__einleitung {
  max-width: 62ch;
  margin: var(--space-4) 0 0;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  overflow-wrap: anywhere;
}

.q-seitenkopf .q-kennzeichnung { margin-top: var(--space-4); }

/* ---- Hinweisleiste ---- */

.q-hinweis {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-3);
  margin: 0 0 var(--space-6);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-karte);
  color: var(--fg);
  min-width: 0;
}
.q-hinweis--ab18 { background: var(--ab18-bg); border: 1.5px solid var(--ab18); }
.q-hinweis--kinder { background: var(--kinder-bg); border: 1.5px solid var(--kinder); }
.q-hinweis .q-kennzeichnung { align-self: center; background: var(--flaeche); }

.q-hinweis__text {
  flex: 1 1 16em;
  min-width: 0;
  margin: 0;
  max-width: 62ch;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  overflow-wrap: anywhere;
}

/* ---- Fusszeile ---- */

.q-fuss {
  background: var(--buehne);
  color: var(--buehne-fg);
  box-shadow: var(--schatten-buehne);
  border-top: 1px solid var(--buehne-linie);
  padding: var(--space-8) var(--space-4);
}

.q-fuss__innen {
  max-width: 1120px;
  margin: 0 auto;
}

.q-fuss__spalten {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  margin: var(--space-6) 0 0;
}
@media (min-width: 720px) {
  .q-fuss__spalten { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.q-fuss__titel {
  margin: 0 0 var(--space-1);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--buehne-leise);
}

.q-fuss__liste {
  margin: 0;
  padding: 0;
  list-style: none;
}
.q-fuss__liste li { margin: 0; padding: 0; }
.q-fuss__liste a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--buehne-fg);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
}
.q-fuss__liste a:hover {
  text-decoration: underline;
  text-decoration-color: var(--gelb);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.q-fuss__schluss {
  max-width: 62ch;
  margin: var(--space-7) 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--buehne-linie);
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1.45;
  color: var(--buehne-leise);
}

/* ---- Bewegung reduziert ---- */

@media (prefers-reduced-motion: reduce) {
  .q-pointe::before { animation: none; opacity: 1; }
  .q-witz__nr, .q-rubrik__name, .q-suche__feld, .q-kopf__suche,
  .q-seitenkopf__brotkrume a, .q-hinweis a, .q-seitenkopf__einleitung a { transition: none; }
}

/* ---- Grafiken ---- */

/* Pins, Link-Vorschauen und Social-Media-Bilder (grafiken/_spezifikation.md). Eine Grafik ist die
   Witzkarte in Plakatgröße: gesetzt in logischen CSS-Pixeln, gerendert mit --grafik-massstab (3).
   Feste Flächen, keine Media-Queries, keine Abhängigkeit von der Viewport-Breite, nur Hell-Werte
   (data-theme="light" am Wurzelelement). Bühnenflächen setzen --fg, --leise, --linie und --rand
   auf die Bühnenwerte um, wie q-buehne. */

.q-grafik {
  --pause: var(--pause-grafik);
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  margin: 0;
  background: var(--grund);
  color: var(--fg);
  font-family: var(--font-text);
  text-align: left;
}
.q-grafik *,
.q-grafik *::before,
.q-grafik *::after { box-sizing: border-box; }
.q-grafik p { margin: 0; }

/* Formate: Fläche und sichere Zone */
.q-grafik--pin { width: 360px; height: 540px; padding: 32px 40px; }
.q-grafik--link { width: 400px; height: 210px; padding: 0; }
.q-grafik--beitrag { width: 360px; height: 450px; padding: 32px 40px; }
.q-grafik--quadrat { width: 360px; height: 360px; padding: 24px 40px; }
.q-grafik--story { width: 360px; height: 640px; padding: 84px 50px 134px 40px; }

/* Satz: keine automatische Trennung (weiche Trennstriche setzt der Generator), nichts zerhacken */
.q-grafik__aufbau,
.q-grafik__sprecher,
.q-grafik__erinnerung,
.q-grafik__kern,
.q-grafik__spruch,
.q-grafik__titel,
.q-grafik__satz {
  hyphens: manual;
  -webkit-hyphens: manual;
  overflow-wrap: normal;
  word-break: normal;
}

/* ---- Grafiken: Gerüst Einzelwitz ---- */

.q-grafik__karte {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.q-grafik__karte > * { flex: none; }

.q-grafik__kopf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  height: 26px;
}
.q-grafik__nr {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--leise);
}

.q-grafik__kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.q-grafik__kickerteil { white-space: nowrap; }
.q-grafik__karte > .q-grafik__kicker { margin-top: var(--space-3); color: var(--gelb); }
/* Witz des Tages: „Im Rampenlicht“ und das Datum stehen in zwei festen Zeilen, das Datum leiser */
.q-grafik__karte > .q-grafik__kicker .q-grafik__kickerteil { display: block; }
.q-grafik__karte > .q-grafik__kicker .q-grafik__kickertrenner { display: none; }
.q-grafik__karte > .q-grafik__kicker .q-grafik__kickertrenner + .q-grafik__kickerteil { margin-top: 2px; color: var(--leise); }

.q-grafik__inhalt {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: var(--space-6) 0;
}
.q-grafik--quadrat .q-grafik__inhalt,
.q-grafik--teil1 .q-grafik__inhalt { padding: var(--space-4) 0; }
/* Der Witzblock steht im Verhältnis 2 : 3 (oben : unten), nie mittig */
.q-grafik__inhalt::before { content: ""; flex: 2 1 0; }
.q-grafik__inhalt::after { content: ""; flex: 3 1 0; }
.q-grafik__inhalt > * { flex: none; }

.q-grafik__aufbau,
.q-grafik__sprecher {
  color: var(--fg);
  text-wrap: pretty;
}
.q-grafik__aufbau + .q-grafik__aufbau { margin-top: var(--space-2); }
.q-grafik__sprecher { margin: 0 0 var(--space-1); }

.q-grafik__rolle {
  display: block;
  margin-bottom: var(--space-1);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leise);
}

.q-grafik__erinnerung {
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--leise);
  text-wrap: pretty;
}

.q-grafik__folgt {
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leise);
}

/* Die Pointe: zugleich .q-pointe, Lichtkegel mit Web-Maßen, aber statisch */
.q-grafik .q-pointe { max-width: none; }
.q-grafik .q-pointe::before { animation: none; opacity: 1; }
.q-grafik__kern {
  color: var(--fg);
  text-wrap: balance;
}

.q-grafik__kante {
  flex: none;
  height: 1px;
  color: var(--linie);
  background: repeating-linear-gradient(90deg, currentColor 0 6px, transparent 6px 10px);
}

.q-grafik__fuss {
  display: flex;
  flex: none;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  height: 32px;
  margin-top: var(--space-3);
}
.q-grafik .q-logo {
  font-size: 18px;
  color: var(--fg);
}
.q-grafik__adresse {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.q-grafik__url { color: var(--fg); }
.q-grafik__pfad { color: var(--leise); }

/* Langer Pfad: Logo mit Wortmarke und „quatscho.de“ in der ersten Zeile, der Pfad volle Breite darunter.
   grafik.js setzt die Klasse, wenn der Pfad nicht neben die Wortmarke passt. */
.q-grafik__fuss--lang {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  row-gap: 2px;
  height: auto;
}
.q-grafik__fuss--lang .q-grafik__adresse { display: contents; }
.q-grafik__fuss--lang .q-grafik__url { grid-column: 2; grid-row: 1; justify-self: end; }
.q-grafik__fuss--lang .q-grafik__pfad {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: end;
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* Taktstriche im Plakatmaß: kräftiger als im Lesetext (3 × 18 statt 2 × 14), damit die Kunstpause auch
   im verkleinerten Feed als Zeichen steht. Höhe der Pause bleibt --pause-grafik (36), oben und unten
   bleiben je 9 px Luft. */
.q-grafik .q-pause { gap: 7px; }
.q-grafik .q-pause i { width: 3px; height: 18px; border-radius: 1.5px; }

/* ---- Grafiken: Schriftstufen ---- */

/* Pointe (Kern, Spruch) */
.q-grafik--p1 :is(.q-grafik__kern, .q-grafik__spruch) { font-family: var(--font-display); font-size: 56px; line-height: 1; font-weight: 800; letter-spacing: 0.01em; }
.q-grafik--p2 :is(.q-grafik__kern, .q-grafik__spruch) { font-family: var(--font-display); font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: 0.01em; }
.q-grafik--p3 :is(.q-grafik__kern, .q-grafik__spruch) { font-family: var(--font-display); font-size: 28px; line-height: 1.05; font-weight: 800; letter-spacing: 0.01em; }
.q-grafik--p4 :is(.q-grafik__kern, .q-grafik__spruch) { font-family: var(--font-display); font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: 0.005em; }
.q-grafik--pl :is(.q-grafik__kern, .q-grafik__spruch) { font-family: var(--font-text); font-size: 20px; line-height: 1.45; font-weight: 700; letter-spacing: 0; }

/* Aufbau (Aufbau und Sprecher) */
.q-grafik--a1 :is(.q-grafik__aufbau, .q-grafik__sprecher) { font-family: var(--font-text); font-size: 18px; line-height: 1.55; font-weight: 400; letter-spacing: 0; }
.q-grafik--a2 :is(.q-grafik__aufbau, .q-grafik__sprecher) { font-family: var(--font-text); font-size: 16px; line-height: 1.5; font-weight: 400; letter-spacing: 0; }
.q-grafik--a3 :is(.q-grafik__aufbau, .q-grafik__sprecher) { font-family: var(--font-text); font-size: 14px; line-height: 1.45; font-weight: 400; letter-spacing: 0; }

/* Titel (Sammelgrafik, Ansagekarte) */
.q-grafik__titel { font-family: var(--font-display); font-weight: 800; text-wrap: balance; }
.q-grafik--t1 .q-grafik__titel { font-size: 56px; line-height: 1; letter-spacing: 0.01em; }
.q-grafik--t2 .q-grafik__titel { font-size: 40px; line-height: 1; letter-spacing: 0.01em; }
.q-grafik--t3 .q-grafik__titel { font-size: 28px; line-height: 1.05; letter-spacing: 0.01em; }

/* ---- Grafiken: Varianten Einzelwitz ---- */

/* V1 Karte: die Witzkarte auf Grund, Pointe im Lichtkegel; Außenabstand = sichere Zone − 16 */
.q-grafik--karte.q-grafik--pin,
.q-grafik--karte.q-grafik--beitrag { padding: 16px 24px; }
.q-grafik--karte.q-grafik--quadrat { padding: 8px 24px; }
.q-grafik--karte.q-grafik--story { padding: 68px 34px 118px 24px; }
.q-grafik--karte .q-grafik__karte {
  padding: var(--space-4);
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius-karte);
}
.q-grafik--karte .q-grafik__kante { display: none; }
.q-grafik--karte .q-grafik__fuss { padding: 0 var(--space-4); margin-bottom: var(--space-4); }

/* V2 Bühne (auch Spruchkarte und Witz des Tages): Black Box mit Vorhangkante und Schnürbodenlicht */
.q-grafik--buehne,
.q-grafik--spruch {
  --fg: var(--buehne-fg);
  --leise: var(--buehne-leise);
  --linie: var(--buehne-linie);
  --rand: var(--buehne-leise);
  background: var(--buehne);
  color: var(--buehne-fg);
  box-shadow: var(--schatten-buehne);
}
.q-grafik--buehne::before,
.q-grafik--spruch::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--vorhangkante);
  background: var(--akzent);
}
.q-grafik--buehne .q-grafik__kern { color: var(--gelb); }
.q-grafik--buehne .q-grafik__kern::before { display: none; }

/* Spruchkarte: ungeteilt, ganzer Text als Spruch, keine Pause, kein Kern */
.q-grafik__spruch {
  color: var(--buehne-fg);
  text-wrap: balance;
}

/* V3 Rampe: oben Saal, ab der Unterkante der Pause die Bühne (--rampe-y setzt grafik.js) */
.q-grafik--rampe {
  background: linear-gradient(to bottom,
    var(--grund) 0 var(--rampe-y, 50%),
    var(--akzent) var(--rampe-y, 50%) calc(var(--rampe-y, 50%) + var(--vorhangkante)),
    var(--buehne) calc(var(--rampe-y, 50%) + var(--vorhangkante)));
}
.q-grafik--rampe .q-grafik__auftritt { padding-top: var(--space-6); }
.q-grafik--rampe .q-grafik__auftritt,
.q-grafik--rampe .q-grafik__kante,
.q-grafik--rampe .q-grafik__fuss {
  --fg: var(--buehne-fg);
  --leise: var(--buehne-leise);
  --linie: var(--buehne-linie);
  --rand: var(--buehne-leise);
}
.q-grafik--rampe .q-grafik__kern { color: var(--gelb); }
.q-grafik--rampe .q-grafik__kern::before { display: none; }

/* Zweiteiler: Story Teil 2 zentriert, Lichtkegel aus der Mitte */
.q-grafik--story.q-grafik--teil2 .q-grafik__inhalt { text-align: center; }
.q-grafik--story.q-grafik--teil2 .q-pause { justify-content: center; padding-left: 0; }
.q-grafik--story.q-grafik--teil2 .q-grafik__kern::before {
  inset: -8px -14px -10px;
  background: radial-gradient(ellipse 90% 140% at 50% 100%, var(--spot) 0%, var(--spot) 22%, transparent 72%);
}

/* ---- Grafiken: Sammelgrafik (Vorhang) ---- */

.q-grafik.q-grafik--vorhang { padding: 0; }
.q-grafik--vorhang .q-grafik__vorhang {
  flex: none;
  min-height: 216px;
  padding: 32px 40px 24px;
  background: var(--akzent);
  color: var(--akzent-fg);
}
.q-grafik--vorhang.q-grafik--beitrag .q-grafik__vorhang { min-height: 180px; }
.q-grafik--vorhang .q-grafik__kicker { color: var(--akzent-fg); }
.q-grafik--vorhang .q-grafik__titel { margin-top: var(--space-3); color: var(--akzent-fg); }
.q-grafik--vorhang .q-grafik__vorhang > .q-grafik__titel:first-child { margin-top: 0; }
.q-grafik__zahlzeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
}
.q-grafik--vorhang .q-grafik__zahlzeile { margin: var(--space-4) 0 0; }
.q-grafik__zahl {
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  white-space: nowrap;
}
.q-grafik--vorhang .q-grafik__zahl { color: var(--akzent-fg); }

.q-grafik__buehnenteil {
  --fg: var(--buehne-fg);
  --leise: var(--buehne-leise);
  --linie: var(--buehne-linie);
  --rand: var(--buehne-leise);
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 24px 40px 32px;
  background: var(--buehne);
  color: var(--buehne-fg);
  box-shadow: var(--schatten-buehne);
}

/* Der Bühnenteil hat oben schon 24 px Polster: der Witzblock braucht kein zweites */
.q-grafik__buehnenteil .q-grafik__inhalt { padding: 0 0 var(--space-4); }
/* Zweizeiliger Fuß (langer Pfad): die Reserve unter dem Witzblock gibt die zusätzliche Zeile her */
.q-grafik__buehnenteil:has(.q-grafik__fuss--lang) .q-grafik__inhalt { padding-bottom: var(--space-2); }

/* Kostproben: zwei (Aufbau a3, Pause 24, Kern p4) oder eine (Aufbau a2, Kern p3) */
.q-grafik__kostprobe { --pause: 24px; }
.q-grafik__kostprobe .q-pause i { height: 14px; }
/* Eine einzelne Kostprobe im Pin bekommt die volle Kunstpause (im Beitrag fehlt der Platz) */
.q-grafik--pin .q-grafik__kostprobe:only-child { --pause: var(--pause-grafik); }
.q-grafik--pin .q-grafik__kostprobe:only-child .q-pause i { height: 18px; }
.q-grafik__kostprobe + .q-grafik__kostprobe {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--buehne-linie);
}
.q-grafik__kostprobe :is(.q-grafik__aufbau, .q-grafik__sprecher) {
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--buehne-fg);
}
.q-grafik__kostprobe .q-grafik__kern {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.005em;
  color: var(--gelb);
}
.q-grafik__kostprobe .q-grafik__kern::before { display: none; }
.q-grafik__kostprobe:only-child :is(.q-grafik__aufbau, .q-grafik__sprecher) { font-size: 16px; line-height: 1.5; }
.q-grafik__kostprobe:only-child .q-grafik__kern { font-size: 28px; line-height: 1.05; letter-spacing: 0.01em; }

/* Vorhang hell: Vorhangfläche in Grund, Titel in Vorhangrot; Bühnenteil unverändert */
.q-grafik--vorhang-hell .q-grafik__vorhang { background: var(--grund); color: var(--fg); }
.q-grafik--vorhang-hell .q-grafik__kicker { color: var(--leise); }
.q-grafik--vorhang-hell .q-grafik__rubriknr { color: var(--akzent); }
.q-grafik--vorhang-hell .q-grafik__titel { color: var(--akzent); }
.q-grafik--vorhang-hell .q-grafik__zahl { color: var(--fg); }

/* ---- Grafiken: Ansagekarte (Link-Vorschau einer Seite) ---- */

.q-grafik--ansage { display: block; background: var(--grund); }
.q-grafik__ansage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 174px;
  padding: 18px 24px 8px;
  text-align: center;
}
.q-grafik__ansage > * { flex: none; }
.q-grafik--ansage .q-grafik__kicker { color: var(--leise); }
.q-grafik--ansage .q-grafik__rubriknr { color: var(--akzent); }
/* Ansage wie ein Witz: Kicker – Kunstpause – Titel im Lichtkegel (aus der Mitte) – Zahl */
.q-grafik--ansage .q-pause {
  justify-content: center;
  height: 14px;
  margin-top: var(--space-2);
  padding-left: 0;
}
.q-grafik--ansage .q-pause i { height: 14px; }
.q-grafik--ansage .q-grafik__ansage > .q-pause:first-child { margin-top: 0; }
.q-grafik--ansage .q-grafik__titel {
  position: relative;
  isolation: isolate;
  max-width: 352px;
  margin-top: var(--space-2);
  color: var(--fg);
}
.q-grafik--ansage .q-grafik__titel::before {
  content: "";
  position: absolute;
  inset: -6px -14px -8px;
  z-index: -1;
  background: radial-gradient(ellipse 90% 140% at 50% 100%, var(--spot) 0%, var(--spot) 22%, transparent 72%);
  pointer-events: none;
}
.q-grafik--ansage .q-grafik__zahlzeile { justify-content: center; gap: var(--space-2); margin-top: var(--space-4); }
.q-grafik--ansage .q-grafik__zahl { font-size: 14px; color: var(--fg); }

.q-grafik__streifen {
  position: absolute;
  left: 0;
  right: 0;
  top: 174px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: var(--vorhangkante) solid var(--akzent);
  background: var(--buehne);
  box-shadow: var(--schatten-buehne);
}
.q-grafik__streifen .q-logo { font-size: 17px; color: var(--buehne-fg); }

/* ---- Grafiken: Spielplan (Startseite) ---- */

.q-grafik.q-grafik--spielplan {
  display: block;
  padding: 0;
  background: var(--buehne);
  color: var(--buehne-fg);
  box-shadow: var(--schatten-buehne);
  text-align: center;
}
.q-grafik--spielplan .q-grafik__vorhang {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: var(--akzent);
}
.q-grafik--spielplan .q-grafik__kegel {
  position: absolute;
  inset: 0;
  background: var(--spot);
  clip-path: polygon(196px 32px, 204px 32px, 280px 100px, 120px 100px);
}
.q-grafik--spielplan .q-grafik__boden {
  position: absolute;
  left: 120px;
  top: 92px;
  width: 160px;
  height: 16px;
  border-radius: 50%;
  background: var(--gelb);
}
.q-grafik--spielplan .q-pause {
  position: absolute;
  left: 80px;
  top: 67px;
  height: 14px;
  padding-left: 0;
}
.q-grafik--spielplan .q-pause i { height: 14px; background: var(--buehne-fg); }
.q-grafik--spielplan .q-logo {
  position: absolute;
  top: 112px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 28px;
  color: var(--buehne-fg);
}
.q-grafik--spielplan .q-grafik__satz {
  position: absolute;
  top: 162px;
  left: 24px;
  right: 24px;
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
  color: var(--buehne-fg);
  text-wrap: balance;
}
.q-grafik--spielplan .q-grafik__url {
  position: absolute;
  left: 0;
  right: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--buehne-leise);
}
.q-grafik--spielplan.q-grafik--link .q-grafik__url { display: none; }

.q-grafik--spielplan.q-grafik--pin .q-grafik__vorhang { height: 48px; }
.q-grafik--spielplan.q-grafik--pin .q-grafik__kegel { clip-path: polygon(172px 48px, 188px 48px, 260px 273px, 100px 273px); }
.q-grafik--spielplan.q-grafik--pin .q-grafik__boden { left: 100px; top: 265px; }
.q-grafik--spielplan.q-grafik--pin .q-pause { left: 60px; top: 180px; }
.q-grafik--spielplan.q-grafik--pin .q-logo { top: 300px; font-size: 40px; }
.q-grafik--spielplan.q-grafik--pin .q-grafik__satz,
.q-grafik--spielplan.q-grafik--beitrag .q-grafik__satz {
  top: 372px;
  left: 40px;
  right: 40px;
  font-size: 18px;
  line-height: 1.55;
}
.q-grafik--spielplan.q-grafik--pin .q-grafik__url { top: 492px; }

.q-grafik--spielplan.q-grafik--beitrag .q-grafik__vorhang { height: 40px; }
.q-grafik--spielplan.q-grafik--beitrag .q-grafik__kegel { clip-path: polygon(172px 40px, 188px 40px, 260px 220px, 100px 220px); }
.q-grafik--spielplan.q-grafik--beitrag .q-grafik__boden { left: 100px; top: 212px; }
.q-grafik--spielplan.q-grafik--beitrag .q-pause { left: 60px; top: 150px; }
.q-grafik--spielplan.q-grafik--beitrag .q-logo { top: 244px; font-size: 36px; }
.q-grafik--spielplan.q-grafik--beitrag .q-grafik__satz { top: 316px; }
.q-grafik--spielplan.q-grafik--beitrag .q-grafik__url { top: 402px; }

/* ---- Merkliste ---- */
/* Witze ohne Konto merken (website/statisch/merkliste.js baut das Markup, Doku website/MERKLISTE.md).
   Kommt ans Ende von components/bundle.css. Nur Tokens, Präfix q-merk. Merken-Schalter an der Witzkarte,
   Zähler in der Kopfzeile, die Seite /merkliste/ mit Liste, leerem Zustand, Rückgängig und Mitnehmen. */

/* Nur für Screenreader (Ansage, Zusatztexte, verstecktes Dateifeld) */
.q-merk-nv {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Merken-Schalter an der Witzkarte: rechts neben dem Titel */
.q-merk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--fg);
  border: 1.5px solid var(--rand);
  border-radius: var(--radius-karte);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dauer-kurz) ease, border-color var(--dauer-kurz) ease, color var(--dauer-kurz) ease;
}
.q-merk:hover { border-color: var(--fg); }
.q-merk:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
.q-merk[aria-pressed="true"] {
  background: var(--akzent-hell);
  border-color: var(--akzent);
  color: var(--akzent);
}
.q-merk__svg { display: block; flex: none; width: 22px; height: 22px; }

/* Titelzeile: Titel links, Schalter rechts (Kartenkopf mit Nummer und Kennzeichnung bleibt unberührt) */
.q-merk-titelzeile {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-3);
  min-width: 0;
}
.q-merk-titelzeile > .q-witz__titel { flex: 1 1 auto; min-width: 0; margin: 0; }
.q-merk-titelzeile > .q-merk { margin-left: auto; }
/* Startseite: benannte Aktionen in einer eigenen Zeile unter dem Titel. */
.q-witz--aktionen .q-merk-titelzeile { flex-wrap: wrap; gap: var(--space-2); }
.q-witz--aktionen .q-merk-titelzeile > .q-witz__titel { flex-basis: 100%; margin-bottom: var(--space-1); }
.q-witz--aktionen .q-merk-titelzeile > .q-merk { margin-left: 0; }
.q-witz--aktionen .q-merk { width: auto; gap: var(--space-2); padding-inline: var(--space-3); font: 700 16px/1.45 var(--font-text); }
.q-merk-leiste { display: flex; margin: 0 0 var(--space-3); }

/* Auf der Bühne kein akzent und kein akzent-hell */
.q-buehne .q-merk[aria-pressed="true"] { background: transparent; border-color: var(--gelb); color: var(--gelb); }

/* Kurzer Hinweis in der Karte (Speicher gesperrt oder voll) */
.q-merk-hinweis {
  margin: 0 0 var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-karte);
  background: var(--akzent-hell);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.q-merk-hinweis[hidden] { display: none; }
.q-buehne .q-merk-hinweis { background: transparent; border: 1px solid var(--buehne-leise); }

/* Zähler in der Kopfzeile (auf buehne): Lesezeichen mit Zahl, ab 1080 px mit Wort */
.q-merk-kopf {
  order: 2;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  flex: none;
  box-sizing: border-box;
  min-width: 44px;
  height: 44px;
  padding: 0 var(--space-2);
  color: var(--buehne-fg);
  border: 1.5px solid var(--buehne-leise);
  border-radius: var(--radius-karte);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--dauer-kurz) ease;
}
.q-merk-kopf:hover { border-color: var(--buehne-fg); }
.q-merk-kopf[aria-current="page"] { border-color: var(--gelb); }
.q-merk-kopf__svg { display: block; flex: none; width: 22px; height: 22px; }
.q-merk-kopf__zahl {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.q-merk-kopf__zahl:empty { display: none; }
.q-merk-kopf__wort {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.q-merk-kopf + .q-kopf__suche { margin-left: 0; }

@media (min-width: 720px) {
  .q-merk-kopf { order: 3; margin-left: 0; }
}
@media (min-width: 1080px) {
  .q-merk-kopf { gap: var(--space-2); padding: 0 var(--space-3); }
  .q-merk-kopf__wort { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
}

/* ------------------------------------------------------------ Seite /merkliste/ */

.q-merk-seite {
  box-sizing: border-box;
  max-width: 1120px;
  min-width: 0;
  margin: 0 auto;
  padding: var(--space-7) var(--space-4) var(--space-9);
}

.q-merkliste { min-width: 0; }
.q-merkliste [hidden] { display: none !important; }

.q-merkliste__hinweis,
.q-merkliste__speicher,
.q-merkliste__ohne-js {
  box-sizing: border-box;
  max-width: 62ch;
  margin: 0 0 var(--space-6);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-karte);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.q-merkliste__hinweis { background: var(--flaeche-tief); }
.q-merkliste__speicher,
.q-merkliste__ohne-js { background: var(--warn-bg); border: 1.5px solid var(--warn); }

.q-merkliste__hinweis a,
.q-merk-karte__stand a,
.q-merkliste__leer-text a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--akzent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color var(--dauer-kurz) ease;
}
.q-merkliste__hinweis a:hover,
.q-merk-karte__stand a:hover,
.q-merkliste__leer-text a:hover { color: var(--akzent); }

.q-merkliste__liste > li { min-width: 0; margin: 0; padding: 0; }

/* Gemerkte Karte: Hinweis zum Stand, Fuß mit Datum und Entfernen */
.q-merk-karte__stand {
  margin: 0 0 var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-karte);
  background: var(--akzent-hell);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.q-merk-karte__ohne {
  margin: 0;
  color: var(--leise);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
}
.q-merk-karte__fuss {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1) var(--space-3);
  margin-top: var(--space-5);
  padding-top: var(--space-2);
  border-top: 1px dashed var(--linie);
}
.q-merk-karte__datum {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--leise);
  font-variant-numeric: tabular-nums;
}
.q-merk-karte__entfernen { margin-right: 0; }

/* Leerer Zustand */
.q-merkliste__leer {
  box-sizing: border-box;
  max-width: 62ch;
  padding: var(--space-6) var(--space-5);
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius-karte);
}
.q-merkliste__leer-titel {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--fg);
}
.q-merkliste__leer-text {
  margin: 0 0 var(--space-5);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  overflow-wrap: anywhere;
}

/* Rückgängig: klebt unten im Sichtbereich, solange die Liste darunter weitergeht */
.q-merkliste__meldung {
  position: sticky;
  bottom: var(--space-4);
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  box-sizing: border-box;
  max-width: 62ch;
  margin: var(--space-6) 0 0;
  padding: var(--space-3) var(--space-4);
  background: var(--akzent-hell);
  border: 1.5px solid var(--akzent);
  border-radius: var(--radius-karte);
  color: var(--fg);
}
.q-merkliste__zu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  margin: 0 0 0 auto;
  padding: 0;
  background: transparent;
  color: var(--fg);
  border: 1.5px solid var(--rand);
  border-radius: var(--radius-karte);
  cursor: pointer;
  transition: border-color var(--dauer-kurz) ease;
}
.q-merkliste__zu:hover { border-color: var(--fg); }
.q-merkliste__zu:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
.q-merkliste__zu svg { display: block; width: 20px; height: 20px; }
.q-merkliste__meldung-text {
  flex: 1 1 14em;
  min-width: 0;
  margin: 0;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* Mitnehmen: Export und Import */
.q-merk-mitnehmen {
  margin: var(--space-8) 0 0;
  padding-top: var(--space-6);
  border-top: 1px solid var(--linie);
  min-width: 0;
}
.q-merk-mitnehmen__titel {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--fg);
}
.q-merk-mitnehmen__text {
  max-width: 62ch;
  margin: 0 0 var(--space-5);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  overflow-wrap: anywhere;
}
.q-merk-mitnehmen__schalter {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  gap: var(--space-3);
  max-width: 62ch;
}
.q-merk-mitnehmen__feld { max-width: 62ch; margin: var(--space-5) 0 0; }
.q-merk-mitnehmen__label {
  display: block;
  margin: 0 0 var(--space-1);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--fg);
}
.q-merk-mitnehmen__hilfe {
  margin: 0 0 var(--space-2);
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1.45;
  color: var(--leise);
}
.q-merk-mitnehmen__eingabe {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 132px;
  margin: 0;
  padding: 10px var(--space-3);
  background: var(--flaeche);
  color: var(--fg);
  border: 1.5px solid var(--rand);
  border-radius: var(--radius-karte);
  font-family: var(--font-mono);
  font-size: 16px; /* kein Hineinzoomen auf iPhones */
  line-height: 1.4;
  resize: vertical;
  transition: border-color var(--dauer-kurz) ease;
}
.q-merk-mitnehmen__eingabe:focus {
  border-color: var(--fokus);
  outline: 3px solid var(--fokus);
  outline-offset: 2px;
}
.q-merk-mitnehmen__unten {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-3) 0 0;
}
.q-merk-mitnehmen__status {
  box-sizing: border-box;
  max-width: 62ch;
  margin: var(--space-4) 0 0;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-karte);
  background: var(--akzent-hell);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.q-merk-mitnehmen__status--ok { background: var(--gruen-bg); color: var(--gruen); font-weight: 700; }
.q-merk-mitnehmen__status--fehler { background: var(--warn-bg); color: var(--warn); }

@media (prefers-reduced-motion: reduce) {
  .q-merk, .q-merk-kopf, .q-merkliste__zu, .q-merkliste__hinweis a, .q-merk-karte__stand a,
  .q-merkliste__leer-text a, .q-merk-mitnehmen__eingabe { transition: none; }
}

@media print {
  .q-merk, .q-merk-leiste, .q-merk-hinweis, .q-merk-kopf, .q-merkliste__hinweis, .q-merkliste__meldung,
  .q-merk-karte__entfernen, .q-merk-mitnehmen { display: none !important; }
}
