/* ════════════════════════════════════════════════════════════
   Hetjershausen — Design System
   Fancy / 2026: glass, mesh gradients, fluid type, scroll reveal
   ════════════════════════════════════════════════════════════ */

:root {
  /* ── OFFIZIELLE WAPPENFARBEN: Blau (Himmel) · Silber/Weiß (Klotzbrunnen) · Grün (Grund); Fahne Blau-Gold ── */
  --bg:        #f3f6f8;   /* helles Silber-/Himmelweiß */
  --bg-2:      #e7eef2;
  --panel:     rgba(255, 255, 255, 0.78);
  --panel-2:   #ffffff;
  --stroke:    rgba(26, 48, 68, 0.13);
  --stroke-2:  rgba(26, 48, 68, 0.24);

  --text:      #21303b;
  --text-soft: #4d5d68;
  --text-mut:  #83909a;

  /* Hauptakzent = Wappen-Blau */
  --accent:      #1f74bd;
  --accent-2:    #4795d6;
  --accent-deep: #14568f;
  --accent-soft: color-mix(in oklab, #1f74bd 13%, transparent);
  --accent-ink:  #ffffff;   /* Text/Logo auf Akzentfläche = Silber/Weiß */

  /* offizielle Nebenfarben */
  --green:   #4f9b3f;   /* Wappen-Grün (Grund/Natur) */
  --green-2: #3c7a31;
  --gold:    #e0a82c;   /* Fahnen-Gold */
  --gold-2:  #f0c659;

  /* Legacy-Aliase → jetzt auf die offiziellen Farben gemappt */
  --amber:   var(--accent);   /* „amber" = Blau (Hauptakzent) */
  --amber-2: var(--accent-2);
  --sky:     var(--gold);     /* „sky" = Gold (Hero-Blob / Akzentlicht) */

  /* Logo-Töne (Klotzbrunnen) */
  --stone: #c8b596;
  --wood:  #9a6a3c;

  --radius:    20px;
  --radius-sm: 13px;
  --radius-lg: 28px;

  --shadow:    0 18px 48px -26px rgba(20, 40, 62, 0.26);
  --shadow-lg: 0 40px 90px -34px rgba(20, 40, 62, 0.30);

  --maxw: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg:        #0d1218;
  --bg-2:      #111a24;
  --panel:     rgba(255, 255, 255, 0.055);
  --panel-2:   rgba(255, 255, 255, 0.09);
  --stroke:    rgba(255, 255, 255, 0.12);
  --stroke-2:  rgba(255, 255, 255, 0.22);

  --text:      #e8eef3;
  --text-soft: #b7c2cc;
  --text-mut:  #7d8a95;

  --accent:      #5aa6e0;
  --accent-2:    #82c0ee;
  --accent-deep: #aed4f4;
  --accent-soft: color-mix(in oklab, #5aa6e0 17%, transparent);
  --accent-ink:  #08151f;

  --green:   #74c06f;
  --green-2: #9ad694;
  --gold:    #edc25a;
  --gold-2:  #f5d484;

  --amber:   var(--accent);
  --amber-2: var(--accent-2);
  --sky:     var(--gold);

  --stone: #c8b596;
  --wood:  #b07d49;

  --shadow:    0 18px 50px -22px rgba(0, 0, 0, 0.72);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, 0.78);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* layered page background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 78% -8%, color-mix(in oklab, var(--green) 16%, transparent), transparent 70%),
    radial-gradient(55% 45% at 10% 4%, color-mix(in oklab, var(--amber) 13%, transparent), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: color-mix(in oklab, var(--accent) 40%, transparent); color: var(--text); }

/* grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: 0.15; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
[data-theme="dark"] .grain { opacity: 0.42; }

/* scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  z-index: 10000;
  background: linear-gradient(90deg, var(--accent), var(--green), var(--gold));
  box-shadow: 0 0 14px color-mix(in oklab, var(--accent) 55%, transparent);
  transition: width 0.1s linear;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

/* ───────── NAV ───────── */
.nav {
  position: sticky; top: 0; z-index: 9000;
  transition: background 0.4s var(--ease), border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--stroke);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 14px clamp(20px, 5vw, 48px);
  display: flex; align-items: center; gap: 24px;
}
.nav__brand { display: flex; align-items: center; gap: 11px; font-weight: 600; }
.nav__mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 11px; color: var(--accent-ink);
  background: linear-gradient(135deg, var(--amber-2), var(--amber));
  box-shadow: 0 6px 18px -6px color-mix(in oklab, var(--amber) 70%, transparent);
}
.nav__mark svg { width: 21px; height: 21px; }
.nav__name {
  font-family: var(--font-display); font-weight: 600;
  font-size: 20px; letter-spacing: -0.005em; line-height: 1;
}
.nav__links { margin-left: auto; display: flex; gap: 4px; }
.nav__links a {
  font-size: 14px; color: var(--text-soft); padding: 8px 13px; border-radius: 10px;
  font-weight: 500; transition: color 0.2s, background 0.2s; position: relative;
}
.nav__links a:hover { color: var(--text); background: var(--panel); }
.nav__links a.is-active { color: var(--accent); }
.nav__actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer;
  border-radius: 11px; color: var(--text-soft);
  background: var(--panel); border: 1px solid var(--stroke);
  transition: color 0.2s, background 0.2s, transform 0.2s;
}
.icon-btn:hover { color: var(--text); background: var(--panel-2); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 19px; height: 19px; }
.i-moon { display: none; }
[data-theme="light"] .i-sun { display: none; }
[data-theme="light"] .i-moon { display: block; }
.nav__burger { display: none; }

