/* ============================================================
   Welterbe in Gefahr — Stylesheet
   © 2026 Bernd Freiherr von Droste zu Hülshoff
   ============================================================ */

:root {
  --ink: #1c1814;
  --ink-soft: #3a322a;
  --parchment: #f4ede0;
  --parchment-deep: #ebe1ce;
  --parchment-warm: #f9f3e6;
  --bronze: #8c6a3c;
  --bronze-deep: #6b4f29;
  --terracotta: #a44a2b;
  --moss: #5a6b3a;
  --stone: #7a7268;
  --line: #d8cdb4;
  --gold: #b89253;
  --shadow: rgba(28, 24, 20, 0.12);

  --serif-display: 'Cormorant Garamond', 'Georgia', serif;
  --serif-body: 'Cardo', 'Georgia', 'Times New Roman', serif;
  --mono: 'DM Mono', 'Courier New', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--parchment);
  background-image:
    radial-gradient(ellipse at top, rgba(184, 146, 83, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(90, 107, 58, 0.05) 0%, transparent 50%);
  overflow-x: hidden;
}

/* Paper texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.3 0 0 0 0 0.2 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============= NAVIGATION ============= */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(244, 237, 224, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  transition: padding 0.3s ease;
}
nav.scrolled { padding: 12px 0; }

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.nav-logo {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.nav-logo span { color: var(--terracotta); }
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--terracotta); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--terracotta);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  width: 38px;
  height: 38px;
  cursor: pointer;
  color: var(--ink);
  font-size: 1.2rem;
  border-radius: 2px;
}
.lang-switch {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.lang-switch:hover {
  border-color: var(--bronze);
  background: var(--parchment-warm);
}
.lang-switch .lang-active {
  color: var(--ink);
  font-weight: 500;
}
.lang-switch .lang-other {
  color: var(--stone);
}
.lang-switch .lang-sep {
  color: var(--line);
  margin: 0 2px;
}

/* ============= HERO ============= */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 160px 40px 80px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--bronze-deep);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--bronze);
}

.hero h1 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  color: var(--terracotta);
  font-weight: 300;
}
.hero h1 .breakpoint { display: block; }

.hero-subtitle {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--ink-soft);
  margin-bottom: 36px;
  max-width: 540px;
  line-height: 1.5;
}

.hero-meta {
  display: flex;
  gap: 36px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-meta-item {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--stone);
}
.hero-meta-item strong {
  display: block;
  font-family: var(--serif-display);
  font-size: 1.8rem;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  margin-top: 4px;
}

/* Portrait illustration */
.hero-portrait {
  position: relative;
  aspect-ratio: 3/4;
  max-width: 460px;
  justify-self: center;
  background: var(--parchment-warm);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 30px 60px -20px rgba(28, 24, 20, 0.25),
    0 0 0 8px var(--parchment),
    0 0 0 9px var(--line);
}
.hero-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 60%, rgba(28, 24, 20, 0.08) 100%),
    radial-gradient(ellipse at center, transparent 50%, rgba(140, 106, 60, 0.15) 100%);
  pointer-events: none;
}
.hero-portrait svg,
.hero-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 25%;
}

/* ============= SECTION BASE ============= */
section {
  position: relative;
  z-index: 2;
  padding: 120px 40px;
  max-width: 1400px;
  margin: 0 auto;
}
.section-eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--bronze-deep);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--bronze);
}
.section-title {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 30px;
}
.section-title em { font-style: italic; color: var(--terracotta); }

.section-divider {
  position: relative;
  height: 80px;
  max-width: 1400px;
  margin: 0 auto;
  z-index: 2;
}
.section-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 40px;
  right: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}
.section-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--bronze);
}

