/* ============================================================
   Whisky-Reise — Design System (Drams & Routes)
   Konsolidiert aus dr-style.css + Page-spezifischen Styles
   Genutzt von: index, article, category, glossary, karte, wotm, static pages
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  --bg: #0e1413;
  --bg-2: #141b1a;
  --surface: #1a2120;
  --surface-2: #202726;
  --line: #2a322f;
  --line-bright: #3d4642;
  --ink: #efe9dd;
  --ink-soft: #b9b1a0;
  --ink-faint: #7a7468;
  --copper: #c98952;
  --copper-bright: #e0a16a;
  --copper-deep: #8c5e36;
  --moss: #6f8a64;
  --paper: #efe9dd;

  --container: 1320px;
  --pad: 32px;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.serif { font-family: 'GFS Didot', 'Times New Roman', serif; font-weight: 400; }
.mono  { font-family: 'JetBrains Mono', monospace; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

/* ---------- 3. HEADER (sticky, blurred) ---------- */
header.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 20, 19, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  max-width: var(--container); margin: 0 auto; padding: 18px var(--pad);
  display: flex; align-items: center; gap: 36px;
}
.logo {
  font-family: 'GFS Didot', serif; font-size: 26px; line-height: 1; letter-spacing: 0.01em;
  text-decoration: none; color: var(--ink);
}
.logo .amp { color: var(--copper); font-style: italic; }
.logo-sub {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-faint);
  letter-spacing: 0.25em; text-transform: uppercase; margin-top: 4px;
}
nav.main { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: var(--ink-soft); font-weight: 500; }
nav.main a { text-decoration: none; transition: color .2s; padding: 4px 0; border-bottom: 1px solid transparent; }
nav.main a:hover { color: var(--copper-bright); }
nav.main a.active { color: var(--ink); border-bottom-color: var(--copper); }
.nl-cta {
  border: 1px solid var(--copper); color: var(--copper-bright);
  padding: 9px 18px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: transparent; cursor: pointer; transition: all .2s;
  text-decoration: none; display: inline-block; white-space: nowrap;
}
.nl-cta:hover { background: var(--copper); color: var(--bg); }

/* ---------- 4. PAGE STRUCTURE ---------- */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
.gap-100 { margin-top: 100px; }
.gap-80  { margin-top: 80px; }
.gap-48  { margin-top: 48px; }

.page-head { max-width: var(--container); margin: 0 auto; padding: 64px var(--pad) 32px; }
.crumb {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-faint);
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 20px;
}
.crumb a { color: var(--ink-faint); text-decoration: none; }
.crumb a:hover { color: var(--copper-bright); }
.crumb .sep { color: var(--copper); margin: 0 10px; }

.eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--copper);
  letter-spacing: 0.25em; text-transform: uppercase; margin-bottom: 22px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--copper); }

.page-h {
  font-family: 'GFS Didot', serif; font-weight: 400;
  font-size: clamp(40px, 6vw, 84px); line-height: 1.02; margin: 0 0 24px;
  letter-spacing: -0.015em;
}
.page-h em { color: var(--copper-bright); font-style: italic; }
.page-lede { font-size: 19px; color: var(--ink-soft); max-width: 60ch; }

/* Section header */
.section-h {
  display: flex; align-items: baseline; gap: 16px; padding-bottom: 18px;
  border-bottom: 1px solid var(--line); margin-bottom: 36px;
}
.section-num {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--copper);
}
.section-h h2 { font-family: 'GFS Didot', serif; font-size: 36px; font-weight: 400; margin: 0; letter-spacing: -0.01em; }
.section-h em { color: var(--copper-bright); font-style: italic; }
.section-h .meta { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-faint); letter-spacing: 0.2em; text-transform: uppercase; }

/* Stat strip */
.stats {
  display: flex; gap: 48px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.stats div { display: flex; flex-direction: column; gap: 4px; }
.stats .num { font-family: 'GFS Didot', serif; font-size: 36px; color: var(--copper-bright); line-height: 1; }
.stats .lab { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- 5. CARDS ---------- */
.card-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); padding: 0;
  display: flex; flex-direction: column; transition: border-color .2s, transform .2s;
  text-decoration: none; color: inherit;
}
.card:hover { border-color: var(--copper); transform: translateY(-2px); }
.card .cover { aspect-ratio: 16 / 10; background: var(--bg-2); overflow: hidden; }
.card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .cover img { transform: scale(1.04); }
.card .body { padding: 22px 24px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card .pill-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--copper);
  letter-spacing: 0.25em; text-transform: uppercase;
}
.card h3 {
  font-family: 'GFS Didot', serif; font-size: 24px; font-weight: 400;
  margin: 0; line-height: 1.2; letter-spacing: -0.01em;
}
.card .teaser { color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.card .meta-row {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-faint);
  letter-spacing: 0.2em; text-transform: uppercase;
}
.card .arrow { color: var(--copper-bright); }

