/* ===========================================================
   COMMUNITS — Design System
   Brand: Signal-Yellow #f4ff00 · Blue #55a7ff · Dark #050505 · Ink #f5f5f1
   =========================================================== */

:root {
  /* Type scale (fluid) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 0.5rem + 7vw, 7rem);

  /* Spacing (4px system) */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-7: 1.75rem; --space-8: 2rem; --space-9: 2.25rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  /* Brand tokens */
  --signal: #f4ff00;
  --signal-dim: #c9d300;
  --blue: #55a7ff;
  --blue-dim: #2f7fdb;

  /* Radius */
  --radius-sm: 0.375rem; --radius-md: 0.625rem; --radius-lg: 1rem; --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Transition */
  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 680px;
  --content-default: 1000px;
  --content-wide: 1240px;

  /* Fonts */
  --font-display: 'Clash Display', 'Arial Black', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;
}

/* DARK MODE (brand default) */
:root, [data-theme='dark'] {
  --color-bg: #050505;
  --color-surface: #0d0d0d;
  --color-surface-2: #141414;
  --color-surface-offset: #1a1a1a;
  --color-border: #262626;
  --color-divider: #1c1c1c;
  --color-text: #f5f5f1;
  --color-text-muted: #9a9a94;
  --color-text-faint: #5e5e58;
  --color-text-inverse: #050505;
  --color-accent: var(--signal);
  --color-accent-ink: #050505;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.45);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.55);
  --shadow-glow: 0 0 0 1px rgba(244,255,0,0.15), 0 12px 40px rgba(244,255,0,0.08);
}

/* LIGHT MODE */
[data-theme='light'] {
  --color-bg: #f5f5f1;
  --color-surface: #ffffff;
  --color-surface-2: #f0f0ea;
  --color-surface-offset: #e8e8e0;
  --color-border: #d9d9d0;
  --color-divider: #e4e4dc;
  --color-text: #0a0a0a;
  --color-text-muted: #565650;
  --color-text-faint: #9a9a92;
  --color-text-inverse: #f5f5f1;
  --color-accent: #0a0a0a;
  --color-accent-ink: var(--signal);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 0 1px rgba(0,0,0,0.08), 0 12px 40px rgba(0,0,0,0.06);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --color-bg: #f5f5f1; --color-surface: #ffffff; --color-surface-2: #f0f0ea;
    --color-surface-offset: #e8e8e0; --color-border: #d9d9d0; --color-divider: #e4e4dc;
    --color-text: #0a0a0a; --color-text-muted: #565650; --color-text-faint: #9a9a92;
    --color-text-inverse: #f5f5f1; --color-accent: #0a0a0a; --color-accent-ink: var(--signal);
  }
}

/* ===================== BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: none; text-size-adjust: none;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}
body {
  min-height: 100dvh; line-height: 1.6;
  font-family: var(--font-body); font-size: var(--text-base);
  color: var(--color-text); background-color: var(--color-bg);
  overflow-x: hidden;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'], ol[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.04; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
p, li { text-wrap: pretty; }
p { max-width: 64ch; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; }
table { border-collapse: collapse; width: 100%; }

::selection { background: var(--signal); color: #050505; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: var(--radius-sm); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

a, button, [role='button'], input, textarea, select {
  transition: color var(--transition-interactive), background var(--transition-interactive),
    border-color var(--transition-interactive), box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* ===================== LAYOUT ===================== */
.wrap { width: 100%; max-width: var(--content-wide); margin-inline: auto; padding-inline: clamp(var(--space-4), 4vw, var(--space-12)); }
.wrap-narrow { max-width: var(--content-narrow); }
.wrap-default { max-width: var(--content-default); }
section { padding-block: clamp(var(--space-16), 8vw, var(--space-32)); }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-text-muted); font-family: var(--font-body);
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--signal); }

/* ===================== HEADER ===================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklab, var(--color-bg) 82%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding-block: var(--space-4); }
.brand { display: flex; align-items: center; gap: var(--space-3); font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); letter-spacing: -0.03em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; align-items: center; gap: var(--space-2); }
.nav a {
  font-size: var(--text-sm); font-weight: 500; color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-full);
}
.nav a:hover { color: var(--color-text); }
.nav a.active { color: var(--color-text); background: var(--color-surface-2); }
.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.theme-toggle {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-full);
  border: 1px solid var(--color-border); color: var(--color-text-muted);
}
.theme-toggle:hover { color: var(--color-text); border-color: var(--color-text-faint); }
.menu-btn { display: none; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm);
  padding: var(--space-3) var(--space-5); border-radius: var(--radius-full);
  border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--signal); color: #050505; }
.btn-primary:hover { background: #ffffff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--color-border); color: var(--color-text); }
.btn-ghost:hover { border-color: var(--signal); color: var(--color-text); transform: translateY(-1px); }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }
.btn-block { width: 100%; }

/* ===================== HERO ===================== */
.hero { position: relative; padding-top: clamp(var(--space-16), 7vw, var(--space-24)); padding-bottom: clamp(var(--space-12), 6vw, var(--space-20)); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(85,167,255,0.10), transparent 70%),
    radial-gradient(50% 60% at 0% 30%, rgba(244,255,0,0.07), transparent 65%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: 0.5; pointer-events: none;
  background-image:
    linear-gradient(var(--color-divider) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-divider) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 0%, #000 30%, transparent 80%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: var(--text-hero); margin-bottom: var(--space-5); }
.hero h1 .hl { color: var(--signal); }
.hero-sub { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 56ch; margin-bottom: var(--space-8); font-family: var(--font-body); }

/* ===================== SEARCH WIDGET ===================== */
.search-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-xl); padding: var(--space-6); box-shadow: var(--shadow-lg);
}
.search-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: var(--space-3); align-items: end; }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); }
.field input, .field select {
  background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4); font-size: var(--text-sm); color: var(--color-text); width: 100%;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--signal); }
