/* ═══════════════════════════════════════════════════
   MEISTERWERKE DER WORTE — KONZEPT C: BIBLIOTHEK
   Eine Privatbibliothek auf dem Bildschirm.
   ═══════════════════════════════════════════════════ */

/* ---------- Selbst gehostete Schriften (DSGVO, kein Google) ----------
   Dieselben Dateien wie die Landing-Page, unter /schriften/ (absolute
   Pfade, da bibliothek.css aus /static/ geladen wird, die Seiten aber
   unter /lexikon/ und /vorschau/ liegen). EB Garamond + Cormorant
   Garamond, beide SIL Open Font License. Fehlen die Dateien, greift
   die System-Serife (Georgia) — die Seite bleibt funktionsfaehig. */
@font-face {
  font-family: "EB Garamond";
  src: url("/schriften/EBGaramond-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/schriften/EBGaramond-Italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/schriften/EBGaramond-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/schriften/EBGaramond-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/schriften/CormorantGaramond-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/schriften/CormorantGaramond-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
/* Schreibschrift fuer die grossen Schriftzuege (Klassik · Lexikon,
   Autoren, Werke) — SIL Open Font License, selbst gehostet. Fehlt die
   Datei, greift die System-Kursive — die Seite bleibt funktionsfaehig. */
@font-face {
  font-family: "Pinyon Script";
  src: url("/schriften/PinyonScript-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  /* Farben — gedämpftes Pergament & Tinte, Gold sparsam */
  --pergament:        #f5f0e6;
  --pergament-tief:   #ebe3d3;
  --pergament-papier: #faf6ec;
  --tinte:            #28221c;
  --tinte-mittel:     #4a3f33;
  --tinte-leicht:     #6e5e4a;
  --tinte-fern:       #9a8a73;
  --linie:            #c8b89a;
  --linie-fein:       #ddd0b6;
  --gold:             #8a6a32;
  --gold-tief:        #6e5224;
  --burgund:          #6b2a25;
  --purpur:           #7a1a2c;   /* königliches Purpurrot */
  --purpur-tief:      #5a1422;
  --purpur-hell:      #9a2540;
  --kopf-dunkel:      #1f1812;   /* tiefes Schokoladen-Schwarz */
  --kopf-dunkel-mehr: #15100c;

  /* Schriften */
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --serif-text: "EB Garamond", Garamond, "Hoefler Text", "Times New Roman", Georgia, serif;
  --serif-skript: "Pinyon Script", "Cormorant Garamond", "Snell Roundhand", cursive;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;

  /* Maße — großzügig, lesefreundlich für 60+ */
  --basis: 18px;
  --max-breite: 1200px;
  --les-breite: 680px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: var(--basis); }

body {
  font-family: var(--serif-text);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--tinte);
  background: var(--pergament);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ─── Kopfzeile — dunkel & königlich ─── */
.kopf {
  border-bottom: 2px solid var(--purpur);
  background: linear-gradient(to bottom, var(--kopf-dunkel) 0%, var(--kopf-dunkel-mehr) 100%);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(138,106,50,0.25), 0 4px 14px rgba(0,0,0,0.18);
}
.kopf-inner {
  max-width: var(--max-breite);
  margin: 0 auto;
  padding: 16px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
}

.marke { display: flex; align-items: center; gap: 14px; }
.marke-emblem-bild {
  width: 52px !important;
  height: 52px !important;
  max-width: 52px;
  max-height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}
.marke-text {
  line-height: 1.2;
  min-width: 0;
}
.marke-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #f0e3c4;
  text-transform: uppercase;
  white-space: nowrap;
}
.marke-zusatz {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 10px;
  color: rgba(232,210,158,0.75);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 5px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}
.marke-zusatz::before,
.marke-zusatz::after {
  content: "";
  flex: 1 1 0;
  height: 1px;
  background: rgba(232,210,158,0.45);
}

.kopf-nav {
  display: flex;
  gap: 28px;
  justify-content: center;
}
.kopf-nav a {
  font-family: var(--serif-text);
  font-size: 16px;
  color: rgba(232,210,158,0.7);
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
  transition: all 0.15s;
  letter-spacing: 0.02em;
}
.kopf-nav a:hover { color: #f0e3c4; }
.kopf-nav a.aktiv {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.kopf-suche {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid rgba(200,184,154,0.28);
  background: rgba(0,0,0,0.25);
  padding: 8px 14px;
  width: 220px;
  color: rgba(232,210,158,0.6);
}
.kopf-suche input {
  background: none; border: none; outline: none;
  font-family: var(--serif-text);
  font-size: 15px;
  color: #f0e3c4;
  flex: 1;
  font-style: italic;
}
.kopf-suche input::placeholder { color: rgba(232,210,158,0.4); font-style: italic; }

/* ─── Trennornament ─── */
.ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 18px;
  max-width: 600px;
  margin: 32px auto;
  color: var(--linie);
}
.ornament-linie {
  flex: 1;
  height: 1px;
  background: var(--linie);
}

/* ─── Eingang / Hero ─── */
.haus { max-width: var(--max-breite); margin: 0 auto; padding: 0 32px; }

.hero {
  text-align: center;
  padding: 100px 32px 40px;
}
.hero-eyebrow {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 16px;
  color: var(--tinte-leicht);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.hero-titel {
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--tinte);
  letter-spacing: -0.01em;
}
.hero-titel i {
  font-style: italic;
  color: var(--purpur);
}
/* Marken-Schriftzug der Eingangsseite: Klassik [Lexikon-Logo] Lexikon
   in Schreibschrift/Dunkelrot — ersetzt die fruehere Wort-Schlagzeile. */
.hero-marke {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(8px, 2vw, 28px);
}
.hero-marke-wort {
  font-family: var(--serif-skript);
  color: var(--purpur);
  font-weight: 400;
  letter-spacing: normal;
  font-size: clamp(32px, 7.2vw, 96px);   /* ~20% kleiner als zuvor */
  line-height: 1.05;
  /* Die Schreibschrift sitzt optisch zu hoch im Zeilenkasten -> leicht
     nach unten ruecken, damit Woerter und Logo auf einer Mittellinie liegen. */
  transform: translateY(0.18em);
}
.hero-marke-logo {
  height: clamp(53px, 10.6vw, 138px);    /* nochmals ~10% groesser */
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.hero-untertitel {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.5vw, 28px);
  color: var(--tinte-leicht);
  margin-top: 16px;
  font-weight: 400;
}
.hero-text {
  max-width: var(--les-breite);
  margin: 36px auto 0;
}
.hero-text p {
  font-size: 19px;
  line-height: 1.65;
  color: var(--tinte-mittel);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-top: 56px;
  max-width: 720px;
  margin-left: auto; margin-right: auto;
}
.hero-stat-zahl {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
  color: var(--purpur);
  line-height: 1;
}
.hero-stat-bez {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 14px;
  color: var(--tinte-leicht);
  margin-top: 6px;
  letter-spacing: 0.04em;
}

/* ─── Abschnitte ─── */
.abschnitt { padding: 80px 0; }
/* Der erste Abschnitt nach Hero+Ornament: weniger Abstand oben, damit die
   "Wo möchten Sie beginnen"-Sektion schon auf dem Startbildschirm sichtbar ist */
.abschnitt:first-of-type { padding-top: 32px; }

.abschnitt-kopf {
  text-align: center;
  max-width: var(--les-breite);
  margin: 0 auto 60px;
}
.abschnitt-eyebrow {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 15px;
  color: var(--tinte-leicht);
  margin-bottom: 14px;
}
.abschnitt-titel {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--tinte);
  letter-spacing: -0.005em;
  margin-bottom: 18px;
}
.abschnitt-text {
  font-size: 18px;
  color: var(--tinte-mittel);
  line-height: 1.65;
}

/* ─── Drei Einstiege ─── */
.einstieg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--linie-fein);
  border-bottom: 1px solid var(--linie-fein);
}
.einstieg-karte {
  display: block;
  padding: 56px 40px;
  text-align: center;
  border-right: 1px solid var(--linie-fein);
  transition: background 0.2s;
}
.einstieg-karte:last-child { border-right: none; }
.einstieg-karte:hover { background: var(--pergament-papier); }
.einstieg-icon {
  color: var(--gold);
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}
.einstieg-titel {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--tinte);
  margin-bottom: 12px;
}
.einstieg-text {
  font-size: 16px;
  color: var(--tinte-mittel);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto 20px;
}
.einstieg-zahl {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.04em;
}

/* ─── Tagesautor ─── */
.tagesautor {
  background: var(--pergament-papier);
  border: 1px solid var(--linie);
  padding: 56px;
  position: relative;
}
.tagesautor::before, .tagesautor::after {
  content: "";
  position: absolute;
  width: 30px; height: 30px;
  border: 1px solid var(--purpur);
}
.tagesautor::before { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.tagesautor::after { bottom: 12px; right: 12px; border-left: none; border-top: none; }

.tagesautor-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: center;
}
.tagesautor-bild {
  text-align: center;
  border: 1px solid var(--linie);
  background: var(--pergament);
  padding: 40px 24px;
}
.tagesautor-mono {
  font-family: var(--serif);
  font-size: 140px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  font-style: italic;
}
/* Echtes Portraitbild im "Eintrag des Tages" — proportional in den
   Bildrahmen eingebettet. Fallback bleibt der Initial-Buchstabe oben. */
.tagesautor-bildimg {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
}
.tagesautor-bildunterschrift {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 13px;
  color: var(--tinte-leicht);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--linie-fein);
  line-height: 1.5;
}
.tagesautor-text-eyebrow {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 14px;
  color: var(--purpur);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}
.tagesautor-name {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 400;
  color: var(--tinte);
  line-height: 1.1;
  margin-bottom: 6px;
}
.tagesautor-lebzeiten {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 17px;
  color: var(--tinte-leicht);
  margin-bottom: 24px;
}
.tagesautor-blurb {
  font-size: 18px;
  line-height: 1.7;
  color: var(--tinte-mittel);
  margin-bottom: 28px;
}
.tagesautor-cta {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 17px;
  color: var(--gold);
  border-bottom: 1px solid var(--linie);
  padding-bottom: 4px;
  transition: all 0.15s;
}
.tagesautor-cta:hover {
  color: var(--gold-tief);
  border-bottom-color: var(--gold);
}

