/* ============================================================
   Geschichte.Domain-Root.de — Pergament/Sepia Hellmodus
   Drei-Achsen-Wissensportal
   ============================================================ */

/* === DESIGN-TOKENS === */
:root {
  /* Pergament-Palette (warm, hell) */
  --color-bg:           #f5ecd9;   /* Pergament-Grundton */
  --color-bg-alt:       #efe3c9;   /* etwas dunkler */
  --color-bg-card:      #f9f1de;   /* Card-Hintergrund (heller als bg) */
  --color-bg-elevated:  #ebdebf;   /* Hover/Aktiv */
  --color-bg-paper:     #fbf4e3;   /* allerhellste, fast weiss */

  /* Sepia-Tinte */
  --color-text:         #2a1f15;   /* dunkles Sepia (Tinte) */
  --color-text-muted:   #6e5a45;   /* mittleres Sepia */
  --color-text-faded:   #9c8868;   /* helleres Sepia */

  /* Akzente */
  --color-primary:        #8b4513;   /* Sattelbraun (Hauptlink/Button) */
  --color-primary-hover:  #6b3410;   /* dunklere Variante */
  --color-accent:         #c8a96e;   /* Gold-Sepia */
  --color-accent-warm:    #d4a55a;   /* warmer Gold-Highlight */
  --color-red:            #8b1e1e;   /* Siegellack-Rot */
  --color-red-soft:       rgba(139, 30, 30, 0.08);

  /* Border */
  --color-border:         #d4c2a0;   /* mittlere Pergamentbraun */
  --color-border-strong:  #b89e75;   /* stärker für H-Linien */
  --color-border-faint:   rgba(139, 69, 19, 0.12);

  /* Maße */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --container-max: 1180px;
  --content-narrow: 760px;

  /* Schatten (sehr dezent, papierartig) */
  --shadow-paper:    0 1px 2px rgba(70, 40, 15, 0.08), 0 2px 8px rgba(70, 40, 15, 0.05);
  --shadow-card:     0 2px 6px rgba(70, 40, 15, 0.10), 0 8px 24px rgba(70, 40, 15, 0.06);
  --shadow-elevated: 0 4px 12px rgba(70, 40, 15, 0.15), 0 16px 40px rgba(70, 40, 15, 0.08);
  --shadow-gold:     0 1px 0 rgba(212, 165, 90, 0.4);

  /* Typo */
  --font-display: "Cinzel", "IM Fell English SC", "Trajan Pro", "Cormorant Garamond", Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-body:    "Lora", "Crimson Pro", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", Times, serif;
  --font-sans:    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", "Source Code Pro", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

/* === FONT-LOADING (Manrope local) === */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/manrope-400.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/manrope-500.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/manrope-600.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/manrope-700.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/manrope-800.woff2") format("woff2");
}

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  /* Pergament-Textur: leichter Rauscheffekt */
  background-image:
    radial-gradient(ellipse at top, rgba(212, 165, 90, 0.08), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(139, 69, 19, 0.04), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtile Papier-Textur über alles drüber */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.28 0 0 0 0 0.10 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.5;
  mix-blend-mode: multiply;
}

main, header, footer, section, article {
  position: relative;
  z-index: 2;
}

/* === TYPOGRAFIE === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin-top: 1.4em;
  margin-bottom: 0.6em;
}

h1 {
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(212, 165, 90, 0.3);
}

h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 8px;
  margin-top: 2em;
}

h2::before {
  content: '⚜ ';
  color: var(--color-accent);
  font-size: 0.7em;
  vertical-align: middle;
  margin-right: 6px;
}

h3 {
  font-size: clamp(20px, 2.5vw, 25px);
  color: var(--color-primary);
}

h4 { font-size: 19px; color: var(--color-primary); }
h5, h6 { font-size: 17px; color: var(--color-text-muted); }

p {
  margin: 0 0 1.2em;
}

/* Drop-Cap auf ersten Buchstaben des ersten Paragraphen in article */
.content-narrow > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 4.5em;
  font-weight: 700;
  float: left;
  line-height: 0.85;
  margin: 6px 10px 0 -2px;
  color: var(--color-primary);
  background: linear-gradient(135deg, #c8a96e, #8b4513);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(139, 69, 19, 0.15);
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

a:hover {
  color: var(--color-primary-hover);
  text-decoration-color: var(--color-primary);
}

strong, b {
  font-weight: 700;
  color: var(--color-text);
}

em, i {
  font-style: italic;
  color: var(--color-text);
}

ul, ol {
  margin: 0 0 1.2em;
  padding-left: 28px;
}

li {
  margin-bottom: 6px;
}

ul li::marker {
  color: var(--color-accent);
  content: '✦ ';
}

blockquote {
  margin: 1.5em 0;
  padding: 16px 24px;
  background: var(--color-bg-card);
  border-left: 4px solid var(--color-accent);
  font-style: italic;
  color: var(--color-text-muted);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-paper);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-bg-elevated);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--color-primary-hover);
}

