/* ============================================================
   eyeworkers — Design System
   Flat, architectural, grid-based. Zero radius, visible rules,
   mono labels, golden-ratio layout. Light default + dark theme.
   ============================================================ */

/* ---- 1. Tokens ------------------------------------------------ */
:root {
  color-scheme: light;

  /* Brand constants (do not flip) */
  --red: #da291c;              /* brand red — thin accents, logo, red dots */
  --red-surface: #c31d11;      /* filled red surfaces w/ white text (WCAG-safe) */
  --red-hover: #b71613;
  --red-text: #a91410;         /* red for SMALL text — WCAG AAA (7:1) on light */
  --red-50: #ffe4e0;
  --red-100: #ffd9d3;
  --red-200: #f7a89f;
  --red-400: #ec6152;
  --red-700: #b71613;
  --red-900: #8f1109;
  --accent-on-dark: #ff8579;   /* red accent on dark — WCAG AAA (7:1) */

  /* Semantic palette — LIGHT (default) */
  --bg: #faf8f7;
  --surface: #ffffff;
  --surface-2: #f3efed;
  --surface-warm: #f0eae8;
  --line: #ebe5e3;
  --line-warm: #ecdfdc;
  --border: #d9d1cf;
  --border-strong: #b3aaa8;
  --text: #1b1719;
  --text-2: #5a5250;
  --text-3: #585354;           /* muted meta text — WCAG AAA (7:1) on light (was #6f696b) */
  --rule: #1b1719;
  --selection: #f7c9c3;

  /* Dark band (a "dark section" placed on a light page) */
  --band-dark-bg: #141414;
  --band-dark-line: #2e2726;
  --band-dark-text: #faf8f7;
  --band-dark-text-2: #b4a9ab;
  --band-dark-text-3: #8a807f;
  --band-dark-accent: #ff8579;  /* red accent on dark — WCAG AAA (7:1) */

  /* Primary (ink) button */
  --btn-primary-bg: #141414;
  --btn-primary-fg: #faf8f7;
  --btn-primary-hover: #3a3335;

  /* Type */
  --font-body: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, monospace;

  /* Spacing (8px scale) */
  --sp-xs: .5rem;  --sp-s: 1rem;  --sp-m: 1.5rem;
  --sp-l: 2rem;  --sp-xl: 3.5rem; --sp-2xl: 6rem;

  /* Layout */
  --container: 80rem;
  --pad-x: 2rem;
  --phi: 1.618;

  /* Borders */
  --hairline: 1px solid var(--line);
  --rule-2: 2px solid var(--rule);

  /* Shadows (hover only) */
  --shadow-card: 0 16px 34px -20px rgba(20,20,20,.35);
  --shadow-card-agency: 0 24px 48px -28px rgba(218,41,28,.45);
  --shadow-nav: 0 10px 30px -22px rgba(20,20,20,.4);

  /* Motion */
  --t-hover: 180ms ease;
  --t-reveal: 800ms cubic-bezier(.2,.7,.2,1);

  /* Chrome */
  --nav-h: 4.125rem;
  --nav-bg: rgba(250,248,247,.92);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --red-text: #ff8078;         /* small red text on dark — passes WCAG AA */
  --bg: #121011;
  --surface: #1b1819;
  --surface-2: #221f20;
  --surface-warm: #201c1d;
  --line: #2b2627;
  --line-warm: #2b2627;
  --border: #3a3335;
  --border-strong: #55494c;
  --text: #f3efee;
  --text-2: #c3b9b8;
  --text-3: #948b8a;
  --rule: #f3efee;
  --selection: #7a241d;

  /* Dark bands blend into an elevated surface in dark mode */
  --band-dark-bg: #050505;
  --band-dark-line: #262121;
  --band-dark-text: #f3efee;
  --band-dark-text-2: #b4a9ab;
  --band-dark-text-3: #8a807f;

  --btn-primary-bg: #f3efee;
  --btn-primary-fg: #141414;
  --btn-primary-hover: #d6cfcd;

  --nav-bg: rgba(18,16,17,.9);
  --shadow-card: 0 16px 34px -20px rgba(0,0,0,.7);
  --shadow-nav: 0 10px 30px -22px rgba(0,0,0,.8);
}