/* ─── Autorengalerie ─── */
.autorengrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--linie-fein);
  border-left: 1px solid var(--linie-fein);
}
.autorenkarte {
  display: block;
  padding: 36px 32px;
  border-right: 1px solid var(--linie-fein);
  border-bottom: 1px solid var(--linie-fein);
  transition: background 0.2s;
  position: relative;
}
.autorenkarte:hover { background: var(--pergament-papier); }
.autorenkarte-mono {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 300;
  color: var(--gold);
  font-style: italic;
  line-height: 1;
  margin-bottom: 16px;
}
.autorenkarte-name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--tinte);
  line-height: 1.2;
  margin-bottom: 4px;
}
.autorenkarte-lebzeiten {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 14px;
  color: var(--tinte-leicht);
  margin-bottom: 16px;
}
.autorenkarte-text {
  font-size: 15px;
  color: var(--tinte-mittel);
  line-height: 1.6;
  margin-bottom: 20px;
}
.autorenkarte-fuss {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  border-top: 1px solid var(--linie-fein);
  font-family: var(--serif-text);
  font-size: 13px;
  color: var(--tinte-leicht);
  font-style: italic;
}
.autorenkarte-fuss-werke {
  color: var(--gold);
}

/* ─── Werkegrid ─── */
.werkegrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.werkkarte {
  display: block;
  padding: 32px 24px;
  background: var(--pergament-papier);
  border: 1px solid var(--linie-fein);
  transition: all 0.2s;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}
.werkkarte:hover {
  border-color: var(--gold);
  background: var(--pergament);
}
.werkkarte-jahr {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--gold);
  margin-bottom: 16px;
}
.werkkarte-titel {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--tinte);
  line-height: 1.2;
  margin-bottom: 4px;
}
.werkkarte-untertitel {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 14px;
  color: var(--tinte-leicht);
  margin-bottom: 8px;
  line-height: 1.4;
}
.werkkarte-autor {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--linie-fein);
  font-family: var(--serif-text);
  font-size: 14px;
  color: var(--tinte-mittel);
}
.werkkarte-gattung {
  font-style: italic;
  color: var(--tinte-leicht);
  font-size: 13px;
  margin-top: 2px;
}

/* ─── Zeitstrahl ─── */
.zeitstrahl-rahmen {
  background: var(--pergament-papier);
  border: 1px solid var(--linie);
  padding: 32px 36px 40px;
}
.zeitstrahl-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--linie) transparent;
}
.zeitstrahl-scroll::-webkit-scrollbar { height: 8px; }
.zeitstrahl-scroll::-webkit-scrollbar-track { background: transparent; }
.zeitstrahl-scroll::-webkit-scrollbar-thumb {
  background: var(--linie); border-radius: 4px;
}

.zeitstrahl-svg {
  display: block;
  width: 100%;
  height: auto;
  min-width: 1000px;
  overflow: visible;
}
.zs-svg-marker { transition: opacity 0.15s; }
.zs-svg-marker:hover { opacity: 0.65; }
.zs-svg-marker:hover .zs-svg-punkt { r: 5; }
.zs-svg-marker:hover .zs-label { font-weight: 600; }

/* ═══ Übersichtsseite ═══ */
.uebersicht {
  max-width: var(--max-breite);
  margin: 0 auto;
  padding: 32px 32px 80px;
}

.brotkrumen {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 14px;
  color: var(--tinte-leicht);
  margin-bottom: 24px;
}
.brotkrumen a:hover { color: var(--gold); }
.brotkrumen-trenn { margin: 0 8px; color: var(--tinte-fern); }
.brotkrumen-aktiv { color: var(--tinte); }

.uebersicht-kopf {
  text-align: center;
  padding: 0;            /* Logo+Schriftzug ein Stueck weiter nach oben */
  margin-bottom: 14px;   /* weniger Abstand zur Suchleiste darunter */
}
.uebersicht-titel {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--tinte);
}
.uebersicht-titel i { font-style: italic; color: var(--gold); }
.uebersicht-untertitel {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 18px;
  color: var(--tinte-leicht);
  margin-top: 6px;   /* enger an den Schriftzug heran */
}
/* Hero-Logo (Autoren-Kopf bzw. Buch) ueber dem Schriftzug */
.uebersicht-logo {
  display: block;
  margin: 0 auto 2px;
  width: auto;
  height: 92px;
  object-fit: contain;
}
/* Grosser Schreibschrift-Schriftzug "Autoren"/"Werke" in Dunkelrot */
.uebersicht-titel--skript {
  font-family: var(--serif-skript);
  color: var(--purpur);
  font-weight: 400;
  font-size: clamp(58px, 8.1vw, 94px);   /* ~10% kleiner (Udo, 7.6.) */
  line-height: 1.1;
  padding-bottom: 0;   /* "Autoren"/"Werke" haben keine Unterlaengen */
}

.tabreiter {
  display: flex;
  gap: 0;
  justify-content: center;
  border-bottom: 1px solid var(--linie);
  margin-bottom: 32px;
}
.tabreiter button {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--tinte-leicht);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 14px 32px;
  cursor: pointer;
  margin-bottom: -1px;
  transition: all 0.15s;
}
.tabreiter button:hover { color: var(--tinte); }
.tabreiter button.aktiv {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.tabreiter-anzahl {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 15px;
  color: var(--tinte-fern);
  margin-left: 6px;
}

/* Bulk-Freigabe-Aktionen (nur Redaktions-Modus) */
.bulk-aktionen {
  display: flex;
  gap: 12px;
  padding: 12px 0 16px 0;
  border-bottom: 1px solid var(--linie-fein);
  margin-bottom: 8px;
}
.bulk-knopf {
  font-family: var(--serif-text);
  font-size: 14px;
  background: var(--pergament-tief, #f5efe1);
  border: 1px solid var(--linie);
  padding: 8px 16px;
  color: var(--tinte-mittel);
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.15s;
}
.bulk-knopf:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--pergament);
}
.bulk-erfolg {
  padding: 10px 16px;
  margin: 12px 0 0 0;
  background: #e8f5e0;
  border-left: 3px solid #5a8a3a;
  color: #2d4a1a;
  font-family: var(--serif-text);
  font-size: 14px;
}
.bulk-trenner {
  color: var(--linie);
  align-self: center;
  margin: 0 4px;
}
.bulk-knopf--primaer {
  background: var(--tinte);
  color: var(--pergament);
  border-color: var(--tinte);
}
.bulk-knopf--primaer:hover {
  background: var(--gold-tief);
  border-color: var(--gold-tief);
  color: var(--pergament);
}
.bau-status {
  margin: 12px 0;
  padding: 14px 18px;
  background: var(--pergament-tief, #f5efe1);
  border: 1px solid var(--linie-fein);
  border-radius: 2px;
  font-family: var(--serif-text);
}
.bau-status__stufe {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--tinte-mittel);
}
.bau-status__progress {
  width: 100%;
  height: 6px;
}
.bau-status__bericht {
  margin: 12px 0 0;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 12px;
  background: var(--pergament);
  padding: 10px 12px;
  border: 1px solid var(--linie-fein);
  max-height: 240px;
  overflow: auto;
}

.werkzeuge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  margin-bottom: 16px;
  gap: 24px;
}
.werkzeuge-suche {
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--linie);
  padding: 6px 0;
  flex: 1;
  max-width: 400px;
  color: var(--tinte-leicht);
}
.werkzeuge-suche input {
  background: none; border: none; outline: none;
  font-family: var(--serif-text);
  font-size: 17px;
  color: var(--tinte);
  flex: 1;
  font-style: italic;
}
.werkzeuge-suche input::placeholder { color: var(--tinte-fern); }

.werkzeuge-sortierung {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 15px;
  color: var(--tinte-leicht);
}
.werkzeuge-sortierung select {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 15px;
  color: var(--gold);
  background: none;
  border: none;
  border-bottom: 1px solid var(--linie);
  cursor: pointer;
  margin-left: 6px;
  padding: 2px 0;
}

.filter, .alphabet {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--linie-fein);
}
.alphabet { border-bottom: 1px solid var(--linie-fein); margin-bottom: 32px; }

.filter-label {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 14px;
  color: var(--tinte-leicht);
}
.filter-chips { display: none; }  /* Chip-Knoepfe abgeschaltet — Filter laeuft ueberall ueber das Dropdown (.filter-select), damit die vielen Stroemungen/Gattungen die Liste nicht mehr nach unten druecken. */
.filter-chip {
  font-family: var(--serif-text);
  font-size: 14px;
  background: none;
  border: 1px solid var(--linie);
  padding: 5px 14px;
  color: var(--tinte-mittel);
  cursor: pointer;
  transition: all 0.15s;
}
.filter-chip:hover { background: var(--pergament-papier); }
.filter-chip.aktiv {
  background: var(--tinte);
  color: var(--pergament);
  border-color: var(--tinte);
}
/* Filter als Dropdown — jetzt auf ALLEN Groessen sichtbar (Desktop + Handy).
   Ersetzt die frueheren vielen Chip-Zeilen, sodass die A-Z-Liste (Autoren
   bzw. Werke) direkt darunter sichtbar bleibt. Optik wie das Sortier-Dropdown.
   (Die Mobil-Media-Query weiter unten setzt dieselben Werte — jetzt redundant,
   aber harmlos.) */
.filter-select {
  display: inline-block;
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 15px;
  color: var(--gold);
  background: none;
  border: none;
  border-bottom: 1px solid var(--linie);
  cursor: pointer;
  padding: 4px 0;
  max-width: 75%;
}

/* Container der Buchstaben-Buttons — horizontal nebeneinander, bei
   zu wenig Breite umbrechen. Sonst stapeln sich die einzelnen
   alpha-btn (die intern display:grid haben) senkrecht. */
#alpha-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.alpha-btn {
  font-family: var(--serif);
  font-size: 18px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  color: var(--gold);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.1s;
}
.alpha-btn:hover { border-color: var(--gold); }
.alpha-btn.leer {
  color: var(--tinte-fern);
  cursor: default;
  pointer-events: none;
}

/* Buchstabengruppe */
.buchstabe-gruppe { margin-bottom: 48px; }
.buchstabe-kopf {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}
.buchstabe-buchstabe {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  font-style: italic;
}
.buchstabe-linie {
  flex: 1;
  height: 1px;
  background: var(--linie);
}
.buchstabe-zahl {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 14px;
  color: var(--tinte-leicht);
}