hr {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-accent), transparent);
  margin: 2em 0;
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.content-narrow {
  max-width: var(--content-narrow);
  margin: 0 auto;
}

main {
  min-height: 60vh;
  padding-bottom: 80px;
}

/* === HEADER === */
.site-header {
  background: rgba(245, 236, 217, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-paper);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.logo:hover { color: var(--color-primary); }

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #d4a55a 0%, #8b4513 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  box-shadow: 0 2px 6px rgba(139, 69, 19, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.15em;
  margin-top: 4px;
  text-transform: uppercase;
}

/* === NAV === */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.nav-link:hover, .nav-link[aria-expanded="true"] {
  background: var(--color-bg-elevated);
  color: var(--color-primary);
}

.nav-chevron {
  transition: transform 0.2s;
}

.nav-link[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}

/* Dropdowns */
.nav-dropdown[hidden],
.nav-dropdown-mega[hidden] {
  display: none !important;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  margin-top: 8px;
  right: 0;
  background: var(--color-bg-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  padding: 8px;
  min-width: 240px;
  z-index: 200;
  animation: dropdown-in 0.18s ease-out;
}

/* Unsichtbare Brücke zwischen Button und Menü, damit Hover nicht abbricht */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-dropdown a {
  display: block;
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
  line-height: 1.4;
}

.nav-dropdown a:hover {
  background: var(--color-bg-elevated);
  color: var(--color-primary);
}

/* Mega-Menü */
.nav-dropdown-mega {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(960px, calc(100vw - 48px));
  min-width: 720px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  animation: dropdown-in-mega 0.18s ease-out;
}

.nav-dropdown-mega.nav-dropdown-mega-2 {
  grid-template-columns: repeat(2, 1fr);
}

.nav-dropdown-mega.nav-dropdown-mega-4 {
  grid-template-columns: repeat(4, 1fr);
  width: min(1100px, calc(100vw - 48px));
}

@keyframes dropdown-in-mega {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-mega-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.nav-mega-col a {
  display: block;
  padding: 7px 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
  line-height: 1.4;
}

.nav-mega-col a:hover {
  background: var(--color-bg-elevated);
  color: var(--color-primary);
}

.nav-mega-col a strong {
  color: var(--color-primary);
}

.nav-mega-headline {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px 6px;
  margin: 10px 0 4px;
  border-bottom: 1px solid var(--color-border);
}

.nav-mega-headline:first-child {
  margin-top: 0;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-bg);
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
  box-shadow: 0 1px 2px rgba(139, 69, 19, 0.2);
}

.header-cta:hover {
  background: var(--color-primary-hover);
  color: var(--color-bg);
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s, border-color 0.15s;
}

.mobile-menu-toggle:hover {
  background: var(--color-bg-elevated);
  border-color: var(--color-primary);
}

/* === BREADCRUMB === */
.breadcrumb {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-text-muted);
  padding: 18px 0 6px;
}

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.breadcrumb li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb li::marker { content: none; }

.breadcrumb li + li::before {
  content: '›';
  color: var(--color-accent);
  margin-right: 2px;
}

.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--color-text);
  font-weight: 600;
}

/* === HERO (Startseite) === */
.hero {
  padding: 60px 0 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(40px, 6vw, 64px);
  margin-top: 0;
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent-warm);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding: 6px 14px;
  background: rgba(212, 165, 90, 0.12);
  border: 1px solid var(--color-border);
  border-radius: 99px;
}