/* ============= BOOK SECTION ============= */
.book-section {
  background: var(--parchment-deep);
  max-width: none;
  padding: 120px 0;
}
.book-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.book-cover {
  position: relative;
  aspect-ratio: 2/3;
  max-width: 380px;
  margin: 0 auto;
  perspective: 1000px;
}
.book-cover-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: rotateY(-12deg);
  transition: transform 0.6s ease;
  box-shadow:
    0 40px 60px -20px rgba(28, 24, 20, 0.4),
    -20px 0 30px -10px rgba(28, 24, 20, 0.2);
  border-radius: 2px;
}
.book-cover:hover .book-cover-img { transform: rotateY(-5deg); }
.book-cover-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(-12deg);
  transition: transform 0.6s ease;
  box-shadow:
    0 40px 60px -20px rgba(28, 24, 20, 0.4),
    -20px 0 30px -10px rgba(28, 24, 20, 0.2);
}
.book-cover:hover .book-cover-inner { transform: rotateY(-5deg); }
.book-cover-front {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2a3a2e 0%, #1c2820 50%, #0e1410 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 32px;
  overflow: hidden;
}
.book-cover-front::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(184, 146, 83, 0.4);
  pointer-events: none;
}
.book-cover-front::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.7 0 0 0 0 0.55 0 0 0 0 0.3 0 0 0 0.15 0'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.6;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.book-author {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold);
  z-index: 2;
  position: relative;
}
.book-title {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 2.6rem;
  line-height: 1;
  color: #f4ede0;
  z-index: 2;
  position: relative;
  letter-spacing: -0.01em;
}
.book-title em { font-style: normal; color: var(--gold); display: block; }
.book-footer {
  z-index: 2;
  position: relative;
  font-family: var(--serif-display);
  font-size: 0.85rem;
  color: rgba(244, 237, 224, 0.7);
  text-align: center;
  border-top: 1px solid rgba(184, 146, 83, 0.3);
  padding-top: 16px;
}
.book-ornament {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  opacity: 0.2;
  z-index: 1;
}

.book-text h2 { margin-bottom: 28px; }
.book-text p {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.book-text .lead {
  font-family: var(--serif-display);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 32px;
}
.book-details {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
}
.book-detail-item {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--stone);
}
.book-detail-item strong {
  display: block;
  font-family: var(--serif-body);
  font-size: 1.05rem;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  margin-top: 4px;
}

/* ============= MAP SECTION ============= */
#karte { padding-bottom: 80px; }
.map-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 50px;
  align-items: end;
}
.map-intro {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.map-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.map-stat { text-align: center; }
.map-stat-number {
  font-family: var(--serif-display);
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--terracotta);
  line-height: 1;
  display: block;
}
.map-stat-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--stone);
  margin-top: 6px;
}

.map-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  align-items: center;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 18px;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 2px;
}
.filter-btn:hover {
  border-color: var(--bronze);
  color: var(--bronze-deep);
}
.filter-btn.active {
  background: var(--ink);
  color: var(--parchment);
  border-color: var(--ink);
}
.filter-btn .count {
  margin-left: 8px;
  opacity: 0.6;
  font-size: 0.65rem;
}

.map-search {
  flex: 1;
  min-width: 200px;
  margin-left: auto;
  padding: 8px 16px;
  border: 1px solid var(--line);
  background: var(--parchment-warm);
  font-family: var(--serif-body);
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: 2px;
  font-style: italic;
}
.map-search:focus {
  outline: none;
  border-color: var(--bronze);
}

#map {
  height: 640px;
  width: 100%;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px var(--shadow);
  background: #c9d6c0;
  border-radius: 2px;
}

/* Leaflet overrides */
.leaflet-container {
  font-family: var(--serif-body) !important;
  background: #d4dac3 !important;
}
.leaflet-tile-pane {
  filter: sepia(0.35) hue-rotate(-10deg) saturate(0.7) brightness(1.02) contrast(0.95);
}
.leaflet-control-attribution {
  background: rgba(244, 237, 224, 0.85) !important;
  font-family: var(--mono) !important;
  font-size: 0.65rem !important;
  color: var(--ink-soft) !important;
}
.leaflet-control-attribution a { color: var(--terracotta) !important; }
.leaflet-control-zoom a {
  background: var(--parchment-warm) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  font-family: var(--serif-display) !important;
}
.leaflet-control-zoom a:hover { background: var(--parchment-deep) !important; }
.leaflet-popup-content-wrapper {
  background: var(--parchment-warm) !important;
  border-radius: 2px !important;
  box-shadow: 0 12px 30px -8px rgba(28,24,20,0.3) !important;
  border: 1px solid var(--line);
}
.leaflet-popup-content {
  margin: 18px 22px !important;
  font-family: var(--serif-body) !important;
  line-height: 1.6 !important;
  color: var(--ink) !important;
  max-width: 280px;
}
.leaflet-popup-tip { background: var(--parchment-warm) !important; }
.popup-title {
  font-family: var(--serif-display) !important;
  font-size: 1.25rem !important;
  font-weight: 500 !important;
  color: var(--ink) !important;
  line-height: 1.2;
  margin-bottom: 8px !important;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.popup-meta {
  font-family: var(--mono) !important;
  font-size: 0.7rem !important;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bronze-deep) !important;
  margin-bottom: 10px;
}
.popup-meta .tag {
  display: inline-block;
  background: var(--terracotta);
  color: var(--parchment);
  padding: 2px 8px;
  margin-right: 6px;
  font-size: 0.6rem;
  border-radius: 1px;
}
.popup-meta .tag.natural { background: var(--moss); }
.popup-desc {
  font-size: 0.92rem !important;
  color: var(--ink-soft) !important;
  margin-top: 8px;
}
.leaflet-popup-close-button { color: var(--ink-soft) !important; }