.eintraege {
  border-top: 1px solid var(--linie-fein);
}
.eintrag {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 8px;
  border-bottom: 1px solid var(--linie-fein);
  transition: background 0.15s;
}
.eintrag:hover { background: var(--pergament-papier); }
.eintrag-haupt { flex: 1; min-width: 0; }
.eintrag-mono {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 300;
  color: var(--gold);
  font-style: italic;
  line-height: 1;
  text-align: center;
}
.eintrag-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--tinte);
  line-height: 1.2;
}
.eintrag-meta {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 14px;
  color: var(--tinte-leicht);
  margin-top: 4px;
}
.eintrag-pfeil {
  color: var(--gold);
  font-size: 20px;
  opacity: 0;
  transition: opacity 0.15s;
}
.eintrag:hover .eintrag-pfeil { opacity: 1; }
/* Kleines Gold-Symbol links vor jedem Listeneintrag (statt des frueheren
   Anfangsbuchstabens) — fuellt die optische Leere wieder auf. */
.eintrag-symbol {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.leer-zustand {
  text-align: center;
  padding: 60px 20px;
  font-family: var(--serif-text);
  font-style: italic;
  color: var(--tinte-leicht);
  font-size: 17px;
}

/* ═══ Detail-Seite ═══ */
.detail {
  max-width: var(--max-breite);
  margin: 0 auto;
  padding: 32px 32px 80px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
  padding: 32px 0 48px;
  border-bottom: 1px solid var(--linie);
  margin-bottom: 32px;
}

.detail-bild {
  text-align: center;
  border: 1px solid var(--linie);
  background: var(--pergament-papier);
  padding: 48px 24px 24px;
}
.detail-bild-mono {
  font-family: var(--serif);
  font-size: 180px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  font-style: italic;
}
.detail-bild-img {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  object-fit: cover;
}
/* Platzhalter-Karte fuer Werke ohne Cover (Entwurf C — Zierrahmen):
   goldener Doppelrahmen + angedeutetes leeres Bildfeld als Sinnbild. */
.detail-bild-platzhalter {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  aspect-ratio: 2 / 3;
  position: relative;
  border: 1px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.detail-bild-platzhalter::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--linie-fein);
}
.detail-bild-platzhalter-ornament {
  width: 74px;
  height: 56px;
  border: 1.4px solid var(--gold);
  position: relative;
  margin-bottom: 22px;
}
.detail-bild-platzhalter-ornament::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--linie);
}
.detail-bild-platzhalter-ornament::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--linie);
  right: 13px;
  top: 12px;
}
.detail-bild-platzhalter-text {
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.34;
  color: var(--tinte-leicht);
  text-align: center;
  max-width: 200px;
}
.detail-bild-text {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 14px;
  color: var(--tinte-leicht);
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--linie-fein);
  line-height: 1.5;
}

.detail-hero-eyebrow {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 15px;
  color: var(--gold);
  margin-bottom: 12px;
}
.detail-hero-titel {
  font-family: var(--serif);
  font-size: clamp(44px, 5.5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--tinte);
  letter-spacing: -0.005em;
  margin-bottom: 8px;
}
.detail-hero-untertitel {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: var(--tinte-leicht);
  margin-bottom: 16px;
  font-weight: 400;
}
.detail-hero-lebzeiten {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 18px;
  color: var(--tinte-leicht);
  margin-bottom: 24px;
}
.detail-hero-teaser {
  font-size: 19px;
  line-height: 1.65;
  color: var(--tinte-mittel);
  max-width: 580px;
}

/* ─── Bildauswahl-Galerie (Redaktion) ─────────────────────────────────── */
.bildauswahl {
  border-top: 1px solid var(--linie-fein);
  border-bottom: 1px solid var(--linie-fein);
  padding: 20px 0;
  margin-bottom: 24px;
}
.bildauswahl-label {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 14px;
  color: var(--tinte-leicht);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.bildauswahl-galerie {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.bildauswahl-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 170px;
  padding: 10px;
  border: 1px solid var(--linie-fein);
  border-radius: 3px;
  background: var(--pergament);
  transition: border-color 0.15s, background 0.15s;
}
.bildauswahl-item.aktiv {
  border-color: var(--gold);
  background: rgba(212,175,55,0.06);
}
.bildauswahl-thumb {
  width: 150px;
  height: 200px;
  object-fit: cover;
  border-radius: 2px;
  background: var(--pergament-papier);
}
.bildauswahl-meta {
  margin-top: 8px;
  text-align: center;
  font-family: var(--serif-text);
  font-size: 12px;
  line-height: 1.35;
  color: var(--tinte-mittel);
}
.bildauswahl-quelle {
  font-style: italic;
}
.bildauswahl-lizenz {
  color: var(--tinte-leicht);
  font-size: 11px;
  margin-top: 2px;
}
.bildauswahl-badge {
  margin-top: 10px;
  font-family: var(--serif-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 4px 10px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: transparent;
}
.bildauswahl-knopf {
  margin-top: 10px;
  font-family: var(--serif-text);
  font-size: 12px;
  color: var(--tinte);
  background: transparent;
  border: 1px solid var(--linie-mittel, #c5b8a0);
  border-radius: 2px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.bildauswahl-knopf:hover {
  background: var(--pergament-papier);
  border-color: var(--gold);
  color: var(--gold);
}
/* Platzhalter-Kachel in der Bildauswahl */
.bildauswahl-platzhalter-mini {
  width: 150px;
  height: 200px;
  border: 1px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--pergament-papier);
}
.bildauswahl-platzhalter-mini-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  line-height: 1.3;
  color: var(--tinte-leicht);
  text-align: center;
  max-width: 120px;
  margin-top: 14px;
}
/* Upload-Kachel in der Bildauswahl */
.bildauswahl-upload-feld {
  width: 150px;
  height: 200px;
  border: 1px dashed var(--linie-mittel, #c5b8a0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--pergament-papier);
}
.bildauswahl-upload-plus {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 300;
  line-height: 1;
  color: var(--gold);
}
.bildauswahl-upload-text {
  font-family: var(--serif-text);
  font-size: 13px;
  color: var(--tinte-leicht);
  margin-top: 6px;
}
.bildauswahl-upload-datei {
  margin-top: 10px;
  max-width: 150px;
  font-family: var(--serif-text);
  font-size: 11px;
}

.aktionen {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--linie-fein);
  margin-bottom: 40px;
}
.aktion {
  font-family: var(--serif-text);
  font-size: 15px;
  background: none;
  border: 1px solid var(--linie);
  padding: 8px 18px;
  color: var(--tinte-mittel);
  cursor: pointer;
  transition: all 0.15s;
}
.aktion:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.aktion.primaer {
  background: var(--tinte);
  color: var(--pergament);
  border-color: var(--tinte);
}
.aktion.primaer:hover {
  background: var(--gold-tief);
  border-color: var(--gold-tief);
  color: var(--pergament);
}

/* Steckbrief, der am Handy (per JS) zwischen Teaser-Streifen und Knoepfe
   geholt wird: volle Breite, eigener Trennstreifen oben, Abstand nach unten. */
@media (max-width: 720px) {
  .aside-block--steckbrief.steckbrief--mobil {
    margin: 0 0 28px;
    padding-top: 22px;
    border-top: 1px solid var(--linie-fein);
  }
}

/* ── Sanftes Scrollen bei Anker-Spruengen ── */
html { scroll-behavior: smooth; }

/* ── Abstand-Polster bei Anker-Spruengen, damit das Ziel nicht
   unter der sticky-Kopfleiste verschwindet. ── */
.inhalt-haupt h2[id],
#auswahl { scroll-margin-top: 110px; }

/* ── Sprungmarken-Leiste (links in .aktionen) ── */
.sprungmarken {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.sprungmarke {
  font-family: var(--serif-text);
  font-size: 14px;
  background: var(--pergament-tief, #f5efe1);
  border: 1px solid var(--linie-fein);
  padding: 6px 14px;
  color: var(--tinte-mittel);
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.15s;
}
.sprungmarke:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--pergament);
}

/* ── Drucker-Button (rechts in .aktionen) ── */
.aktion-drucken {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.drucker-icon {
  font-size: 18px;
  line-height: 1;
}

/* ── Zurueck-Pfeil rechts in jedem <h2> ── */
h2 .zurueck-pfeil {
  float: right;
  font-size: 0.55em;
  margin-top: 0.4em;
  margin-left: 16px;
  padding: 4px 10px;
  border: 1px solid var(--linie-fein);
  background: var(--pergament-tief, #f5efe1);
  color: var(--tinte-mittel);
  text-decoration: none;
  border-radius: 2px;
  font-weight: normal;
  transition: all 0.15s;
}
h2 .zurueck-pfeil:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Schwebender „nach oben"-Knopf fuer lange Listenseiten ──
   Erscheint nach dem Herunterscrollen unten rechts; gleiche
   Pergament-/Tinte-/Gold-Optik wie der Zurueck-Pfeil. ── */
.nach-oben-knopf {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  color: var(--tinte-mittel);
  background: var(--pergament-tief, #f5efe1);
  border: 1px solid var(--linie-fein);
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(40, 34, 28, 0.20);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease,
              color 0.15s, border-color 0.15s;
  z-index: 200;
}
.nach-oben-knopf.sichtbar {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nach-oben-knopf:hover {
  border-color: var(--gold);
  color: var(--gold);
}
body.overlay-offen .nach-oben-knopf { display: none; }
@media (max-width: 720px) {
  .nach-oben-knopf {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
}
@media print {
  .nach-oben-knopf { display: none !important; }
}

.inhalt {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}

.inhalt-haupt {
  max-width: var(--les-breite);
}
.inhalt-haupt h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--tinte);
  margin: 48px 0 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--linie-fein);
}
.inhalt-haupt h2:first-child { margin-top: 0; }
.inhalt-haupt p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--tinte);
  margin-bottom: 18px;
}
.inhalt-haupt p em {
  font-style: italic;
  color: var(--burgund);
}
/* Werktitel — eigene Auszeichnung (kursiv + dunkelrot), bewusst getrennt vom
   generischen Kursiv fuer Fremdbegriffe; ermoeglicht spaeter Titel-Register /
   Verlinkung im PDF. */
.inhalt-haupt .werktitel {
  font-style: italic;
  color: var(--burgund);
}
/* Initiale — grosser erster Buchstabe je Abschnitt, ueber zwei Zeilen,
   im Burgund-Ton, wie der Schmuckbuchstabe in alten Buechern */
.inhalt-haupt h2 + p::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 4.1em;
  line-height: 0.66;
  font-weight: 400;
  color: var(--burgund);
  margin: 0.10em 0.12em 0 0;
}

/* Werkverzeichnis */
.werkverz {
  list-style: none;
  border-top: 1px solid var(--linie-fein);
  margin-top: 8px;
}
.werkverz-item {
  display: grid;
  grid-template-columns: 80px 1fr auto 150px;
  gap: 20px;
  align-items: baseline;
  padding: 14px 0 14px 16px;     /* 16px links — Platz fuer den Goldstreifen */
  border-bottom: 1px solid var(--linie-fein);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
/* Nicht-verlinkte Eintraege sind blosse Erwaehnungen — kein eigener
   Lexikon-Eintrag dahinter. Kein Klick-Affekt, kein Pfeil, gedimmt. */
.werkverz-item:not(.verlinkt) {
  cursor: default;
}
.werkverz-item.verlinkt:hover {
  background: var(--pergament-papier);
}
/* Verlinkter Eintrag: vertikaler Goldstreifen links — eindeutig sichtbar,
   ohne das Layout zu verschieben (Streifen liegt im Padding). */
.werkverz-item.verlinkt {
  box-shadow: inset 3px 0 0 0 var(--gold);
}

/* Standard (Erwaehnung): gedimmt im Tintenton */
.werkverz-jahr {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--tinte-fern);
}
.werkverz-titel {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--tinte-fern);
}
.werkverz-titel-untertitel {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 16px;
  color: var(--tinte-fern);
  margin-left: 8px;
}
.werkverz-gattung {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 14px;
  color: var(--tinte-fern);
}
.werkverz-pfeil {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-align: right;
  white-space: nowrap;
  opacity: 0;
}