.search-meta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--color-divider); font-size: var(--text-sm); color: var(--color-text-muted); }
.badge-mode { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); font-weight: 600; color: var(--blue); }
.badge-mode .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(85,167,255,0.18); }

/* ===================== RESULTS ===================== */
.results { margin-top: var(--space-8); display: grid; gap: var(--space-4); }
.result-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-5); align-items: center;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.result-card:hover { border-color: var(--color-text-faint); }
.result-loc { display: flex; flex-direction: column; gap: var(--space-1); }
.result-loc .name { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); }
.result-loc .addr { font-size: var(--text-sm); color: var(--color-text-muted); }
.result-stat { display: flex; flex-direction: column; gap: var(--space-1); }
.result-stat .k { font-size: var(--text-xs); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.result-stat .v { font-family: var(--font-display); font-weight: 600; font-size: var(--text-base); }
.result-stats { display: flex; gap: var(--space-8); }
.pill { font-size: var(--text-xs); font-weight: 600; padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); }
.pill-soon { background: rgba(85,167,255,0.14); color: var(--blue); }
.pill-live { background: rgba(244,255,0,0.16); color: var(--signal-dim); }
[data-theme='light'] .pill-live { color: #6b7300; }

/* ===================== GENERIC SECTIONS ===================== */
.section-head { max-width: 60ch; margin-bottom: var(--space-12); }
.section-head h2 { font-size: var(--text-2xl); margin-block: var(--space-4) var(--space-5); }
.section-head p { font-size: var(--text-lg); color: var(--color-text-muted); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-6); }
.step { position: relative; padding: var(--space-6); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.step .num { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; color: var(--signal); margin-bottom: var(--space-3); }
[data-theme='light'] .step .num { color: #0a0a0a; -webkit-text-stroke: 0; }
.step h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.step p { font-size: var(--text-sm); color: var(--color-text-muted); }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-5); }
.feature {
  padding: var(--space-6); border-radius: var(--radius-lg);
  background: var(--color-surface); border: 1px solid var(--color-border);
}
.feature .ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-md); background: var(--color-surface-2); color: var(--signal); margin-bottom: var(--space-4); }
[data-theme='light'] .feature .ico { color: #0a0a0a; }
.feature h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.feature p { font-size: var(--text-sm); color: var(--color-text-muted); }

/* Stat band */
.stat-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-8); border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); padding-block: var(--space-12); }
.stat { display: flex; flex-direction: column; gap: var(--space-2); }
.stat .big { font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xl); color: var(--color-text); }
.stat .big em { font-style: normal; color: var(--signal); }
[data-theme='light'] .stat .big em { color: #0a0a0a; }
.stat .lbl { font-size: var(--text-sm); color: var(--color-text-muted); }

/* CTA band */
.cta-band { background: var(--signal); color: #050505; border-radius: var(--radius-xl); padding: clamp(var(--space-10), 6vw, var(--space-24)); text-align: center; }
.cta-band h2 { font-size: var(--text-2xl); margin-bottom: var(--space-4); color: #050505; }
.cta-band p { color: #1a1a00; max-width: 52ch; margin-inline: auto; margin-bottom: var(--space-8); }
.cta-band .btn-dark { background: #050505; color: var(--signal); }
.cta-band .btn-dark:hover { background: #1a1a1a; transform: translateY(-1px); }
/* Buttons im gelben CTA-Band immer lesbar (dunkel auf Gelb) */
.cta-band .btn-primary { background: #050505; color: var(--signal); border-color: #050505; }
.cta-band .btn-primary:hover { background: #1a1a1a; color: var(--signal); transform: translateY(-1px); }
.cta-band .btn-ghost { border-color: rgba(5,5,5,0.35); color: #050505; }
.cta-band .btn-ghost:hover { border-color: #050505; color: #050505; background: rgba(5,5,5,0.06); transform: translateY(-1px); }

/* Page hero (interior) */
.page-hero { position: relative; padding-top: clamp(var(--space-16), 7vw, var(--space-24)); padding-bottom: clamp(var(--space-10), 5vw, var(--space-16)); border-bottom: 1px solid var(--color-divider); overflow: hidden; }
.page-hero .hero-bg { opacity: 0.8; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: var(--text-3xl); max-width: 18ch; margin-block: var(--space-5); }
.page-hero h1 .hl { color: var(--signal); }
[data-theme='light'] .page-hero h1 .hl, [data-theme='light'] .hero h1 .hl { color: #0a0a0a; background: var(--signal); padding-inline: 0.08em; }
.page-hero p { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }

/* Two column */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-8), 5vw, var(--space-20)); align-items: center; }
.two-col h2 { font-size: var(--text-xl); margin-bottom: var(--space-5); }
.two-col p { color: var(--color-text-muted); margin-bottom: var(--space-4); }
.check-list { display: grid; gap: var(--space-4); margin-top: var(--space-6); }
.check-list li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: start; list-style: none; font-size: var(--text-base); }
.check-list .ck { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: var(--radius-full); background: rgba(244,255,0,0.14); color: var(--signal); margin-top: 2px; }
[data-theme='light'] .check-list .ck { background: #0a0a0a; color: var(--signal); }
.check-list .ck svg { width: 14px; height: 14px; }

/* Term sheet table */
.term-table { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.term-table .row { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-4); padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--color-divider); }
.term-table .row:last-child { border-bottom: none; }
.term-table .k { font-weight: 600; font-size: var(--text-sm); color: var(--color-text-muted); }
.term-table .v { font-size: var(--text-sm); }
.term-table .v strong { color: var(--color-text); }

/* Revenue streams */
.streams { display: grid; gap: var(--space-3); }
.stream { display: grid; grid-template-columns: auto 1fr; gap: var(--space-5); align-items: center; padding: var(--space-5) var(--space-6); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.stream .n { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; color: var(--signal); min-width: 1.5ch; }
[data-theme='light'] .stream .n { color: #0a0a0a; }
.stream h3 { font-size: var(--text-base); margin-bottom: var(--space-1); }
.stream p { font-size: var(--text-sm); color: var(--color-text-muted); margin: 0; }

/* Form */
.contact-form { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: clamp(var(--space-6), 4vw, var(--space-10)); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: flex; flex-direction: column; gap: var(--space-2); font-size: var(--text-sm); font-weight: 600; }
.form-grid input, .form-grid select, .form-grid textarea {
  background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4); font-size: var(--text-sm); font-weight: 400; color: var(--color-text);
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: none; border-color: var(--signal); }
.form-grid textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: var(--text-xs); color: var(--color-text-faint); margin-top: var(--space-4); }
.form-success { display: none; text-align: center; padding: var(--space-8); }
.form-success.show { display: block; }
.form-success .ok { width: 56px; height: 56px; margin: 0 auto var(--space-4); display: grid; place-items: center; border-radius: 50%; background: var(--signal); color: #050505; }

/* ===================== FOOTER ===================== */
.site-footer { border-top: 1px solid var(--color-divider); padding-block: var(--space-16) var(--space-10); margin-top: var(--space-12); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-8); margin-bottom: var(--space-12); }
.footer-brand p { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-4); max-width: 36ch; }
.footer-col h4 { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-text-faint); margin-bottom: var(--space-4); font-family: var(--font-body); font-weight: 600; }
.footer-col a { display: block; font-size: var(--text-sm); color: var(--color-text-muted); padding-block: var(--space-1); }
.footer-col a:hover { color: var(--color-text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-8); border-top: 1px solid var(--color-divider); font-size: var(--text-xs); color: var(--color-text-faint); flex-wrap: wrap; }
.footer-legal { max-width: 70ch; }

/* Mobile nav hidden on desktop */
.mobile-nav { display: none; }

/* fade-up animation — only active when JS marks <html> as js-enabled */
.js .fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.js .fade-up.in { opacity: 1; transform: none; }

/* ===================== MEDIA / IMAGES ===================== */
/* Hero photo backdrop */
.hero-photo { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0.32; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,5,5,0.55) 0%, rgba(5,5,5,0.75) 55%, var(--color-bg) 100%);
}
[data-theme='light'] .hero-photo img { opacity: 0.5; }
[data-theme='light'] .hero-photo::after { background: linear-gradient(180deg, rgba(245,245,241,0.45) 0%, rgba(245,245,241,0.72) 55%, var(--color-bg) 100%); }
.page-hero .hero-photo img { opacity: 0.22; }
[data-theme='light'] .page-hero .hero-photo img { opacity: 0.4; }

/* Showcase media (rounded image block) */
.media { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--color-border); background: var(--color-surface); aspect-ratio: 4 / 3; }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-tall { aspect-ratio: 3 / 4; }
.media-wide { aspect-ratio: 16 / 9; }

/* Full-width image band */
.image-band { position: relative; height: clamp(280px, 38vw, 460px); overflow: hidden; }
.image-band img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-band .band-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  padding: clamp(var(--space-6), 4vw, var(--space-12));
  background: linear-gradient(0deg, rgba(5,5,5,0.78) 0%, rgba(5,5,5,0.15) 60%, transparent 100%);
}
.image-band .band-overlay h2 { color: #f5f5f1; font-size: var(--text-2xl); max-width: 22ch; }
.image-band .band-overlay p { color: rgba(245,245,241,0.85); max-width: 48ch; margin-top: var(--space-3); }

/* Unit showcase */
.unit-showcase { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-8); align-items: stretch; }
.unit-photo { position: relative; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--color-border); background: var(--color-bg); min-height: 340px; }
.unit-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.unit-tag { position: absolute; left: var(--space-4); bottom: var(--space-4); padding: var(--space-2) var(--space-3); border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 600; letter-spacing: .02em; background: var(--signal); color: #0a0a0a; }
.unit-body { display: flex; flex-direction: column; justify-content: center; }
.unit-body h3 { font-size: var(--text-lg); margin-bottom: var(--space-4); }
.unit-body h3:not(:first-child) { margin-top: var(--space-8); }
.unit-list { list-style: none; display: grid; gap: var(--space-3); }
.unit-list li { position: relative; padding-left: var(--space-6); font-size: var(--text-sm); color: var(--color-text-muted); }
.unit-list li strong { color: var(--color-text); }
.unit-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 2px; background: var(--signal); }
.unit-how { display: grid; gap: var(--space-5); }
.how-item { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: start; }
.how-ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: var(--radius-md); background: var(--color-surface-2); color: var(--signal); }
[data-theme='light'] .how-ico { color: #0a0a0a; }
.how-item strong { display: block; font-size: var(--text-base); margin-bottom: 2px; }
.how-item p { font-size: var(--text-sm); color: var(--color-text-muted); }

/* App showcase */
.app-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10); align-items: center; }
.app-body .eyebrow { margin-bottom: var(--space-4); }
.app-body h2 { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
.app-lead { font-size: var(--text-lg); color: var(--color-text-muted); margin-bottom: var(--space-6); }
.app-screens { position: relative; display: flex; align-items: center; justify-content: center; min-height: 520px; }
.phone { position: relative; width: 240px; border-radius: 30px; overflow: hidden; border: 1px solid var(--color-border); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55); background: #050505; }
.phone img { width: 100%; display: block; }
.phone-back { transform: translateX(96px) rotate(6deg) scale(0.92); opacity: 0.97; }
.phone-front { position: absolute; left: 50%; transform: translateX(-130px) rotate(-3deg); z-index: 2; }

/* Preise */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.price-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-7); display: flex; flex-direction: column; gap: var(--space-4); }
.price-card-hl { border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal) inset; }
.price-tag { font-size: var(--text-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted); }
.price-amount { display: flex; align-items: baseline; gap: var(--space-2); }
.price-amount em { font-family: var(--font-display); font-style: normal; font-weight: 700; font-size: var(--text-3xl); color: var(--color-text); line-height: 1; }
.price-card-hl .price-amount em { color: var(--signal); }
[data-theme='light'] .price-card-hl .price-amount em { color: var(--color-text); }
.price-amount span { font-size: var(--text-sm); color: var(--color-text-muted); }
.price-note { font-size: var(--text-sm); color: var(--color-text-muted); }
.incl-list { list-style: none; display: grid; gap: var(--space-3); }
.incl-list li { position: relative; padding-left: var(--space-6); font-size: var(--text-sm); }
.incl-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--signal); font-weight: 700; }
[data-theme='light'] .incl-list li::before { color: #0a0a0a; }
.price-disclaimer { margin-top: var(--space-6); font-size: var(--text-xs); color: var(--color-text-muted); max-width: 70ch; }

/* FAQ */
.faq-list { display: grid; gap: var(--space-3); max-width: 820px; }
.faq-item { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; padding: var(--space-5) var(--space-6); font-weight: 600; font-size: var(--text-base); display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: var(--text-xl); color: var(--signal); line-height: 1; flex: none; transition: transform .2s ease; }
[data-theme='light'] .faq-item summary::after { color: #0a0a0a; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 var(--space-6) var(--space-5); font-size: var(--text-sm); color: var(--color-text-muted); max-width: 68ch; }

/* CTA card */
.cta-card { text-align: center; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-10) var(--space-8); }
.cta-card h2 { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
.cta-card p { color: var(--color-text-muted); max-width: 52ch; margin: 0 auto var(--space-7); }

/* Compact page hero (no photo) */
.page-hero-compact { min-height: auto; padding-top: calc(var(--space-12) + 64px); padding-bottom: var(--space-12); }

/* Press release */
.press-release { max-width: 760px; margin: 0 auto; }
.press-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5); }
.press-tag { font-size: var(--text-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #0a0a0a; background: var(--signal); padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); }
.press-date { font-size: var(--text-sm); color: var(--color-text-muted); }
.press-title { font-size: var(--text-2xl); line-height: 1.15; margin-bottom: var(--space-6); }
.press-release p { color: var(--color-text-muted); margin-bottom: var(--space-4); line-height: 1.7; }
.press-release h3 { font-size: var(--text-lg); color: var(--color-text); margin-top: var(--space-8); margin-bottom: var(--space-3); }
.press-list { margin: 0 0 var(--space-4) var(--space-5); display: grid; gap: var(--space-2); }
.press-list li { color: var(--color-text-muted); line-height: 1.6; }
.press-about { margin-top: var(--space-9); padding: var(--space-6) var(--space-7); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.press-about h3 { margin-top: 0; }
.press-about p { margin-bottom: 0; }

/* Location card with photo */
.result-card.has-photo { grid-template-columns: 200px 1fr auto auto; }
.result-card .loc-thumb { width: 200px; height: 130px; border-radius: var(--radius-md); overflow: hidden; background: var(--color-surface-2); }
.result-card .loc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== Standort-Banner (Foto-Banner mit Overlay) ===== */
.loc-banner-list { display: grid; gap: var(--space-5); margin-top: var(--space-8); }
.loc-banner {
  position: relative; min-height: 280px; display: flex; align-items: flex-end;
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border);
}
.loc-banner-img { position: absolute; inset: 0; }
.loc-banner-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.loc-banner:hover .loc-banner-img img { transform: scale(1.03); }
.loc-banner-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,5,5,0.92) 0%, rgba(5,5,5,0.78) 38%, rgba(5,5,5,0.42) 66%, rgba(5,5,5,0.18) 100%),
    linear-gradient(0deg, rgba(5,5,5,0.55) 0%, rgba(5,5,5,0) 55%);
}
.loc-banner-inner { position: relative; padding: var(--space-8) var(--space-10); width: 100%; color: #f5f5f1; box-sizing: border-box; }
.loc-banner-badge {
  display: inline-block; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.04em;
  padding: 5px 11px; border-radius: var(--radius-full);
  background: var(--signal); color: #050505; margin-bottom: var(--space-3);
}
.loc-banner-badge.is-check { background: #55a7ff; }
.loc-banner-title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-2xl); line-height: 1.1; color: #fff; }
.loc-banner-addr { font-size: var(--text-sm); color: rgba(245,245,241,0.82); margin-top: 6px; }
.loc-banner-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-8); margin-top: var(--space-6); }
.loc-banner-stats { display: flex; gap: var(--space-8); }
.loc-banner-stat { min-width: 72px; }
.loc-banner-stat .k { display: block; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; color: rgba(245,245,241,0.7); }
.loc-banner-stat .v { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); color: #fff; margin-top: 3px; }
.loc-banner-cta { margin-left: auto; }
@media (max-width: 720px) {
  .loc-banner { min-height: 360px; }
  .loc-banner-scrim { background: linear-gradient(180deg, rgba(5,5,5,0.15) 0%, rgba(5,5,5,0.45) 45%, rgba(5,5,5,0.94) 100%); }
  .loc-banner-inner { padding: var(--space-6); }
  .loc-banner-title { font-size: var(--text-xl); }
  .loc-banner-row { flex-direction: column; align-items: flex-start; gap: var(--space-5); margin-top: var(--space-5); }
  .loc-banner-stats { gap: var(--space-6); }
  .loc-banner-cta { margin-left: 0; width: 100%; }
  .loc-banner-cta .btn { width: 100%; justify-content: center; }
}

