/* =================================================================
   SAARLOUIS 1815–frühes 20. Jh. · Stylesheet v2
   Modernes, einladendes Design mit Preußischem Adler-Hero
================================================================= */

:root {
  --bg: #0a1428;
  --bg-2: #0f1e3a;
  --paper: #f5efe1;
  --ink: #1a2438;
  --prussian: #003049;
  --gold: #d4af37;
  --gold-2: #b08d2e;
  --cream: #f8f1dd;
  --text: #e9e4d3;
  --text-soft: #c5bda6;
  --muted: #8b8675;
  --danger: #b91c1c;
  --ok: #16a34a;
  --line: rgba(212,175,55,0.25);
  --shadow: 0 18px 60px rgba(0,0,0,0.45);
  --shadow-sm: 0 6px 24px rgba(0,0,0,0.3);
  --radius: 14px;
  --radius-sm: 8px;
  --t: 0.3s cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t); }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--ink); padding: 10px 16px;
  border-radius: 6px; z-index: 9999;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ============ HEADER ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(10, 30, 63, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 12px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-title {
  font-size: 19px; color: var(--gold); font-weight: 700; line-height: 1.1;
}
.brand-sub {
  font-size: 10px; color: var(--text-soft);
  text-transform: uppercase; letter-spacing: 0.18em;
  margin-top: 2px;
}
.main-nav { display: flex; gap: 4px; align-items: center; }
.main-nav a {
  font-size: 13px; padding: 8px 12px; border-radius: 6px;
  color: var(--text);
}
.main-nav a:hover { color: var(--gold); background: rgba(212,175,55,0.08); }
.main-nav .cta-link {
  background: var(--gold); color: var(--ink); font-weight: 700;
  padding: 9px 18px; border-radius: 8px;
}
.main-nav .cta-link:hover { color: var(--ink); }

.nav-toggle {
  display: none; font-size: 28px; color: var(--gold);
  padding: 4px 12px;
}

/* ============ HERO MIT PREUßISCHEM ADLER ============ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 28px 80px; text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  filter: sepia(0.1) contrast(1.15) brightness(0.55) saturate(0.85);
  animation: heroZoom 35s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(10,20,40,0.4) 0%, rgba(10,20,40,0.85) 70%, rgba(10,20,40,0.95) 100%),
    linear-gradient(180deg, rgba(10,20,40,0.4) 0%, rgba(10,20,40,0.3) 50%, rgba(10,20,40,0.95) 100%);
}
.hero-content {
  position: relative; z-index: 2; max-width: 920px;
}
.hero-content .eyebrow {
  display: inline-block; font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold);
  padding: 6px 16px; border: 1px solid var(--gold); border-radius: 4px;
  margin-bottom: 28px;
  backdrop-filter: blur(4px);
}
.hero-title {
  font-family: 'Georgia', serif;
  font-size: clamp(38px, 7vw, 84px);
  color: var(--cream);
  line-height: 1.0;
  margin-bottom: 24px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.7);
  font-weight: 700;
}
.hero-line-1 { display: block; font-size: 0.85em; color: var(--gold); }
.hero-line-2 { display: block; font-size: 0.6em; color: var(--cream); }
.hero-dash { color: var(--gold); font-weight: 400; }
.hero-subtitle {
  font-family: 'Georgia', serif;
  font-size: clamp(18px, 2.5vw, 28px);
  color: var(--cream); font-weight: 400;
  margin-bottom: 28px;
  font-style: italic;
}
.hero-subtitle em { color: var(--gold); font-style: italic; }
.hero-lead {
  font-size: 17px; max-width: 700px; margin: 0 auto 36px;
  color: var(--text); line-height: 1.6;
}
.hero-lead strong { color: var(--gold); }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.hero-meta {
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
  font-size: 13px; color: var(--text-soft);
  padding: 16px 20px;
  background: rgba(0,0,0,0.3); border-radius: 40px;
  backdrop-filter: blur(8px);
  display: inline-flex;
}
.hero-meta span {
  padding: 4px 12px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.hero-meta span:last-child { border-right: 0; }

.hero-scroll-cue {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%);
  color: var(--gold); font-size: 28px;
  animation: bounce 2s infinite;
  z-index: 2;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 26px; font-size: 14px; font-weight: 600;
  border-radius: 8px; cursor: pointer; transition: all var(--t);
  letter-spacing: 0.02em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--ink); box-shadow: 0 4px 14px rgba(212,175,55,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(212,175,55,0.5); }
.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--cream); border: 1px solid rgba(212,175,55,0.4);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(212,175,55,0.18); color: var(--gold); }
.btn-line {
  background: transparent; color: var(--gold); border: 1px solid var(--gold);
}
.btn-line:hover { background: var(--gold); color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 12px; }

/* ============ SECTIONS ============ */
section { padding: 100px 0; }
section h2 {
  font-family: 'Georgia', serif;
  font-size: clamp(30px, 4vw, 48px);
  color: var(--cream); line-height: 1.15; margin-bottom: 14px;
}
.sub { font-size: 16px; color: var(--text-soft); margin-bottom: 40px; max-width: 760px; }
.eyebrow {
  display: inline-block; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.25em; color: var(--gold-2); font-weight: 600;
  margin-bottom: 12px;
}

/* ============ MANIFEST ============ */
.manifest { background: var(--paper); color: var(--ink); }
.manifest h2 { color: var(--prussian); }
.manifest-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px;
  margin: 24px 0;
}
.manifest p { font-size: 16px; margin-bottom: 14px; color: var(--ink); }
.manifest p strong { color: var(--prussian); }
.manifest-quote {
  background: linear-gradient(135deg, var(--prussian), #0a1e3f);
  color: var(--cream); padding: 32px; border-radius: 12px;
  border-left: 4px solid var(--gold);
}
.manifest-quote blockquote {
  font-family: 'Georgia', serif; font-size: 19px;
  font-style: italic; line-height: 1.5; margin-bottom: 12px;
}
.manifest-quote cite { font-size: 13px; color: var(--gold); font-style: normal; }
.meta-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 36px;
}
.meta-stats > div {
  text-align: center; padding: 20px 12px;
  background: white; border-radius: 8px; border-top: 3px solid var(--gold);
}
.meta-stats strong {
  display: block; font-family: 'Georgia', serif;
  font-size: 38px; color: var(--prussian); font-weight: 700;
}
.meta-stats span { font-size: 12px; color: var(--ink); text-transform: uppercase; letter-spacing: 0.1em; }