/* Custom markers */
.danger-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--parchment);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.danger-marker:hover { transform: scale(1.2); }
.danger-marker.cultural { background: var(--terracotta); }
.danger-marker.natural { background: var(--moss); }

.map-legend {
  margin-top: 18px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--stone);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.legend-item { display: flex; align-items: center; gap: 10px; }
.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--parchment);
  box-shadow: 0 0 0 1px var(--line);
}
.legend-dot.cultural { background: var(--terracotta); }
.legend-dot.natural { background: var(--moss); }

/* ============= PREFACE PAGE ============= */
.vorwort-header {
  max-width: 760px;
}

.preface {
  padding: 40px 40px 120px;
  max-width: 1400px;
  margin: 0 auto;
}
.preface-inner {
  max-width: 720px;
  margin: 0 auto;
}
.preface-lead {
  font-family: var(--serif-display);
  font-size: 1.7rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 50px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.preface-heading {
  font-family: var(--serif-display);
  font-weight: 500;
  font-style: italic;
  font-size: 2.1rem;
  line-height: 1.15;
  color: var(--ink);
  margin: 56px 0 24px;
  letter-spacing: -0.01em;
  text-align: center;
}
.preface p {
  font-family: var(--serif-body);
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 22px;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.preface p:first-of-type::first-letter,
.preface-heading + p::first-letter {
  font-family: var(--serif-display);
  font-size: 4.4rem;
  font-weight: 500;
  float: left;
  line-height: 0.9;
  margin: 6px 12px 0 0;
  color: var(--terracotta);
}
.preface em {
  font-style: italic;
  color: var(--ink);
}
.preface-quote {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--parchment-deep);
  border-left: 3px solid var(--terracotta);
  padding: 28px 32px;
  margin: 36px 0;
  text-align: left;
}
.preface-signature {
  margin-top: 60px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  text-align: right;
}
.preface-figure {
  margin: 50px 0;
  position: relative;
}
.preface-figure-small {
  max-width: 360px;
  margin: 30px auto 40px;
}
.preface-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px -20px var(--shadow);
  filter: saturate(0.92) contrast(1.02);
}
.preface-figure-fallback {
  display: none;
  width: 100%;
  aspect-ratio: 8/5;
  border: 1px solid var(--line);
  background: var(--parchment-deep);
  align-items: center;
  justify-content: center;
}
.preface-figure-fallback svg { width: 100%; height: 100%; display: block; }
/* Show fallback when image source is missing or hasn't loaded */
.preface-figure img:not([src]),
.preface-figure img[src=""] { display: none; }
.preface-figure img:not([src]) + .preface-figure-fallback,
.preface-figure img[src=""] + .preface-figure-fallback {
  display: flex;
}
.preface-figure figcaption {
  margin-top: 14px;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--stone);
  text-align: center;
  padding: 0 20px;
}

