/* ── Lokale Schriften (DSGVO) ─────────────────────────────────────────────
   Newsreader + Hanken Grotesk, self-hosted woff2 (OFL, siehe fonts/*-OFL.txt).
   Variable Gewichtsachse, font-display: swap. KEINE Google-Fonts-Requests. */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/newsreader-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/newsreader-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/newsreader-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/hanken-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/hanken-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  --deep: #0B1E27;
  --off-white: #F4F1EA;
  --aqua: #3FC7C2;
  --amber: #D9A441;
  --amber-ink: #876012;       /* Aufgabe 9: dunkleres Bernstein für Text auf Hell — ≥4.5:1 auf Off-White (WCAG AA) */
  --link: #15756f;            /* dark teal for link hover on light */
  --ink: #0B1E27;
  --ink-60: rgba(11,30,39,0.68);  /* Aufgabe 9: angehoben für AA-Kontrast bei kleinem Sekundärtext */
  --ink-55: rgba(11,30,39,0.66);  /* Aufgabe 9: angehoben für AA-Kontrast (Meta-Labels) */
  --ink-80: rgba(11,30,39,0.8);
  --line-on-light: rgba(11,30,39,0.13);
  --light-70: rgba(244,241,234,0.7);
  --light-55: rgba(244,241,234,0.55);
  --light-85: rgba(244,241,234,0.85);
  --light-line: rgba(244,241,234,0.13);
  --accent: var(--aqua);
  --ts: 1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--off-white);
  color: var(--ink);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--amber); color: var(--deep); }
a { color: inherit; }
button { font-family: inherit; }
/* Aufgabe 9 (WCAG 1.4.11): Doppel-Ring-Fokus. Aqua trägt auf dunklen Sektionen,
   der dunkle Halo trägt auf hellen — so ist der Fokus auf BEIDEN Hintergründen ≥3:1. */
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; box-shadow: 0 0 0 5px rgba(11,30,39,0.55); border-radius: 2px; }

/* Skip-Link (WCAG 2.4.1): erste fokussierbare Stelle, springt zum Hauptinhalt. */
.skip-link { position: absolute; left: 10px; top: -60px; z-index: 100; background: var(--deep); color: var(--off-white); padding: 10px 16px; border-radius: 2px; text-decoration: none; font-weight: 600; font-size: 14px; transition: top .15s ease; }
.skip-link:focus { top: 10px; }

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

/* ---------------- Header ---------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--off-white); }
.topbar { background: var(--deep); color: var(--off-white); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 16px; }
.topbar-place { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--light-70); }
.lang-switch { display: flex; align-items: center; gap: 9px; }
.lang-hint { font-size: 12.5px; font-style: italic; color: var(--light-55); font-family: 'Newsreader', serif; }
.lang-sep { color: var(--light-55); }
.langbtn { background: none; border: 0; cursor: pointer; padding: 4px 2px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; color: var(--light-55); transition: color .2s; position: relative; }
.langbtn:hover { color: var(--off-white); }
.langbtn.active { color: var(--aqua); }
.langbtn.active::after { content:""; position:absolute; left:2px; right:2px; bottom:-1px; height:1.5px; background: var(--aqua); }
.langbtn--soon { opacity: .38; cursor: default; }

.navbar { border-bottom: 1px solid var(--line-on-light); transition: box-shadow .3s; }
.site-header.is-scrolled .navbar { box-shadow: 0 10px 30px -22px rgba(11,30,39,0.5); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 24px; }
.mainnav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav-link { font-size: 14.5px; text-decoration: none; color: var(--ink); position: relative; padding: 6px 0; transition: color .2s; }
.nav-link::after { content:""; position:absolute; left:0; right:100%; bottom: 0; height: 1.5px; background: var(--link); transition: right .25s ease; }
.nav-link:hover { color: var(--link); }
.nav-link:hover::after { right: 0; }

/* ---------------- Buttons ---------------- */
.btn { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 13px 22px; border-radius: 2px; cursor: pointer; border: 1px solid transparent; transition: background .25s, color .25s, border-color .25s; white-space: nowrap; }
.btn svg { transition: transform .25s ease; }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--accent); color: var(--deep); }
.btn--primary:hover { filter: brightness(0.94); }
.btn--light { color: var(--off-white); border-color: rgba(244,241,234,0.45); background: transparent; }
.btn--light:hover { background: var(--off-white); color: var(--deep); border-color: var(--off-white); }
.btn--ghost { color: var(--ink); border-color: rgba(11,30,39,0.25); }
.btn--ghost:hover { background: var(--deep); color: var(--off-white); }
.btn--mini { font-size: 13px; padding: 8px 15px; color: var(--ink); border: 1px solid rgba(11,30,39,0.2); }
.btn--mini:hover { background: var(--deep); color: var(--off-white); border-color: var(--deep); }

