/* ═══════════════════════════════════════════════
   sanderpropaganda – Design System v1
   Wachtraum · Märchenwald · Almanach-Holzschnitt
   Traum-Feed mit Endless Scroll
   ═══════════════════════════════════════════════ */

:root {
  /* ── Traumpalette: gedämpft, leicht vergilbt ── */
  --papier:      #e6dfc9;  /* vergilbtes Papier – Grundfläche */
  --papier-hell: #efe9d7;  /* Kartenfläche */
  --papier-tief: #d9d0b6;  /* Rahmen-Innenfläche, Platzhalter */
  --tinte:       #1f1b15;  /* Stich-Tinte – Fließtext */
  --tinte-weich: #5c5647;  /* Meta, Bildunterschrift */
  --nacht:       #1b2733;  /* Nachtblau – tiefe Flächen */
  --olive:       #6d7350;  /* Märchenwald */
  --sepia:       #a8875a;  /* Schraffur, Linien */
  --rot:         #9d3327;  /* gedämpftes Rot – EIN Akzent */
  --linie:       #b3a888;  /* Border-Variable */

  /* Ruhige Buchserife statt der knochigen Grotesk – System-Fonts,
     kein zusätzliches Asset, keine Ladezeit. */
  --font-display: 'Times New Roman', Times, Georgia, serif;
  --font-body:    Georgia, 'Times New Roman', Times, serif;
  --font-mono:    monospace;

  --gutter:    28px;
  --max-feed:  660px;
  --max-wide:  1100px;
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

a {
  color: inherit;
  text-decoration: none;
}

html {
  font-size: 16px;
  background: var(--papier);
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--font-body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;

  /* Bewusst KEINE overflow-Angabe am body: jede nicht-sichtbare
     overflow-Angabe macht den body zum Sticky-Container, und die
     sticky Topbar würde mitscrollen statt oben zu kleben.
     overflow-x: hidden liegt deshalb nur auf html. */

  /* Papier-Textur: statisch, CSS-only, kein Bild */
  background-image:
    radial-gradient(rgba(31, 27, 21, 0.045) 1px, transparent 1px),
    radial-gradient(rgba(168, 135, 90, 0.05) 1px, transparent 1px);
  background-size: 7px 7px, 11px 11px;
  background-position: 0 0, 3px 4px;
}

/* ═══════════════════════════════════════════════
   HINTERGRUND-ROTATION – unterste Ebene
   Stapelung: Bild (0) < Deko (1) < Inhalt (5)
              < Steuer-UI (90/92) < Korn (70 über dem Inhalt)
   Nur opacity wird animiert, kein background-attachment: fixed
   (das ruckelt auf iOS).
   ═══════════════════════════════════════════════ */
.bg-rotation {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.bg-rotation.is-an { opacity: 1; }

.bg-rotation__bild {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
  /* gedämpft & vergilbt wie die Beitragsbilder */
  filter: sepia(0.42) saturate(0.6) contrast(0.9);
}

.bg-rotation__bild.is-an { opacity: 1; }

/* Papier-Schleier: hält Kopf-/Fußtext lesbar und nimmt der
   Hochskalierung der Bilder die Schärfe-Erwartung. */
.bg-rotation__schleier {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(230, 223, 201, 0.60), rgba(230, 223, 201, 0.78)),
    radial-gradient(circle at 50% 26%, rgba(230, 223, 201, 0.24), rgba(230, 223, 201, 0.70));
}

/* ═══════════════════════════════════════════════
   KORN-OVERLAY – rein dekorativ, blockiert nie
   ═══════════════════════════════════════════════ */
.korn {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(31, 27, 21, 0.13) 1px, transparent 1px),
    radial-gradient(rgba(31, 27, 21, 0.08) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1px 2px;
  opacity: 0.55;
}

/* ═══════════════════════════════════════════════
   SURREALE DEKO – hinter dem Feed
   Nur transform + opacity. Nie klickbar.
   ═══════════════════════════════════════════════ */
.deko {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.deko > * {
  position: absolute;
  pointer-events: none;
  will-change: transform, opacity;
}

.deko svg {
  display: block;
  stroke: var(--sepia);
  fill: none;
  stroke-width: 1.1;
  stroke-linecap: round;
}

/* Deko-Set: Nase · Pilze · Sonne · Auge · Halbmond.
   Bewegung bewusst ruhig — lange Dauern, kleine Amplituden,
   ausschließlich transform + opacity. --deko-op hält die
   Ziel-Deckkraft, damit die Drift-Keyframes sie kennen. */

/* Auge – zieht sehr langsam quer durchs Bild */
.deko__auge {
  top: 11%;
  left: -14%;
  width: 128px;
  --deko-op: 0.38;
  animation: drift-quer 190s linear infinite;
}

/* Sonne mit Gesicht – steht oben rechts und atmet kaum merklich */
.deko__sonne {
  top: 6%;
  right: 4%;
  width: 118px;
  opacity: 0.36;
  animation: schweben 58s ease-in-out infinite;
}

/* Halbmond – gegenläufige, noch langsamere Querung */
.deko__mond {
  bottom: 27%;
  right: -14%;
  width: 92px;
  --deko-op: 0.32;
  animation: drift-quer-rueck 230s linear infinite;
}

/* Surreale Nase – schwebt am linken Rand */
.deko__nase {
  top: 45%;
  left: 3%;
  width: 78px;
  opacity: 0.3;
  animation: schweben 52s ease-in-out infinite;
  animation-delay: -18s;
}

/* Böser Fliegenpilz, groß – wippt wie ein Stiel im Wind */
.deko__pilz {
  bottom: 5%;
  right: 5%;
  width: 104px;
  opacity: 0.42;
  animation: wippen 38s ease-in-out infinite;
}

/* Böser Fliegenpilz, klein – versetzt, langsamer */
.deko__pilz-klein {
  bottom: 13%;
  left: 5%;
  width: 74px;
  opacity: 0.34;
  animation: wippen 47s ease-in-out infinite;
  animation-delay: -12s;
}

@keyframes drift-quer {
  0%   { transform: translateX(0);      opacity: 0; }
  9%   { opacity: var(--deko-op, 0.36); }
  91%  { opacity: var(--deko-op, 0.36); }
  100% { transform: translateX(128vw);  opacity: 0; }
}

@keyframes drift-quer-rueck {
  0%   { transform: translateX(0);       opacity: 0; }
  9%   { opacity: var(--deko-op, 0.32); }
  91%  { opacity: var(--deko-op, 0.32); }
  100% { transform: translateX(-128vw);  opacity: 0; }
}

@keyframes wippen {
  0%, 100% { transform: rotate(-1.6deg) translateY(0); }
  50%      { transform: rotate(1.6deg) translateY(-7px); }
}

@keyframes schweben {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* ═══════════════════════════════════════════════
   TOPBAR – bleibt immer erreichbar (sticky)
   ═══════════════════════════════════════════════ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px var(--gutter);
  background: var(--papier);
  border-bottom: 1px solid var(--linie);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  max-width: var(--max-wide);
  margin: 0 auto;
}

.topbar__name {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--tinte);
}

.topbar__right {
  display: flex;
  gap: 18px;
  align-items: center;
}

.topbar__links {
  list-style: none;
  display: flex;
  gap: 18px;
}

.topbar__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--tinte);
  transition: color 0.2s ease;
}

