/* einfacheprojekte.de – Design „Soft Paper“
   Farben nur über diese Tokens (Kontraste geprüft, siehe docs/spezifikation.md).
   --glow ist nur Schein, nie Textfarbe. */

:root {
  --bg: #F4EEE2;
  --surface: #FBF7EF;
  --line: #E2D7C3;
  --text: #2B2622;
  --text-2: #5E6066;
  --accent: #7A2E5E;
  --gruen: #DDE9D6; /* Hintergrund gelesener Karten. Kontrast: --text 11.9:1, --text-2 5.0:1, --accent 7.0:1 */
  --prio: #EEE3E1;  /* Hintergrund Prio-hoch-Karten (--accent 10 % auf --surface). Kontrast: --text 11.9:1, --text-2 5.0:1, --accent 7.0:1 */
  --glow: rgb(214 140 190);

  --glow-stark: color-mix(in srgb, var(--glow) 70%, transparent);
  --glow-schwach: color-mix(in srgb, var(--glow) 30%, transparent);

  --schrift: "Atkinson Hyperlegible", system-ui, sans-serif;
  --schrift-titel: "Literata", Georgia, serif;
}

/* Schriften (selbst gehostet, OFL, Quelle: Fontsource) */
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/atkinson-hyperlegible-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/atkinson-hyperlegible-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/atkinson-hyperlegible-latin-ext-400-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/literata-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/literata-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.7;
  overflow-wrap: break-word;
  hyphens: auto;
}