/* ---------------- Hero ---------------- */
.hero--full { position: relative; min-height: min(88vh, 780px); display: flex; align-items: flex-end; overflow: hidden; background: var(--deep); }
.hero-bg { position: absolute; inset: 0; height: 100%; aspect-ratio: auto !important; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,30,39,0.28) 0%, rgba(11,30,39,0.30) 42%, rgba(11,30,39,0.86) 100%); }
.hero-full-inner { position: relative; z-index: 2; padding-bottom: clamp(48px, 9vh, 104px); padding-top: clamp(80px, 18vh, 200px); max-width: 920px; }
.hero-headline { font-family: 'Newsreader', Georgia, serif; font-weight: 500; line-height: 1.02; letter-spacing: -0.018em; margin: 18px 0 0; font-size: calc(var(--ts) * clamp(40px, 6.6vw, 94px)); }
.hero-headline span { display: block; }
.hero-headline--light { color: var(--off-white); }
.hero-sub { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; max-width: 46ch; margin: 22px 0 0; }
.hero-sub--light { color: var(--light-85); }
.hero-cta { margin-top: 32px; }
.hero-scroll { position: absolute; right: clamp(20px, 5vw, 64px); bottom: clamp(28px, 6vh, 64px); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--light-55); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; writing-mode: vertical-rl; }
.hero-scroll-line { writing-mode: horizontal-tb; width: 1px; height: 46px; background: linear-gradient(var(--light-55), transparent); animation: scrollpulse 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes scrollpulse { 0%,100% { transform: scaleY(0.35); opacity:.4 } 50% { transform: scaleY(1); opacity:1 } }

.hero--split { background: var(--off-white); padding-top: clamp(36px, 6vh, 72px); }
.hero-split-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 76px); align-items: center; padding-bottom: clamp(48px, 9vh, 104px); }
.hero-split-copy .hero-headline { color: var(--deep); }
.hero-split-copy .hero-sub { color: var(--ink-80); }

/* ---------------- Intro ---------------- */
.intro { padding: clamp(60px, 10vh, 128px) 0; background: var(--off-white); }
.intro-grid { display: grid; grid-template-columns: minmax(180px, 240px) 1fr; gap: clamp(28px, 5vw, 76px); align-items: start; border-top: 1px solid var(--line-on-light); padding-top: clamp(32px, 5vh, 56px); }
.intro-byline { margin-top: 16px; font-size: 13.5px; color: var(--ink-55); letter-spacing: 0.01em; max-width: 22ch; line-height: 1.5; }
.intro-statement { margin: 0; font-family: 'Newsreader', Georgia, serif; font-weight: 400; line-height: 1.24; letter-spacing: -0.008em; color: var(--deep); font-size: calc(var(--ts) * clamp(25px, 3.4vw, 46px)); text-wrap: pretty; }

/* ---------------- Generic section ---------------- */
.section { padding: clamp(56px, 8vh, 108px) 0; }
.section--light { background: var(--off-white); }
.section--ruled { border-top: 1px solid var(--line-on-light); }
.section-head { margin-bottom: clamp(28px, 4.5vh, 52px); max-width: 720px; }
.section-title { font-family: 'Newsreader', Georgia, serif; font-weight: 500; line-height: 1.05; letter-spacing: -0.016em; margin: 14px 0 0; color: var(--deep); font-size: calc(var(--ts) * clamp(30px, 4vw, 52px)); text-wrap: balance; }