/* ===================== LOGIN GATE ===================== */
.gate {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  padding: var(--space-6); background: var(--color-bg);
}
.gate-card {
  width: 100%; max-width: 380px; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-xl); padding: clamp(var(--space-8), 5vw, var(--space-10)); box-shadow: var(--shadow-lg);
}
.gate-brand { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-6); }
.gate-brand svg { width: 34px; height: 34px; color: var(--color-text); }
.gate-brand span { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); }
.gate h1 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.gate p { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-6); }
.gate label { display: block; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: var(--space-2); }
.gate input { width: 100%; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); font-size: var(--text-base); color: var(--color-text); }
.gate input:focus { outline: none; border-color: var(--signal); }
.gate .btn { width: 100%; margin-top: var(--space-5); justify-content: center; }
.gate .err { display: none; color: #ff6b6b; font-size: var(--text-sm); margin-top: var(--space-3); }
.gate .err.show { display: block; }
.gate .hint { font-size: var(--text-xs); color: var(--color-text-faint); margin-top: var(--space-6); }
/* Hide page until unlocked */
html.locked body > *:not(.gate) { display: none !important; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-full); border: 1px solid var(--color-border); color: var(--color-text); }
  .mobile-nav { display: none; }
  .mobile-nav.open { display: grid; gap: var(--space-1); padding: var(--space-4); border-top: 1px solid var(--color-divider); }
  .mobile-nav a { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-weight: 500; color: var(--color-text-muted); }
  .mobile-nav a:hover, .mobile-nav a.active { color: var(--color-text); background: var(--color-surface-2); }
  .search-row { grid-template-columns: 1fr 1fr; }
  .search-row .field-submit { grid-column: 1 / -1; }
  .two-col { grid-template-columns: 1fr; }
  .unit-showcase { grid-template-columns: 1fr; gap: var(--space-6); }
  .unit-photo { min-height: 280px; }
  .app-showcase { grid-template-columns: 1fr; gap: var(--space-8); }
  .app-screens { min-height: 440px; margin-top: var(--space-4); }
  .price-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .result-card, .result-card.has-photo { grid-template-columns: 1fr; gap: var(--space-4); }
  .result-card .loc-thumb { width: 100%; height: 180px; }
  .result-stats { gap: var(--space-6); }
  .term-table .row { grid-template-columns: 1fr; gap: var(--space-1); }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .search-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}