/* Pills */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  border: 1px solid var(--line-bright); background: transparent;
  padding: 8px 14px; font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--ink-soft); letter-spacing: 0.15em; text-transform: uppercase;
  cursor: pointer; transition: all .2s; text-decoration: none;
}
.pill:hover, .pill.active { border-color: var(--copper); color: var(--copper-bright); }

/* ---------- 6. ARTICLE (field-journal aesthetic) ---------- */
.article-hero {
  max-width: 980px; margin: 0 auto; padding: 64px var(--pad) 32px;
}
.article-hero .crumb { margin-bottom: 28px; }
.article-hero h1 {
  font-family: 'GFS Didot', serif; font-weight: 400;
  font-size: clamp(36px, 5vw, 64px); line-height: 1.05; margin: 0 0 24px;
  letter-spacing: -0.015em;
}
.article-hero h1 em { color: var(--copper-bright); font-style: italic; }
.article-hero .teaser { font-size: 19px; color: var(--ink-soft); max-width: 60ch; }
.article-meta {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; gap: 24px; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-faint);
  letter-spacing: 0.2em; text-transform: uppercase;
}
.article-meta .cat { color: var(--copper); }

.article-cover {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--pad);
}
.article-cover figure { margin: 0; }
.article-cover img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.article-cover figcaption {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-faint);
  letter-spacing: 0.15em; margin-top: 12px; text-align: right;
}

.article-body {
  max-width: 720px; margin: 0 auto; padding: 56px var(--pad) 80px;
  font-size: 18px; line-height: 1.75; color: var(--ink);
}
.article-body h2 {
  font-family: 'GFS Didot', serif; font-size: 34px; font-weight: 400;
  margin: 56px 0 18px; line-height: 1.15; letter-spacing: -0.01em;
  color: var(--copper-bright);
}
.article-body h3 {
  font-family: 'GFS Didot', serif; font-size: 26px; font-weight: 400;
  margin: 40px 0 14px; line-height: 1.2;
}
.article-body p { margin: 0 0 22px; }
.article-body a { color: var(--copper-bright); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--copper); }
.article-body ul, .article-body ol { padding-left: 24px; margin: 0 0 22px; }
.article-body li { margin-bottom: 10px; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body em { color: var(--copper-bright); font-style: italic; }
.article-body blockquote {
  border-left: 3px solid var(--copper); padding: 8px 28px; margin: 32px 0;
  font-family: 'GFS Didot', serif; font-size: 22px; font-style: italic;
  color: var(--ink-soft); line-height: 1.5;
}
.article-body img { margin: 28px 0; border: 1px solid var(--line); }
.article-body .related-box {
  margin-top: 64px; padding: 32px; background: var(--surface); border: 1px solid var(--line);
}
.article-body .related-box h3 {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--copper);
  letter-spacing: 0.25em; text-transform: uppercase; margin: 0 0 16px;
}
.article-body .related-box ul { list-style: none; padding: 0; }
.article-body .related-box li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; }

.affiliate-link::after { content: ' ↗'; color: var(--copper); font-size: 0.85em; }

/* ---------- 7. GLOSSARY ---------- */
.glossary-search {
  max-width: 720px; margin: 0 auto 48px; display: flex;
  border: 1px solid var(--copper); background: transparent;
}
.glossary-search input {
  flex: 1; background: transparent; border: 0; outline: 0;
  padding: 16px 20px; color: var(--ink); font-size: 16px;
  font-family: 'Manrope', sans-serif;
}
.glossary-search input::placeholder { color: var(--ink-faint); }
.glossary-search button {
  background: var(--copper); border: 0; color: var(--bg);
  padding: 14px 28px; font-weight: 600; cursor: pointer;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase;
}

.alpha-strip {
  display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 32px;
  padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
}
.alpha-strip a {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--ink-soft); text-decoration: none; border-radius: 2px;
}
.alpha-strip a:hover { background: var(--copper); color: var(--bg); }
.alpha-strip a.disabled { color: var(--ink-faint); pointer-events: none; opacity: 0.4; }