/* ───────── HERO ───────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 80px; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(72px); opacity: 0.4;
  animation: float 18s ease-in-out infinite;
}
[data-theme="dark"] .blob { opacity: 0.6; }
.blob--1 { width: 46vw; height: 46vw; left: -8vw; top: -6vw;
  background: radial-gradient(circle, color-mix(in oklab, var(--amber) 65%, transparent), transparent 70%); }
.blob--2 { width: 40vw; height: 40vw; right: -6vw; top: 8vh;
  background: radial-gradient(circle, color-mix(in oklab, var(--green) 60%, transparent), transparent 70%);
  animation-delay: -6s; }
.blob--3 { width: 34vw; height: 34vw; left: 30vw; bottom: -14vw;
  background: radial-gradient(circle, color-mix(in oklab, var(--sky) 45%, transparent), transparent 70%);
  animation-delay: -11s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4vw, 3vh) scale(1.08); }
  66% { transform: translate(-3vw, -2vh) scale(0.95); }
}
.hero__ridge {
  position: absolute; left: 0; right: 0; bottom: 0; height: 36vh;
  background:
    radial-gradient(120% 100% at 50% 100%, color-mix(in oklab, var(--bg) 92%, transparent), transparent 70%);
  -webkit-mask: linear-gradient(transparent, #000 60%);
  mask: linear-gradient(transparent, #000 60%);
}
@media (prefers-reduced-motion: reduce) { .blob { animation: none; } }

.hero__inner { max-width: var(--maxw); margin: 0 auto; width: 100%; padding: 0 clamp(20px, 5vw, 48px);
  display: grid; grid-template-columns: 1.05fr 0.9fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.hero__content { width: 100%; min-width: 0; }

.hero__media { position: relative; justify-self: center; width: 100%; max-width: 430px; }
.hero__media img { width: 100%; height: auto; border-radius: var(--radius-lg);
  border: 1px solid var(--stroke-2); box-shadow: var(--shadow-lg); display: block; }
.hero__media-tag { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--text); padding: 7px 14px; border-radius: 999px;
  background: color-mix(in oklab, var(--panel-2) 85%, transparent); border: 1px solid var(--stroke);
  backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.hero__media figcaption { margin-top: 11px; font-size: 11.5px; color: var(--text-mut); line-height: 1.55; }
.hero__media figcaption strong { color: var(--text-soft); font-weight: 600; }
.hero__media figcaption a { color: var(--text-soft); text-decoration: underline; text-underline-offset: 2px; }
.hero__media figcaption a:hover { color: var(--accent); }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-soft); margin-bottom: 22px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--stroke);
  backdrop-filter: blur(8px);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--green) 70%, transparent);
  animation: pulse 2.4s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--green) 60%, transparent); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 5.25rem);
  line-height: 0.96; letter-spacing: -0.03em;
  margin-bottom: 26px;
  background: linear-gradient(180deg, var(--text), color-mix(in oklab, var(--text) 62%, var(--bg)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__title .ink {
  font-style: italic; font-weight: 400;
  background: linear-gradient(120deg, var(--accent-2), var(--accent-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead {
  max-width: 620px; font-size: clamp(1.05rem, 2.2vw, 1.32rem);
  color: var(--text-soft); line-height: 1.65; margin-bottom: 34px;
}
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 14px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.3s, background 0.2s;
}
.btn--primary {
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--amber-2), var(--amber));
  box-shadow: 0 14px 36px -14px color-mix(in oklab, var(--amber) 80%, transparent);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 22px 50px -16px color-mix(in oklab, var(--amber) 85%, transparent); }
.btn--ghost { color: var(--text); background: var(--panel); border-color: var(--stroke-2); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: var(--panel-2); transform: translateY(-3px); }

.hero__chip {
  display: inline-flex; align-items: center; gap: 13px;
  padding: 12px 20px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--stroke);
  backdrop-filter: blur(14px); box-shadow: var(--shadow);
  font-size: 14px;
}
.hero__chip-ico { font-size: 22px; line-height: 1; }
.hero__chip-main { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.hero__chip-sub { color: var(--text-soft); }
.hero__chip-div { width: 1px; height: 22px; background: var(--stroke-2); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 14px; border: 2px solid var(--stroke-2);
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 3px;
  background: var(--accent); transform: translateX(-50%);
  animation: scrolldot 1.8s infinite;
}
@keyframes scrolldot { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80% { opacity: 0; top: 22px; } 100% { opacity: 0; } }

/* ───────── SECTIONS ───────── */
.section { padding: clamp(70px, 11vw, 130px) 0; position: relative; }
.section--alt { background: rgba(255, 255, 255, 0.5); }
[data-theme="dark"] .section--alt { background: color-mix(in oklab, var(--text) 3%, transparent); }
.section--alt::before, .section--alt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--stroke);
}
.section--alt::before { top: 0; } .section--alt::after { bottom: 0; }