/* ============================================================
   B2B / UNTERNEHMEN — Sektionen (aus V2 übernommen, Insider-Tokens)
   ============================================================ */

/* Hero-Tagline (Job + Bleibe = Mitarbeiterbindung) */
.page-hero .hero-tagline {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.4rem, 3.2vw, 2.1rem); line-height: 1.2;
  color: var(--color-text); margin-block: var(--space-4) var(--space-5);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5ch;
}
.page-hero .hero-tagline .plus, .page-hero .hero-tagline .eq { color: var(--signal); font-weight: 700; }
.page-hero .hero-tagline .hl-soft { color: var(--signal); }
[data-theme='light'] .page-hero .hero-tagline .plus,
[data-theme='light'] .page-hero .hero-tagline .eq,
[data-theme='light'] .page-hero .hero-tagline .hl-soft { color: #0a0a0a; }

/* PROBLEM / STATS */
.b2b-stats { background: var(--color-surface); border-block: 1px solid var(--color-divider); }
.b2b-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-8); margin-top: var(--space-12); }
.b2b-stat { border-left: 2px solid var(--signal); padding-left: var(--space-5); }
.b2b-stat-num { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; color: var(--color-text); line-height: 1; margin-bottom: var(--space-3); }
.b2b-stat-num .unit { color: var(--signal); }
[data-theme='light'] .b2b-stat-num .unit { color: #0a0a0a; }
.b2b-stat-label { font-size: var(--text-sm); color: var(--color-text-muted); }
.b2b-stat-label a { color: var(--color-text-faint); text-decoration: underline; text-underline-offset: 2px; }
.b2b-stat-label a:hover { color: var(--signal); }
[data-theme='light'] .b2b-stat-label a:hover { color: #0a0a0a; }

/* WIRKUNG / BUDGET — Karten */
.pots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-top: var(--space-12); }
.pot {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: var(--space-8); display: flex; flex-direction: column; gap: var(--space-4);
  transition: border-color var(--transition-interactive), transform var(--transition-interactive);
}
.pot:hover { border-color: var(--color-text-faint); transform: translateY(-4px); }
.pot-icon { width: 44px; height: 44px; color: var(--signal); }
[data-theme='light'] .pot-icon { color: #0a0a0a; }
.pot h3 { font-size: var(--text-lg); }
.pot .role { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-faint); }
.pot p { font-size: var(--text-sm); color: var(--color-text-muted); }
.pot .pitch { font-style: italic; color: var(--color-text); border-left: 2px solid var(--signal); padding-left: var(--space-4); font-size: var(--text-sm); margin-top: auto; }

/* SPLIT IMAGE BLOCKS */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-8), 5vw, var(--space-20)); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--color-border); aspect-ratio: 4/3; object-fit: cover; }
.split-media.wide img { aspect-ratio: 16/9; }
.split-title { font-size: var(--text-xl); margin-block: var(--space-4) var(--space-5); }
.split-text { color: var(--color-text-muted); margin-bottom: var(--space-5); }
.split-text:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse .split-media { order: 0; } }