/* ---- 2. Reset & base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { font-size: clamp(16px, 1.25vw, 23.75px); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* NOT hidden — hidden breaks position:sticky */
  transition: background-color .3s ease, color .3s ease;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:where(input, textarea, select, button) { font-family: inherit; }
ul[role="list"] { list-style: none; padding: 0; }

::selection { background: var(--selection); }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
html[data-theme="dark"] :focus-visible { outline-color: var(--accent-on-dark); }

/* ---- 3. Accessibility helpers -------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--red); color: #fff; padding: 12px 18px;
  font-family: var(--font-mono); font-size: .78rem; text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 8px; }

/* ---- 4. Layout ----------------------------------------------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.section { padding-block: var(--sp-2xl); }
.section--compact { padding-block: 4.5rem; }

.section--dark {
  background: var(--band-dark-bg);
  color: var(--band-dark-text);
}
.section--dark .kicker { color: var(--band-dark-accent); }
.section--dark .lead,
.section--dark p { color: var(--band-dark-text-2); }

.section--red { background: var(--red-surface); color: #fff; }
.section--red .kicker { color: #fff4f2; }

.divider-top { border-top: 1px solid var(--line-warm); }
.divider-bottom { border-bottom: 1px solid var(--line-warm); }
.rule-bottom { border-bottom: var(--rule-2); }

/* Grids */
.grid { display: grid; gap: var(--sp-m); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-m); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-m); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-m); }
/* Zufalls-Referenzen (app.js data-random-pick): ausgeblendete Einträge sicher
   verstecken — !important schlägt .card{display:flex} und Inline display:block. */
[data-random-pick] > [hidden] { display: none !important; }

/* Golden-ratio splits */
.split      { display: grid; grid-template-columns: 1.618fr 1fr; gap: var(--sp-xl); align-items: center; }
.split-rev  { display: grid; grid-template-columns: 1fr 1.618fr; gap: var(--sp-xl); align-items: center; }
.split-top  { align-items: start; }

/* Hairline metric strip (2px gap reveals background line) */
.cell-grid { display: grid; gap: 2px; background: var(--line-warm); }
.cell-grid > * { background: var(--surface); }
.section--dark .cell-grid { background: var(--band-dark-line); }
.section--dark .cell-grid > * { background: var(--band-dark-bg); }