.section__head { max-width: 720px; margin-bottom: 54px; }
.section__head--sub { margin: 70px 0 30px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.section__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.04; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section__subtitle {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2rem);
  display: flex; align-items: center; gap: 12px; letter-spacing: -0.01em;
}
.section__subtitle [data-lucide] { color: var(--accent); width: 26px; height: 26px; }
.section__desc { font-size: clamp(1rem, 1.6vw, 1.12rem); color: var(--text-soft); }

.grid-2 { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 6vw, 80px); align-items: start; }

/* ───────── CARD base ───────── */
.card {
  background: var(--panel); border: 1px solid var(--stroke);
  border-radius: var(--radius); padding: 24px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 80% at 50% -20%, color-mix(in oklab, var(--accent) 9%, transparent), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.card:hover { transform: translateY(-4px); border-color: var(--stroke-2); box-shadow: var(--shadow); }
.card:hover::after { opacity: 1; }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card__title { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em; }
.card__ico {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px;
  color: var(--accent); background: color-mix(in oklab, var(--accent) 13%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent);
}
.card__ico [data-lucide], .card__ico svg { width: 18px; height: 18px; }
.badge {
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--green); padding: 4px 9px; border-radius: 8px;
  background: color-mix(in oklab, var(--green) 14%, transparent);
  border: 1px solid color-mix(in oklab, var(--green) 28%, transparent);
}
.badge--soft { color: var(--text-mut); background: var(--panel-2); border-color: var(--stroke); }

/* ───────── BENTO ───────── */
.bento {
  display: grid; gap: 18px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(0, auto);
}
.bento__weather { grid-column: span 2; grid-row: span 2; }
.bento__wiki { grid-column: span 2; }
.bento__facts { grid-column: span 1; }
.bento__loc { grid-column: span 1; }

.wx-now { display: flex; align-items: center; gap: 18px; margin: 8px 0 20px; }
.wx-now__temp { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 4.6rem); font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.wx-now__temp span { color: var(--accent); }
.wx-now__desc { font-size: 16px; font-weight: 600; text-transform: capitalize; }
.wx-now__detail { font-size: 13px; color: var(--text-mut); display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.wx-now__detail [data-lucide] { width: 14px; height: 14px; vertical-align: -2px; }
.wx-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: auto; }
.wx-day {
  text-align: center; padding: 14px 6px; border-radius: var(--radius-sm);
  background: var(--panel); border: 1px solid var(--stroke);
}
.wx-day__d { font-size: 11px; color: var(--text-mut); text-transform: uppercase; font-weight: 600; letter-spacing: 0.03em; }
.wx-day__i { font-size: 24px; margin: 7px 0; }
.wx-day__t { font-size: 13px; font-weight: 600; }
.wx-day__t b { color: var(--text); } .wx-day__t span { color: var(--text-mut); font-weight: 500; }