/* ---------------- Categories ---------------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 2.6vw, 38px) clamp(20px, 2.4vw, 34px); }
.cat-tile { display: block; cursor: pointer; }
.cat-photo { overflow: hidden; }
.cat-photo .photoslot { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.cat-tile:hover .cat-photo .photoslot { transform: scale(1.035); }
.cat-meta { display: flex; align-items: center; gap: 10px; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line-on-light); }
.cat-meta svg { transition: transform .25s ease; }
.cat-tile:hover .cat-meta svg { transform: translateX(5px); }
.cat-name { font-family: 'Newsreader', serif; font-weight: 500; font-size: 20px; margin: 0; color: var(--ink); transition: color .2s; }
.cat-tile:hover .cat-name { color: var(--link); }
.cat-count { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-55); }

/* ---------------- Events ---------------- */
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); }
.event-date { margin-top: 16px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-ink); }
.event-title { font-family: 'Newsreader', serif; font-weight: 500; font-size: 24px; margin: 8px 0 0; color: var(--deep); }
.event-blurb { font-size: 16px; line-height: 1.55; color: var(--ink-80); margin: 10px 0 0; max-width: 40ch; }

/* ---------------- From the streets (centerpiece) ---------------- */
.streets { position: relative; background: var(--deep); color: var(--off-white); padding: clamp(72px, 11vh, 144px) 0; overflow: hidden; }
.streets::before { content:""; position:absolute; top: -10%; left: 50%; width: 70vw; height: 50vh; background: radial-gradient(ellipse at center, rgba(217,164,65,0.12), transparent 70%); transform: translateX(-30%); pointer-events: none; }
.streets-grid { position: relative; display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: clamp(36px, 6vw, 96px); }
.streets-aside-inner { position: sticky; top: 116px; }
.streets-title { font-family: 'Newsreader', serif; font-weight: 500; line-height: 1.02; letter-spacing: -0.02em; margin: 14px 0 0; color: var(--off-white); font-size: calc(var(--ts) * clamp(34px, 4.6vw, 60px)); }
.streets-intro { font-size: 16.5px; line-height: 1.62; color: var(--light-85); margin: 18px 0 0; max-width: 34ch; }
.streets-following { display: flex; align-items: center; gap: 10px; margin-top: 24px; font-size: 12.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--light-70); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(217,164,65,0.6); animation: pulse 2.4s ease-out infinite; flex-shrink: 0; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(217,164,65,0.55) } 70% { box-shadow: 0 0 0 9px rgba(217,164,65,0) } 100% { box-shadow: 0 0 0 0 rgba(217,164,65,0) } }
.streets-lang { display: inline-flex; align-items: center; gap: 7px; margin-top: 22px; color: var(--aqua); font-size: 13.5px; font-weight: 500; text-decoration: none; }
.streets-lang:hover { text-decoration: underline; text-underline-offset: 3px; }

.stream { position: relative; }
.stream-line { position: absolute; left: 7px; top: 8px; bottom: 64px; width: 1px; background: linear-gradient(180deg, rgba(217,164,65,0.55), rgba(244,241,234,0.12)); }
.stream-entry { position: relative; padding-left: clamp(32px, 4vw, 52px); padding-bottom: clamp(34px, 5vh, 56px); border-bottom: 1px solid var(--light-line); margin-bottom: clamp(34px, 5vh, 56px); }
.stream-entry:last-of-type { border-bottom: 0; }
.stream-node { position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--deep); border: 1.5px solid var(--amber); box-shadow: 0 0 0 4px var(--deep), 0 0 16px rgba(217,164,65,0.55); }
.stream-date { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; }
.stream-card { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: clamp(20px, 2.5vw, 34px); align-items: start; }
.stream-title { font-family: 'Newsreader', serif; font-weight: 500; font-size: 23px; line-height: 1.18; margin: 0; color: var(--off-white); }
.stream-note { font-size: 16px; line-height: 1.62; color: var(--light-85); margin: 10px 0 0; max-width: 48ch; }
.stream-more { display: inline-flex; align-items: center; gap: 8px; margin-left: clamp(32px, 4vw, 52px); color: var(--aqua); font-size: 14px; font-weight: 600; text-decoration: none; }
.stream-more svg { transition: transform .25s; }
.stream-more:hover svg { transform: translateX(4px); }