/* Verlinkter Eintrag: voller Kontrast, fetter Titel, dauerhaft sichtbarer
   "Eintrag ansehen →"-Text. Drei Signale gleichzeitig (Goldstreifen links,
   Fettschrift, Hinweis rechts) — fuer aeltere Augen klar erkennbar, ohne
   das Pergament-Design zu zerstoeren. */
.werkverz-item.verlinkt .werkverz-jahr {
  color: var(--gold);
}
.werkverz-item.verlinkt .werkverz-titel {
  color: var(--tinte-leicht);   /* mittlerer Ton statt fast-schwarz: kein Fremdkoerper mehr */
  font-weight: 500;   /* Medium statt SemiBold — eine Spur weniger fett */
}
.werkverz-item.verlinkt .werkverz-titel-untertitel {
  color: var(--tinte-leicht);
  font-weight: 400;
}
.werkverz-item.verlinkt .werkverz-gattung {
  color: var(--tinte-leicht);
}
.werkverz-item.verlinkt .werkverz-pfeil {
  opacity: 1;
}

/* Werkverzeichnis — Zwischenueberschrift fuer Werkgruppen (Hauptwerke / Weitere) */
.werkverz-gruppe {
  font-family: var(--serif-text);
  font-size: 13px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 8px 0 0;
}
.werkverz + .werkverz-gruppe {
  margin-top: 36px;
}

/* Steckbrief — Originaltitel steht als eigene Zeile (nicht mehr in Klammern hinter
   dem Titel) und wird kursiv/gedaempft gesetzt, weil er fremdsprachig ist. */
.originaltitel {
  font-style: italic;
  color: var(--text-mute, #77706a);
}

/* Werkverzeichnis — Verweis auf die vollstaendige Liste bei Wikipedia.
   Vielschreiber (Brecht: >100 Titel) wuerden die Seite sonst zuschuetten; wir
   zeigen die Hauptwerke und verlinken den Rest. */
.werkverz-mehr {
  font-family: var(--serif-text);
  font-size: 15px;
  margin: 14px 0 0;
}
.werkverz-mehr a {
  color: var(--dunkelrot, #7a1f1f);
  text-decoration: none;
  border-bottom: 1px solid rgba(122, 31, 31, 0.35);
}
.werkverz-mehr a:hover {
  border-bottom-color: currentColor;
}
.werkverz-mehr-zahl {
  color: var(--grau, #77706a);
  font-style: italic;
  margin-left: 6px;
}

/* Aside */
.aside { display: flex; flex-direction: column; gap: 32px; position: sticky; top: 100px; }
.aside-block {
  background: var(--pergament-papier);
  border: 1px solid var(--linie-fein);
  padding: 24px 28px;
}
.aside-block h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--tinte);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--linie);
  letter-spacing: 0.02em;
}
.aside-block .anzahl {
  font-family: var(--serif-text);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--tinte-leicht);
}
.aside-block dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
}
.aside-block dt {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 13px;
  color: var(--tinte-leicht);
  white-space: nowrap;
}
.aside-block dd {
  font-family: var(--serif-text);
  font-size: 14px;
  color: var(--tinte);
  line-height: 1.45;
  /* Lange Komposita ohne Leerzeichen (z. B. "Klosterneuburg-Kierling")
     sollen umbrechen statt das Spalten-Layout zu sprengen. */
  overflow-wrap: anywhere;
}
.aside-block dd .autor-lebensjahre {
  font-size: 12px;
  color: var(--tinte-leicht);
  margin-left: 4px;
}
.aside-block dd a {
  color: var(--gold);
  border-bottom: 1px solid var(--linie);
}

.aside-liste {
  list-style: none;
  display: flex; flex-direction: column;
}
.aside-liste li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-family: var(--serif-text);
  font-size: 14px;
  border-bottom: 1px solid var(--linie-fein);
}
.aside-liste li:last-child { border-bottom: none; }
.aside-liste li a {
  color: var(--tinte);
  flex: 1;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.aside-liste li a:hover { border-bottom-color: var(--gold); }
.aside-liste-jahr {
  font-style: italic;
  color: var(--tinte-leicht);
  font-size: 13px;
}

/* Backend-Schalter auf der Redaktions-Uebersicht */
.backend-schalter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
  padding: 10px 14px;
  background: #f7f0e0;
  border: 1px solid var(--linie-fein);
  border-radius: 4px;
  font-family: var(--serif-text);
  font-size: 13px;
}
.backend-schalter-label {
  color: var(--tinte-leicht);
  font-style: italic;
}
.backend-schalter-aktiv {
  font-weight: 600;
}
.backend-schalter-aktiv--max {
  color: #2c6b2c;
}
.backend-schalter-aktiv--api {
  color: var(--gold-tief);
}
.backend-schalter-form {
  display: inline;
  margin: 0;
}
.backend-schalter-knopf {
  font-family: var(--serif-text);
  font-size: 12px;
  padding: 4px 10px;
  background: transparent;
  color: var(--tinte);
  border: 1px solid var(--linie);
  border-radius: 3px;
  cursor: pointer;
}
.backend-schalter-knopf:hover {
  background: var(--linie-fein);
}
.backend-schalter-hinweis {
  margin-left: auto;
  color: var(--tinte-fern);
  font-style: italic;
  font-size: 12px;
}
.kauflinks-werbe-tag {
  font-family: var(--serif-text);
  font-style: italic;
  font-weight: 400;
  font-size: 12px;
  color: var(--tinte-fern);
  margin-left: 4px;
}
.kauflinks-fussnote {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 12px;
  color: var(--tinte-leicht);
  margin: 8px 0 0;
  line-height: 1.4;
}