/* ============= PHOTO GALLERY ============= */
.preface-gallery {
  max-width: 1280px;
  margin: 100px auto 0;
  padding: 80px 40px 40px;
  border-top: 1px solid var(--line);
}
.preface-gallery-header {
  text-align: center;
  margin-bottom: 60px;
}
.preface-gallery-header .section-eyebrow {
  justify-content: center;
}
.preface-gallery-header .section-eyebrow::before {
  background: var(--bronze);
}
.preface-gallery-title {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 14px;
}
.preface-gallery-title em {
  font-style: italic;
  color: var(--terracotta);
  font-weight: 300;
}
.preface-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px 36px;
}
.gallery-item {
  display: flex;
  flex-direction: column;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
  box-shadow: 0 18px 36px -18px var(--shadow);
  filter: saturate(0.93) contrast(1.02);
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.02); }
.gallery-item figcaption {
  margin-top: 18px;
  padding: 0 4px;
  font-family: var(--serif-body);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.gallery-item figcaption strong {
  display: block;
  font-family: var(--serif-display);
  font-weight: 500;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 4px;
}

@media (max-width: 900px) {
  .preface-gallery { padding: 60px 24px 30px; margin-top: 60px; }
  .preface-gallery-grid { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .preface-figure-small { max-width: 260px; }
}
@media (max-width: 560px) {
  .preface-gallery-grid { grid-template-columns: 1fr; gap: 36px; }
}
.preface-signature-name {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.preface-signature-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--stone);
}

@media (max-width: 900px) {
  .preface { padding: 20px 24px 80px; }
  .preface-heading { font-size: 1.6rem; }
  .preface-lead { font-size: 1.35rem; }
  .preface p { font-size: 1rem; text-align: left; }
  .preface p:first-of-type::first-letter,
  .preface-heading + p::first-letter { font-size: 3.2rem; }
  .preface-quote { font-size: 1.1rem; padding: 20px 22px; }
  .preface-figure { margin: 36px 0; }
  .preface-figure figcaption { font-size: 0.88rem; padding: 0 8px; }
}

/* ============= PREFACE TEASER ON HOMEPAGE ============= */
.preface-teaser {
  margin-top: 40px;
  padding: 28px 32px;
  background: var(--parchment-warm);
  border-left: 3px solid var(--terracotta);
  border-radius: 2px;
}
.preface-teaser-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--bronze-deep);
  margin-bottom: 14px;
}
.preface-teaser-quote {
  font-family: var(--serif-display);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 18px;
}
.preface-teaser-link {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--terracotta);
  text-decoration: none;
  border-bottom: 1px solid var(--terracotta);
  padding-bottom: 2px;
  transition: opacity 0.2s;
  display: inline-block;
}
.preface-teaser-link:hover { opacity: 0.7; }

@media (max-width: 900px) {
  .preface-teaser { padding: 22px 20px; }
  .preface-teaser-quote { font-size: 1.1rem; }
}

/* ============= SUBPAGE HEADER (Beispiele, Vorwort) ============= */
.page-header {
  position: relative;
  z-index: 2;
  padding: 180px 40px 80px;
  max-width: 1400px;
  margin: 0 auto;
}
.page-header-inner {
  max-width: 900px;
}
.page-title {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 36px;
}
.page-title em {
  font-style: italic;
  color: var(--terracotta);
  font-weight: 300;
}
.page-title .breakpoint { display: block; }
.page-lead {
  font-family: var(--serif-display);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 36px;
  max-width: 760px;
}
.page-backlink {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bronze-deep);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid var(--bronze);
  transition: color 0.2s, border-color 0.2s;
}
.page-backlink:hover {
  color: var(--terracotta);
  border-color: var(--terracotta);
}
.examples-feature {
  margin: 70px 0 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--parchment-warm);
  box-shadow: 0 24px 48px -28px var(--shadow);
  overflow: hidden;
}
.examples-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.93) contrast(1.02);
}
.examples-feature figcaption {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: var(--serif-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.examples-feature figcaption strong {
  display: block;
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.2;
}

.page-cta {
  margin-top: 60px;
  padding: 40px;
  background: var(--parchment-deep);
  border: 1px solid var(--line);
  text-align: center;
  border-radius: 2px;
}
.page-cta p {
  font-family: var(--serif-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
  margin: 0;
}
.page-cta strong {
  color: var(--terracotta);
  font-weight: 600;
  font-style: normal;
}
.page-cta a {
  color: var(--terracotta);
  text-decoration: none;
  border-bottom: 1px solid var(--terracotta);
  transition: opacity 0.2s;
}
.page-cta a:hover { opacity: 0.7; }
.nav-links a.active {
  color: var(--terracotta);
}
.nav-links a.active::after {
  width: 100%;
}

.examples-section {
  padding: 60px 40px 120px;
  max-width: 1400px;
  margin: 0 auto;
}
.examples-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px 60px;
}
.example-card {
  display: flex;
  flex-direction: column;
}
.example-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--parchment-deep);
  border: 1px solid var(--line);
  margin-bottom: 28px;
  box-shadow: 0 20px 40px -20px var(--shadow);
}
.example-image-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}
.example-image-fallback svg { width: 100%; height: 100%; display: block; }
.example-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.03);
  transition: transform 0.6s ease;
  position: relative;
  z-index: 1;
}
.example-image:hover img { transform: scale(1.03); }