/* ---------------- Walk ---------------- */
.walk { position: relative; min-height: min(70vh, 580px); display: flex; align-items: flex-end; overflow: hidden; background: var(--deep); color: var(--off-white); }
.walk-bg { position: absolute; inset: 0; height: 100%; aspect-ratio: auto !important; }
.walk-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,30,39,0.25), rgba(11,30,39,0.82)); }
.walk-inner { position: relative; z-index: 2; padding: clamp(48px, 8vh, 96px) 0; max-width: 660px; }
.walk-title { font-family: 'Newsreader', serif; font-weight: 500; line-height: 1.04; letter-spacing: -0.018em; margin: 14px 0 0; color: var(--off-white); font-size: calc(var(--ts) * clamp(32px, 4.4vw, 58px)); }
.walk-sub { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: var(--light-85); margin: 18px 0 28px; max-width: 42ch; }

/* ---------------- Map ---------------- */
.map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 76px); align-items: center; }
.map-body { font-size: 17px; line-height: 1.62; color: var(--ink-80); margin: 16px 0 0; max-width: 42ch; }
.map-privacy { font-size: 13.5px; line-height: 1.5; color: var(--ink-55); margin: 16px 0 0; font-style: italic; font-family: 'Newsreader', serif; max-width: 40ch; }
.map-frame { position: relative; }
.map-cta { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 9px; background: var(--off-white); color: var(--deep); border: 0; padding: 13px 22px; border-radius: 2px; font-size: 14.5px; font-weight: 600; cursor: pointer; box-shadow: 0 14px 34px -18px rgba(0,0,0,0.6); transition: transform .2s; }
.map-cta:hover:not(:disabled) { transform: translate(-50%, -50%) translateY(-2px); }
.map-cta:disabled { opacity: .8; cursor: default; }

/* ---------------- Network ---------------- */
.network { background: var(--deep); color: var(--off-white); padding: clamp(64px, 9vh, 120px) 0; border-top: 1px solid var(--light-line); }
.network-head { max-width: 660px; margin-bottom: clamp(28px, 4vh, 48px); }
.network-intro { font-family: 'Newsreader', serif; font-weight: 400; font-size: clamp(20px, 2vw, 24px); line-height: 1.42; color: var(--light-85); margin: 14px 0 0; text-wrap: pretty; }
.network-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 36px); }
.net-card { display: block; cursor: pointer; }
.net-photo { overflow: hidden; }
.net-photo .photoslot { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.net-card:hover .net-photo .photoslot { transform: scale(1.035); }
.net-meta { display: flex; align-items: center; gap: 10px; padding-top: 13px; margin-top: 13px; border-top: 1px solid var(--light-line); }
.net-meta svg { transition: transform .25s; }
.net-card:hover .net-meta svg { transform: translateX(5px); }
.net-name { font-family: 'Newsreader', serif; font-weight: 500; font-size: 19px; margin: 0; color: var(--off-white); }
.net-role { font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--light-55); }