/* ─── Redaktions-Leiste (nicht öffentlich) ─── */
.redaktion {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 24px;
  margin: 24px auto 0;
  padding: 14px 22px;
  background: #1a1a2e;
  border: 1px solid #2e2e52;
  border-radius: 3px;
  color: #c8bfad;
  font-family: var(--serif-text);
  position: relative;
}
.redaktion::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 6px; height: 100%;
  background: #d4af37;
}
.redaktion--freigegeben::before { background: #4caf50; }
.redaktion--verworfen::before { background: #c0504a; }

.redaktion-label {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.redaktion-label-eyebrow {
  font-style: italic;
  font-size: 13px;
  color: #8b8a9c;
  letter-spacing: 0.04em;
}
.redaktion-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  padding: 4px 12px;
  border-radius: 2px;
  background: rgba(212,175,55,0.12);
  color: #d4af37;
  border: 1px solid rgba(212,175,55,0.4);
}
.redaktion-status-punkt {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.redaktion-status--freigegeben {
  background: rgba(76,175,80,0.15);
  color: #6dca6d;
  border-color: rgba(76,175,80,0.5);
}
.redaktion-status--verworfen {
  background: rgba(192,80,74,0.15);
  color: #e07070;
  border-color: rgba(192,80,74,0.5);
}

.redaktion-aktionen {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.redaktion-btn {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 9px 22px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
}
.redaktion-btn--freigeben {
  background: #2a8e2a;
  color: #fff;
  border-color: #2a8e2a;
  box-shadow: 0 1px 0 rgba(0,0,0,0.2);
}
.redaktion-btn--freigeben:hover {
  background: #237a23;
  border-color: #237a23;
}
.redaktion-btn--verwerfen {
  background: transparent;
  color: #e07070;
  border-color: #7a3535;
}
.redaktion-btn--verwerfen:hover {
  background: rgba(192,80,80,0.18);
  color: #ff8888;
  border-color: #c05050;
}
.redaktion-btn--entwurf {
  background: transparent;
  color: #d4af37;
  border-color: #b8942e;
}
.redaktion-btn--entwurf:hover {
  background: rgba(212,175,55,0.15);
  color: #f0c850;
  border-color: #d4af37;
}

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

@media (max-width: 720px) {
  .redaktion { flex-direction: column; align-items: stretch; text-align: center; }
  .redaktion-label { justify-content: center; }
  .redaktion-aktionen { justify-content: center; }
}

/* ─── Video-Panel (Aside) ─── */
.video-panel {
  background: var(--pergament-papier);
  border: 1px solid var(--linie-fein);
  border-left: 3px solid var(--gold);
  padding: 22px 24px;
}
.video-panel h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--tinte);
  margin: 0 0 4px 0;
  letter-spacing: 0.02em;
}
.video-panel-eyebrow {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 12px;
  color: var(--gold-tief);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.video-panel-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.video-input,
.video-input-titel {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--linie);
  background: var(--pergament-tief);
  font-family: var(--serif-text);
  font-size: 14px;
  color: var(--tinte);
  outline: none;
  border-radius: 2px;
  transition: border-color 0.15s;
}
.video-input:focus,
.video-input-titel:focus {
  border-color: var(--gold);
}
.video-panel-aktionen {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.video-btn-speichern {
  flex: 1;
  padding: 9px 14px;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 2px;
  font-family: var(--serif-text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s;
}
.video-btn-speichern:hover { background: var(--gold-tief); }
.video-btn-loeschen {
  padding: 9px 12px;
  background: transparent;
  color: var(--tinte-leicht);
  border: 1px solid var(--linie);
  border-radius: 2px;
  font-family: var(--serif-text);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.video-btn-loeschen:hover {
  color: #a04040;
  border-color: #c08080;
}

/* Video-CTA (öffentlich, gefüllter Zustand) */
.video-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #1a1a35, #0d0d20);
  border: 1px solid rgba(212,175,55,0.3);
  border-left: 4px solid var(--gold);
  padding: 16px 18px;
  text-decoration: none;
  border-radius: 2px;
  transition: border-color 0.15s;
  margin-bottom: 12px;
}
.video-cta:hover { border-color: var(--gold); }

/* ── Schlanke Video-Liste (mehrere Verweise pro Eintrag) ── */
.video-liste {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.video-zeile {
  display: flex;
  align-items: stretch;
  gap: 4px;
  border-radius: 2px;
  transition: background 0.12s;
}
.video-zeile:hover { background: rgba(212,175,55,0.06); }
.video-zeile-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
  padding: 6px 8px;
  flex: 1;
  min-width: 0;
  color: var(--tinte);
}
.video-zeile-icon {
  flex-shrink: 0;
  width: 22px; height: 16px;
  background: #c4302b;  /* YouTube-Rot */
  color: #fff;
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  line-height: 1;
  padding-left: 1px;  /* optisches Zentrieren des Play-Symbols */
}
.video-zeile-titel {
  font-family: var(--serif-text);
  font-size: 13px;
  color: var(--tinte);
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.35;
}
.video-liste--rest { margin-top: 2px; }
.video-mehr { margin: 2px 0 8px 0; }
.video-mehr-summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--serif-text);
  font-size: 13px;
  color: var(--gold-tief);
  padding: 7px 8px;
  border-radius: 2px;
  user-select: none;
}
.video-mehr-summary::-webkit-details-marker { display: none; }
.video-mehr-summary::before { content: "▾  "; }
.video-mehr[open] > .video-mehr-summary::before { content: "▴  "; }
.video-mehr-summary:hover { background: rgba(212,175,55,0.06); color: var(--gold); }
.video-zeile-loesch { display: flex; align-items: center; }

/* ── YouTube-Kanal: Symbol in der Kopfzeile + Band am Eintrags-Ende ── */
.kopf-rechts { display: flex; align-items: center; gap: 18px; }
.kopf-youtube {
  display: inline-flex; align-items: center;
  color: #f0e3c4;   /* wie der Schriftzug "MEISTERWERKE DER WORTE" */
  transition: color 0.15s, transform 0.15s;
}
.kopf-youtube:hover { color: #c4302b; transform: scale(1.08); }
.kopf-mobil-youtube { color: var(--gold-tief); }
.kopf-mobil-youtube:hover, .kopf-mobil-youtube:active { color: #c4302b; }
.menu-overlay-youtube { color: var(--gold-tief) !important; }
.menu-overlay-youtube:hover { color: #c4302b !important; }

.kanal-band {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin: 16px 0 4px; padding: 16px 22px;
  border: 1px solid var(--linie-fein); border-left: 3px solid #c4302b;
  border-radius: 4px; background: var(--pergament-papier);
}
.kanal-band-icon { flex-shrink: 0; display: flex; color: #c4302b; }
.kanal-band-text { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 3px; }
.kanal-band-text strong { font-family: var(--serif); font-size: 16px; color: var(--tinte); }
.kanal-band-text span { font-family: var(--serif-text); font-size: 14px; color: var(--tinte-fern); }
.kanal-band-knopf {
  flex-shrink: 0; display: inline-flex; align-items: center;
  background: #c4302b; color: #fff;
  font-family: var(--serif-text); font-size: 15px; font-weight: 600;
  padding: 10px 22px; border-radius: 4px; text-decoration: none;
  transition: background 0.15s;
}
.kanal-band-knopf:hover { background: #a52722; }
@media print { .kanal-band { display: none; } }

/* Dezenter Mitglieder-Hinweis im Fliesstext (nach Rezeption) */
.mitglied-hinweis {
  margin: 30px 0 6px;
  padding: 14px 18px;
  border-left: 3px solid var(--gold);
  background: rgba(212,175,55,0.05);
  font-family: var(--serif-text);
  font-size: 15px;
  font-style: italic;
  line-height: 1.55;
  color: var(--tinte-fern);
  border-radius: 0 3px 3px 0;
}
.mitglied-hinweis strong { font-style: normal; color: var(--tinte); }
.mitglied-hinweis a {
  font-style: normal; font-weight: 600; white-space: nowrap;
  color: var(--gold-tief); border-bottom: 1px solid var(--linie);
}
.mitglied-hinweis a:hover { color: var(--gold); }
@media print { .mitglied-hinweis { display: none; } }
.video-zeile-x {
  background: transparent;
  border: 0;
  color: var(--tinte-fern);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 3px;
}
.video-zeile-x:hover {
  color: #c0504a;
  background: rgba(192,80,74,0.08);
}
.video-cta-play {
  width: 38px; height: 38px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: #0d0d20;
  flex-shrink: 0;
}
.video-cta-meta { flex: 1; min-width: 0; }
.video-cta-eyebrow {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}
.video-cta-titel {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: #f2ece0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.video-cta:hover .video-cta-titel { color: var(--gold); }
.video-panel-hinweis {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 13px;
  color: var(--tinte-leicht);
  line-height: 1.45;
  margin: 0 0 12px 0;
}

/* ─── Fußzeile ─── */
.fuss {
  background: var(--tinte);
  color: var(--pergament-tief);
  margin-top: 100px;
  padding: 64px 32px 32px;
}
.fuss-inner {
  max-width: var(--max-breite);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
}
.fuss .marke-emblem-bild {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6)) brightness(1.05);
}
.fuss .marke-name { color: var(--pergament); }
.fuss .marke-zusatz {
  color: var(--tinte-fern);
}
.fuss-marke p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--tinte-fern);
  margin-top: 20px;
  max-width: 360px;
  font-style: italic;
}
.fuss h4 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--pergament);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.fuss ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.fuss ul a {
  font-family: var(--serif-text);
  font-size: 14px;
  color: var(--tinte-fern);
  transition: color 0.15s;
}
.fuss ul a:hover { color: var(--linie); }
.fuss-unten {
  max-width: var(--max-breite);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid #3d362e;
  display: flex;
  justify-content: space-between;
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 13px;
  color: var(--tinte-fern);
}

/* ─── Untertitel ausblenden, wenn der Platz knapp wird ─── */
@media (max-width: 1060px) {
  .kopf-suche { width: 160px; }
  .kopf-nav { gap: 18px; }
}

/* ─── Mobile ─── */
@media (max-width: 880px) {
  :root { --basis: 17px; }

  .kopf-inner {
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 14px 20px;
  }

  .haus, .uebersicht, .detail { padding-left: 20px; padding-right: 20px; }

  .hero { padding: 60px 16px 48px; }
  .hero-stats { gap: 32px; }

  .ornament { margin: 48px auto; }
  .abschnitt { padding: 56px 0; }

  .einstieg, .autorengrid { grid-template-columns: 1fr; }
  .einstieg-karte, .autorenkarte { border-right: none; }

  .werkegrid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .tagesautor { padding: 32px 24px; }
  .tagesautor-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .tagesautor-name { font-size: 36px; }

  .zeitstrahl-rahmen { padding: 20px 12px 24px; }
  .zeitstrahl-scroll {
    margin: 0 -12px;
    padding: 0 12px;
  }
  .zeitstrahl-svg { min-width: 1500px; }

  .werkzeuge { flex-direction: column; align-items: stretch; gap: 12px; }
  .werkzeuge-suche { max-width: none; }
  /* Alphabet-Leiste bleibt auch auf schmalen Bildschirmen sichtbar
     (vorher: display:none). Mit horizontalem Flex-Wrap bricht die
     Buchstaben-Reihe nur sauber in zwei Zeilen um. */

  .detail-hero { grid-template-columns: 1fr; gap: 24px; }
  .detail-bild { max-width: 240px; margin: 0 auto; }
  .detail-bild-mono { font-size: 140px; }
  .inhalt { grid-template-columns: 1fr; gap: 48px; }
  .aside { position: static; }

  .werkverz-item { grid-template-columns: 60px 1fr; gap: 12px; }
  .werkverz-gattung, .werkverz-pfeil { display: none; }

  .fuss-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .fuss-unten { flex-direction: column; gap: 8px; text-align: center; }
}

/* ═══════════════════════════════════════════
   Zusatzseiten: Epochen-Liste, Textseiten,
   Bibliografie, Kontakt
   ═══════════════════════════════════════════ */

/* ── Epochen-Übersicht ── */
.epochen-liste {
  max-width: 920px;
  margin: 0 auto;
  border-top: 1px solid var(--linie-fein);
}
.epoche-zeile {
  display: grid;
  grid-template-columns: 180px 1fr 32px;
  gap: 32px;
  align-items: center;
  padding: 28px 8px;
  border-bottom: 1px solid var(--linie-fein);
  transition: background 0.15s;
}
.epoche-zeile:hover {
  background: var(--pergament-papier);
}
.epoche-jahre {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--gold);
  font-style: italic;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.epoche-jahre .epoche-trenn {
  margin: 0 6px;
  color: var(--linie);
}
.epoche-name {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--tinte);
  margin: 0 0 6px;
  line-height: 1.1;
}
.epoche-zeile:hover .epoche-name { color: var(--purpur); }
.epoche-kurz {
  font-family: var(--serif-text);
  font-size: 16px;
  color: var(--tinte-mittel);
  line-height: 1.55;
  margin: 0;
}
.epoche-pfeil {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.15s;
}
.epoche-zeile:hover .epoche-pfeil { opacity: 1; }

.merkmal-liste {
  list-style: none;
  padding-left: 0;
  margin: 16px 0 24px;
}
.merkmal-liste li {
  font-family: var(--serif-text);
  font-size: 17px;
  line-height: 1.7;
  color: var(--tinte-mittel);
  padding-left: 24px;
  position: relative;
}
.merkmal-liste li::before {
  content: "❦";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 14px;
  top: 1px;
}
/* Verlinktes Schluesselwerk auf Epochen-Seiten: gold-kursiver Hinweis
   "Eintrag ansehen →" rechts. Beim Drueberfahren bekommt die ganze
   Zeile eine hellere Flaeche — wie eine verlinkte Zeile im
   Werkverzeichnis. Die Zeile braucht dafuer etwas Hoehe, sonst waere
   die Aufhellung nur ein unsichtbar duenner Streifen. */
.merkmal-liste li.schluesselwerk-zeile {
  padding-top: 9px;
  padding-bottom: 9px;
  transition: background 0.15s;
}
.merkmal-liste li.schluesselwerk-zeile:hover {
  background: var(--pergament-papier);
}
.merkmal-liste li.schluesselwerk-zeile::before {
  top: 10px;   /* 1px Grundwert + 9px padding-top, damit das ❦ zur Zeile passt */
}
.schluesselwerk-link {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.schluesselwerk-text {
  flex: 1;
}
.schluesselwerk-hinweis {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gold);
  white-space: nowrap;
}

/* ── Textseiten (Über, Kontakt, Quellen, Impressum) ── */
.textseite {
  padding-bottom: 96px;
}
.textseite-kopf {
  text-align: center;
  max-width: 720px;
  margin: 24px auto 64px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--linie-fein);
}
.textseite-titel {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--tinte);
  margin: 12px 0 20px;
  letter-spacing: -0.01em;
}
.textseite-titel i {
  font-style: italic;
  color: var(--purpur);
}
.textseite-lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--tinte-leicht);
  max-width: 600px;
  margin: 0 auto;
}