/* ---- 5. Typography ------------------------------------------- */
.kicker {
  font-family: var(--font-mono); font-weight: 400;
  text-transform: uppercase; letter-spacing: .2em;
  font-size: .72rem; color: var(--red-text);
  display: inline-block;
}
.kicker--badge {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--red-100); background: var(--surface);
  padding: 8px 14px; letter-spacing: .18em; font-size: .7rem;
}
html[data-theme="dark"] .kicker--badge { border-color: #4a201c; }
.kicker--badge .dot { width: 7px; height: 7px; background: var(--red); border-radius: 50%; }

.label {
  font-family: var(--font-mono); font-weight: 400;
  text-transform: uppercase; letter-spacing: .1em;
  font-size: .66rem; color: var(--text-3);
}

.h1 {
  font-weight: 300; letter-spacing: -.03em; line-height: .98;
  font-size: clamp(3rem, 6.4vw, 6rem);
}
.h2 {
  font-weight: 300; letter-spacing: -.02em; line-height: 1.04;
  font-size: clamp(2rem, 4vw, 3.3rem);
}
.h3 { font-weight: 600; letter-spacing: -.01em; font-size: 1.4rem; }
.em { font-weight: 600; }
.accent { color: var(--red); }
.section--dark .accent { color: var(--band-dark-accent); }

.lead {
  font-weight: 300; font-size: 1.24rem; line-height: 1.5;
  color: var(--text-2);
}
.body-txt { font-weight: 300; font-size: 1.1rem; line-height: 1.65; color: var(--text-2); }
.measure { max-width: 62ch; }
.measure-s { max-width: 48ch; }

.metric {
  font-weight: 300; letter-spacing: -.03em;
  font-size: clamp(2.8rem, 5vw, 4.2rem); color: var(--red);
  line-height: 1;
}

/* ---- 6. Buttons ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; text-decoration: none;
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .04em;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color var(--t-hover), color var(--t-hover),
              border-color var(--t-hover), transform var(--t-hover), box-shadow var(--t-hover);
}
.btn--primary { background: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.btn--primary:hover { background: var(--btn-primary-hover); }
.btn--accent { background: var(--red-surface); color: #fff; }
.btn--accent:hover { background: var(--red-hover); }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--text); }
.btn--light { background: #fff; color: #141414; }
.btn--light:hover { background: #141414; color: #fff; }
.btn--on-red-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--on-red-ghost:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.section--dark .btn--ghost { border-color: #3a3335; color: var(--band-dark-text); }
.section--dark .btn--ghost:hover { border-color: var(--band-dark-text); }

/* ---- 7. Cards ------------------------------------------------ */
.card {
  background: var(--surface); border: 1px solid var(--line);
  padding: 44px 40px; text-decoration: none; color: var(--text);
  display: flex; flex-direction: column;
  transition: border-color var(--t-hover), box-shadow var(--t-hover), transform var(--t-hover);
}
a.card:hover, .card--interactive:hover {
  border-color: var(--text); box-shadow: var(--shadow-card); transform: translateY(-3px);
}
.card--agency:hover { border-color: var(--red); box-shadow: var(--shadow-card-agency); }
.card--dark { background: var(--band-dark-bg); color: var(--band-dark-text); border: none; }
.card--dark:hover { background: #000; box-shadow: 0 24px 48px -28px rgba(20,20,20,.6); }
.card--red { background: #c31d11; color: #fff; border: none; }
.card--red:hover { background: #a81410; box-shadow: var(--shadow-card-agency); }
.card--red p { color: rgba(255,255,255,.92); }
.card--red .tag, .card--red .card__meta { color: #fff4f2; }
.card__meta { margin-top: auto; padding-top: 28px; font-family: var(--font-mono); font-size: .74rem; color: var(--text-3); }

/* ---- 8. Tags / chips ----------------------------------------- */
.chip {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .04em;
  padding: 7px 13px; border: 1px solid var(--border); background: transparent;
  color: var(--text-2); cursor: pointer; transition: all .16s ease;
}
.chip:not(.chip--on):hover { border-color: var(--text); color: var(--text); }
.chip--on { background: var(--btn-primary-bg); color: var(--btn-primary-fg); border-color: var(--btn-primary-bg); }
.tag {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .04em;
  color: var(--text-3);
}
.tag.accent { color: var(--red-text); }

/* ---- 9. Forms ------------------------------------------------ */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.input {
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  padding: 12px 14px; font-size: 1rem; width: 100%;
  transition: border-color var(--t-hover), box-shadow var(--t-hover);
}
.input:hover { border-color: var(--border-strong); }
.input:focus { outline: none; border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
textarea.input { min-height: 140px; resize: vertical; }

/* ---- 10. Imagery --------------------------------------------- */
.img-box { position: relative; overflow: hidden; background: var(--surface-warm); }
.img-box > img, .img-box > picture { position: absolute; inset: 0; width: 100%; height: 100%; }
.img-box > img { object-fit: cover; }
.ratio-4-3  { aspect-ratio: 4 / 3; }
.ratio-16-10 { aspect-ratio: 16 / 10; }
.ratio-3-4  { aspect-ratio: 3 / 4; }
.ratio-21-9 { aspect-ratio: 21 / 9; }

/* ---- 11. Motion: reveal & countup ---------------------------- */
/* Reveals use a CSS animation (not a transition): animations fire reliably
   when the class is added, even for elements scrolled in from off-screen —
   transitions can stick at their start value in that case.
   Crucially, the hidden start state is scoped to `.js` so that WITHOUT
   JavaScript all content is fully visible (SEO, no-JS users, resilience). */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal-l { opacity: 0; transform: translateX(-26px); }
.js .reveal-scale { opacity: 0; transform: scale(.96); }
.js .reveal.is-in      { animation: ew-reveal-up 800ms cubic-bezier(.2,.7,.2,1) forwards; }
.js .reveal-l.is-in    { animation: ew-reveal-left 800ms cubic-bezier(.2,.7,.2,1) forwards; }
.js .reveal-scale.is-in { animation: ew-reveal-scale 800ms cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes ew-reveal-up    { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes ew-reveal-left  { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
@keyframes ew-reveal-scale { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
  .js .reveal, .js .reveal-l, .js .reveal-scale { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ---- 12. Utilities ------------------------------------------- */
.stack-s > * + * { margin-top: var(--sp-s); }
.stack-m > * + * { margin-top: var(--sp-m); }
.mt-l { margin-top: var(--sp-l); }
.mt-xl { margin-top: var(--sp-xl); }
.mb-l { margin-bottom: var(--sp-l); }
.mb-xl { margin-bottom: var(--sp-xl); }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row--center { align-items: center; }
.text-center { text-align: center; }

/* ---- 12b. Site chrome: navigation ---------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(1.1) blur(4px);
  backdrop-filter: saturate(1.1) blur(4px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t-hover), background-color .3s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-nav); }
.nav-bar {
  max-width: 77.5rem; margin-inline: auto; padding-inline: var(--pad-x);
  height: var(--nav-h); display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.brand svg { width: 28px; height: 28px; fill: var(--red); }
.brand__word { font-size: 1.05rem; font-weight: 500; letter-spacing: -.01em; }
.brand__suffix { color: var(--text-3); font-weight: 400; }

.nav-desktop { display: flex; align-items: center; gap: 0; }
.navlink {
  position: relative; white-space: nowrap; padding: 8px 10px;
  text-decoration: none; color: var(--text-2);
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .02em;
}
.navlink::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px;
  height: 2px; background: var(--red); transform: scaleX(0);
  transform-origin: left; transition: transform var(--t-hover);
}
.navlink:hover, .navlink[aria-current="page"] { color: var(--red-text); }
.navlink:hover::after, .navlink[aria-current="page"]::after { transform: scaleX(1); }
.nav-sep { width: 1px; height: 20px; background: var(--border); margin: 0 10px; }
.nav-cta {
  margin-left: 12px; padding: 11px 16px; text-decoration: none;
  background: var(--btn-primary-bg); color: var(--btn-primary-fg);
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .02em; white-space: nowrap;
}
.nav-cta:hover { background: var(--btn-primary-hover); }
.nav-cta--accent { background: var(--red); color: #fff; }
.nav-cta--accent:hover { background: var(--red-hover); }

/* Red navigation variant (sits on the red agency hero).
   Red tone + text opacities chosen so all text clears WCAG AA (4.5:1). */
/* Agency: rote Navigationsleiste als „rotes Glas“ (transluzent + Blur der Hülle).
   Deckkraft bewusst hoch gehalten, damit der weiße Text WCAG-AA-konform bleibt. */
.site-header--onred { background: rgba(184,22,19,.82); -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px); border-bottom-color: rgba(255,255,255,.20); }
.site-header--onred.is-scrolled { background: rgba(168,20,16,.9); box-shadow: 0 12px 30px -18px rgba(120,10,5,.7); }
.site-header--onred .brand, .site-header--onred .brand__word { color: #fff; }
.site-header--onred .brand__suffix { color: rgba(255,255,255,.86); }
.site-header--onred .brand svg { fill: #fff; }
.site-header--onred .navlink { color: rgba(255,255,255,.92); }
.site-header--onred .navlink::after { background: #fff; }
.site-header--onred .navlink:hover, .site-header--onred .navlink[aria-current="page"] { color: #fff; }
.site-header--onred .nav-sep { background: rgba(255,255,255,.3); }
.site-header--onred .nav-cta { background: #fff; color: #c31d11; }
.site-header--onred .nav-cta:hover { background: #141414; color: #fff; }
.site-header--onred .icon-btn { color: #fff; border-color: rgba(255,255,255,.5); }
.site-header--onred .icon-btn:hover { border-color: #fff; background: rgba(255,255,255,.16); }
.site-header--onred .lang-switch { border-color: rgba(255,255,255,.5); }
.site-header--onred .lang-switch a { color: rgba(255,255,255,.9); }
.site-header--onred .lang-switch a[aria-current="true"] { background: #fff; color: #c31d11; }
.site-header--onred .burger { color: #fff; }

.nav-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: transparent; border: 1px solid var(--border);
  cursor: pointer; color: var(--text); padding: 0;
  transition: border-color var(--t-hover), background-color var(--t-hover);
}
.icon-btn:hover { border-color: var(--text); background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }
.lang-switch { display: inline-flex; border: 1px solid var(--border); }
.lang-switch a {
  padding: 8px 10px; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .06em;
  text-decoration: none; color: var(--text-3); text-transform: uppercase;
}
.lang-switch a[aria-current="true"] { background: var(--btn-primary-bg); color: var(--btn-primary-fg); }

.burger { display: none; }
.mobile-panel { display: none; border-top: 1px solid var(--border); background: var(--bg); }
.mobile-panel.is-open { display: block; }
.mobile-panel__inner { max-width: 77.5rem; margin-inline: auto; padding: 8px 24px 24px; display: flex; flex-direction: column; }
.mobile-panel__group { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .16em; font-size: .6rem; color: var(--text-3); padding: 14px 0 4px; }
.mobile-panel a.m-link { padding: 12px 0; text-decoration: none; color: var(--text); font-size: 1rem; border-bottom: 1px solid var(--line); }
.mobile-panel .nav-cta { margin: 16px 0 0; padding: 14px 18px; text-align: left; }

@media (max-width: 1160px) {
  .nav-desktop { display: none; }
  .burger { display: inline-flex; }
}

/* ---- 12c. Site chrome: footer -------------------------------- */
.site-footer { background: var(--band-dark-bg); color: #e8e2e0; }
html:not([data-theme="dark"]) .site-footer { --footer-fg: #e8e2e0; }
.footer-inner { max-width: 77.5rem; margin-inline: auto; padding: 4.5rem 2rem 2.5rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.618fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 56px; border-bottom: 1px solid var(--band-dark-line);
}
.footer-brand__word { font-size: 1.12rem; font-weight: 500; letter-spacing: -.01em; color: #fff; }
.footer-brand__suffix { color: var(--band-dark-text-2); font-weight: 400; }
.footer-blurb { max-width: 34ch; color: #a89f9d; font-weight: 300; font-size: 1rem; line-height: 1.55; }
.footer-col__title { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .18em; font-size: .64rem; color: var(--band-dark-text-2); margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; font-size: .92rem; }
.footer-links a { text-decoration: none; color: #bdb4b2; transition: color var(--t-hover); }
.footer-links a:hover { color: #fff; }

.footer-switch { display: flex; flex-wrap: wrap; gap: 2px; margin: 40px 0 0; background: var(--band-dark-line); }
.footer-switch a {
  flex: 1 1 200px; padding: 20px 22px; text-decoration: none; background: #141414;
  display: flex; flex-direction: column; gap: 6px; transition: background-color var(--t-hover);
}
html[data-theme="dark"] .footer-switch a { background: #100f0f; }
.footer-switch a:hover { background: #1e1a1b; }
.footer-switch a[aria-current="page"] { background: #221d1d; box-shadow: inset 3px 0 0 var(--red); }
.footer-switch__k { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .06em; color: var(--accent-on-dark); }
.footer-switch__t { color: #fff; font-weight: 500; font-size: 1.02rem; }
.footer-switch__d { color: var(--band-dark-text-2); font-size: .84rem; font-weight: 300; }

.footer-legal {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  flex-wrap: wrap; padding-top: 28px; font-size: .8rem; color: var(--band-dark-text-2);
}
.footer-legal a { text-decoration: none; color: inherit; }
.footer-legal a:hover { color: #bdb4b2; }
.footer-legal__meta { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-badge { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .06em; border: 1px solid var(--band-dark-line); padding: 5px 10px; color: var(--band-dark-text-2); }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---- 13. Responsive ------------------------------------------ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --pad-x: 1.5rem; --sp-2xl: 4.5rem; }
  .split, .split-rev { grid-template-columns: 1fr; gap: var(--sp-l); }
  .split-rev .img-box, .split .order-first { order: -1; }
}
@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .card { padding: 32px 24px; }
  .section { padding-block: 4rem; }
}

/* ---- Consent banner ------------------------------------------ */
.ew-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; display: none;
  padding: 16px; pointer-events: none; }
.ew-consent.is-open { display: block; }
.ew-consent__card { pointer-events: auto; max-width: 560px; margin-inline: auto;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  box-shadow: 0 18px 50px -20px rgba(20,20,20,.5); padding: 26px 26px 24px;
  animation: ewConsentIn .35s cubic-bezier(.2,.7,.2,1) both; }
@keyframes ewConsentIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.ew-consent__title { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; margin: 0 0 10px; }
.ew-consent__txt { font-size: .95rem; font-weight: 300; line-height: 1.55; color: var(--text-2); margin: 0 0 20px; }
.ew-consent__txt a { color: var(--red-text); }
.ew-consent__row { display: flex; gap: 12px; flex-wrap: wrap; }
.ew-consent__row .btn { flex: 1 1 auto; justify-content: center; text-align: center; }
.ew-consent__link { display: inline-block; margin-top: 14px; background: none; border: 0; padding: 4px 0;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; color: var(--text-3);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ew-consent__link:hover { color: var(--red-text); }
.ew-consent__opt { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-warm); }
.ew-consent__opt > span:first-child { display: block; font-weight: 500; font-size: .98rem; }
.ew-consent__opt input { margin-right: 8px; accent-color: var(--red); }
.ew-consent__hint { display: block; font-size: .85rem; font-weight: 300; color: var(--text-3); margin-top: 4px; }
.ew-consent__settings .ew-consent__row { margin-top: 22px; }
@media (prefers-reduced-motion: reduce) { .ew-consent__card { animation: none; } }

/* ---- 20. KI-Assistent (self-hosted Widget) ---------------------- */
.ew-asst { position: fixed; right: 24px; bottom: 24px; z-index: 200; font-family: var(--font-body); }
.ew-asst__launcher {
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  /* Schwarze Glaskugel: Specular-Highlight oben links + Tiefe/Volumen. Bewusst ein
     Fremdelement, das über der Seite schwebt. */
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.55) 0%, rgba(255,255,255,.14) 11%, rgba(255,255,255,0) 27%),
    radial-gradient(circle at 50% 118%, rgba(90,100,120,.45) 0%, rgba(0,0,0,0) 58%),
    radial-gradient(circle at 50% 42%, #33363d 0%, #16181c 46%, #050506 100%);
  box-shadow:
    0 22px 42px -14px rgba(0,0,0,.7), 0 8px 16px -8px rgba(0,0,0,.5),
    inset 0 2px 6px rgba(255,255,255,.22), inset 0 -12px 20px rgba(0,0,0,.55);
  animation: ew-asst-float 5s ease-in-out infinite;
  transition: box-shadow .2s ease, filter .2s ease;
}
:root[data-theme="dark"] .ew-asst__launcher {
  /* Leuchtend weiße Glaskugel */
  background:
    radial-gradient(circle at 34% 26%, #fff 0%, rgba(255,255,255,.6) 15%, rgba(255,255,255,0) 34%),
    radial-gradient(circle at 50% 60%, #fff 0%, #eef1f5 55%, #cfd6de 100%);
  box-shadow:
    0 0 26px 4px rgba(255,255,255,.4), 0 22px 42px -14px rgba(0,0,0,.6),
    inset 0 2px 6px rgba(255,255,255,.95), inset 0 -12px 20px rgba(0,0,0,.1);
}
.ew-asst__launcher:hover { filter: brightness(1.09) saturate(1.03); }
.ew-asst__launcher:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.ew-asst__logo { width: 52px; height: 52px; display: block; position: relative; z-index: 1; }
.ew-asst.is-open .ew-asst__launcher { opacity: .94; }
@keyframes ew-asst-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
/* Agency-Unit: rote Glaskugel (in beiden Themes; der zweite Selektor sticht die
   weiße Dark-Mode-Kugel per Reihenfolge). */
.ew-asst--agency .ew-asst__launcher,
:root[data-theme="dark"] .ew-asst--agency .ew-asst__launcher {
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.5) 0%, rgba(255,255,255,.12) 11%, rgba(255,255,255,0) 27%),
    radial-gradient(circle at 50% 118%, rgba(255,140,130,.4) 0%, rgba(0,0,0,0) 58%),
    radial-gradient(circle at 50% 42%, #ee5646 0%, #c31d11 46%, #6e0d06 100%);
  box-shadow:
    0 0 22px 2px rgba(218,41,28,.32),
    0 22px 42px -14px rgba(90,10,5,.6), 0 8px 16px -8px rgba(90,10,5,.45),
    inset 0 2px 6px rgba(255,255,255,.3), inset 0 -12px 20px rgba(60,4,0,.5);
}

.ew-asst__panel {
  position: fixed; right: 24px; bottom: 96px; width: clamp(320px, 92vw, 384px);
  height: min(70vh, 560px); background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 0; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 24px 60px -24px rgba(20,20,20,.5);
}
.ew-asst__panel[hidden] { display: none; }  /* sonst überstimmt display:flex das [hidden]-Attribut */
.ew-asst__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ew-asst__ttl { font-weight: 600; font-size: .98rem; }
.ew-asst__x { border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--text-2); cursor: pointer; padding: 0 4px; }
.ew-asst__x:hover { color: var(--text); }
.ew-asst__msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ew-asst__msg { display: flex; }
.ew-asst__msg--user { justify-content: flex-end; }
.ew-asst__bubble { max-width: 82%; padding: 10px 13px; border-radius: 0; font-size: .92rem; line-height: 1.5; font-weight: 300; white-space: normal; word-wrap: break-word; }
.ew-asst__msg--bot .ew-asst__bubble { background: var(--surface-2); color: var(--text); }
.ew-asst__msg--user .ew-asst__bubble { background: var(--red-surface); color: #fff; }
.ew-asst__bubble a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1.5px; font-weight: 500; }
.ew-asst__msg--bot .ew-asst__bubble a { color: var(--red-text); }
.ew-asst__msg--user .ew-asst__bubble a { color: #fff; }
.ew-asst__bubble a:hover { text-decoration-thickness: 2.5px; }
.ew-asst__bubble strong { font-weight: 600; }
.ew-asst__bubble em { font-style: italic; }
.ew-asst__bubble code { font-family: var(--font-mono); font-size: .86em; background: rgba(0,0,0,.06); padding: .05em .35em; border-radius: 3px; }
.ew-asst__msg--user .ew-asst__bubble code { background: rgba(255,255,255,.2); }
.ew-asst__msg.is-typing .ew-asst__bubble { letter-spacing: 2px; opacity: .6; }
.ew-asst__foot { display: flex; gap: 8px; align-items: stretch; padding: 12px; border-top: 1px solid var(--line); }
.ew-asst__input { flex: 1; resize: none; border: 1px solid var(--border); border-radius: 0; padding: 9px 11px; font: inherit; font-size: .92rem; background: var(--surface); color: var(--text); max-height: 120px; }
.ew-asst__input:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
.ew-asst__send { flex: none; width: 40px; align-self: stretch; min-height: 40px; border: 0; border-radius: 0; background: var(--red-surface); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ew-asst__send:hover { background: var(--red-hover); }
.ew-asst__gate { padding: 2px; }
.ew-asst__gate p { font-size: .88rem; font-weight: 300; color: var(--text-2); line-height: 1.55; margin: 0 0 12px; }
.ew-asst__gate a, .ew-asst__legal a { color: var(--red-text); }
.ew-asst__legal { margin: 0; padding: 0 16px 12px; font-size: .72rem; color: var(--text-3); text-align: center; }
.ew-asst__sronly { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 560px) {
  .ew-asst { right: 16px; bottom: 16px; }
  .ew-asst__panel { right: 12px; left: 12px; width: auto; bottom: 88px; height: min(76vh, 600px); }
}
@media (prefers-reduced-motion: reduce) { .ew-asst__launcher { transition: none; animation: none; } }