.rahmen {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

h1, h2, h3 {
  font-family: var(--schrift-titel);
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
  hyphens: manual;
}

h1 {
  font-size: clamp(1.875rem, 1.4rem + 2.4vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p, ol, ul { margin: 0; }

/* Links: immer unterstrichen */
a {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-shadow 0.2s ease, text-decoration-thickness 0.2s ease;
}

a:hover {
  text-decoration-thickness: 2px;
  text-shadow: 0 0 14px var(--glow-stark);
}

a:focus-visible,
.tabelle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
  box-shadow: 0 0 0 7px var(--glow-schwach);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Sprunglink: sichtbar bei Fokus */
.sprunglink {
  position: absolute;
  left: 1rem;
  top: -10rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  z-index: 10;
}
.sprunglink:focus { top: 1rem; }

/* Nach oben: fester Link unten rechts, nur Pfeil (Name über aria-label). Kein JavaScript. */
html { scroll-padding-bottom: 5rem; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.nach-oben {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--glow) 12%, transparent),
    0 6px 18px -8px var(--glow-stark);
  transition: box-shadow 0.2s ease;
}

.nach-oben:hover {
  box-shadow:
    0 0 0 4px var(--glow-schwach),
    0 0 18px 2px var(--glow-stark);
}

.nach-oben:focus-visible { border-radius: 999px; }

.nach-oben svg { display: block; }

/* Herz als Dank: steigt nach dem Klick auf und verblasst. Ausgelöst über :target (#oben), kein JavaScript.
   Dekorativ (aria-hidden). Bei reduzierter Bewegung nur sichtbar, solange gedrückt wird. */
.nach-oben .herz {
  position: absolute;
  left: 50%;
  bottom: 100%;
  margin-left: -12px;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 6px var(--glow-stark)) drop-shadow(0 0 14px var(--glow-schwach));
}

.nach-oben:active .herz { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  #oben:target .nach-oben .herz { animation: herz 1.4s ease-out; }
}

@keyframes herz {
  0%   { opacity: 0; transform: translateY(0.75rem) scale(0.4); }
  20%  { opacity: 1; transform: translateY(0) scale(1.15); }
  35%  { transform: translateY(-0.25rem) scale(1); }
  100% { opacity: 0; transform: translateY(-2.5rem) scale(1); }
}

/* Kopf */
.kopf {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.seitenname {
  align-self: center;
  font-family: var(--schrift-titel);
  font-weight: 600;
  color: var(--text);
  text-decoration-line: none;
}

/* Einstieg: h1 und Intro stehen in main, damit der Titel über die ganze Seite stehen bleiben kann.
   Abstände wie früher im Kopf (1.25rem), danach 2.25rem zum Inhalt (Lücke 1.25rem + 1rem). */
.einstieg {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: -2.25rem;
}

.einstieg > section,
.einstieg > .beitrag {
  margin-top: 1rem;
}

/* Großer Titel scrollt mit. Er liegt über der kleinen Kopie (.titel-fest) und verdeckt sie,
   bis er aus dem Bild scrollt. Mehr Innenabstand und Breite bis in den Seitenrand,
   damit Kopie und Schatten nie überstehen. */
.einstieg > h1 {
  position: relative;
  z-index: 5;
  margin-inline: -1.25rem;
  padding: 1rem 1.25rem 1.5rem;
  background: var(--bg);
}

/* Kleine Kopie des Titels, bleibt oben stehen. Höhe 0, damit sie nichts verschiebt.
   Für Screenreader ausgeblendet (aria-hidden), die h1 ist der Titel. Kein JavaScript. */
.titel-fest {
  display: none;
}

/* Nicht bei wenig Höhe (Querformat, starker Zoom): da würde sie zu viel verdecken. */
@media (min-height: 30rem) {
  html { scroll-padding-top: 11rem; }

  .titel-fest {
    display: block;
    position: sticky;
    top: 0;
    z-index: 4;
    height: 0;
    margin-bottom: -1.25rem;
  }

  .titel-fest > span {
    display: block;
    font-family: var(--schrift-titel);
    font-weight: 600;
    font-size: 1.75rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    hyphens: manual;
    margin-inline: -1.25rem;
    padding: 1rem 1.25rem;
    background: var(--bg);
    box-shadow: 0 8px 10px -10px color-mix(in srgb, var(--accent) 40%, transparent);
  }
}

/* Startseite und Backlog: Spalte direkt unter dem Kopf, die h1 ist ihr Spaltenkopf.
   Akzentstrich dicht unter dem Seitennamen, weniger Abstand oben, 1.25rem bis zur Spalte. */
.rahmen:has(.einstieg--start, .seite > .spalte:first-child) { padding-top: 2rem; }

.rahmen:has(.einstieg--start, .seite > .spalte:first-child) .kopf { gap: 0.5rem; }

.einstieg--start { margin-top: -3.25rem; }

.seite:has(> .spalte:first-child) { margin-top: -2.25rem; }

/* Titel (auch die kleine Kopie) und Meta-Zeile immer zentriert. */
h1,
.titel-fest,
.meta { text-align: center; }

@media (max-width: 40rem) {
  .titel-fest > span { font-size: 1.5rem; }
}

.akzentstrich {
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 18px 3px var(--glow-stark);
}

.hinweis,
.meta {
  font-size: 1rem;
  color: var(--text-2);
}

.label {
  font-family: var(--schrift);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}

.entwurf {
  align-self: flex-start;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.125rem 0.625rem;
  border: 1px dashed var(--accent);
  border-radius: 999px;
  color: var(--accent);
}

/* Startseite: neueste Beiträge als Karten in einer Kanban-Spalte.
   Karte wird beim Antippen und nach dem Besuch grün (:visited), wie „erledigt“. Kein JavaScript.
   Titel ohne Unterstrich: Die ganze Karte ist der Link, erkennbar an Fläche, Schatten und Hover. */
.spalte {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1rem 1.25rem;
  border-radius: 16px;
  background: color-mix(in srgb, var(--line) 55%, transparent);
}

.spalte > .label { padding-inline: 0.25rem; }

/* Intro steht unter den Spalten, etwas abgesetzt. */
.einstieg > .spalte + p { margin-top: 1rem; }

.karten {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.karte {
  display: block;
  padding: 1.125rem 1.25rem 1rem;
  border-radius: 12px;
  background-color: var(--surface);
  color: var(--text);
  text-decoration-line: none;
  line-height: 1.5;
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--accent) 18%, transparent),
    0 10px 24px -14px color-mix(in srgb, var(--accent) 45%, transparent);
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* Leicht schief wie Zettel auf dem Board. */
.karten li:nth-child(odd) .karte { transform: rotate(-0.6deg); }
.karten li:nth-child(even) .karte { transform: rotate(0.5deg); }

.karten li .karte:hover {
  text-shadow: none;
  transform: translateY(-3px) rotate(0deg);
  box-shadow:
    0 0 0 4px var(--glow-schwach),
    0 16px 30px -14px var(--glow-stark);
}

.karten li .karte:active { transform: scale(0.98); }

.karte:visited,
.karte:active { background-color: var(--gruen); }

.karte:focus-visible { border-radius: 12px; }

.karte h2,
.karte h3 {
  font-size: 1.3125rem;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.karte:hover h2,
.karte:hover h3 { color: var(--accent); }

.karte-kurz {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
}

.karte-fuss {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  margin-top: 0.75rem;
}

.karte .entwurf {
  padding: 0 0.5rem;
  font-size: 0.875rem;
}

/* Prio hoch: oben angepinnt, leichte Akzentfläche, Pille oben. Gelesen wird auch sie grün. */
.karte--prio { background-color: var(--prio); }

.karte--prio:visited,
.karte--prio:active { background-color: var(--gruen); }

/* flex statt block: keine Zeilenhöhe der Karte über der kleinen Pille. */
.prio-zeile { display: flex; margin-bottom: 0.5rem; }

.prio {
  display: inline-block;
  padding: 0 0.5625rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--surface);
  font-family: var(--schrift);
  font-size: 0.6875rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* Status unten rechts: „mir zugewiesen“, gelesen „erledigt ✓“.
   :visited darf nur Farben ändern, deshalb liegen beide Texte übereinander und der jeweils
   andere hat die Farbe des Hintergrunds (Fallback ohne mix-blend-mode: Text überlagert sich leicht). aria-hidden: Screenreader kennen den Besuchsstatus nicht. */
.status {
  display: grid;
  margin-left: auto;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.status > span {
  grid-area: 1 / 1;
  justify-self: end;
  white-space: nowrap;
  mix-blend-mode: darken; /* der helle, versteckte Text überdeckt den sichtbaren nicht */
}

.status-offen { color: var(--text-2); }
.status-erledigt { color: var(--surface); }
.karte--prio .status-erledigt { color: var(--prio); }

.karte:visited .status-offen,
.karte:active .status-offen { color: var(--gruen); }

.karte:visited .status-erledigt,
.karte:active .status-erledigt { color: var(--text-2); }

/* Backlog: eine Karte als Stapel, Link auf /beitraege/. Wird nicht grün, ist nie „erledigt“.
   Teaser blendet Wort für Wort ein, einmal beim Laden (unter 2 s, WCAG 2.2.2). */
.stapel {
  position: relative;
  isolation: isolate;
  margin-bottom: 0.75rem;
}

.karte--stapel:visited { background-color: var(--surface); }
.karte--stapel:active { background-color: var(--gruen); }

/* Zwei Zettel dahinter, beim Hover fächern sie auf. */
.stapel::before,
.stapel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 70%, var(--line));
  box-shadow: 0 1px 2px color-mix(in srgb, var(--accent) 18%, transparent);
  transition: transform 0.25s ease;
}

.stapel::before { transform: translateY(6px) rotate(1.5deg); }
.stapel::after  { transform: translateY(11px) rotate(-1.2deg); z-index: -2; }

.stapel:hover::before { transform: translate(6px, 8px) rotate(3deg); }
.stapel:hover::after  { transform: translate(-6px, 14px) rotate(-3deg); }

/* Stapel steht gerade, auch ohne Hover. */
.karte.karte--stapel { position: relative; transform: none; }
.karte.karte--stapel:hover { transform: translateY(-3px); }

.anzahl {
  display: inline-block;
  min-width: 1.75rem;
  margin-left: 0.25rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--surface);
  font-family: var(--schrift);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  vertical-align: 0.2em;
}

.teaser {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.teaser > span {
  display: inline-block;
  animation: wort 0.5s ease-out both;
}

.teaser > span:nth-child(2) { animation-delay: 0.1s; }
.teaser > span:nth-child(3) { animation-delay: 0.2s; }
.teaser > span:nth-child(4) { animation-delay: 0.3s; }
.teaser > span:nth-child(5) { animation-delay: 0.4s; }
.teaser > span:nth-child(6) { animation-delay: 0.5s; }
.teaser > span:nth-child(7) { animation-delay: 0.6s; }
.teaser > span:nth-child(8) { animation-delay: 0.7s; }
.teaser > span:nth-child(n+9) { animation-delay: 0.8s; }

@keyframes wort {
  from { opacity: 0; transform: translateY(0.6em); }
  to   { opacity: 1; transform: none; }
}

/* Wo möglich, läuft das Einblenden beim Hineinscrollen statt beim Laden
   (die Backlog-Spalte liegt meist unter dem ersten Bildschirm). */
@supports (animation-timeline: view()) {
  .teaser > span {
    animation-timeline: view();
    animation-delay: 0s;
    animation-range: entry 0% entry 100%;
  }
  .teaser > span:nth-child(2) { animation-range: entry 10% entry 100%; }
  .teaser > span:nth-child(3) { animation-range: entry 20% entry 100%; }
  .teaser > span:nth-child(4) { animation-range: entry 30% entry 100%; }
  .teaser > span:nth-child(5) { animation-range: entry 40% entry 100%; }
  .teaser > span:nth-child(6) { animation-range: entry 50% entry 100%; }
  .teaser > span:nth-child(7) { animation-range: entry 60% entry 100%; }
  .teaser > span:nth-child(8) { animation-range: entry 70% entry 100%; }
  .teaser > span:nth-child(n+9) { animation-range: entry 80% entry 100%; }
}

.teaser .pfeil {
  margin-left: 0.25rem;
  color: var(--accent);
  font-weight: 700;
}

.karte--stapel:hover .pfeil { animation: wort 0.5s ease-out both, schubs 0.6s ease-in-out 0.5s 2; }

@keyframes schubs {
  50% { transform: translateX(5px); }
}

/* Backlog (/beitraege/): alle Beiträge als kompakte Karten in einer Kanban-Spalte, Titel und Datum.
   Nur leicht schief, damit die lange Liste ruhig bleibt. Grün nach dem Besuch wie auf der Startseite. */
.karten--kompakt { gap: 0.5rem; }

/* Wie Zettel auf dem Board, aber nur halb so schief wie auf der Startseite. */
.karten--kompakt li:nth-child(odd) .karte { transform: rotate(-0.3deg); }
.karten--kompakt li:nth-child(even) .karte { transform: rotate(0.25deg); }

/* Spaltenkopf als h1: Label-Stil, links wie die Spalten der Startseite. */
.spalte > h1.label { font-size: 0.875rem; line-height: 1.65; letter-spacing: 0.08em; text-align: left; }

.spalte > .label .anzahl { font-size: 0.75rem; letter-spacing: 0; }

/* Eine Zeile: Titel links, Datum rechts. Bricht auf schmalen Bildschirmen um. */
.karten--kompakt .karte {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.75rem;
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  line-height: 1.35;
}

.karten--kompakt .karte:focus-visible { border-radius: 8px; }

.karten--kompakt .karte h2 {
  flex: 1 1 16rem;
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.karten--kompakt .karte:hover h2 { color: var(--accent); }

.karten--kompakt time,
.karten--kompakt .entwurf { margin: 0; }

.karten--kompakt time {
  font-size: 0.8125rem;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.karten--kompakt .prio-zeile { flex: 0 0 100%; margin-bottom: 0.25rem; }

.karten--kompakt .karte-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.karten--kompakt .status { font-size: 0.75rem; }

.karten--kompakt .entwurf {
  align-self: center;
  font-size: 0.75rem;
  padding: 0 0.4rem;
  color: var(--accent);
}

/* Beitrag */
.beitrag {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.beitrag h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin-top: 1rem;
}

.beitrag ol,
.beitrag ul {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.beitrag blockquote {
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-radius: 12px;
}

.beitrag code {
  font-size: 0.95em;
  background: var(--surface);
  border-radius: 4px;
  padding: 0 0.25em;
}

.beitrag img {
  max-width: 100%;
  height: auto;
}

/* Kurz gesagt */
.kurz {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--glow) 12%, transparent),
    0 10px 30px -18px var(--glow-stark);
}

/* Serie: Hinweis oben im Beitrag, Liste aller Teile unten (Fläche wie die Kurz-Box, ohne Rahmen) */
.serie-hinweis {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.serie {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.serie h2 { margin-top: 0; }

.serie [aria-current="page"] { font-weight: 700; }

/* Inhaltsverzeichnis: aufklappbar (details), Fläche wie die Serie-Box, ohne Rahmen */
.inhalt {
  background: var(--surface);
  border-radius: 12px;
  padding: 0.875rem 1.5rem;
}

.inhalt summary {
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.inhalt nav { margin-top: 0.75rem; }

.beitrag .inhalt ol { margin: 0; }

/* Autorenbox am Ende des Beitrags (Fläche wie die Serie-Box, ohne Rahmen) */
.autor {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.autor .autor-foto {
  flex: none;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
}

.autor h2 { margin: 0 0 0.25rem; font-size: 1.125rem; }

.autor p { margin: 0 0 0.5rem; }

.autor .autor-links { margin: 0; }

.kurz .label {
  margin: 0 0 0.5rem;
  color: var(--accent);
}

/* Tabellen: scrollbarer Container, kein horizontales Scrollen der Seite */
.tabelle {
  overflow-x: auto;
  border-radius: 12px;
  background: var(--surface);
}

.tabelle table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.5;
}

.tabelle caption {
  text-align: left;
  padding: 0.875rem 1rem 0.25rem;
  font-weight: 700;
}

.tabelle th,
.tabelle td {
  text-align: left;
  vertical-align: top;
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--line);
  hyphens: manual;
}

/* Auf schmalen Bildschirmen scrollt die Tabelle im Container statt Wörter zu zerhacken. */
.tabelle table { min-width: 28rem; }

.tabelle tbody tr:last-child > * { border-bottom: 0; }

/* Statische Seiten */
.seite {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.seite h2 { font-size: 1.5rem; margin-top: 1rem; }

/* Fuß */
.fuss {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--text-2);
}

.fuss--beitrag {
  padding-top: 1.5rem;
}

.fuss ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

/* Zählpixel für Matomo ohne JavaScript (nur im Produktions-Build) */
.zaehlpixel {
  position: absolute;
}