.topbar__links a:hover,
.topbar__links a:focus-visible {
  color: var(--rot);
}

/* ═══════════════════════════════════════════════
   SITE HEADER
   ═══════════════════════════════════════════════ */
.site-header {
  position: relative;
  z-index: 5;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 56px var(--gutter) 30px;
  text-align: center;
}

.site-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 8vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--tinte);
  /* leichte Schieflage – wie ein schlecht geklebter Almanach-Titel */
  transform: rotate(-0.7deg);
}

/* Keine Tagline (Entscheidung Flo) – nur die dekorative Doppellinie. */
.header-rule {
  display: block;
  width: 92px;
  height: 0;
  margin: 28px auto 0;
  border-top: 1px solid var(--tinte);
  border-bottom: 1px solid var(--tinte);
  padding-top: 3px;
}

/* ═══════════════════════════════════════════════
   TRAUM-FEED – zentrale Bühne
   ═══════════════════════════════════════════════ */
.feed-stage {
  position: relative;
  z-index: 5;
}

.feed {
  display: flex;
  flex-direction: column;
  /* Großzügiger Abstand: die Karten zeigen nur noch Bild + Titel und
     sollen einzeln stehen, nicht als Liste wirken. */
  row-gap: 82px;
  max-width: var(--max-feed);
  margin: 0 auto;
  padding: 8px var(--gutter) 0;
}