/* MODELL / FLOW */
.flow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-top: var(--space-12); align-items: stretch; }
.flow-card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: var(--space-8); position: relative; overflow: hidden;
}
.flow-card-hl { border-color: var(--signal); background: color-mix(in oklab, var(--signal) 6%, var(--color-surface)); }
.flow-card .flow-step { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; color: var(--signal); margin-bottom: var(--space-4); }
[data-theme='light'] .flow-card .flow-step { color: #0a0a0a; }
.flow-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.flow-card p { font-size: var(--text-sm); color: var(--color-text-muted); }
.flow-card .flow-amount { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; color: var(--color-text); margin-top: var(--space-5); }
.flow-card .flow-amount-hl { color: var(--signal); }
[data-theme='light'] .flow-card .flow-amount-hl { color: #0a0a0a; }
.flow-card .flow-per { font-size: var(--text-sm); color: var(--color-text-faint); font-weight: 500; }
@media (max-width: 820px) { .flow-grid { grid-template-columns: 1fr; } }

/* RECHNER */
.calc { background: var(--color-surface); border-block: 1px solid var(--color-divider); }
.calc-card {
  background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 4vw, var(--space-12)); margin-top: var(--space-12);
  box-shadow: var(--shadow-lg);
}
.calc-controls { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); margin-bottom: var(--space-10); }
@media (max-width: 720px) { .calc-controls { grid-template-columns: 1fr; gap: var(--space-6); } }
.calc-field label { display: block; font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-3); }
.calc-field .hint { font-size: var(--text-xs); color: var(--color-text-faint); margin-bottom: var(--space-4); }
.slider-row { display: flex; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-2); }
.slider-val { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; color: var(--signal); }
[data-theme='light'] .slider-val { color: #0a0a0a; }
.calc-card input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
  background: var(--color-surface-offset); border-radius: var(--radius-full); outline: none;
}
.calc-card input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--signal); cursor: pointer; border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 1px var(--signal);
}
.calc-card input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--signal);
  cursor: pointer; border: 3px solid var(--color-bg);
}
.calc-result { border-top: 1px solid var(--color-divider); padding-top: var(--space-8); }
.calc-rows { display: grid; gap: var(--space-2); max-width: 520px; margin-bottom: var(--space-8); }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding: var(--space-2) 0; font-size: var(--text-sm); }
.calc-row .lbl { color: var(--color-text-muted); }
.calc-row .val { font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
.calc-row.minus .val { color: var(--blue); }
.calc-row.total { border-top: 1px dashed var(--color-border); margin-top: var(--space-2); padding-top: var(--space-4); }
.calc-row.total .lbl { color: var(--color-text); font-weight: 600; }
.calc-row.total .val { font-size: var(--text-lg); color: var(--signal); }
[data-theme='light'] .calc-row.total .val { color: #0a0a0a; }
.calc-headline { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-top: var(--space-8); }
@media (max-width: 720px) { .calc-headline { grid-template-columns: 1fr; } }
.calc-tile { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); }
.calc-tile.accent { border-color: var(--signal); background: color-mix(in oklab, var(--signal) 6%, var(--color-surface)); }
.calc-tile .who { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-text-faint); margin-bottom: var(--space-3); }
.calc-tile .big { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; line-height: 1; white-space: nowrap; }
.calc-tile.accent .big { color: var(--signal); }
[data-theme='light'] .calc-tile.accent .big { color: #0a0a0a; }
.calc-tile .note { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--space-3); }
.calc-disclaimer { font-size: var(--text-xs); color: var(--color-text-faint); margin-top: var(--space-8); max-width: 70ch; }

