/* ============================================================================
   Kölner Straßenlexikon — Design Tokens & Base Styles
   Importiere diese Datei einmal global (z. B. im Layout-Template)
   und nutze die Variablen in deinen Component-Stylesheets.
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400&family=Inter+Tight:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ---------- Farben: Flächen ---------- */
  --paper:    #f3f5f8;   /* Default-Hintergrund (kühles Off-White) */
  --paper-2:  #e6ebf1;   /* Karten-Flächen, Hover */
  --paper-3:  #dde4ec;   /* Tiefere Flächen */

  /* ---------- Farben: Text ---------- */
  --ink:      #0e1a2b;   /* Haupttext + dunkle Sektionen */
  --ink-soft: #44546a;   /* Sekundärtext (Werkladen-Grau) */
  --ink-mute: #768297;   /* Tertiärtext, Captions */

  /* ---------- Farben: Linien ---------- */
  --rule:      #c5cdd8;
  --rule-soft: #dde2ea;

  /* ---------- Farben: Akzent (Werkladen-Blau-Familie) ---------- */
  --accent:        #1f4f9e;   /* Primär-Akzent */
  --accent-deep:   #143570;   /* Tiefere Hervorhebungen */
  --accent-bright: #3a76d4;   /* Auf dunklem Hintergrund */

  /* ---------- Farben: Sekundär-Akzente ---------- */
  --steel:  #6b8aab;   /* Stahlblau – historische Fotos */
  --silver: #8e9aab;

  /* ---------- Foto-Kategorie-Farben (verbindlich) ---------- */
  --cat-aktuell: var(--accent);
  --cat-hist:    var(--steel);
  --cat-luft:    var(--accent-bright);

  /* ---------- Schriften ---------- */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body:    'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* ---------- Layout ---------- */
  --container-max: 1400px;
  --container-pad: 32px;
  --container-pad-mobile: 24px;

  /* ---------- Schatten ---------- */
  --shadow:        0 1px 0 rgba(14, 26, 43, .04), 0 12px 32px -16px rgba(14, 26, 43, .22);
  --shadow-strong: 0 1px 0 rgba(14, 26, 43, .04), 0 30px 80px -30px rgba(14, 26, 43, .4);

  /* ---------- Easing ---------- */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

/* ============================================================================
   Reset (minimal, ergänze Reset oder Normalize nach Bedarf)
   ============================================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ============================================================================
   Atmosphäre — globaler Hintergrund (Noise + Tints)
   Entfernen würde dem Design die Tiefe nehmen.
   ============================================================================ */

body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  background-image:
    radial-gradient(circle at 18% 25%, rgba(31, 79, 158, .05) 0%, transparent 55%),
    radial-gradient(circle at 82% 75%, rgba(107, 138, 171, .05) 0%, transparent 55%);
}

body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 2;
  opacity: .05;
  mix-blend-mode: multiply;
  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.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.1 0 0 0 0 0.17 0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* Wichtig: Inhalte stehen über den Atmosphäre-Layern. */
.wrap, main, header, footer { position: relative; z-index: 3; }

/* ============================================================================
   Typografie-Basis
   ============================================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1;
  margin: 0;
}

h1 {
  font-size: clamp(52px, 7.5vw, 120px);
  line-height: .92;
  letter-spacing: -.035em;
}

h2 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: .95;
}

h3 {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -.015em;
  font-weight: 500;
}

h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
}

/* Kursive Hervorhebungen in Headlines (zentrales Stilmittel) */
h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent-deep);
}
h2 em, h3 em { color: var(--accent); }

p { margin: 0 0 16px; max-width: 70ch; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

::selection { background: var(--accent); color: #fff; }

/* ============================================================================
   Wiederkehrende Komponenten-Klassen
   ============================================================================ */

/* ---------- Container ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
}

/* ---------- Meta / Mono-Caption ---------- */
.meta {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Section-Head ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 24px;
  margin-bottom: 56px;
}
.section-head h2 em { font-style: italic; color: var(--accent-deep); }
.section-head .section-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: right;
}
.section-head .section-meta strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 24px 0 0;
}
.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .2s;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--rule); }
.breadcrumb strong { color: var(--ink); font-weight: 500; }

/* ---------- Foto-Anzahl-Badge ---------- */
.photos-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(31, 79, 158, .08);
  padding: 2px 6px;
  border-radius: 3px;
}

/* ---------- Foto-Kategorie-Pill ---------- */
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .2s;
}
.cat-pill:hover { border-color: var(--accent); color: var(--accent); }
.cat-pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cat-aktuell);
}
.cat-pill.hist .dot { background: var(--cat-hist); }
.cat-pill.luft .dot { background: var(--cat-luft); }
.cat-pill strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  margin-left: 4px;
}

/* ---------- Filter-Pill (alphabet, Sortierung etc.) ---------- */
.filter-pill {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .2s;
}
.filter-pill:hover,
.filter-pill.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(31, 79, 158, .06);
}

/* ---------- Buttons ---------- */
.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--ink);
  color: var(--paper);
  padding: 16px 24px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: background .3s;
  border: none;
  cursor: pointer;
}
.btn-dark:hover { background: var(--accent); }

.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--paper);
  color: var(--ink);
  padding: 16px 24px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: background .3s, color .3s;
  border: none;
  cursor: pointer;
}
.btn-light:hover { background: var(--accent-bright); color: var(--paper); }

/* ---------- Reveal-Animation (Scroll-In) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================================
   Mobile-Anpassungen
   ============================================================================ */

@media (max-width: 1000px) {
  .container { padding-left: var(--container-pad-mobile); padding-right: var(--container-pad-mobile); }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-head h2 { font-size: 42px; }
}