.feed-sentinel {
  height: 1px;
  margin-top: 82px;
}

/* ── Traum-Karte ── */
.dreamcard {
  --tilt: -0.5deg;
  background: var(--papier-hell);
  border: 1px solid var(--tinte);
  /* Doppelrahmen wie ein alter Stich */
  box-shadow:
    0 0 0 3px var(--papier),
    0 0 0 4px var(--linie);
  transform: rotate(var(--tilt));
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.dreamcard:nth-child(even) { --tilt: 0.6deg; }
.dreamcard:nth-child(3n)   { --tilt: -0.9deg; }

.dreamcard:hover,
.dreamcard:focus-within {
  transform: rotate(var(--tilt)) translateY(-4px);
  box-shadow:
    0 0 0 3px var(--papier),
    0 0 0 4px var(--tinte),
    0 10px 26px rgba(31, 27, 21, 0.16);
}

.dreamcard__link {
  display: block;
  min-height: 44px;
  color: inherit;
  touch-action: pan-y;
}

.dreamcard__frame {
  position: relative;
  border-bottom: 1px solid var(--linie);
  background: var(--papier-tief);
}

.dreamcard__frame img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  /* gedämpft & leicht vergilbt – passt die Beitragsbilder an die Palette an */
  filter: sepia(0.34) saturate(0.72) contrast(0.94) brightness(0.98);
}

/* .dreamcard__marke, .dreamcard__abstract und .dreamcard__footer werden in
   der Feed-Karte aktuell NICHT verwendet (Wunsch: nur Bild + Titel).
   Die Regeln bleiben absichtlich stehen, damit sich Datums-Badge, Abstract
   oder Fußzeile jederzeit durch reines Ergänzen im HTML zurückholen lassen. */

/* Bildloser Platzhalter: CSS/SVG statt Foto */
.dreamcard__leer {
  width: 100%;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  color: var(--olive);
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(109, 115, 80, 0.14) 0 1px,
      transparent 1px 7px
    );
}

.dreamcard__marke {
  position: absolute;
  top: 10px;
  left: 10px;
  /* Pflicht: der filter auf .dreamcard__frame img erzeugt einen Stacking
     Context (wirkt wie z-index: 0). Ohne eigenen z-index würde das Bild –
     weil es im DOM danach steht – das Badge übermalen. */
  z-index: 1;
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rot);
  background: rgba(239, 233, 215, 0.9);
  padding: 3px 7px;
  border: 1px solid var(--linie);
}

/* Nur der Titel steht hier – oben etwas enger ans Bild, unten großzügiger,
   damit die Karte bewusst reduziert wirkt und nicht abgeschnitten. */
.dreamcard__body {
  padding: 20px 22px 26px;
}

.dreamcard__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 5.4vw, 1.85rem);
  line-height: 1.14;
  color: var(--tinte);
  transition: color 0.2s ease;
}

.dreamcard__link:hover .dreamcard__title,
.dreamcard__link:focus-visible .dreamcard__title {
  color: var(--rot);
}

.dreamcard__abstract {
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.68;
  color: var(--tinte);
}

.dreamcard__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 22px;
  border-top: 1px solid var(--linie);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tinte-weich);
}

/* ═══════════════════════════════════════════════
   ÜBERSICHT – Panel, immer erreichbar
   (Muster analog blogm-Listenansicht)
   ═══════════════════════════════════════════════ */
.uebersicht-btn {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 90;
  display: flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
  background: var(--papier-hell);
  border: 1px solid var(--tinte);
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--tinte);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.uebersicht-btn:hover,
.uebersicht-btn:focus-visible {
  color: var(--rot);
  border-color: var(--rot);
  outline: none;
}

.uebersicht-panel {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: var(--papier);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.uebersicht-panel.active {
  opacity: 1;
  pointer-events: auto;
}

.uebersicht-inner {
  max-width: var(--max-feed);
  margin: 0 auto;
  padding: 72px var(--gutter) 96px;
}

.uebersicht-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 32px;
}