.wiki__extract { font-size: 14.5px; color: var(--text-soft); line-height: 1.65; margin-bottom: 16px; }
.wiki__link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 14px; }
.wiki__link [data-lucide] { width: 15px; height: 15px; transition: transform 0.2s; }
.wiki__link:hover [data-lucide] { transform: translate(2px, -2px); }

.facts { list-style: none; display: flex; flex-direction: column; gap: 0; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--stroke); font-size: 13.5px; }
.facts li:last-child { border-bottom: none; }
.facts .k { color: var(--text-mut); display: flex; align-items: center; gap: 8px; }
.facts .k [data-lucide] { width: 15px; height: 15px; color: var(--accent); }
.facts .v { font-weight: 600; text-align: right; }
.facts__note { display: block !important; font-size: 11px; color: var(--text-mut); border-bottom: none !important; padding-top: 12px !important; font-style: italic; }

.miniloc { border-radius: var(--radius-sm); overflow: hidden; height: 200px; border: 1px solid var(--stroke); }
.miniloc .leaflet-container { height: 100%; background: var(--bg-2); }

/* ───────── ABOUT / TIMELINE ───────── */
.prose p { color: var(--text-soft); margin-bottom: 16px; font-size: 1.02rem; line-height: 1.75; }
.prose p:first-child::first-letter {
  font-family: var(--font-display); font-size: 3.4em; line-height: 0.78; float: left;
  padding: 6px 12px 0 0; color: var(--accent); font-weight: 500;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  font-size: 13px; font-weight: 500; padding: 9px 15px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--stroke); color: var(--text-soft);
  display: inline-flex; align-items: center; gap: 8px;
}
.chip [data-lucide] { width: 15px; height: 15px; color: var(--accent); }

.timeline { list-style: none; position: relative; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--amber), var(--green), transparent); }
.timeline li { position: relative; padding: 0 0 30px; }
.timeline li::before {
  content: ""; position: absolute; left: -31px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent);
}
.timeline .t-year { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--accent); }
.timeline .t-text { font-size: 14.5px; color: var(--text-soft); margin-top: 3px; }

/* ───────── CARDS GRID (vereine/wirtschaft/freizeit) ───────── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.tile {
  display: flex; flex-direction: column; gap: 12px; min-height: 100%;
  background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 24px; transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
  position: relative; overflow: hidden;
}
.tile:hover { transform: translateY(-5px); border-color: var(--stroke-2); box-shadow: var(--shadow); }
.tile__ico {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 13px;
  color: var(--accent); background: color-mix(in oklab, var(--accent) 13%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent);
}
.tile__ico [data-lucide], .tile__ico svg { width: 23px; height: 23px; }
.tile__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tile__type { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-mut); }
.tile__name { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; font-family: var(--font-display); }
.tile__desc { font-size: 14px; color: var(--text-soft); line-height: 1.6; flex: 1; }
.tile__foot { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.tile__link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.tile__link [data-lucide] { width: 15px; height: 15px; transition: transform 0.2s; }
.tile__link:hover [data-lucide] { transform: translate(2px, -2px); }
.tile__tag {
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 7px;
  color: var(--text-mut); background: var(--panel-2); border: 1px solid var(--stroke);
}
.tile__tag.is-verified { color: var(--green); background: color-mix(in oklab, var(--green) 12%, transparent); border-color: color-mix(in oklab, var(--green) 26%, transparent); }

/* ───────── FEATURE (Hoher Hagen) ───────── */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--stroke); margin-bottom: 50px;
  background: var(--panel); box-shadow: var(--shadow);
}
.feature__media { min-height: 340px; background: var(--bg-2) center/cover no-repeat; position: relative; }
.feature__media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 55%, color-mix(in oklab, var(--panel) 80%, transparent)); }
.feature__body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.feature__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.02em; margin-bottom: 14px; }
.feature__text { font-size: 15px; color: var(--text-soft); line-height: 1.7; margin-bottom: 22px; }