.inhalt-eng {
  max-width: 720px;
  margin: 0 auto;
  font-family: var(--serif-text);
}
.inhalt-eng h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--tinte);
  margin: 48px 0 16px;
  letter-spacing: -0.005em;
}
.inhalt-eng h2:first-child { margin-top: 0; }
.inhalt-eng p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--tinte-mittel);
  margin: 0 0 18px;
}
.inhalt-eng a {
  color: var(--gold);
  border-bottom: 1px solid var(--linie);
  transition: border-color 0.15s;
}
.inhalt-eng a:hover { border-bottom-color: var(--gold); }
.inhalt-eng em {
  font-style: italic;
  color: var(--burgund);
}

/* ── Kontakt ── */
.kontakt-karten {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
.kontakt-karte {
  border: 1px solid var(--linie);
  background: var(--pergament-papier);
  padding: 32px;
  position: relative;
}
.kontakt-karte::before, .kontakt-karte::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--purpur);
}
.kontakt-karte::before { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.kontakt-karte::after  { bottom: 8px; right: 8px; border-left: none; border-top: none; }
.kontakt-karte h3 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--purpur);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 16px;
  font-weight: 400;
}
.kontakt-zeile {
  font-family: var(--serif-text);
  font-size: 17px;
  line-height: 1.6;
  color: var(--tinte);
  margin: 0 0 12px;
}
.kontakt-zeile a {
  color: var(--gold);
  border-bottom: 1px solid var(--linie);
}
.kontakt-hinweis {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 14px;
  color: var(--tinte-leicht);
  margin: 0;
}

/* ── Bibliografie ── */
.bibliografie {
  list-style: none;
  padding-left: 0;
  margin: 16px 0 24px;
}
.bibliografie li {
  font-family: var(--serif-text);
  font-size: 16px;
  line-height: 1.65;
  color: var(--tinte-mittel);
  margin-bottom: 14px;
  padding-left: 24px;
  text-indent: -24px;
}
.bibliografie li .bib-autor {
  font-weight: 600;
  color: var(--tinte);
}
.bibliografie li em {
  font-style: italic;
  color: var(--tinte);
}

@media (max-width: 720px) {
  .epoche-zeile { grid-template-columns: 1fr; gap: 8px; }
  .epoche-jahre { font-size: 18px; }
  .epoche-pfeil { display: none; }
  .kontakt-karten { grid-template-columns: 1fr; }
}

/* ─── Druck ─── */
@media print {
  @page {
    size: A4;
    margin: 18mm 16mm 22mm 16mm;
  }
  html, body {
    margin: 0 !important;
    padding: 0 !important;
  }
  .kopf, .kopf-mobil, .menu-overlay, .suche-overlay,
  .fuss, .aktionen, .brotkrumen, .ornament,
  .tabreiter, .werkzeuge, .filter, .alphabet,
  .redaktion, .bildauswahl, .video-panel-form,
  .zurueck-pfeil, .aside-andere-werke { display: none !important; }
  body {
    background: white;
    color: #1a1a1a;
    font-size: 11pt;
    line-height: 1.5;
  }
  .detail, .uebersicht, .haus { padding: 0 !important; max-width: none !important; }
  .inhalt { grid-template-columns: 1fr !important; gap: 0 !important; }
  .inhalt-haupt { max-width: none !important; padding: 0 !important; margin: 0 !important; }
  main, .detail, .uebersicht, .haus, .inhalt, .inhalt-haupt {
    width: auto !important;
  }

  /* Briefkopf — nur im Druck sichtbar */
  .druck-briefkopf {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    border-bottom: 0.5pt solid #1a1a1a;
    padding-bottom: 8mm;
    margin-bottom: 10mm;
  }
  .druck-briefkopf-logo {
    display: flex;
    align-items: center;
    gap: 8mm;
  }
  .druck-briefkopf-logo img {
    width: 14mm;
    height: 14mm;
    object-fit: contain;
  }
  .druck-briefkopf-titel {
    font-family: var(--serif);
    font-size: 13pt;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1a1a1a;
  }
  .druck-briefkopf-sub {
    font-family: var(--serif-text);
    font-style: italic;
    font-size: 9pt;
    color: #555;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 2pt;
  }
  .druck-briefkopf-meta {
    font-family: var(--serif-text);
    font-style: italic;
    font-size: 9pt;
    color: #555;
    text-align: right;
    line-height: 1.4;
  }

  /* Detail-Hero im Druck: Foto links + Text rechts (wie auf der Webseite) */
  .detail-hero {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 8mm !important;
    align-items: flex-start !important;
    margin-bottom: 6mm !important;
  }
  .detail-bild {
    display: block !important;
    flex: 0 0 40mm !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
  }
  .detail-bild-img {
    width: 40mm !important;
    height: auto !important;
    max-height: 55mm !important;
    object-fit: cover !important;
    display: block !important;
  }
  .detail-bild-platzhalter,
  .detail-bild-text,
  .detail-bild-mono { display: none !important; }
  .detail-hero-text { flex: 1; }
  .detail-hero-eyebrow {
    color: #777 !important;
    font-size: 9pt !important;
    margin-bottom: 4pt !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
  }
  .detail-hero-titel {
    font-size: 26pt !important;
    color: #1a1a1a !important;
    margin: 0 0 4pt !important;
    line-height: 1.1 !important;
  }
  .detail-hero-lebzeiten {
    font-size: 11pt !important;
    color: #555 !important;
    margin-bottom: 4mm !important;
  }
  .detail-hero-teaser {
    font-size: 12pt !important;
    color: #1a1a1a !important;
    line-height: 1.5 !important;
    font-style: italic;
  }

  /* Inhalt: nur der Steckbrief wandert OBER den Haupttext;
     Video, Auszeichnungen, Quellen bleiben am Ende.
     'display: contents' loest den aside-Container auf, sodass seine
     Kinder direkt in der .inhalt-Flexbox sortiert werden koennen. */
  .inhalt {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }
  .inhalt .aside {
    display: contents !important;
  }
  .inhalt .aside-block--steckbrief { order: 1; }
  .inhalt .inhalt-haupt { order: 2; }
  .inhalt .video-panel,
  .inhalt .aside-block:not(.aside-block--steckbrief) { order: 3; }

  .inhalt-haupt h2 {
    font-size: 14pt !important;
    color: #1a1a1a !important;
    margin: 6mm 0 2mm !important;
    page-break-after: avoid;
  }
  .inhalt-haupt p {
    font-size: 11pt !important;
    line-height: 1.55 !important;
    color: #1a1a1a !important;
    orphans: 3;
    widows: 3;
  }
  .inhalt-haupt em {
    font-style: italic;
    color: #1a1a1a !important;
  }

  /* Aside als Block (jetzt OBEN, zwischen Hero und Haupttext) */
  .inhalt-aside, .aside {
    margin: 0 0 6mm 0 !important;
    padding: 0 0 4mm 0 !important;
    border-top: none !important;
    border-bottom: 0.5pt solid #aaa !important;
  }
  /* Alle drei Druck-Kaesten (Steckbrief oben, Auszeichnungen + Quellen
     unten) einheitlich: mittig, 120mm breit, dezente Trennlinien oben
     und unten, Innenpolster fuer Lese-Abstand. */
  .inhalt .aside-block--steckbrief,
  .inhalt .aside-block:not(.aside-block--steckbrief) {
    max-width: 120mm !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 4mm 6mm !important;
    border-top: 0.5pt solid #aaa !important;
    border-bottom: 0.5pt solid #aaa !important;
  }
  .inhalt .aside-block--steckbrief { margin-bottom: 6mm !important; }
  .inhalt .aside-block:not(.aside-block--steckbrief) {
    margin-top: 6mm !important;
  }
  .aside-block, .inhalt-aside .aside-block {
    margin-bottom: 4mm !important;
  }
  .aside-block h3 {
    font-size: 10pt !important;
    color: #555 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2mm;
  }
  .aside-block dl {
    display: grid;
    grid-template-columns: 35mm 1fr;
    gap: 1mm 4mm;
    font-size: 10pt;
  }
  .aside-block dt {
    color: #555;
    font-style: italic;
  }
  .aside-block dd { color: #1a1a1a; }
  .aside-block a {
    color: #1a1a1a !important;
    border: none !important;
    text-decoration: none !important;
  }

  /* Druck-Fußzeile mit Quelle */
  .druck-fuss {
    display: block !important;
    margin-top: 12mm;
    padding-top: 4mm;
    border-top: 0.5pt solid #aaa;
    font-family: var(--serif-text);
    font-style: italic;
    font-size: 8pt;
    color: #777;
    text-align: center;
    letter-spacing: 0.04em;
  }

  a, a:link {
    color: #1a1a1a !important;
    text-decoration: none !important;
  }
}

/* Im Bildschirm sind Briefkopf/Fußzeile unsichtbar */
.druck-briefkopf, .druck-fuss { display: none; }


/* ═══════════════════════════════════════════════════════════════════
   RECHERCHE-WEBAPP  (Block 2C)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Form: Typ-Auswahl ──────────────────────────────────────────── */
.rech-typ-reihe {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}
.rech-typ-btn {
  cursor: pointer;
}
.rech-typ-btn input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
}
.rech-typ-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid var(--linie);
  background: transparent;
  color: var(--tinte-leicht);
  font-family: var(--serif-text);
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.rech-typ-btn input:checked + .rech-typ-label {
  border-color: var(--gold);
  color: var(--tinte);
  background: rgba(180, 142, 75, 0.06);
}
.rech-typ-label:hover {
  border-color: var(--tinte-leicht);
  color: var(--tinte);
}
.rech-typ-icon {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--gold);
}