/* ---------------- Footer ---------------- */
.footer { background: var(--deep); color: var(--off-white); padding: clamp(48px, 7vh, 80px) 0 40px; border-top: 1px solid var(--light-line); }
.footer-inner { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.footer-operated { margin: 18px 0 0; font-size: 14px; color: var(--light-70); }
.footer-rights { margin: 8px 0 0; font-size: 13px; color: var(--light-55); max-width: 38ch; line-height: 1.5; }
.footer-coltitle { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--light-55); margin-bottom: 16px; }
.footer-langs { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.footer-lang { background: none; border: 0; cursor: pointer; padding: 0; font-size: 14.5px; color: var(--light-70); transition: color .2s; }
.footer-lang:hover, .footer-lang.active { color: var(--aqua); }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-link { font-size: 14.5px; color: var(--light-70); text-decoration: none; transition: color .2s; }
.footer-link:hover { color: var(--aqua); }
.footer-foot { display: flex; align-items: center; justify-content: space-between; margin-top: clamp(36px, 5vh, 56px); padding-top: 22px; border-top: 1px solid var(--light-line); font-size: 12.5px; color: var(--light-55); }
.footer-mark { display: inline-flex; align-items: center; gap: 8px; }

/* ---------------- Light thread (roter Faden) ---------------- */
.light-thread { position: fixed; left: clamp(12px, 2.2vw, 30px); top: 0; bottom: 0; width: 18px; z-index: 40; pointer-events: none; }
.light-thread-line { position: absolute; left: 8px; top: 14vh; bottom: 14vh; width: 1px; background: linear-gradient(180deg, rgba(217,164,65,0) 0%, rgba(217,164,65,0.4) 18%, rgba(217,164,65,0.4) 82%, rgba(217,164,65,0) 100%); }
.light-thread-dot { position: absolute; left: 0; width: 18px; height: 18px; transform: translateY(-50%); transition: top .12s linear; filter: drop-shadow(0 0 7px rgba(217,164,65,0.85)); }

/* ---------------- Reveal motion ---------------- */
.reveal { opacity: 0; transform: translateY(var(--reveal-shift, 16px)); transition: opacity var(--reveal-dur, .6s) ease, transform var(--reveal-dur, .6s) cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.motion-off .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.motion-off .light-thread { display: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .light-thread, .hero-scroll-line { display: none !important; }
  .pulse { animation: none !important; }
}

/* ---------------- Responsive (mobile derivation) ---------------- */
@media (max-width: 1080px) {
  .mainnav { display: none; }
}
@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .event-grid, .network-grid { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 40px); }
  .map-grid, .streets-grid, .hero-split-grid, .intro-grid, .footer-inner { grid-template-columns: 1fr; }
  .stream-card { grid-template-columns: 1fr; gap: 16px; }
  .streets-aside-inner { position: static; }
  .map-frame { order: -1; }
  .footer-inner { gap: 36px; }
  .footer-foot { flex-direction: column; gap: 12px; align-items: flex-start; }
}
@media (max-width: 720px) {
  .lang-hint, .lang-sep { display: none; }
}
@media (max-width: 560px) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .topbar-place { display: none; }
  .event-title { font-size: 22px; }
}

/* ============================================================
   LIVE MODE (residents) — supplements Visit; shared brand.
   Tone: functional, denser, searchable. Nothing in Visit changes.
   ============================================================ */

/* topbar holds the always-visible mode switch beside the place name */
.topbar-left { display: flex; align-items: center; gap: 18px; min-width: 0; }
.modeswitch { display: inline-flex; border: 1px solid var(--light-line); border-radius: 2px; overflow: hidden; flex-shrink: 0; }
.modeswitch-btn { background: none; border: 0; color: var(--light-55); font-family: inherit; font-weight: 600; font-size: 12px; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 15px; cursor: pointer; transition: background .2s, color .2s; }
.modeswitch-btn:not(.is-active):hover { color: var(--off-white); }
.modeswitch-btn.is-active { background: var(--aqua); color: var(--deep); }

/* non-blocking first-visit choice — editorial, part of the hero, dismissible */
.modechoice { margin-top: 32px; max-width: 600px; background: #10262f; border: 1px solid var(--light-line); border-left: 2px solid var(--amber); border-radius: 4px; padding: 17px 20px 20px; box-shadow: 0 28px 64px -34px rgba(0,0,0,0.8); }
.modechoice-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modechoice-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--light-70); }
.modechoice-dismiss { background: none; border: 0; color: var(--light-55); font-family: inherit; font-size: 12.5px; cursor: pointer; padding: 4px 2px; transition: color .2s; }
.modechoice-dismiss:hover { color: var(--off-white); }
.modechoice-title { font-family: 'Newsreader', serif; font-weight: 500; font-size: 21px; color: var(--off-white); margin: 11px 0 16px; }
.modechoice-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modechoice-opt { display: flex; flex-direction: column; gap: 6px; text-align: left; background: rgba(244,241,234,0.04); border: 1px solid var(--light-line); border-radius: 3px; padding: 14px 15px 13px; cursor: pointer; color: var(--off-white); transition: background .2s, border-color .2s, transform .2s; }
.modechoice-opt:hover { background: rgba(63,199,194,0.10); border-color: rgba(63,199,194,0.5); transform: translateY(-1px); }
.modechoice-opt--live:hover { background: rgba(217,164,65,0.12); border-color: rgba(217,164,65,0.5); }
.modechoice-opt-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.modechoice-opt-head svg { transition: transform .2s; }
.modechoice-opt:hover .modechoice-opt-head svg { transform: translateX(4px); }
.modechoice-opt-title { font-family: 'Newsreader', serif; font-weight: 500; font-size: 17px; }
.modechoice-opt-desc { font-size: 13px; line-height: 1.45; color: var(--light-70); }
.modechoice-opt-tag { align-self: flex-start; margin-top: 5px; font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--aqua); }
.modechoice-opt-tag--live { color: var(--amber); }