/* ───────── ROUTES ───────── */
.routes { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.route {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px;
  background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.route:hover { transform: translateX(4px); border-color: var(--stroke-2); }
.route__ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px;
  color: var(--green); background: color-mix(in oklab, var(--green) 14%, transparent); border: 1px solid color-mix(in oklab, var(--green) 26%, transparent); }
.route__ico [data-lucide] { width: 22px; height: 22px; }
.route__name { font-weight: 600; font-size: 16px; }
.route__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 7px 0; font-size: 12.5px; color: var(--text-mut); }
.route__meta span { display: inline-flex; align-items: center; gap: 5px; }
.route__meta [data-lucide] { width: 14px; height: 14px; }
.route__desc { font-size: 13.5px; color: var(--text-soft); line-height: 1.6; }
.route__link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--accent); margin-top: 8px; }
.route__link [data-lucide] { width: 14px; height: 14px; }
.route__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.route__scope { font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.route__scope.is-near { color: var(--accent-deep); background: var(--accent-soft); border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent); }
.route__scope.is-around { color: var(--text-mut); background: var(--panel-2); border: 1px solid var(--stroke); }

/* ───────── GRUPPEN ───────── */
.gruppen { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gruppe { padding: 17px 19px; background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s; }
.gruppe:hover { transform: translateY(-3px); border-color: var(--stroke-2); }
.gruppe__name { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 9px; }
.gruppe__name [data-lucide] { width: 17px; height: 17px; color: var(--accent); flex: none; }
.gruppe__desc { font-size: 13px; color: var(--text-soft); line-height: 1.55; margin-top: 7px; }
.gruppe__link { font-size: 12.5px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 5px; margin-top: 9px; }
.gruppe__link [data-lucide] { width: 13px; height: 13px; }

/* ───────── GEMEINDE ECHO ───────── */
.echo { display: flex; align-items: center; gap: 18px; margin-top: 26px; padding: 20px 24px; border-radius: var(--radius);
  background: linear-gradient(120deg, var(--accent-soft), transparent 80%);
  border: 1px solid color-mix(in oklab, var(--accent) 28%, transparent);
  transition: transform 0.3s var(--ease), box-shadow 0.4s; }
.echo:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.echo__ico { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 14px;
  color: var(--accent-ink); background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.echo__ico [data-lucide] { width: 24px; height: 24px; }
.echo__body { flex: 1; }
.echo__title { display: block; font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.echo__text { display: block; font-size: 13.5px; color: var(--text-soft); margin-top: 2px; }
.echo__arrow { color: var(--accent); transition: transform 0.2s; }
.echo__arrow [data-lucide] { width: 22px; height: 22px; }
.echo:hover .echo__arrow { transform: translate(2px, -2px); }

/* ───────── MAP ───────── */
.map-shell {
  display: grid; grid-template-columns: 1fr 280px; gap: 0;
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--stroke);
  box-shadow: var(--shadow); background: var(--panel);
}
#map { height: 520px; background: var(--bg-2); }
.map-legend { list-style: none; padding: 22px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--stroke); }
.map-legend li { display: flex; align-items: center; gap: 11px; padding: 9px; border-radius: 11px; cursor: pointer; transition: background 0.2s; font-size: 14px; }
.map-legend li:hover { background: var(--panel-2); }
.legend-pin { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: 0 0 0 4px color-mix(in oklab, currentColor 22%, transparent); }
.map-legend .l-name { font-weight: 600; }
.map-legend .l-sub { font-size: 12px; color: var(--text-mut); }

/* leaflet dark tweaks */
.leaflet-container { font-family: var(--font-body); }
.leaflet-popup-content-wrapper { background: var(--bg-2); color: var(--text); border-radius: 14px; border: 1px solid var(--stroke-2); box-shadow: var(--shadow); }
.leaflet-popup-tip { background: var(--bg-2); }
.leaflet-popup-content { margin: 14px 16px; font-size: 13.5px; }
.leaflet-popup-content b { font-family: var(--font-display); font-size: 15px; }
.leaflet-popup-content a { color: var(--accent); font-weight: 600; }
.leaflet-bar a { background: var(--bg-2); color: var(--text); border-color: var(--stroke); }
.leaflet-bar a:hover { background: var(--panel-2); }
.map-marker { display: grid; place-items: center; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  border: 2px solid #fff2; box-shadow: 0 4px 12px rgba(0,0,0,0.5); }
.map-marker span { transform: rotate(45deg); font-size: 13px; }

/* ───────── NEWS ───────── */
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.news__loading, .news__error { color: var(--text-mut); font-size: 15px; grid-column: 1/-1; }
.na {
  display: flex; flex-direction: column; gap: 9px; padding: 22px;
  background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.4s;
}
.na:hover { transform: translateY(-4px); border-color: var(--stroke-2); box-shadow: var(--shadow); }
.na.is-local { border-color: color-mix(in oklab, var(--accent) 35%, transparent); }
.na.is-local::before { content: "Hetjershausen"; align-self: flex-start; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); padding: 3px 9px; border-radius: 7px; background: color-mix(in oklab, var(--accent) 14%, transparent); border: 1px solid color-mix(in oklab, var(--accent) 28%, transparent); }
.na__date { font-size: 12px; color: var(--text-mut); display: flex; align-items: center; gap: 6px; }
.na__date [data-lucide] { width: 13px; height: 13px; }
.na__title { font-size: 16px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.na:hover .na__title { color: var(--accent); }
.na__desc { font-size: 13.5px; color: var(--text-soft); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.na__more { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 5px; }
.na__more [data-lucide] { width: 14px; height: 14px; }

/* ───────── FOOTER ───────── */
.footer { border-top: 1px solid var(--stroke); padding: 56px 0 40px; margin-top: 30px; }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 30px 50px; align-items: start; }
.footer__brand { display: flex; align-items: center; gap: 13px; }
.footer__name { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.footer__tag { font-size: 13px; color: var(--text-mut); }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.footer__links a { font-size: 13.5px; color: var(--text-soft); padding: 8px 13px; border-radius: 10px; background: var(--panel); border: 1px solid var(--stroke); display: inline-flex; align-items: center; gap: 7px; transition: color 0.2s, background 0.2s; }
.footer__links a:hover { color: var(--text); background: var(--panel-2); }
.footer__links [data-lucide] { width: 15px; height: 15px; color: var(--accent); }
.footer__note { grid-column: 1/-1; font-size: 12.5px; color: var(--text-mut); border-top: 1px solid var(--stroke); padding-top: 22px; line-height: 1.7; }
.footer__note a { color: var(--text-soft); text-decoration: underline; text-underline-offset: 2px; }
.footer__note a:hover { color: var(--accent); }
.footer__legal { grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer__legal a { font-size: 13px; font-weight: 500; color: var(--text-soft); display: inline-flex; align-items: center; gap: 7px; transition: color 0.2s; }
.footer__legal a:hover { color: var(--accent); }
.footer__legal [data-lucide] { width: 15px; height: 15px; color: var(--accent); }

/* ───────── REVEAL ───────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.06s; }
.reveal:nth-child(3) { transition-delay: 0.12s; }
.reveal:nth-child(4) { transition-delay: 0.18s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ───────── RESPONSIVE ───────── */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__weather { grid-column: span 2; grid-row: auto; }
  .bento__wiki { grid-column: span 2; }
  .map-shell { grid-template-columns: 1fr; }
  .map-legend { flex-direction: row; flex-wrap: wrap; border-left: none; border-top: 1px solid var(--stroke); }
  .map-legend li { flex: 1 1 200px; }
}
@media (max-width: 860px) {
  .nav__links { position: fixed; inset: 70px 16px auto 16px; flex-direction: column; gap: 4px;
    background: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: blur(20px);
    border: 1px solid var(--stroke); border-radius: 18px; padding: 12px; box-shadow: var(--shadow-lg);
    transform: translateY(-12px) scale(0.98); opacity: 0; pointer-events: none; transition: 0.3s var(--ease); }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 13px; }
  .nav__burger { display: grid; }
  .hero__inner { grid-template-columns: 1fr; gap: 34px; }
  .hero__media { max-width: 360px; order: 2; }
  .grid-2 { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature__media { min-height: 230px; }
  .feature__media::after { background: linear-gradient(180deg, transparent 55%, color-mix(in oklab, var(--panel) 85%, transparent)); }
}
@media (max-width: 560px) {
  .bento, .bento__weather, .bento__wiki { grid-template-columns: 1fr; grid-column: auto; }
  .wx-days { grid-template-columns: repeat(4, 1fr); }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { justify-content: flex-start; }
  .hero { min-height: 92svh; }
}

/* ════════════ Consent-Banner & Karten-Sperre (DSGVO) ════════════ */
.btn--sm { padding: 9px 16px; font-size: 13.5px; border-radius: 11px; }

.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10001;
  padding: clamp(14px, 3vw, 26px); display: flex; justify-content: center;
}
.consent[hidden] { display: none; }
.consent__box {
  width: min(960px, 100%);
  display: grid; grid-template-columns: 1fr auto; gap: 18px 30px; align-items: center;
  background: var(--panel-2); border: 1px solid var(--stroke-2);
  border-radius: var(--radius); padding: 22px 24px;
  box-shadow: var(--shadow-lg); backdrop-filter: blur(14px);
}
.consent__title { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600; font-size: 18px; margin-bottom: 7px; }
.consent__title [data-lucide] { width: 20px; height: 20px; color: var(--accent); }
.consent__desc { font-size: 13.5px; line-height: 1.65; color: var(--text-soft); }
.consent__desc a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.consent__actions { display: flex; gap: 10px; align-items: center; }

#map, #miniloc { position: relative; }
.map-lock {
  position: absolute; inset: 0; z-index: 500;
  display: grid; place-items: center; text-align: center; padding: 18px;
  background: color-mix(in oklab, var(--bg-2) 86%, transparent);
  backdrop-filter: blur(3px); border-radius: inherit;
}
.map-lock__in { max-width: 320px; display: grid; gap: 12px; justify-items: center; }
.map-lock__in [data-lucide] { width: 30px; height: 30px; color: var(--accent); }
.map-lock__in p { font-size: 13px; color: var(--text-soft); line-height: 1.55; }
#miniloc .map-lock { padding: 12px; }
#miniloc .map-lock__in p { display: none; }   /* Mini-Karte: nur Button */

@media (max-width: 640px) {
  .consent__box { grid-template-columns: 1fr; }
  .consent__actions { width: 100%; }
  .consent__actions .btn { flex: 1; justify-content: center; }
}

/* ════════════ Rechtsseiten (Impressum / Datenschutz) ════════════ */
.nav__back-link { font-size: 14px; font-weight: 500; color: var(--text-soft); padding: 8px 12px; border-radius: 10px; transition: color 0.2s, background 0.2s; }
.nav__back-link:hover { color: var(--text); background: var(--panel); }

.legal-main { padding: clamp(96px, 13vh, 150px) 0 50px; min-height: 72vh; }
.legal { max-width: 820px; }
.legal__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.02em; margin: 6px 0 8px; }
.legal__updated { font-size: 13px; color: var(--text-mut); margin-bottom: 26px; }
.legal h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; margin: 34px 0 10px; letter-spacing: -0.01em; }
.legal h3 { font-weight: 600; font-size: 1.02rem; color: var(--text); margin: 20px 0 6px; }
.legal p, .legal li { color: var(--text-soft); line-height: 1.75; font-size: 15px; }
.legal p { margin-bottom: 12px; }
.legal ul { margin: 4px 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 5px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--accent-deep); }
.legal strong { color: var(--text); font-weight: 600; }
.legal em { font-style: italic; }
.legal code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: var(--panel-2); border: 1px solid var(--stroke); border-radius: 6px; padding: 1px 6px; color: var(--text); }
.legal__card { background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 20px 24px; margin: 16px 0 6px; }
.legal__card p { margin-bottom: 0; }
.legal__hint { font-size: 13px; color: var(--text-mut); background: color-mix(in oklab, var(--gold) 12%, transparent); border: 1px solid color-mix(in oklab, var(--gold) 35%, transparent); border-radius: var(--radius-sm); padding: 12px 16px; line-height: 1.6; }
.legal__back { display: inline-flex; align-items: center; gap: 8px; margin-top: 38px; font-weight: 600; color: var(--accent); text-decoration: none; }
.legal__back [data-lucide] { width: 18px; height: 18px; }
.legal__back:hover { gap: 11px; }