.example-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--parchment);
  background: var(--terracotta);
  padding: 4px 12px;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 14px;
  border-radius: 1px;
}
.example-tag.natural { background: var(--moss); }
.example-name {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.example-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bronze-deep);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.example-meta em {
  font-style: italic;
  font-family: var(--serif-body);
  text-transform: none;
  letter-spacing: 0;
  color: var(--moss);
  font-size: 0.85rem;
}
.example-content p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .page-header { padding: 130px 24px 60px; }
  .examples-grid { grid-template-columns: 1fr; gap: 60px; }
  .examples-section { padding: 40px 24px 80px; }
  .page-cta { padding: 28px 20px; }
  .page-cta p { font-size: 1.15rem; }
  .examples-feature { grid-template-columns: 1fr; }
  .examples-feature img { aspect-ratio: 4/3; }
  .examples-feature figcaption { padding: 32px 24px; }
  .examples-feature figcaption strong { font-size: 1.35rem; }
}


.bio-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-top: 40px;
}
.bio-aside {
  position: sticky;
  top: 120px;
  height: fit-content;
}
.bio-quote {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--ink);
  padding-left: 24px;
  border-left: 2px solid var(--terracotta);
  margin-bottom: 36px;
}
.bio-quote-attr {
  display: block;
  margin-top: 14px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--stone);
}

.bio-text p {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.bio-text p:first-of-type::first-letter {
  font-family: var(--serif-display);
  font-size: 5.5rem;
  font-weight: 500;
  float: left;
  line-height: 0.9;
  margin: 4px 12px 0 0;
  color: var(--terracotta);
}

.bio-text h3 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 1.8rem;
  margin: 40px 0 18px;
  color: var(--ink);
  font-style: italic;
}
.bio-figure {
  margin: 32px 0;
}
.bio-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  box-shadow: 0 18px 36px -18px var(--shadow);
  filter: saturate(0.93) contrast(1.02);
}
.bio-figure figcaption {
  margin-top: 12px;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--stone);
  text-align: center;
}

/* Timeline */
.timeline {
  margin-top: 60px;
  position: relative;
  padding-left: 0;
}
.timeline-title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-style: italic;
  font-size: 2rem;
  margin-bottom: 36px;
  color: var(--ink);
}
.timeline-list {
  list-style: none;
  position: relative;
}
.timeline-list::before {
  content: '';
  position: absolute;
  left: 90px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}
.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 30px;
  padding: 16px 0;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 86px;
  top: 24px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--parchment);
  border: 2px solid var(--bronze);
}
.timeline-year {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--bronze-deep);
  font-weight: 500;
  padding-top: 4px;
  text-align: right;
}
.timeline-content {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.timeline-content strong {
  color: var(--ink);
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
  font-family: var(--serif-display);
  font-size: 1.15rem;
}

/* ============= HONORS ============= */
.honors-section {
  background: var(--ink);
  max-width: none;
  color: var(--parchment);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.honors-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.8 0 0 0 0 0.65 0 0 0 0 0.4 0 0 0 0.1 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}
.honors-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}
.honors-section .section-title { color: var(--parchment); }
.honors-section .section-eyebrow { color: var(--gold); }
.honors-section .section-eyebrow::before { background: var(--gold); }