/* Live hero — compact, search-led, on off-white (function over romance) */
.livehero { background: var(--off-white); padding-top: clamp(40px, 7vh, 92px); padding-bottom: clamp(36px, 6vh, 64px); border-bottom: 1px solid var(--line-on-light); }
.livehero-inner { max-width: 880px; }
.livehero-title { font-family: 'Newsreader', Georgia, serif; font-weight: 500; line-height: 1.05; letter-spacing: -0.016em; color: var(--deep); margin: 14px 0 0; font-size: calc(var(--ts) * clamp(30px, 4.4vw, 56px)); }
.livehero-lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.5; color: var(--ink-80); margin: 14px 0 0; max-width: 52ch; }
.livesearch { display: flex; gap: 10px; margin-top: 24px; max-width: 640px; }
.livesearch-input { flex: 1; min-width: 0; font-family: inherit; font-size: 16px; padding: 14px 16px; border: 1px solid rgba(11,30,39,0.25); border-radius: 2px; background: #fff; color: var(--ink); }
.livesearch-input::placeholder { color: var(--ink-55); }
.livesearch-input:focus { outline: 2px solid var(--aqua); outline-offset: 1px; border-color: var(--aqua); }
.livesearch-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--deep); font-weight: 600; font-size: 14.5px; padding: 0 20px; border-radius: 2px; text-decoration: none; white-space: nowrap; }
.livesearch-btn svg { transition: transform .25s; }
.livesearch-btn:hover svg { transform: translateX(4px); }
.livechips { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 18px; }
.livechips-label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-55); margin-right: 2px; }
.livechip { font-size: 13.5px; text-decoration: none; color: var(--ink); border: 1px solid rgba(11,30,39,0.2); border-radius: 999px; padding: 7px 14px; transition: background .2s, color .2s, border-color .2s; }
.livechip:hover { background: var(--deep); color: var(--off-white); border-color: var(--deep); }

/* Live categories — full everyday set, tool-like cards */
.livecat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.livecat { display: flex; flex-direction: column; gap: 8px; padding: 18px 16px 16px; border: 1px solid var(--line-on-light); border-radius: 3px; background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.livecat:hover { border-color: rgba(11,30,39,0.3); box-shadow: 0 16px 32px -26px rgba(11,30,39,0.6); transform: translateY(-2px); }
.livecat-row { display: flex; align-items: center; gap: 9px; }
.livecat-name { font-family: 'Newsreader', serif; font-weight: 500; font-size: 18px; margin: 0; color: var(--ink); }
.livecat-meta { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-ink); border: 1px solid rgba(169,120,31,0.3); border-radius: 999px; padding: 4px 8px; white-space: nowrap; }
.livecat svg { transition: transform .2s; }
.livecat:hover svg { transform: translateX(4px); }
.livecat-desc { font-size: 13.5px; line-height: 1.5; color: var(--ink-60); margin: 0; }