/* ── Form: Eingabe-Felder ───────────────────────────────────────── */
.rech-form {
  margin-bottom: 56px;
}
.rech-gruppe {
  margin-bottom: 24px;
}
.rech-label {
  display: block;
  font-family: var(--serif-text);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tinte-leicht);
  margin-bottom: 8px;
}
.rech-label-hinweis {
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  color: var(--tinte-leicht);
  opacity: 0.7;
}
.rech-label-hinweis--warn {
  color: #e07070;
  opacity: 1;
  font-weight: 600;
}
.rech-fehler {
  background: rgba(192,80,74,0.12);
  border: 1px solid rgba(192,80,74,0.4);
  border-radius: 4px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: 14px;
  color: #e07070;
  line-height: 1.6;
}
.rech-fehler em {
  color: var(--hell);
  font-style: italic;
}
.rech-eingabe {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--serif-text);
  font-size: 18px;
  color: var(--tinte);
  background: var(--pergament);
  border: 1px solid var(--linie);
  border-radius: 0;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.rech-eingabe:focus {
  border-color: var(--gold);
}
.rech-eingabe--slug {
  font-size: 15px;
  font-family: monospace;
  letter-spacing: 0.04em;
}
.rech-erklaerung {
  font-size: 13px;
  color: var(--tinte-leicht);
  margin-top: 6px;
  font-style: italic;
}
.rech-btn-start {
  display: inline-block;
  margin-top: 8px;
  padding: 14px 36px;
  background: var(--kopf-dunkel);
  color: var(--pergament);
  font-family: var(--serif-text);
  font-size: 15px;
  letter-spacing: 0.06em;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.rech-btn-start:hover {
  background: var(--tinte);
}

/* ── Offene Entwürfe ────────────────────────────────────────────── */
.rech-entwuerfe {
  border-top: 1px solid var(--linie);
  padding-top: 40px;
}
.rech-entwuerfe h2 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--tinte);
  margin-bottom: 16px;
}
.rech-entwurf-liste {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rech-entwurf-zeile {
  display: grid;
  grid-template-columns: 32px 1fr auto 20px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--tinte);
  border: 1px solid transparent;
  transition: border-color 0.15s, background 0.15s;
}
.rech-entwurf-zeile:hover {
  border-color: var(--linie);
  background: rgba(180, 142, 75, 0.04);
}
.rech-entwurf-initial {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--gold);
  text-align: center;
}
.rech-entwurf-name {
  font-family: var(--serif-text);
  font-size: 16px;
}
.rech-entwurf-typ {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tinte-leicht);
}
.rech-entwurf-pfeil {
  color: var(--gold);
  font-size: 14px;
}

/* ── Fortschritt: Schritt-Anzeige ──────────────────────────────── */
.fp-schritte {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}
.fp-schritt {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-left: 3px solid var(--linie);
  transition: border-color 0.2s, background 0.2s;
}
.fp-schritt--aktiv {
  border-left-color: var(--gold);
  background: rgba(180, 142, 75, 0.06);
}
.fp-schritt--done {
  border-left-color: var(--tinte-leicht);
  opacity: 0.6;
}
.fp-schritt-nr {
  font-family: monospace;
  font-size: 12px;
  color: var(--tinte-leicht);
  letter-spacing: 0.04em;
}
.fp-schritt-name {
  font-family: var(--serif-text);
  font-size: 14px;
  color: var(--tinte);
}
.fp-schritt--aktiv .fp-schritt-name {
  color: var(--tinte);
  font-weight: 600;
}
.fp-schritt-status {
  font-size: 12px;
  color: var(--tinte-leicht);
  font-style: italic;
}
.fp-schritt--aktiv .fp-schritt-status {
  color: var(--gold);
  font-style: normal;
  font-weight: 600;
}
.fp-schritt--done .fp-schritt-status {
  color: var(--tinte-leicht);
}

/* ── Fortschritt: Log-Fenster ───────────────────────────────────── */
.fp-log {
  background: var(--kopf-dunkel);
  color: #c8bfa6;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 1.6;
  padding: 20px 24px;
  min-height: 220px;
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 32px;
  border-radius: 2px;
}
.fp-log p {
  margin: 0;
  padding: 1px 0;
}
.fp-log .log-schritt {
  color: var(--gold);
  font-weight: bold;
  margin-top: 8px;
}
.fp-log .log-detail {
  color: #9a9080;
}
.fp-log .log-trenn {
  color: #5a524a;
  font-size: 11px;
}

/* ── Fortschritt: Ergebnis-Bereich ─────────────────────────────── */
.fp-ergebnis {
  padding: 32px;
  border: 1px solid var(--linie);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.fp-ergebnis--ok {
  border-color: var(--gold);
  background: rgba(180, 142, 75, 0.05);
}
.fp-ergebnis--fehler {
  border-color: var(--purpur);
  background: rgba(94, 22, 22, 0.05);
}
.fp-ergebnis-ikone {
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1;
  color: var(--gold);
}
.fp-ergebnis--fehler .fp-ergebnis-ikone {
  color: var(--purpur);
}
.fp-ergebnis-text {
  font-family: var(--serif-text);
  font-size: 16px;
  color: var(--tinte);
  margin: 0;
  max-width: 480px;
}
.fp-fehler-detail {
  font-family: monospace;
  font-size: 13px;
  color: var(--purpur);
  background: rgba(94, 22, 22, 0.08);
  padding: 12px 16px;
  width: 100%;
  box-sizing: border-box;
  word-break: break-all;
}
.fp-ergebnis-aktionen {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.fp-btn-haupt {
  padding: 12px 32px;
  background: var(--kopf-dunkel);
  color: var(--pergament);
  font-family: var(--serif-text);
  font-size: 15px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}
.fp-btn-haupt:hover {
  background: var(--tinte);
}
.fp-btn-neben {
  padding: 12px 24px;
  border: 1px solid var(--linie);
  color: var(--tinte);
  font-family: var(--serif-text);
  font-size: 15px;
  text-decoration: none;
  transition: border-color 0.15s;
}
.fp-btn-neben:hover {
  border-color: var(--tinte-leicht);
}

/* ── Mobil ──────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .rech-typ-reihe { flex-direction: column; }
  .rech-entwurf-zeile { grid-template-columns: 28px 1fr 20px; }
  .rech-entwurf-typ { display: none; }
  .fp-schritte { gap: 2px; }
}

/* ===== Stapel-Recherche (Batch) — wiederhergestellt aus cc642ab ===== */
.rech-batch-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--tinte-leicht);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Batch-Recherche ────────────────────────────────────────────── */
.batch-reihe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
.batch-spalte { display: flex; flex-direction: column; gap: 8px; }
.batch-textarea {
  width: 100%;
  height: 280px;
  padding: 14px 16px;
  font-family: var(--serif-text);
  font-size: 15px;
  color: var(--tinte);
  background: var(--pergament);
  border: 1px solid var(--linie);
  border-radius: 0;
  outline: none;
  resize: vertical;
  line-height: 1.8;
  transition: border-color 0.15s;
}
.batch-textarea:focus { border-color: var(--gold); }
.batch-zaehler {
  font-size: 12px;
  color: var(--tinte-fern);
  text-align: right;
  letter-spacing: 0.04em;
}
.batch-hinweis {
  background: rgba(138,106,50,0.08);
  border: 1px solid rgba(138,106,50,0.22);
  border-radius: 4px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--tinte-mittel);
  line-height: 1.6;
  margin-bottom: 28px;
}
.batch-aktionen { display: flex; gap: 20px; align-items: center; }