.distillery-row {
  display: grid; grid-template-columns: 48px 1fr auto auto; gap: 18px;
  padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center;
  text-decoration: none; color: inherit; transition: padding-left .2s;
}
.distillery-row:hover { padding-left: 8px; }
.distillery-row .letter {
  font-family: 'GFS Didot', serif; font-size: 28px; color: var(--copper-bright);
}
.distillery-row .name { font-family: 'GFS Didot', serif; font-size: 22px; }
.distillery-row .region {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-faint);
  letter-spacing: 0.2em; text-transform: uppercase;
}
.distillery-row .year { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--copper); }

/* Glossary detail (Country/Region/Distillery/Whisky) */
.entity-hero {
  max-width: var(--container); margin: 0 auto; padding: 48px var(--pad) 32px;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: end;
}
.entity-hero .lede { font-size: 19px; color: var(--ink-soft); }
.entity-hero h1 {
  font-family: 'GFS Didot', serif; font-weight: 400;
  font-size: clamp(40px, 5.5vw, 72px); line-height: 1; margin: 16px 0 20px;
  letter-spacing: -0.015em;
}
.entity-hero h1 em { color: var(--copper-bright); font-style: italic; }
.entity-stats {
  background: var(--surface); border: 1px solid var(--line); padding: 28px;
}
.entity-stats .row {
  display: flex; justify-content: space-between; padding: 12px 0;
  border-bottom: 1px solid var(--line); align-items: baseline;
}
.entity-stats .row:last-child { border-bottom: 0; }
.entity-stats .lbl {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint);
}
.entity-stats .val { font-family: 'GFS Didot', serif; font-size: 20px; color: var(--copper-bright); }
.entity-body {
  max-width: 980px; margin: 0 auto; padding: 32px var(--pad) 80px;
  font-size: 17px; line-height: 1.75;
}
.entity-body h2 {
  font-family: 'GFS Didot', serif; font-size: 28px; font-weight: 400;
  margin: 40px 0 14px; color: var(--copper-bright);
}
.entity-body p { margin: 0 0 18px; color: var(--ink-soft); }

/* ---------- 8. MAP ---------- */
.map-stage-wrap {
  max-width: var(--container); margin: 32px auto 0; padding: 0 var(--pad);
  display: grid; grid-template-columns: 3fr 1fr; gap: 32px; min-height: 720px;
}
.map-stage {
  background: var(--bg-2); border: 1px solid var(--line); position: relative;
  overflow: hidden; min-height: 720px;
}
.map-leaflet { width: 100%; height: 720px; }
.map-sidebar {
  background: var(--surface); border: 1px solid var(--line); padding: 28px;
  max-height: 720px; overflow-y: auto;
}
.map-sidebar h4 {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--copper);
  letter-spacing: 0.25em; text-transform: uppercase; margin: 0 0 16px;
}
.map-sidebar .filter-group { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.map-toggle {
  display: flex; gap: 0; margin-bottom: 24px; border: 1px solid var(--line-bright);
}
.map-toggle button {
  flex: 1; background: transparent; border: 0; color: var(--ink-soft);
  padding: 12px; font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; transition: all .2s;
}
.map-toggle button.active { background: var(--copper); color: var(--bg); }

/* Pin (used both in SVG-stage and Leaflet-popup) */
.pin {
  position: absolute; transform: translate(-50%, -50%); cursor: pointer; z-index: 5;
}
.pin-dot {
  width: 12px; height: 12px; border-radius: 50%; background: var(--copper);
  box-shadow: 0 0 0 3px rgba(201, 137, 82, 0.25), 0 0 12px rgba(201, 137, 82, 0.4);
  transition: all .25s;
}
.pin:hover .pin-dot { transform: scale(1.4); box-shadow: 0 0 0 6px rgba(224, 161, 106, 0.35), 0 0 20px rgba(224, 161, 106, 0.6); }
.pin.planned .pin-dot { background: transparent; border: 2px solid var(--moss); box-shadow: 0 0 0 2px rgba(111, 138, 100, 0.2); }
.pin .pin-label {
  position: absolute; left: 16px; top: -6px; white-space: nowrap;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ink-soft); opacity: 0;
  background: var(--bg-2); padding: 4px 10px; border: 1px solid var(--line);
  pointer-events: none; transition: opacity .2s;
}
.pin:hover .pin-label { opacity: 1; }