/* Handwerker directory — neutral, legally careful, clearly a tool */
.handwerk { background: var(--off-white); }
.handwerk-intro { font-size: 17px; line-height: 1.55; color: var(--ink-80); margin: 14px 0 0; max-width: 62ch; }
.handwerk-transparency { display: flex; gap: 11px; align-items: flex-start; background: rgba(217,164,65,0.08); border: 1px solid rgba(169,120,31,0.28); border-radius: 3px; padding: 14px 16px; margin: 24px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-80); }
.handwerk-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin: 22px 0 18px; }
.handwerk-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.handwerk-chip { font-family: inherit; font-size: 13px; font-weight: 500; padding: 8px 13px; border: 1px solid rgba(11,30,39,0.2); border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.handwerk-chip:hover { border-color: rgba(11,30,39,0.4); }
.handwerk-chip.is-active { background: var(--deep); color: var(--off-white); border-color: var(--deep); }
.handwerk-search { display: flex; align-items: center; gap: 8px; border: 1px solid rgba(11,30,39,0.25); border-radius: 2px; padding: 9px 12px; background: #fff; min-width: 250px; flex: 0 1 320px; }
.handwerk-search:focus-within { outline: 2px solid var(--aqua); outline-offset: 1px; border-color: var(--aqua); }
.handwerk-search input { border: 0; outline: 0; font-family: inherit; font-size: 14px; background: none; color: var(--ink); width: 100%; }
.handwerk-empty { font-size: 15px; color: var(--ink-60); padding: 28px 0; }
.handwerk-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hw-entry { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line-on-light); border-radius: 3px; padding: 16px 18px; }
.hw-trade { align-self: flex-start; font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--deep); background: rgba(63,199,194,0.18); border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.hw-name { font-family: 'Newsreader', serif; font-weight: 500; font-size: 19px; margin: 0; color: var(--ink); }
.hw-facts { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.hw-fact { display: grid; grid-template-columns: 84px 1fr; gap: 10px; }
.hw-fact dt { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-55); line-height: 1.5; }
.hw-fact dd { margin: 0; font-size: 14px; color: var(--ink-80); line-height: 1.45; }
.hw-side { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 11px; border-top: 1px solid var(--line-on-light); }
.hw-checked { display: inline-flex; align-items: center; gap: 7px; font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 11.5px; color: var(--ink-55); }
.hw-checked-dot { width: 7px; height: 7px; border-radius: 50%; background: #3a9d57; flex-shrink: 0; }
.hw-claim { font-size: 12.5px; color: var(--link); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.hw-claim:hover { text-decoration: underline; text-underline-offset: 2px; }
.hw-claim svg { transition: transform .2s; }
.hw-claim:hover svg { transform: translateX(3px); }

/* Live events — practical, recurring view of the same data */
.liveev-list { display: flex; flex-direction: column; }
.liveev { display: grid; grid-template-columns: 170px 1fr auto; gap: 24px; align-items: start; padding: 22px 0; border-top: 1px solid var(--line-on-light); }
.liveev:last-of-type { border-bottom: 1px solid var(--line-on-light); }
.liveev-when { display: flex; flex-direction: column; gap: 8px; }
.liveev-date { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber-ink); }
.liveev-tag { align-self: flex-start; font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--deep); background: rgba(63,199,194,0.18); border-radius: 999px; padding: 4px 8px; white-space: nowrap; }
.liveev-title { font-family: 'Newsreader', serif; font-weight: 500; font-size: 21px; margin: 0; color: var(--deep); }
.liveev-blurb { font-size: 15px; line-height: 1.55; color: var(--ink-80); margin: 8px 0 0; max-width: 62ch; }

/* Live-mode responsive */
@media (max-width: 1080px) {
  .livecat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .livecat-grid { grid-template-columns: repeat(2, 1fr); }
  .handwerk-list { grid-template-columns: 1fr; }
  .handwerk-tools { flex-direction: column; align-items: stretch; }
  .handwerk-search { flex: 1 1 auto; }
  .liveev { grid-template-columns: 1fr; gap: 8px; }
  .modechoice-opts { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .livesearch { flex-direction: column; }
  .livesearch-btn { justify-content: center; padding: 13px; }
  .topbar-left { gap: 12px; }
}
@media (max-width: 460px) {
  .livecat-grid { grid-template-columns: 1fr; }
  .hw-fact { grid-template-columns: 72px 1fr; }
}

/* ============================================================
   Domain-abhängige Modus-/Sprachlogik (Aufgabe 4)
   ============================================================ */

/* Visit-only-Domain (.com): dezenter "Wohnst du hier? →"-Hinweis statt Mode-Switch. */
.topbar-livehint { display: inline-flex; align-items: center; font-size: 12.5px; color: var(--light-70); text-decoration: none; transition: color .2s; }
.topbar-livehint:hover { color: var(--aqua); }
.topbar-livehint svg { transition: transform .2s; }
.topbar-livehint:hover svg { transform: translateX(3px); }

/* Cross-Domain-Sprachsprung im Umschalter (z. B. "EN →" auf .de). */
.langbtn--cross { display: inline-flex; align-items: center; color: var(--light-55); }
.langbtn--cross:hover { color: var(--off-white); }
.langbtn--cross svg { transition: transform .2s; }
.langbtn--cross:hover svg { transform: translateX(2px); }
.footer-lang--cross { color: var(--light-55); }
.footer-lang--cross:hover { color: var(--aqua); }

/* ============================================================
   i18n: "in Arbeit"-Sprachen (Aufgabe 5) — SV/DA auf .com,
   Fallback EN, im Umschalter klar als unfertig markiert.
   ============================================================ */
.langbtn--wip { opacity: 0.6; }
.langbtn--wip:hover { opacity: 1; }
.langbtn-wip { font-size: 8.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--amber); margin-left: 3px; vertical-align: super; }
.footer-lang-wip { font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--amber); margin-left: 6px; vertical-align: super; }