/* ── Batch-Status ───────────────────────────────────────────────── */
.bs-liste {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 32px 0;
}
.bs-zeile {
  display: grid;
  grid-template-columns: 28px 24px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--linie-fein);
  border-radius: 3px;
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s;
}
.bs-zeile--done    { border-color: rgba(74,128,96,0.3); background: rgba(74,128,96,0.04); }
.bs-zeile--fehler  { border-color: rgba(192,80,74,0.3); background: rgba(192,80,74,0.04); }
.bs-zeile--running { border-color: var(--linie); background: rgba(138,106,50,0.06); }
.bs-zeile--wartend { border-color: var(--linie-fein); }
.bs-ikone { font-size: 14px; text-align: center; }
.bs-zeile--done   .bs-ikone { color: #4a8060; }
.bs-zeile--fehler .bs-ikone { color: #c0504a; }
.bs-typ {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--tinte-fern);
  text-align: center;
}
.bs-name { color: var(--tinte); font-family: var(--serif-text); }
.bs-aktion { font-size: 13px; text-align: right; }
.bs-aktion a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.bs-fehler  { color: #c0504a; font-style: italic; }
.bs-laueft  { color: var(--gold); font-style: italic; }
.bs-wartet  { color: var(--tinte-fern); }
.bs-zusammenfassung {
  text-align: center;
  padding: 48px 0 32px;
  border-top: 1px solid var(--linie-fein);
  margin-top: 16px;
}
.bs-fertig-ikone { font-size: 48px; color: #4a8060; margin-bottom: 16px; }
.bs-fertig-text { font-size: 16px; color: var(--tinte-leicht); margin-bottom: 28px; }
.bs-fertig-aktionen { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Batch-Vorcheck-Liste ───────────────────────────────────────── */
.bv-liste {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 32px 0 24px;
}
.bv-zeile {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--linie-fein);
  border-radius: 3px;
  padding: 9px 12px;
  transition: border-color 0.2s, background 0.2s;
}
.bv-zeile--pruefend { border-color: var(--linie-fein); }
.bv-zeile--gefunden {
  border-color: rgba(74,128,96,0.3);
  background: rgba(74,128,96,0.04);
}
.bv-zeile--vorhanden {
  border-color: rgba(138,106,50,0.25);
  background: rgba(138,106,50,0.05);
  opacity: 0.75;
}
.bv-zeile--unbekannt {
  border-color: rgba(192,80,74,0.25);
  background: rgba(192,80,74,0.04);
}
.bv-zeile--autor-fehlt {
  border-color: rgba(200,128,96,0.35);
  background: rgba(200,128,96,0.06);
}
.bv-zeile--autor-im-stapel {
  border-color: rgba(138,106,50,0.35);
  background: rgba(138,106,50,0.08);
}
.bv-cb {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-right: 10px;
  accent-color: var(--gold);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}
.bv-cb:not([disabled]) { opacity: 1; }
.bv-label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  cursor: pointer;
  min-width: 0;
}
.bv-ikone {
  flex-shrink: 0;
  width: 22px;
  text-align: center;
  font-size: 13px;
}
.bv-zeile--gefunden    .bv-ikone { color: #4a8060; }
.bv-zeile--vorhanden   .bv-ikone { color: var(--gold); }
.bv-zeile--unbekannt   .bv-ikone { color: #c0504a; }
.bv-zeile--autor-fehlt   .bv-ikone { color: #c08060; }
.bv-zeile--autor-im-stapel .bv-ikone { color: var(--gold-tief); }
.bv-typ {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--tinte-fern);
  width: 20px;
  text-align: center;
}
.bv-eingabe {
  flex-shrink: 0;
  font-family: var(--serif-text);
  font-size: 14px;
  font-weight: 600;
  color: var(--tinte);
  min-width: 120px;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bv-info {
  font-family: var(--serif-text);
  font-size: 13px;
  color: var(--tinte-leicht);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bv-vorhanden-warn   { color: var(--gold-tief); font-style: italic; }
.bv-nicht-gefunden   { color: #c08060;          font-style: italic; }
.bv-autor-fehlt-warn   { color: #c08060;          font-style: italic; }
.bv-autor-im-stapel-warn { color: var(--gold-tief); font-style: italic; }
.bv-hinweis {
  font-family: var(--serif-text);
  font-size: 14px;
  color: var(--tinte-leicht);
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 12px 16px;
  border: 1px solid var(--linie-fein);
  border-left: 3px solid var(--gold);
  background: rgba(138,106,50,0.06);
  border-radius: 2px;
}
.bv-aktionen-zeile {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ── Batch-Modus-Umschalter ─────────────────────────────────────── */
.batch-modus { border: 1px solid var(--linie, #ccc); padding: 1em; margin: 1.5em 0; }
.batch-modus legend { padding: 0 0.5em; font-weight: bold; }
.batch-modus label { display: block; padding: 0.4em 0; }
.modus-erklaerung { color: var(--text-grau, #666); font-size: 0.92em; }
.batch-modus-deaktiviert { opacity: 0.55; }
.batch-modus-deaktiviert strong { font-weight: 500; }
.modus-erklaerung--gesperrt { color: var(--tinte-fern, #888); font-style: italic; }
.modus-erklaerung--gesperrt a { color: var(--gold); border-bottom: 1px solid var(--linie); }

/* ─── Mobile-Elemente: auf Desktop standardmaessig unsichtbar ─── */
.kopf-mobil,
.menu-overlay,
.suche-overlay {
  display: none;
}

/* ─── Karten/Kaesten: lange Woerter duerfen umbrechen, statt zu sprengen ─── */
.werkkarte-titel,
.werkkarte-untertitel,
.einstieg-karte h3,
.autorenkarte h3 {
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* ══════════════════════════════════════════════════════════════════
   Mobile-Besucheransicht (≤ 720 px) — Stand 2026-05-26
   Sammelblock für alle Mobile-spezifischen Regeln des Besucher-Layouts.
   Inhalt: Header (zentriert + Hamburger + Lupe), Menü-Overlay,
   Suche-Overlay, Footer (gestapelt), Werk-Karten-Galerie (einspaltig).
   Redaktions-Seiten sind hier NICHT betroffen — die bleiben Desktop-only.
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 720px) {
  /* ── Hilfsregel: Body-Scroll sperren, wenn ein Overlay offen ist ── */
  body.overlay-offen { overflow: hidden; }

  /* ── Filter auf Handygroesse: Dropdown statt vieler Chips ── */
  .filter-chips { display: none; }
  .filter-select { display: inline-block; }

  /* ── Desktop-Header verstecken ── */
  .kopf { display: none; }

  /* ── Mobile-Header: zentrierte Marke + Tools oben rechts ── */
  .kopf-mobil {
    display: block;
    position: relative;
    background: var(--tinte, #1a1612);
    color: var(--pergament, #f5efe6);
    padding: 12px 14px 14px;
    border-bottom: 1px solid rgba(212,175,55,0.2);
  }
  .kopf-mobil-tools {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 2px;
  }
  .kopf-mobil-btn {
    background: transparent;
    border: 0;
    color: var(--pergament, #f5efe6);
    cursor: pointer;
    padding: 8px;
    line-height: 0;
    border-radius: 4px;
  }
  .kopf-mobil-btn:hover { background: rgba(245,239,230,0.08); }
  .kopf-mobil-marke {
    display: block;
    text-align: center;
    padding-top: 6px;
    text-decoration: none;
    color: inherit;
  }
  .kopf-mobil-logo {
    width: 44px;
    height: 44px;
    display: block;
    margin: 0 auto 6px;
  }
  .kopf-mobil-name {
    font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.1;
  }
  .kopf-mobil-sub {
    font-family: var(--serif-text);
    font-size: 10px;
    font-style: italic;
    color: rgba(245,239,230,0.65);
    margin-top: 3px;
  }

  /* ── Menue-Overlay (Vollbild) ── */
  .menu-overlay.offen {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26,22,18,0.97);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 30px 30px;
  }
  .menu-overlay-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    max-width: 320px;
  }
  .menu-overlay-nav a {
    display: block;
    color: var(--pergament, #f5efe6);
    text-decoration: none;
    font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.06em;
    padding: 14px 0;
    border-bottom: 1px solid rgba(245,239,230,0.15);
    text-align: center;
  }
  .menu-overlay-nav a.aktiv { color: var(--gold, #d4af37); }
  .menu-overlay-nav a:last-child { border-bottom: 0; }

  /* ── Schliessen-Knopf (gemeinsam fuer Menue + Suche) ── */
  .overlay-schliessen {
    position: absolute;
    top: 14px;
    right: 14px;
    background: transparent;
    border: 0;
    color: var(--pergament, #f5efe6);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
  }
  .overlay-schliessen:hover { background: rgba(245,239,230,0.08); }

  /* ── Suche-Overlay (Vollbild) ── */
  .suche-overlay.offen {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26,22,18,0.97);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    padding: 80px 24px 30px;
  }
  .suche-overlay-label {
    color: rgba(245,239,230,0.65);
    font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
    font-size: 14px;
    letter-spacing: 0.18em;
    margin-bottom: 18px;
  }
  .suche-overlay-form {
    width: 100%;
    max-width: 360px;
  }
  .suche-overlay-feld {
    width: 100%;
    background: var(--pergament, #f5efe6);
    border: 0;
    border-bottom: 2px solid var(--gold, #d4af37);
    padding: 14px 14px;
    font-size: 18px;
    font-family: var(--serif-text);
    color: var(--tinte, #1a1612);
    border-radius: 6px 6px 0 0;
    box-sizing: border-box;
  }
  .suche-overlay-feld:focus { outline: 2px solid var(--gold, #d4af37); outline-offset: 2px; }
  .suche-overlay-hint {
    color: rgba(245,239,230,0.5);
    font-family: var(--serif-text);
    font-size: 12px;
    font-style: italic;
    margin-top: 14px;
    text-align: center;
  }

  /* ── Footer-Mobile (alles gestapelt, zentriert) ── */
  .fuss-inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 32px 22px 18px;
  }
  .fuss-inner > div {
    text-align: center;
  }
  .fuss-marke {
    /* Marke + Beschreibung mittig, eigene Anordnung */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .fuss-marke .marke {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  .fuss-marke .marke-text {
    text-align: center;
  }
  .fuss-marke p {
    margin-top: 14px;
    padding: 0 4px;
    line-height: 1.5;
  }
  .fuss-inner h4 {
    margin-bottom: 10px;
  }
  .fuss-inner ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .fuss-inner ul li {
    padding: 6px 0;
  }
  .fuss-unten {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding: 14px 22px 18px;
  }

  /* ── Werk-Karten-Galerie: eine Spalte ── */
  .werkegrid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .werkkarte {
    padding: 20px 18px;
    min-height: 0;
  }
  .werkkarte-titel {
    font-size: 20px;
    overflow-wrap: anywhere;
  }
  .werkkarte-untertitel {
    overflow-wrap: anywhere;
  }
}

/* ─── Besucher: YouTube-Embed responsiv ─── */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  margin: 24px 0;
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ===================================================================
   Vorschau-Bereich (oeffentliches Schaufenster) — Galerie-Stil
   =================================================================== */

/* Schloss-Symbol an gesperrten Tueren */
[data-gesperrt]::after {
  content: " \1F512";          /* 🔒 */
  font-size: 0.8em;
  opacity: 0.7;
  margin-left: 0.2em;
}
[data-gesperrt] { cursor: pointer; }

/* Dezentes Hinweis-Band oben */
.vorschau-band {
  background: #efe2c0;
  color: #5a4a2a;
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  border-bottom: 1px solid #e3d9c6;
}
.vorschau-band a { color: #8a6a14; font-weight: 600; }

/* Wander-Leiste am Fuss des Eintrags */
.vorschau-wander {
  margin: 2.5rem 0 1rem;
  padding: 1.25rem 0 0;
  border-top: 1px solid #e3d9c6;
}
.vorschau-wander-titel {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a7d66;
  margin: 0 0 0.75rem;
}
.vorschau-wander-reihe { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.vorschau-wander-chip {
  background: #fff;
  border: 1px solid #d8cbb0;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  color: #5a4a32;
  text-decoration: none;
}
.vorschau-wander-chip:hover { background: #f6efdd; }

/* Mitglieder-Modal (per JS ein-/ausgeblendet via [hidden]) */
.vorschau-modal {
  position: fixed;
  inset: 0;
  background: rgba(40, 32, 20, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}
.vorschau-modal[hidden] { display: none; }
.vorschau-modal-box {
  position: relative;
  background: #fff;
  border: 2px solid #c9a227;
  border-radius: 10px;
  padding: 2rem 1.75rem 1.75rem;
  max-width: 28rem;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.vorschau-modal-zu {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #9a8e76;
  cursor: pointer;
}
.vorschau-modal-ico { font-size: 2rem; }
.vorschau-modal-box h3 { margin: 0.5rem 0 0.5rem; color: #3a3128; }
.vorschau-modal-box p { color: #6a5e48; font-size: 0.95rem; margin: 0 0 1.25rem; }
.vorschau-modal-cta {
  display: inline-block;
  background: #c9a227;
  color: #3a2f12;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}
.vorschau-modal-cta:hover { background: #b8911f; }