/* ============ PHASEN (ANKLICKBAR) ============ */
.phases { background: var(--bg-2); }
.phase-grid {
  display: grid; gap: 16px;
}
.phase-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}
.phase-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--gold);
  transform: scaleY(0); transition: transform var(--t);
}
.phase-card:hover { border-color: var(--gold); transform: translateX(4px); }
.phase-card:hover::before { transform: scaleY(1); }
.phase-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; flex-wrap: wrap; margin-bottom: 12px;
}
.phase-name {
  font-family: 'Georgia', serif; font-size: 21px; color: var(--gold);
}
.phase-range {
  font-family: 'Georgia', serif; font-size: 17px; color: var(--cream);
  background: rgba(212,175,55,0.1); padding: 4px 10px; border-radius: 4px;
}
.phase-count {
  display: inline-block; background: var(--gold); color: var(--ink);
  padding: 3px 10px; border-radius: 12px;
  font-size: 12px; font-weight: 700;
}
.phase-summary { font-size: 15px; color: var(--text); margin-bottom: 8px; }
.phase-cta {
  font-size: 12px; color: var(--gold); font-weight: 600;
  margin-top: 10px;
}

/* ============ ZWISCHEN DEN ZEILEN ============ */
.zwischen { background: linear-gradient(180deg, #050d1f 0%, #0a1428 100%); }
.zwischen h2 { color: var(--gold); font-style: italic; }
.zwischen .sub { color: var(--text); font-style: italic; font-size: 17px; }
.zw-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}
.zw-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  border-left: 4px solid var(--gold);
}
.zw-id {
  position: absolute; top: -10px; right: 14px;
  background: var(--gold); color: var(--ink);
  padding: 4px 12px; border-radius: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
}
.zw-hook {
  font-size: 13px; color: var(--gold); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.zw-title {
  font-family: 'Georgia', serif; font-size: 21px; color: var(--cream);
  margin-bottom: 14px;
}
.zw-observation {
  font-size: 14px; color: var(--text); line-height: 1.6; margin-bottom: 14px;
}
.zw-evidence {
  font-size: 12px; color: var(--text-soft); font-style: italic;
  padding: 8px 12px; background: rgba(0,0,0,0.3);
  border-radius: 4px; margin-bottom: 12px;
}
.zw-lesson {
  font-size: 14px; color: var(--cream); padding-top: 12px;
  border-top: 1px dashed var(--line);
  margin-top: 12px;
}
.zw-lesson::before {
  content: '➜ '; color: var(--gold); font-weight: 700;
}
.zw-footer {
  text-align: center; margin-top: 50px;
  font-size: 15px; color: var(--text-soft);
  padding: 20px;
  border-top: 1px solid var(--line);
}
.zw-footer em { color: var(--gold); }

/* ============ DISKREPANZEN ============ */
.disks { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.disk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}
.disk-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: all var(--t);
}
.disk-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.disk-head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 14px; flex-wrap: wrap; }
.disk-id {
  background: var(--danger); color: white;
  padding: 3px 10px; border-radius: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
}
.disk-title { font-family: 'Georgia', serif; font-size: 19px; color: var(--gold); }
.disk-section { margin-bottom: 12px; }
.disk-label {
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-soft); margin-bottom: 4px; font-weight: 700;
}
.disk-claim {
  font-size: 14px; color: var(--text-soft);
  border-left: 3px solid var(--gold); padding-left: 10px;
}
.disk-fact {
  font-size: 14px; color: var(--text);
  border-left: 3px solid var(--danger); padding-left: 10px;
}
.disk-source {
  margin-top: 12px; padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--text-soft); font-style: italic;
}