.hero-lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  border: 6px solid var(--color-bg-paper);
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(139, 69, 19, 0.15));
  pointer-events: none;
}

/* === PAGE HERO (Detailseiten) === */
.page-hero {
  padding: 40px 0 50px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 40px;
  position: relative;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.page-hero h1 {
  margin-top: 8px;
  margin-bottom: 16px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 12px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 99px;
}

.hero-subtitle {
  font-size: 19px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0 0 24px;
}

/* Side-Card im Page-Hero (Brand-Image) */
.page-hero-side {
  background: var(--color-bg-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-card);
  text-align: center;
  position: relative;
}

.page-hero-side img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  border: 2px solid var(--color-border);
}

.page-hero-side-caption {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero-side::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  background:
    radial-gradient(circle at 0% 0%, var(--color-accent) 1px, transparent 2px),
    radial-gradient(circle at 100% 0%, var(--color-accent) 1px, transparent 2px),
    radial-gradient(circle at 0% 100%, var(--color-accent) 1px, transparent 2px),
    radial-gradient(circle at 100% 100%, var(--color-accent) 1px, transparent 2px);
  pointer-events: none;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
  border: 1px solid transparent;
  letter-spacing: 0.02em;
  line-height: 1;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-bg);
  box-shadow: 0 2px 6px rgba(139, 69, 19, 0.25);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  color: var(--color-bg);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-bg);
  transform: translateY(-1px);
}

/* === CARDS === */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-paper);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.card h3 {
  margin-top: 0;
}

/* Card-Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Epoch-Card (Übersicht der Epochen) */
.epoch-card {
  background: var(--color-bg-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  color: var(--color-text);
  display: block;
  box-shadow: var(--shadow-paper);
}

.epoch-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--color-primary);
  color: var(--color-text);
}

.epoch-card-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-accent-warm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.epoch-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--color-text);
}

.epoch-card-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.epoch-card-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0 0 14px;
}

.epoch-card-link {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

/* === SPECIAL CONTENT BLOCKS === */

/* Hervorgehobener Fakten-Block */
.fact-box {
  background: var(--color-bg-card);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 24px 0;
  box-shadow: var(--shadow-paper);
}

.fact-box-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 10px;
}

/* Datums-Tabelle */
.date-table {
  margin: 24px 0;
  background: var(--color-bg-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-paper);
}

.date-table dl {
  margin: 0;
  display: grid;
  grid-template-columns: 220px 1fr;
}

.date-table dt {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  padding: 12px 20px;
  background: var(--color-bg-elevated);
  border-bottom: 1px solid var(--color-border);
}

.date-table dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  padding: 12px 20px;
  border-bottom: 1px solid var(--color-border);
}

.date-table dt:last-of-type,
.date-table dd:last-of-type {
  border-bottom: 0;
}

/* Querverweis-Card ("Diese Seite gehört auch zu...") */
.crossref-box {
  background: linear-gradient(135deg, var(--color-bg-paper), var(--color-bg-card));
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 32px 0;
  box-shadow: var(--shadow-card);
  position: relative;
}

.crossref-box::before {
  content: '⚜';
  position: absolute;
  top: -14px;
  left: 24px;
  background: var(--color-bg);
  color: var(--color-accent-warm);
  padding: 0 12px;
  font-size: 22px;
}

.crossref-box-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 12px;
}

.crossref-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.crossref-list li {
  margin: 0;
}

.crossref-list a {
  display: inline-block;
  padding: 6px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 99px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.crossref-list a:hover {
  background: var(--color-primary);
  color: var(--color-bg);
  border-color: var(--color-primary);
}

/* Vorheriger / Nächster (Chronologie-Nav) */
.chrono-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 48px 0 32px;
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.chrono-nav a {
  display: block;
  padding: 16px 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.chrono-nav a:hover {
  background: var(--color-bg-paper);
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

.chrono-nav-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.chrono-nav-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}

.chrono-nav-prev { text-align: left; }
.chrono-nav-next { text-align: right; }

/* === SVG-Zeitleiste (vertikal, am Seitenrand) === */
.timeline-strip {
  position: fixed;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  z-index: 50;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.2s;
  display: none;  /* nur ab xl-Viewport eingeblendet */
}

.timeline-strip:hover {
  opacity: 1;
}

@media (min-width: 1400px) {
  .timeline-strip {
    display: block;
  }
}

.timeline-strip svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(70, 40, 15, 0.15));
}