.honors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: rgba(184, 146, 83, 0.2);
  margin-top: 40px;
}
.honor-card {
  background: var(--ink);
  padding: 32px 28px;
  transition: background 0.3s;
}
.honor-card:hover { background: #2a241e; }
.honor-year {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.honor-title {
  font-family: var(--serif-display);
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--parchment);
  margin-bottom: 8px;
  font-style: italic;
  font-weight: 400;
}
.honor-where {
  font-family: var(--serif-body);
  font-size: 0.9rem;
  color: rgba(244, 237, 224, 0.6);
}

/* ============= PUBLICATIONS ============= */
.publications {
  display: grid;
  gap: 1px;
  background: var(--line);
  margin-top: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pub-item {
  background: var(--parchment);
  padding: 28px 0;
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 30px;
  align-items: baseline;
  transition: background 0.2s;
}
.pub-item:hover { background: var(--parchment-warm); }
.pub-year {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--bronze-deep);
  font-weight: 500;
}
.pub-title {
  font-family: var(--serif-display);
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--ink);
  font-style: italic;
}
.pub-publisher {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--stone);
  text-align: right;
}

/* ============= CONTACT ============= */
.contact-section {
  background: var(--parchment-deep);
  max-width: none;
  padding: 120px 0;
  position: relative;
}
.contact-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-form-wrap {
  background: var(--parchment-warm);
  padding: 48px;
  border: 1px solid var(--line);
}
.contact-form { display: grid; gap: 24px; }
.form-group label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--stone);
  display: block;
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: var(--parchment);
  font-family: var(--serif-body);
  font-size: 1rem;
  color: var(--ink);
  border-radius: 2px;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--bronze);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 140px; font-family: var(--serif-body); }
.form-submit {
  background: var(--ink);
  color: var(--parchment);
  border: none;
  padding: 16px 32px;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 2px;
  justify-self: start;
}
.form-submit:hover { background: var(--terracotta); }

.contact-info p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 30px;
}
.contact-detail {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.contact-detail-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--stone);
  margin-bottom: 6px;
}
.contact-detail-value {
  font-family: var(--serif-display);
  font-size: 1.3rem;
  color: var(--ink);
  font-style: italic;
}

/* ============= FOOTER ============= */
footer {
  background: var(--ink);
  color: var(--parchment);
  padding: 60px 40px 40px;
  text-align: center;
  position: relative;
  z-index: 2;
}
footer .footer-inner { max-width: 1400px; margin: 0 auto; }
footer .footer-ornament {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 24px;
}
footer .footer-name {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.6rem;
  margin-bottom: 12px;
}
footer .footer-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(244, 237, 224, 0.5);
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(244, 237, 224, 0.1);
}
footer .footer-credits {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 0.78rem;
  color: rgba(244, 237, 224, 0.4);
  margin-top: 18px;
  line-height: 1.6;
}
footer .footer-credits a {
  color: rgba(244, 237, 224, 0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 237, 224, 0.2);
  transition: color 0.2s;
}
footer .footer-credits a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ============= RESPONSIVE ============= */
@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--parchment);
    flex-direction: column;
    padding: 20px 40px 30px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 400px; }
  .hero, .book-inner, .bio-grid, .map-header, .contact-inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .hero { padding-top: 130px; }
  .hero-portrait { max-width: 320px; }
  section { padding: 80px 24px; }
  .book-section, .honors-section, .contact-section { padding: 80px 0; }
  .book-inner, .honors-inner, .contact-inner { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }
  .bio-aside { position: static; }
  .map-stats { grid-template-columns: repeat(2, 1fr); }
  .pub-item { grid-template-columns: 80px 1fr; }
  .pub-publisher { grid-column: 2; text-align: left; }
  .timeline-list::before { left: 70px; }
  .timeline-item { grid-template-columns: 70px 1fr; gap: 20px; }
  .timeline-item::before { left: 66px; }
  .contact-form-wrap { padding: 32px 24px; }
  #map { height: 500px; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 3rem; }
  .section-title { font-size: 2.2rem; }
  .map-stats { grid-template-columns: 1fr 1fr; }
  .map-controls { flex-direction: column; align-items: stretch; }
  .map-search { margin-left: 0; }
  .book-title { font-size: 2rem; }
  .bio-text p:first-of-type::first-letter { font-size: 4rem; }
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