/* RECHTLICHER KERN */
.tnote { background: var(--color-surface); border-block: 1px solid var(--color-divider); }
.tnote-card { display: flex; gap: var(--space-5); align-items: flex-start; background: var(--color-bg); border: 1px solid var(--color-border); border-left: 3px solid var(--signal); border-radius: var(--radius-md); padding: var(--space-6) var(--space-8); }
.tnote-card svg { flex-shrink: 0; width: 26px; height: 26px; color: var(--signal); margin-top: 2px; }
[data-theme='light'] .tnote-card svg { color: #0a0a0a; }
.tnote-card p { font-size: var(--text-sm); color: var(--color-text-muted); max-width: none; }
.tnote-card strong { color: var(--color-text); }

/* B2B Responsive */
@media (max-width: 880px) { .pots-grid { grid-template-columns: 1fr; } }

/* ============================================================
   STANDORTE-SEITE (Sarotti-Höfe)
   ============================================================ */

/* Status-Badge im Hero */
.loc-badge { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-6); padding: var(--space-2) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 500; color: var(--color-text-muted); background: var(--color-surface); }
.loc-badge .dot { width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--signal); box-shadow: 0 0 0 4px rgba(244,255,0,0.15); animation: locPulse 2.4s ease-in-out infinite; }
@keyframes locPulse { 0%,100% { box-shadow: 0 0 0 3px rgba(244,255,0,0.12); } 50% { box-shadow: 0 0 0 6px rgba(244,255,0,0.04); } }
@media (prefers-reduced-motion: reduce) { .loc-badge .dot { animation: none; } }