.timeline-strip-marker {
  fill: var(--color-red);
  stroke: var(--color-bg-paper);
  stroke-width: 2;
}

/* === ORNAMENT/DIVIDER === */
.ornament-divider {
  text-align: center;
  margin: 40px 0;
  color: var(--color-accent-warm);
  font-size: 24px;
  letter-spacing: 0.8em;
}

.ornament-divider::before { content: '❦  ⚜  ❦'; }

/* === RELATED ARTICLES === */
.related-articles {
  margin: 48px 0;
}

.related-articles-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin: 0 0 24px;
  letter-spacing: 0.02em;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.related-card {
  display: block;
  padding: 16px 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  color: var(--color-text);
}

.related-card:hover {
  background: var(--color-bg-paper);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  color: var(--color-text);
}

.related-card-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-accent-warm);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.related-card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

/* === FOOTER === */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 2px solid var(--color-border);
  padding: 60px 0 30px;
  margin-top: 80px;
  box-shadow: inset 0 1px 0 var(--color-accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand-image {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-md);
  border: 3px solid var(--color-border);
  margin-top: 12px;
  display: block;
  box-shadow: var(--shadow-paper);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 12px 0 0;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin: 0 0 8px;
}

.footer-col li::marker { content: none; }

.footer-col a {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-text {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--color-text-faded);
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}

.footer-bottom-links a {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--color-text-faded);
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* === SR-ONLY === */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--color-primary);
  color: var(--color-bg);
  padding: 8px 16px;
  z-index: 1000;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 8px;
}

/* === MOBILE === */
@media (max-width: 900px) {
  .mobile-menu-toggle { display: flex; }

  .header-cta { display: none; }

  .logo-sub { display: none; }
  .logo { font-size: 19px; }
  .logo-icon { width: 36px; height: 36px; font-size: 19px; }

  /* Off-Canvas-Menü */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(380px, 100vw);
    height: 100dvh;
    background: var(--color-bg-paper);
    border-left: 2px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 80px 16px 32px;
    overflow-y: auto;
    overscroll-behavior: contain;
    transition: right 0.25s ease;
    z-index: 200;
    box-shadow: -8px 0 32px rgba(70, 40, 15, 0.3);
  }

  .main-nav.open { right: 0; }

  body.nav-open { overflow: hidden; }

  body.nav-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: min(380px, 100vw);
    bottom: 0;
    background: rgba(42, 31, 21, 0.5);
    z-index: 150;
    animation: fade-in 0.2s ease;
    pointer-events: none;
  }

  @keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 14px 16px;
    font-size: 15px;
    border-radius: 0;
  }

  .nav-dropdown,
  .nav-dropdown-mega {
    position: static !important;
    transform: none !important;
    background: var(--color-bg);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 4px 16px 16px;
    min-width: 0;
    width: 100%;
    animation: none;
    display: block;
  }

  .mobile-menu-toggle[aria-expanded="true"] {
    color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    z-index: 250;
    position: relative;
  }

  /* Hero auf Mobile umstapeln */
  .hero-grid,
  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .page-hero-side {
    max-width: 280px;
    margin: 0 auto;
  }

  .hero-image {
    max-width: 480px;
    margin: 0 auto;
  }

  /* Date-Table */
  .date-table dl {
    grid-template-columns: 1fr;
  }

  .date-table dt {
    border-bottom: 0;
    padding-bottom: 4px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  /* Card-Grids weniger Spalten */
  .card-grid-3, .card-grid-4 {
    grid-template-columns: 1fr;
  }

  .chrono-nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .hero { padding: 32px 0 48px; }
  .page-hero { padding: 24px 0 32px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* === PRINT === */
@media print {
  body { background: white; color: black; }
  body::before { display: none; }
  .site-header, .site-footer, .mobile-menu-toggle, .timeline-strip,
  .crossref-box, .chrono-nav { display: none; }
  a { color: #000; text-decoration: underline; }
  .container { max-width: 100%; padding: 0; }
}