/* Leaflet dark theme overrides */
.leaflet-container { background: var(--bg-2) !important; font-family: 'Manrope', sans-serif !important; }
.leaflet-popup-content-wrapper { background: var(--surface) !important; color: var(--ink) !important; border: 1px solid var(--copper); border-radius: 0; }
.leaflet-popup-tip { background: var(--surface) !important; }
.leaflet-popup-content { font-family: 'Manrope', sans-serif; margin: 14px 18px; }
.leaflet-popup-content h4 { font-family: 'GFS Didot', serif; font-size: 20px; margin: 0 0 6px; font-weight: 400; }
.leaflet-popup-content p { margin: 0 0 8px; color: var(--ink-soft); font-size: 13px; }
.leaflet-popup-content a { color: var(--copper-bright); }

/* ---------- 9. NEWSLETTER ---------- */
.nl-section {
  margin-top: 100px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.nl-inner {
  max-width: var(--container); margin: 0 auto; padding: 80px var(--pad);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center;
}
.nl-h {
  font-family: 'GFS Didot', serif; font-size: clamp(36px, 5vw, 60px);
  font-weight: 400; line-height: 1.05; margin: 16px 0 20px;
  letter-spacing: -0.015em; max-width: 18ch;
}
.nl-h em { color: var(--copper-bright); font-style: italic; }
.nl-p { color: var(--ink-soft); font-size: 17px; max-width: 52ch; line-height: 1.6; }
.nl-form {
  display: flex; gap: 0; margin-top: 28px; max-width: 480px;
  border: 1px solid var(--line-bright); padding: 4px;
}
.nl-form input {
  flex: 1; background: transparent; border: 0; color: var(--ink);
  padding: 12px 14px; font-family: 'Manrope', sans-serif; font-size: 15px; outline: 0;
}
.nl-form input::placeholder { color: var(--ink-faint); }
.nl-form button {
  background: var(--copper); border: 0; color: var(--bg);
  padding: 12px 26px; font-family: 'Manrope', sans-serif; font-weight: 600;
  font-size: 14px; cursor: pointer; letter-spacing: 0.02em;
}
.nl-features {
  background: var(--surface); border: 1px solid var(--line); padding: 32px;
}
.nl-features h4 {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--copper);
  letter-spacing: 0.25em; text-transform: uppercase; margin: 0 0 20px;
}
.nl-features ul { list-style: none; padding: 0; margin: 0; }
.nl-features li {
  display: grid; grid-template-columns: 28px 1fr; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: 14px; color: var(--ink-soft);
}
.nl-features li:last-child { border-bottom: 0; }
.nl-features .n { font-family: 'GFS Didot', serif; font-size: 22px; color: var(--copper-bright); line-height: 1; }
.nl-features strong { color: var(--ink); font-weight: 600; }

/* ---------- 10. FOOTER ---------- */
footer.bottom {
  padding: 40px var(--pad) 32px;
  text-align: center; font-size: 12px; color: var(--ink-faint);
  font-family: 'Manrope', sans-serif;
}
footer.bottom .row {
  max-width: var(--container); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
footer.bottom a { color: var(--ink-soft); text-decoration: none; margin-right: 18px; }
footer.bottom a:hover { color: var(--copper-bright); }
footer.bottom .disclaimer {
  margin-top: 14px; font-size: 11px; max-width: 60ch;
  margin-left: auto; margin-right: auto; line-height: 1.7;
}

/* Cookie banner */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 1000;
  background: var(--surface); border: 1px solid var(--copper); padding: 20px 24px;
  display: none; max-width: 540px; margin: 0 auto;
}
.cookie-banner.show { display: block; }
.cookie-banner p { margin: 0 0 14px; font-size: 13px; color: var(--ink-soft); }
.cookie-banner .actions { display: flex; gap: 10px; }
.cookie-banner button { cursor: pointer; }

/* ---------- 11. RESPONSIVE ---------- */
@media (max-width: 980px) {
  .nl-inner, .entity-hero, .map-stage-wrap { grid-template-columns: 1fr; gap: 32px; }
  nav.main { display: none; }
  .map-leaflet { height: 480px; }
  .map-sidebar { max-height: none; }
}
@media (max-width: 640px) {
  .article-body { font-size: 17px; padding: 40px 20px 60px; }
  .stats { gap: 24px; }
  .top-inner { gap: 16px; padding: 14px 20px; }
}