/* ============ INGENIEURE ============ */
.engineers { background: var(--paper); color: var(--ink); }
.engineers h2 { color: var(--prussian); }
.eng-table-wrap { overflow-x: auto; }
.eng-table {
  width: 100%; border-collapse: collapse;
  background: white; border-radius: 8px; overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
.eng-table th {
  background: var(--prussian); color: var(--cream);
  padding: 12px 14px; text-align: left; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.eng-table td {
  padding: 12px 14px; border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 14px;
}
.eng-table td:first-child { font-weight: 700; color: var(--prussian); }
.eng-table tbody tr:hover { background: rgba(212,175,55,0.08); }

/* ============ GALERIE ============ */
.gallery { background: var(--bg-2); }
.gal-categories {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.gal-tab {
  background: transparent; color: var(--text-soft);
  border: 1px solid var(--line);
  padding: 10px 20px; border-radius: 24px;
  font-size: 13px; font-weight: 600;
  transition: all var(--t);
}
.gal-tab:hover { border-color: var(--gold); color: var(--gold); }
.gal-tab.active {
  background: var(--gold); color: var(--ink); border-color: var(--gold);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.gallery-item {
  position: relative; aspect-ratio: 4/3;
  border-radius: var(--radius-sm); overflow: hidden;
  cursor: pointer; background: var(--ink);
  border: 1px solid var(--line);
  transition: transform var(--t);
}
.gallery-item:hover { transform: translateY(-3px); border-color: var(--gold); }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: sepia(0.15) contrast(1.05);
}
.gallery-item .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
  padding: 36px 12px 10px; color: var(--cream);
  font-family: 'Georgia', serif; font-size: 13px;
}
.gallery-item .year-tag {
  position: absolute; top: 10px; left: 10px;
  background: var(--gold); color: var(--ink);
  padding: 3px 8px; border-radius: 4px;
  font-size: 10px; font-weight: 700;
}

/* ============ VAUBAN / INUNDATION ============ */
.inundation-section {
  background:
    linear-gradient(135deg, rgba(10,30,63,0.92), rgba(0,48,73,0.92)),
    radial-gradient(ellipse at center, #1e40af, #0a1428);
  padding: 100px 0; color: var(--cream);
}
.inundation-section h2 { color: var(--cream); }
.inundation-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.inundation-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 24px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: all var(--t);
}
.inundation-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.ic-icon { font-size: 48px; margin-bottom: 14px; }
.inundation-card h3 {
  font-family: 'Georgia', serif; font-size: 24px;
  color: var(--gold); margin-bottom: 12px;
}
.inundation-card p { font-size: 14px; color: var(--text); }
.inundation-card strong { color: var(--cream); }

/* ============ HAAK ============ */
.haak { background: var(--paper); color: var(--ink); padding: 100px 0; }
.haak-card {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px;
  align-items: center;
}
.haak-portrait {
  position: relative; aspect-ratio: 4/5;
  border-radius: var(--radius); overflow: hidden;
  border: 6px solid var(--gold);
  background: var(--royal, #0a1e3f);
  box-shadow: var(--shadow);
}
.haak-portrait img {
  width: 100%; height: 100%; object-fit: cover;
  filter: sepia(0.35) contrast(1.1);
}
.haak-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
  padding: 30px 14px 12px;
  color: var(--cream);
  font-family: 'Georgia', serif; font-size: 16px;
  text-align: center;
}
.haak h2 { color: var(--prussian); }
.haak h2 .accent { color: var(--gold-2); font-style: italic; }
.haak p { font-size: 16px; color: var(--ink); margin-bottom: 14px; }
.haak p strong { color: var(--prussian); }
.haak-quote {
  margin-top: 20px; padding: 18px 22px;
  background: rgba(0,48,73,0.08); border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.haak-quote p {
  font-family: 'Georgia', serif; font-style: italic;
  font-size: 17px; color: var(--prussian); margin: 0;
}

/* ============ FEEDBACK & RATING ============ */
.feedback { background: var(--paper); color: var(--ink); padding: 100px 0; }
.feedback h2 { color: var(--prussian); }
.feedback-locked {
  background: white; border: 2px dashed rgba(0,48,73,0.25);
  border-radius: 12px; padding: 36px; text-align: center;
}
.feedback-locked p { margin-bottom: 10px; }
.feedback-locked p:last-child { color: var(--ink); }

.user-area { background: white; border-radius: 12px; padding: 28px; }
.user-row {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 20px; margin-bottom: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
#meAvatar {
  width: 50px; height: 50px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--gold); background: var(--prussian);
}
.me-name { font-weight: 700; color: var(--prussian); font-size: 16px; }

.rating-row {
  margin-bottom: 24px; padding: 20px;
  background: rgba(212,175,55,0.08); border-radius: 8px;
}
.rating-row h3 { font-family: 'Georgia', serif; color: var(--prussian); margin-bottom: 10px; }
.stars { display: flex; gap: 6px; margin-bottom: 8px; }
.star {
  background: none; font-size: 32px; color: rgba(212,175,55,0.3);
  transition: all 0.2s; padding: 4px; line-height: 1;
}
.star.filled, .star:hover { color: var(--gold); transform: scale(1.15); }
.rating-status { font-size: 13px; color: var(--ink); font-style: italic; }

.feedback-form { margin: 20px 0; }
.feedback-form label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--prussian); margin-bottom: 6px;
}
.feedback-form textarea {
  width: 100%; padding: 12px;
  border: 1px solid rgba(0,48,73,0.2); border-radius: 8px;
  font-family: inherit; font-size: 14px; resize: vertical;
  min-height: 80px; background: var(--cream);
}
.feedback-form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.form-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px;
}
.char-count { font-size: 12px; color: var(--muted); }
.form-error {
  background: rgba(185,28,28,0.08); color: var(--danger);
  padding: 8px 12px; border-radius: 6px; font-size: 13px;
  margin: 10px 0; border-left: 3px solid var(--danger);
}
.feedback-list { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.fb-item {
  background: white; border-radius: 8px; padding: 18px;
  border-left: 4px solid var(--gold);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.fb-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.fb-avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--gold); background: var(--prussian);
}
.fb-name { font-weight: 600; color: var(--prussian); }
.fb-time { font-size: 12px; color: #6b7280; margin-left: auto; }
.fb-text { font-size: 14px; color: var(--ink); }
.fb-actions { display: flex; gap: 12px; margin-top: 8px; }
.fb-actions button {
  background: none; color: #6b7280; font-size: 12px; padding: 2px 6px;
}
.fb-actions button:hover { color: var(--prussian); }
.empty-msg { color: #6b7280; font-style: italic; text-align: center; padding: 20px; }

/* ============ ADMIN ============ */
.admin-panel {
  margin-top: 30px; padding: 24px;
  background: var(--bg); color: var(--text);
  border-radius: 12px; border: 2px solid var(--danger);
}
.admin-panel h3 { font-family: 'Georgia', serif; color: var(--danger); margin-bottom: 16px; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-tab {
  background: transparent; color: var(--text-soft);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 16px; border-radius: 6px; font-size: 13px;
}
.admin-tab.active, .admin-tab:hover {
  background: var(--danger); color: white; border-color: var(--danger);
}
.admin-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; margin-bottom: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px; flex-wrap: wrap;
}
.admin-row .ar-name { font-weight: 600; color: var(--cream); flex: 1; }
.admin-row .ar-email { font-size: 12px; color: var(--text-soft); }
.admin-row .ar-badge {
  background: var(--ok); color: white;
  padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700;
}

/* ============ FOOTER ============ */
.site-footer {
  background: #050d1f; padding: 40px 0; text-align: center;
  border-top: 3px solid var(--gold); color: var(--text-soft);
}
.site-footer p { margin: 6px 0; }
.site-footer strong { color: var(--gold); }
.site-footer .muted { font-size: 12px; opacity: 0.75; }

/* ============ MODALS ============ */
.modal {
  position: fixed; inset: 0; z-index: 500;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal[aria-hidden="false"] { display: flex; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-bg {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(6px);
}
.modal-box {
  position: relative; z-index: 1;
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius); padding: 32px;
  max-width: 520px; width: 100%;
  max-height: 92vh; overflow-y: auto;
  border-top: 5px solid var(--gold);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.modal-wide { max-width: 800px; }
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: rgba(0,0,0,0.05); border-radius: 50%;
  font-size: 24px; line-height: 1; color: var(--ink);
}
.modal-close:hover { background: var(--danger); color: white; }

/* PHASE MODAL */
.phase-modal-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 14px; flex-wrap: wrap; margin-bottom: 16px;
}
.phase-modal-head h3 {
  font-family: 'Georgia', serif; font-size: 28px; color: var(--prussian);
}
.phase-modal-range {
  font-family: 'Georgia', serif; font-size: 20px; color: var(--gold-2);
  background: rgba(212,175,55,0.15); padding: 6px 14px;
  border-radius: 6px;
}
.phase-modal-summary {
  font-size: 16px; color: var(--ink); margin-bottom: 20px;
  padding: 14px; background: rgba(212,175,55,0.1);
  border-left: 4px solid var(--gold); border-radius: 0 6px 6px 0;
}
.phase-modal-context {
  font-size: 15px; color: var(--ink-soft, #2e3a55);
  margin-bottom: 18px; line-height: 1.7;
}
.phase-modal-events {
  margin: 16px 0; padding: 16px;
  background: rgba(0,48,73,0.05); border-radius: 8px;
  border-left: 3px solid var(--prussian);
}
.phase-modal-events h4 {
  font-size: 13px; color: var(--prussian); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 10px;
}
.phase-modal-events ul { margin: 0; padding-left: 20px; }
.phase-modal-events li {
  font-size: 14px; color: var(--ink); margin-bottom: 6px;
}
.phase-modal-sources {
  font-size: 12px; color: var(--ink-soft, #2e3a55);
  font-style: italic; padding-top: 12px;
  border-top: 1px dashed rgba(0,48,73,0.2);
}

/* AUTH MODAL */
.auth-tabs {
  display: flex; margin: -32px -32px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.auth-tab {
  flex: 1; background: transparent; padding: 14px;
  font-size: 14px; font-weight: 600; color: #6b7280;
  position: relative;
}
.auth-tab.active { color: var(--prussian); }
.auth-tab.active::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 3px; background: var(--gold);
}
.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-form h3 { font-family: 'Georgia', serif; font-size: 24px; color: var(--prussian); margin-bottom: 16px; }
.auth-form label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--prussian); margin: 12px 0 4px;
}
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="date"] {
  width: 100%; padding: 10px 12px;
  border: 1px solid rgba(0,48,73,0.2); border-radius: 6px;
  font-size: 14px; font-family: inherit; background: var(--cream);
  color: var(--ink);
}
.auth-form input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.upload-label {
  display: block; margin: 14px 0;
  padding: 12px; border: 2px dashed rgba(0,48,73,0.25);
  border-radius: 6px; cursor: pointer;
  background: rgba(212,175,55,0.05);
}
.upload-label input { display: none; }
.upload-label span { font-size: 13px; color: var(--ink); font-weight: 600; }
.check-line {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--ink); margin: 14px 0;
}
.check-line input { margin-top: 4px; }
.form-foot { margin-top: 16px; font-size: 13px; text-align: center; color: var(--ink); }
.form-foot a { color: var(--prussian); font-weight: 600; }