/* Key-Facts Chips */
.fact-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.chip { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5) var(--space-5); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); transition: border-color var(--transition-interactive), transform var(--transition-interactive); }
.chip:hover { border-color: var(--signal); transform: translateY(-2px); }
.chip-k { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; color: var(--color-text-faint); }
.chip-v { font-size: var(--text-base); font-weight: 500; color: var(--color-text); line-height: 1.35; }

/* Before/After Slider */
.ba-slider { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--color-border); box-shadow: var(--shadow-md); user-select: none; touch-action: pan-y; }
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; pointer-events: none; }
.ba-before-wrap { position: absolute; inset: 0; width: 50%; overflow: hidden; will-change: width; }
/* Before-Bild behaelt volle Slider-Breite; nur der Wrapper clippt per width (JS setzt --ba-full) */
.ba-before-wrap .ba-before { position: absolute; top: 0; left: 0; height: 100%; width: var(--ba-full, 100vw); max-width: none; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); pointer-events: none; z-index: 3; }
.ba-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); background: var(--signal); box-shadow: 0 0 12px rgba(244,255,0,0.5); }
.ba-grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px; border-radius: var(--radius-full); background: var(--signal); color: #050505; display: grid; place-items: center; box-shadow: var(--shadow-md); }
.ba-grip svg { width: 22px; height: 22px; }
.ba-tag { position: absolute; bottom: var(--space-4); z-index: 2; padding: var(--space-2) var(--space-3); border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 600; backdrop-filter: blur(6px); background: rgba(5,5,5,0.6); color: #f5f5f1; border: 1px solid rgba(255,255,255,0.12); }
.ba-tag-l { left: var(--space-4); }
.ba-tag-r { right: var(--space-4); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 4; -webkit-appearance: none; appearance: none; background: transparent; }
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 48px; height: 100%; cursor: ew-resize; }
.ba-range::-moz-range-thumb { width: 48px; height: 100%; border: 0; background: transparent; cursor: ew-resize; }
.ba-range:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

/* Galerie (Masonry-artig via grid) */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.ga-item { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--color-border); background: var(--color-surface); cursor: zoom-in; padding: 0; aspect-ratio: 4 / 3; }
.ga-item.ga-wide { grid-column: span 2; aspect-ratio: 8 / 3; }
.ga-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms cubic-bezier(0.16,1,0.3,1); }
.ga-item:hover img { transform: scale(1.05); }
.ga-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(5,5,5,0.35)); opacity: 0; transition: opacity var(--transition-interactive); }
.ga-item:hover::after { opacity: 1; }

/* Zwei-Spalten mit Bild-Stack (CommUnit von innen) */
.two-col-media { align-items: stretch; }
.media-stack { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
.media-stack img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--color-border); }
.media-stack img:first-child { aspect-ratio: 4 / 3; }
.media-stack img:last-child { aspect-ratio: 16 / 10; }

/* Grundriss */
.floorplan { margin: 0; border: 1px solid var(--color-border); border-radius: var(--radius-xl); overflow: hidden; background: #ffffff; }
.floorplan img { width: 100%; height: auto; display: block; }
.floorplan figcaption { padding: var(--space-3) var(--space-5); font-size: var(--text-sm); color: var(--color-text-muted); background: var(--color-surface); border-top: 1px solid var(--color-border); }

/* Zonen unter dem Grundriss */
.zones { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-top: var(--space-8); }
.zone { padding: var(--space-5); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); border-left: 3px solid var(--signal); }
.zone .zn { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--text-base); margin-bottom: var(--space-2); }
.zone .zd { display: block; font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.5; }

/* Weitere Standorte */
.next-sites { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-top: var(--space-12); align-items: stretch; }
.ns-card { display: flex; flex-direction: column; overflow: hidden; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); transition: border-color var(--transition-interactive), transform var(--transition-interactive); }
.ns-card:hover { border-color: var(--signal); transform: translateY(-3px); }
.ns-media { position: relative; aspect-ratio: 16 / 10; background:
  linear-gradient(135deg, rgba(244,255,0,0.10), rgba(85,167,255,0.10)),
  repeating-linear-gradient(45deg, var(--color-surface-offset) 0 10px, var(--color-surface) 10px 20px);
  display: grid; place-items: center; border-bottom: 1px solid var(--color-border); }