/* ============================================================
   "Beispieldaten"-Kennzeichnung am Handwerker-Verzeichnis (Aufgabe 6).
   Die zehn Einträge sind erfundene Platzhalter — klar markieren, bis die
   echte Bestandserhebung vorliegt.
   ============================================================ */
.handwerk-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 18px 0 0; }
.handwerk-demo-badge { flex-shrink: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--deep); background: var(--amber); border-radius: 999px; padding: 5px 12px; }
.handwerk-demo-note { font-size: 13.5px; line-height: 1.5; color: var(--ink-80); }

/* ============================================================
   Datensparsame Karte (Aufgabe 8) — MapLibre lädt erst auf Klick.
   ============================================================ */
.map-live { position: relative; aspect-ratio: 4 / 3; border-radius: 3px; overflow: hidden; background: #0c222c; }
.map-live .maplibregl-map { position: absolute; inset: 0; }
.map-status { font-size: 13.5px; color: var(--ink-60); margin: 10px 0 0; font-style: italic; font-family: 'Newsreader', serif; }
.map-status--error { color: var(--amber-ink); font-style: normal; }

/* ============================================================
   Statische Rechtsseiten (Aufgabe 10) — Impressum/Datenschutz/Barrierefreiheit.
   ============================================================ */
.legal-body { background: var(--off-white); }
.legal-header { background: var(--deep); color: var(--off-white); position: sticky; top: 0; z-index: 50; }
.legal-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.legal-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--off-white); font-family: 'Newsreader', Georgia, serif; font-size: 20px; font-weight: 500; }
.legal-brand-city { color: var(--light-55); font-weight: 400; }
.legal-back { color: var(--light-70); text-decoration: none; font-size: 14px; transition: color .2s; }
.legal-back:hover { color: var(--aqua); }
.legal-main { background: var(--off-white); padding: clamp(40px, 7vh, 88px) 0 clamp(48px, 8vh, 96px); }
.legal-prose { max-width: 760px; }
.legal-eyebrow { font-family: 'Hanken Grotesk', sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber-ink); margin: 0 0 8px; }
.legal-prose h1 { font-family: 'Newsreader', Georgia, serif; font-weight: 500; line-height: 1.08; letter-spacing: -0.012em; font-size: calc(var(--ts) * clamp(30px, 5vw, 46px)); color: var(--deep); margin: 0 0 10px; }
.legal-lead { font-size: 18px; line-height: 1.55; color: var(--ink-80); margin: 0 0 30px; max-width: 60ch; }
.legal-prose h2 { font-family: 'Newsreader', Georgia, serif; font-weight: 500; font-size: 22px; line-height: 1.2; color: var(--deep); margin: 34px 0 8px; }
.legal-prose p { font-size: 16px; line-height: 1.65; color: var(--ink-80); margin: 0 0 12px; max-width: 68ch; }
.legal-prose ul { font-size: 16px; line-height: 1.6; color: var(--ink-80); padding-left: 22px; margin: 0 0 12px; max-width: 68ch; }
.legal-prose li { margin: 0 0 6px; }
.legal-prose a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.legal-prose a:hover { color: var(--deep); }
.legal-footer { background: var(--deep); color: var(--light-70); padding: 32px 0; border-top: 1px solid var(--light-line); }
.legal-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
.legal-footer-rights { font-size: 13px; color: var(--light-55); margin: 0; max-width: 52ch; line-height: 1.5; }
.legal-footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.legal-footer-links a { color: var(--light-70); text-decoration: none; font-size: 14px; transition: color .2s; }
.legal-footer-links a:hover { color: var(--aqua); }
@media (max-width: 560px) { .legal-back { display: none; } }