.uebersicht-nav a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-height: 44px;
  padding: 14px 0;
  border-bottom: 1px solid var(--linie);
  color: var(--tinte);
  transition: color 0.2s ease, padding-left 0.15s ease;
}

.uebersicht-nav a:hover,
.uebersicht-nav a:focus-visible {
  color: var(--rot);
  padding-left: 8px;
  outline: none;
}

.uebersicht-nav .u-datum {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--tinte-weich);
}

.uebersicht-nav .u-titel {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.2;
}

.uebersicht-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 44px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--tinte-weich);
}

.uebersicht-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--tinte-weich);
  transition: color 0.2s ease;
}

.uebersicht-foot a:hover { color: var(--rot); }

/* ═══════════════════════════════════════════════
   HINTERGRUND-STEUERUNG – surreal, wie die Übersicht
   (nutzt .uebersicht-btn weiter, nur ohne eigenes fixed)
   ═══════════════════════════════════════════════ */
.bg-steuerung {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.bg-steuerung[hidden] { display: none; }

.bg-steuerung .uebersicht-btn { position: static; }

/* ═══════════════════════════════════════════════
   BILD-AUSWAHL – bewusster Kontrapunkt zum Papier:
   dunkel, translszent, clean. Kein backdrop-filter —
   der Glas-Eindruck kommt über Flächen + Verläufe.
   ═══════════════════════════════════════════════ */
.bg-panel {
  position: fixed;
  right: 16px;
  bottom: 76px;
  z-index: 92;
  width: min(360px, calc(100vw - 32px));
  max-height: min(60vh, 520px);
  display: flex;
  flex-direction: column;
  color: #dfe8f0;
  /* dicht genug, dass der Seitentext nicht durchschlägt, aber mit
     sichtbarem Verlauf — der Glas-Eindruck ohne backdrop-filter */
  background:
    linear-gradient(160deg, rgba(20, 28, 38, 0.985), rgba(10, 14, 20, 0.995));
  border: 1px solid rgba(150, 190, 220, 0.22);
  box-shadow:
    0 18px 48px rgba(8, 12, 18, 0.5),
    inset 0 1px 0 rgba(180, 215, 240, 0.14);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.bg-panel.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.bg-panel__kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 8px 10px 16px;
  border-bottom: 1px solid rgba(150, 190, 220, 0.16);
  background: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
}

.bg-panel__titel {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9fd0e8;
}

.bg-panel__schliessen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  border-radius: 0;
  color: #b9c9d8;
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.bg-panel__schliessen:hover,
.bg-panel__schliessen:focus-visible {
  color: #ffffff;
  outline: none;
}

.bg-panel__raster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.bg-kachel {
  display: block;
  padding: 0;
  cursor: pointer;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(150, 190, 220, 0.18);
  border-radius: 3px;
  overflow: hidden;
  min-height: 44px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.bg-kachel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  opacity: 0.5;
  transition: opacity 0.22s ease;
}

.bg-kachel__label {
  display: block;
  padding: 7px 8px 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  color: #9fb2c4;
}

.bg-kachel[aria-pressed="true"] {
  border-color: rgba(130, 210, 240, 0.6);
  box-shadow:
    0 0 0 1px rgba(130, 210, 240, 0.26),
    0 0 18px rgba(90, 180, 225, 0.2);
}

.bg-kachel[aria-pressed="true"] img { opacity: 1; }
.bg-kachel[aria-pressed="true"] .bg-kachel__label { color: #dff1fb; }

.bg-kachel:hover,
.bg-kachel:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(150, 215, 245, 0.5);
  outline: none;
}

.bg-panel__fuss {
  padding: 0 16px 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #7f93a5;
}

/* ═══════════════════════════════════════════════
   POST-SEITE
   ═══════════════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--rot);
  z-index: 1000;
  transition: width 0.08s linear;
}

.post {
  position: relative;
  z-index: 5;
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem var(--gutter) 4rem;
}

.post-header {
  margin-bottom: 2.25rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--linie);
}

.post-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 1.1rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rot);
}

.reading-time { color: var(--tinte-weich); }

.post-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 7vw, 3.1rem);
  line-height: 1.06;
  color: var(--tinte);
  transform: rotate(-0.4deg);
}

.post-body {
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--tinte);
}

.post-body p { margin-bottom: 1.5rem; }

.post-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 2.6rem 0 1rem;
}

.post-body em     { font-style: italic; }
.post-body strong { font-weight: 700; }

.post-body a {
  color: var(--rot);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-body figure {
  margin: 2.5rem 0;
  padding: 10px;
  background: var(--papier-hell);
  border: 1px solid var(--tinte);
  box-shadow: 0 0 0 3px var(--papier), 0 0 0 4px var(--linie);
}

.post-body figure img {
  width: 100%;
  height: auto;
  filter: sepia(0.34) saturate(0.72) contrast(0.94) brightness(0.98);
}

.post-body figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--tinte-weich);
}

.post-body figcaption a {
  color: var(--tinte-weich);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-body figcaption a:hover { color: var(--rot); }

/* Gedicht-/Zitat-Block */
.poem-section {
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--tinte);
  border-bottom: 1px solid var(--tinte);
}