/* LIGHTBOX */
.lightbox-box {
  position: relative; z-index: 1;
  max-width: 95vw; max-height: 92vh;
  display: flex; flex-direction: column; align-items: center;
}
#lbImg { max-width: 95vw; max-height: 78vh; object-fit: contain; border-radius: 8px; }
.lb-caption { margin-top: 12px; color: var(--cream); font-family: 'Georgia', serif; font-size: 16px; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.5); color: var(--gold);
  width: 50px; height: 50px; border-radius: 50%;
  font-size: 36px; line-height: 1; z-index: 2;
}
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-nav:hover { background: var(--gold); color: var(--ink); }

/* ============ TOAST ============ */
.toast-container {
  position: fixed; top: 80px; right: 20px;
  z-index: 9999; display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: white; color: var(--ink);
  padding: 14px 18px; border-radius: 8px;
  box-shadow: var(--shadow-sm); border-left: 4px solid var(--gold);
  font-size: 14px; min-width: 240px; max-width: 360px;
}
.toast.ok { border-left-color: var(--ok); }
.toast.err { border-left-color: var(--danger); }

/* ============ RESPONSIVE ============ */
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: 60px; right: 0; left: 0;
    background: #0a1e3f; flex-direction: column;
    padding: 16px; gap: 0;
    border-top: 1px solid var(--line);
    transform: translateY(-200%); transition: transform 0.3s;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .main-nav .cta-link { margin-top: 8px; }

  .manifest-grid, .haak-card { grid-template-columns: 1fr; gap: 30px; }
  .inundation-grid { grid-template-columns: 1fr; }
  .meta-stats { grid-template-columns: repeat(2, 1fr); }
  .zw-grid { grid-template-columns: 1fr; }
  .disk-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  section { padding: 70px 0; }
  .hero { min-height: 90vh; padding-top: 100px; }
}