.ns-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ns-media-label { padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.04em; background: rgba(5,5,5,0.55); color: #f5f5f1; border: 1px solid rgba(255,255,255,0.14); }
.ns-body { display: flex; flex-direction: column; padding: var(--space-6); flex: 1; }
.ns-body-center { justify-content: center; align-items: flex-start; text-align: left; gap: var(--space-2); }
.ns-card h3 { font-family: var(--font-display); font-size: var(--text-lg); margin-block: var(--space-3) var(--space-1); }
.ns-loc { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.03em; color: var(--color-text); margin-bottom: var(--space-3); }
.ns-card p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.55; }
.ns-facts { list-style: none; display: grid; gap: var(--space-2); margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--color-divider); }
.ns-facts li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.ns-facts .k { font-size: var(--text-xs); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.ns-facts .v { font-family: var(--font-display); font-size: var(--text-base); color: var(--color-text); font-variant-numeric: tabular-nums; }
.ns-body .btn { align-self: flex-start; margin-top: var(--space-4); }
.ns-badge { display: inline-block; align-self: flex-start; padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; background: var(--color-surface-offset); color: var(--color-text-muted); }
.ns-card-open { border-color: var(--blue); background: rgba(85,167,255,0.06); }
.ns-card-open .ns-badge { background: rgba(85,167,255,0.16); color: var(--blue); }

/* CTA-Aktionen (nutzt bestehendes .cta-band) */
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; margin-top: var(--space-6); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: clamp(var(--space-4), 5vw, var(--space-16)); background: rgba(5,5,5,0.92); backdrop-filter: blur(8px); }
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.lb-close { position: absolute; top: var(--space-6); right: var(--space-6); width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--radius-full); background: rgba(255,255,255,0.1); color: #f5f5f1; border: 1px solid rgba(255,255,255,0.18); cursor: pointer; transition: background var(--transition-interactive); z-index: 2; }
.lb-close:hover { background: rgba(255,255,255,0.2); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--radius-full); background: rgba(255,255,255,0.1); color: #f5f5f1; border: 1px solid rgba(255,255,255,0.18); cursor: pointer; transition: background var(--transition-interactive), transform var(--transition-interactive); z-index: 2; }
.lb-nav:hover { background: var(--signal); color: #050505; border-color: var(--signal); }
.lb-prev { left: clamp(var(--space-3), 3vw, var(--space-8)); }
.lb-next { right: clamp(var(--space-3), 3vw, var(--space-8)); }
.lb-counter { position: absolute; bottom: var(--space-6); left: 50%; transform: translateX(-50%); padding: var(--space-2) var(--space-4); border-radius: var(--radius-full); background: rgba(5,5,5,0.6); color: #f5f5f1; font-size: var(--text-sm); font-variant-numeric: tabular-nums; border: 1px solid rgba(255,255,255,0.14); z-index: 2; }
@media (max-width: 640px) { .lb-nav { width: 44px; height: 44px; } .lb-prev { left: var(--space-3); } .lb-next { right: var(--space-3); } }

/* Standorte Responsive */
@media (max-width: 960px) {
  .fact-chips { grid-template-columns: repeat(2, 1fr); }
  .zones { grid-template-columns: repeat(2, 1fr); }
  .next-sites { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .ga-item.ga-wide { grid-column: span 2; aspect-ratio: 16 / 9; }
}
@media (max-width: 540px) {
  .fact-chips { grid-template-columns: 1fr; }
  .zones { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .ga-item, .ga-item.ga-wide { grid-column: span 1; aspect-ratio: 4 / 3; }
  .ba-tag { font-size: 0.7rem; }
}

/* ============ LEGAL PAGES (Impressum, Datenschutz) ============ */
.legal-page { padding-block: clamp(var(--space-24), 12vw, 10rem) var(--space-24); }
.legal-page .wrap { max-width: var(--content-narrow); }
.legal-head { margin-bottom: var(--space-12); }
.legal-head h1 { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
.legal-head .legal-meta { color: var(--color-text-faint); font-size: var(--text-sm); }
.legal-body h2 { font-size: var(--text-lg); margin-top: var(--space-12); margin-bottom: var(--space-4); color: var(--color-text); }
.legal-body h3 { font-size: var(--text-base); font-family: var(--font-display); font-weight: 600; margin-top: var(--space-8); margin-bottom: var(--space-3); color: var(--color-text); }
.legal-body p { color: var(--color-text-muted); margin-bottom: var(--space-4); max-width: 68ch; }
.legal-body ul { list-style: none; margin: 0 0 var(--space-4); padding: 0; max-width: 68ch; }
.legal-body ul li { position: relative; padding-left: var(--space-6); margin-bottom: var(--space-2); color: var(--color-text-muted); }
.legal-body ul li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 2px; background: var(--signal); }
.legal-body a { color: var(--blue); }
.legal-body a:hover { color: var(--color-text); }
.legal-body strong { color: var(--color-text); font-weight: 600; }
.legal-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); margin-bottom: var(--space-6); }
.legal-card p:last-child { margin-bottom: 0; }
.legal-todo { display: inline-block; background: rgba(244,255,0,0.14); color: var(--signal-dim); border: 1px dashed var(--signal-dim); border-radius: var(--radius-sm); padding: 0.1em 0.5em; font-size: 0.9em; font-weight: 600; }

/* ============ COOKIE INFO BANNER ============ */
.cookie-banner { position: fixed; left: 50%; bottom: var(--space-6); transform: translateX(-50%) translateY(150%); z-index: 200; width: min(680px, calc(100vw - 2 * var(--space-4))); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6); box-shadow: 0 12px 40px rgba(0,0,0,0.5); display: flex; align-items: center; gap: var(--space-5); transition: transform 320ms cubic-bezier(0.16,1,0.3,1); }
.cookie-banner.in { transform: translateX(-50%) translateY(0); }
.cookie-banner p { margin: 0; font-size: var(--text-sm); color: var(--color-text-muted); flex: 1; }
.cookie-banner p a { color: var(--blue); }
.cookie-banner .cookie-actions { display: flex; gap: var(--space-3); flex-shrink: 0; }
@media (max-width: 560px) { .cookie-banner { flex-direction: column; align-items: stretch; } .cookie-banner .cookie-actions { justify-content: flex-end; } }