.poem-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rot);
  margin-bottom: 1.4rem;
}

.poem {
  font-style: italic;
  font-size: 1rem;
  line-height: 1.95;
}

.poem .strophe { margin-bottom: 1.4rem; }
.poem .strophe:last-child { margin-bottom: 0; }

/* Fußnote */
.footnote {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--linie);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.8;
  color: var(--tinte-weich);
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.site-footer {
  position: relative;
  z-index: 5;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 22px var(--gutter) 72px;
  border-top: 1px solid var(--linie);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tinte-weich);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--rot);
  transition: color 0.2s ease;
}

.site-footer a:hover { color: var(--tinte); }

/* ═══════════════════════════════════════════════
   MOBILE – 1 Spalte, ruhigere Deko
   ═══════════════════════════════════════════════ */
@media (max-width: 600px) {
  :root { --gutter: 16px; }

  .site-header { padding-top: 40px; }

  .feed { row-gap: 54px; }
  .feed-sentinel { margin-top: 54px; }

  .dreamcard__body   { padding: 16px 16px 22px; }
  .dreamcard__footer { padding: 10px 16px; }

  /* Deko dezenter und ruhiger */
  .deko__auge       { width: 92px; --deko-op: 0.22; }
  .deko__sonne      { width: 84px; opacity: 0.22; right: 3%; }
  .deko__mond       { width: 66px; --deko-op: 0.20; }
  .deko__nase       { width: 56px; opacity: 0.18; }
  .deko__pilz       { width: 74px; opacity: 0.26; right: 3%; }
  .deko__pilz-klein { width: 52px; opacity: 0.20; }

  .korn { opacity: 0.4; }

  /* Bild-Auswahl wird zum Bottom-Sheet */
  .bg-panel {
    right: 0;
    left: 0;
    bottom: 0;
    width: auto;
    max-height: 72vh;
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-radius: 14px 14px 0 0;
    transform: translateY(100%);
  }

  .bg-panel.active { transform: translateY(0); }

  .bg-panel__raster { padding: 14px; gap: 12px; }

  .bg-kachel__label { font-size: 10px; padding: 9px; }
}

@media (min-width: 960px) {
  .topbar,
  .site-header,
  .site-footer {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* ═══════════════════════════════════════════════
   REDUCED MOTION – Schweben/Drift aus,
   Endless-Scroll bleibt funktional
   ═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .deko__auge,
  .deko__sonne,
  .deko__mond,
  .deko__nase,
  .deko__pilz,
  .deko__pilz-klein {
    animation: none;
    opacity: 0.22;
    transform: none;
  }

  /* Ohne Drift-Animation stünden auge/mond außerhalb des Bilds */
  .deko__auge { left: 4%; }
  .deko__mond { right: 4%; }

  /* Kein Auto-Wechsel der Hintergrundbilder – das erste
     gewählte Bild bleibt statisch stehen (Logik im JS). */
  .bg-rotation,
  .bg-rotation__bild,
  .bg-panel,
  .bg-kachel,
  .bg-kachel img,
  .bg-panel__schliessen {
    transition: none;
  }

  .dreamcard,
  .dreamcard__title,
  .topbar__links a,
  .uebersicht-btn,
  .uebersicht-nav a,
  .site-footer a {
    transition: none;
  }

  .dreamcard:hover,
  .dreamcard:focus-within {
    transform: rotate(var(--tilt));
  }

  .scroll-progress { transition: none; }
}
