/* ==========================================================================
   pascal-roellin.ch — Site Styles
   Aufbau: Fonts · Tokens · Base · Komponenten · Sektionen · Responsive · Motion
   ========================================================================== */

/* ---------- Fonts (lokal gehostet, keine Drittanbieter-Requests) ---------- */
@font-face { font-family: "Geist"; src: url("../fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --bg: #f4f5f7;
  --bg-rgb: 244 245 247;
  --bg-2: #e7e9ee;
  --surface: #ffffff;
  --ink: #0c0d10;
  --ink-2: #363940;
  --muted: #62666e;
  --faint: #c3c7cf;
  --line: rgba(12, 13, 16, .09);
  --line-strong: rgba(12, 13, 16, .16);
  --accent: #2747f5;
  --accent-rgb: 39 71 245;
  --accent-ink: #1f3bd8;
  --accent-soft: #8a9dff;
  --green: #1fae5b;
  --dark: #0b0c0f;
  --light: #f4f5f7;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --container: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --radius: 28px;
  --nav-h: 64px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* feines Filmkorn für Tiefe */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.container { width: min(100% - 2 * var(--pad), var(--container)); margin-inline: auto; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.accent { color: var(--accent); }
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 300;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top .3s var(--ease);
}
.skip:focus { top: 16px; }

/* ---------- Typo-Bausteine ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex: none;
}
.h2 {
  font-size: clamp(2.5rem, 5.6vw, 5.25rem);
  line-height: .98; letter-spacing: -.05em; font-weight: 600;
  margin-top: 22px; text-wrap: balance;
}
.h3 {
  font-size: clamp(1.9rem, 3.4vw, 3.1rem);
  line-height: 1.02; letter-spacing: -.045em; font-weight: 600;
  margin-top: 18px; text-wrap: balance;
}
.lead {
  font-size: clamp(1.06rem, 1.35vw, 1.3rem);
  line-height: 1.5; color: var(--muted);
  max-width: 50ch; margin-top: 24px; text-wrap: pretty;
}
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.mono-label {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}

/* ---------- Buttons & Links ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 16px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap;
  box-shadow: 0 12px 30px -14px rgba(12, 13, 16, .55);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -16px rgba(12, 13, 16, .6); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .arrow { transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--sm { --h: 36px; padding: 0 16px; font-size: 14px; box-shadow: none; }
.btn--sm:hover { box-shadow: none; transform: none; background: #2a2a28; }
.btn--lg { --h: 56px; padding: 0 30px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; color: var(--ink); padding: 10px 4px;
}
.link-arrow .arrow { transition: transform .5s var(--ease); }
.link-arrow:hover .arrow { transform: translateY(2px); }
.link-arrow span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.link-arrow:hover span { background-size: 100% 1px; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background-color .4s, box-shadow .4s;
}
.nav.is-scrolled, .nav.is-open {
  background: rgb(var(--bg-rgb) / .74);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: baseline; gap: 2px; font-weight: 600; font-size: 17px; letter-spacing: -.035em; }
.brand__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; transition: transform .6s var(--ease); }
.brand:hover .brand__dot { transform: scale(1.6); }

.nav__links { display: flex; gap: 2px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav__links a {
  font-size: 14px; color: var(--ink-2); padding: 8px 14px; border-radius: 999px;
  transition: background-color .3s, color .3s;
}
.nav__links a:hover { background: rgba(12, 13, 16, .05); color: var(--ink); }
.nav__links a.is-active { background: rgba(12, 13, 16, .07); color: var(--ink); }

.nav__actions { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(12, 13, 16, .06); }
.lang button {
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .04em;
  padding: 5px 9px; border-radius: 999px; color: var(--muted);
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.lang button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(12, 13, 16, .12); }

.nav__toggle { display: none; width: 40px; height: 40px; border-radius: 50%; position: relative; }
.nav__toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.6px; background: var(--ink); border-radius: 2px;
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child { top: 23px; }
.nav.is-open .nav__toggle span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 19.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 99;
  display: none; flex-direction: column; padding: 24px var(--pad) 40px;
  background: rgb(var(--bg-rgb) / .97);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.mobile-menu a {
  font-size: clamp(2rem, 9vw, 2.6rem); font-weight: 600; letter-spacing: -.045em;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  transform: translateY(12px); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease);
}
.nav.is-open .mobile-menu { opacity: 1; visibility: visible; }
.nav.is-open .mobile-menu a { transform: none; opacity: 1; }
.nav.is-open .mobile-menu a:nth-child(2) { transition-delay: .04s; }
.nav.is-open .mobile-menu a:nth-child(3) { transition-delay: .08s; }
.nav.is-open .mobile-menu a:nth-child(4) { transition-delay: .12s; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  --hp: 0;
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 96px;
  overflow: hidden;
}
.hero__inner { width: min(100% - 2 * var(--pad), 1360px); margin-inline: auto; }
.hero__copy {
  position: relative; z-index: 3; max-width: 780px;
  transform: translate3d(0, calc(var(--hp) * -90px), 0);
  opacity: calc(1 - var(--hp) * 1.5);
}
.hero__eyebrow { color: var(--ink-2); }
.hero__sep { width: 22px; height: 1px; background: var(--line-strong); }
.roles { display: inline-grid; overflow: hidden; height: 1.35em; line-height: 1.35em; vertical-align: bottom; color: var(--accent-ink); }
.roles__item { grid-area: 1 / 1; white-space: nowrap; transition: transform .7s var(--ease), opacity .7s var(--ease); }
.roles__item.is-enter { transform: translateY(100%); opacity: 0; }
.roles__item.is-out { transform: translateY(-100%); opacity: 0; }

.hero__title {
  margin-top: 28px;
  font-size: clamp(3.2rem, 7.8vw, 8.75rem);
  line-height: .9; letter-spacing: -.06em; font-weight: 600;
}
.hero__title .line { display: block; overflow: hidden; padding: 0 .06em .1em 0; margin-bottom: -.1em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { font-size: 1.1em; letter-spacing: -.025em; line-height: 0; padding-right: .02em; }
.hero__lead { margin-top: 34px; max-width: 35ch; font-size: clamp(1.08rem, 1.4vw, 1.32rem); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.hero__ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px; }

.hero__media {
  position: absolute; z-index: 1;
  right: max(0px, calc((100vw - 1560px) / 2)); bottom: 0;
  width: min(56vw, 880px, 92vh); aspect-ratio: 1;
  transform: translate3d(0, calc(var(--hp) * -40px), 0) scale(calc(1 - var(--hp) * .04));
  transform-origin: 50% 100%;
}
.hero__photo {
  position: absolute; inset: 0;
  background: var(--bg);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 97%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 97%);
}
.hero__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 52% at 50% 74%, rgb(var(--accent-rgb) / .09), transparent 72%),
    radial-gradient(34% 30% at 88% 34%, rgb(120 150 255 / .10), transparent 72%);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }

/* Daten-Chips */
.chip { position: absolute; z-index: 2; transform: translate3d(0, calc(var(--hp) * -60px * var(--depth, 1)), 0); }
.chip--a { top: 24%; left: -2%; }
.chip--b { top: 47%; right: 4%; }
.chip--c { top: 72%; left: 8%; }
.chip__in {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, .74);
  -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 1px 2px rgba(12, 13, 16, .05), 0 18px 40px -18px rgba(12, 13, 16, .28);
  font-size: 13px; line-height: 1.25; white-space: nowrap;
  animation: float 7s ease-in-out infinite;
}
.chip--b .chip__in { animation-duration: 8s; animation-delay: -2s; }
.chip--c .chip__in { animation-duration: 6.5s; animation-delay: -4s; }
.chip__in .mono { font-size: 12.5px; font-weight: 500; }
.chip__text { display: grid; gap: 2px; }
.chip__text small { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.chip__text b { color: var(--green); font-weight: 500; }
.chip__in--card { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 14px; min-width: 176px; }
.chip__row { display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 12.5px; font-weight: 500; }
.live { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 10.5px; color: var(--green); }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s ease-out infinite; }
.spark { width: 152px; height: 44px; }
.spark path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-loaded .spark path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--ease) 1.3s; }

.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: ping 2.2s cubic-bezier(0, 0, .2, 1) infinite; }
.check-dot { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--green); flex: none; }
.check-dot--sm { width: 16px; height: 16px; }

.hero__scroll {
  position: absolute; left: max(var(--pad), calc((100vw - 1360px) / 2)); bottom: 32px; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll-line { position: relative; width: 44px; height: 1px; background: var(--line-strong); overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateX(-100%); animation: scrollcue 2.4s var(--ease-io) infinite; }

/* ==========================================================================
   Statement
   ========================================================================== */
.statement { padding: clamp(110px, 17vh, 210px) 0; }
.statement__text {
  font-size: clamp(2rem, 4.5vw, 4.35rem);
  line-height: 1.08; letter-spacing: -.045em; font-weight: 600;
  max-width: 1120px; text-wrap: pretty;
}
.statement__text em { letter-spacing: -.015em; font-size: 1.06em; }
.w { color: var(--faint); transition: color .4s var(--ease); }
.w.is-lit { color: var(--ink); }

/* ==========================================================================
   Sektionen allgemein
   ========================================================================== */
.section { padding: clamp(96px, 14vh, 170px) 0; }
.section__head { max-width: 920px; margin-bottom: clamp(48px, 6.5vw, 84px); }

/* ==========================================================================
   Leistungen – Bento
   ========================================================================== */
.services { padding-top: 0; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 500px; padding: clamp(26px, 2.8vw, 40px);
  background: var(--surface); border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(12, 13, 16, .03), 0 30px 60px -44px rgba(12, 13, 16, .3);
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(12, 13, 16, .03), 0 44px 80px -48px rgba(12, 13, 16, .38); }
.tile--analytics { grid-column: span 4; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(24px, 3vw, 48px); align-items: stretch; }
.tile--gtm { grid-column: span 2; }
.tile--consent, .tile--ads, .tile--it { grid-column: span 2; }

.tile__kicker { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.tile h3 { margin-top: 14px; font-size: clamp(1.65rem, 2.3vw, 2.2rem); line-height: 1.04; letter-spacing: -.04em; font-weight: 600; text-wrap: balance; }
.tile__copy p:not(.tile__kicker) { margin-top: 14px; color: var(--muted); font-size: 16px; line-height: 1.5; max-width: 40ch; text-wrap: pretty; }
.tags { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-family: var(--mono); font-size: 11.5px; padding: 6px 10px; border-radius: 999px; background: var(--bg); color: var(--ink-2); }
.viz { margin-top: auto; padding-top: 30px; }

.tile--dark { background: #111216; color: var(--light); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .5); }
.tile--dark .tile__kicker { color: var(--accent-soft); }
.tile--dark .tile__copy p:not(.tile__kicker) { color: rgb(244 245 247 / .58); }

/* Analytics-Chart */
.tile--analytics .viz { margin-top: 0; padding-top: 0; align-self: center; }
.viz-chart { background: var(--bg); border-radius: 22px; padding: 22px 22px 18px; }
.viz-chart__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.viz-chart__head .mono-label { white-space: nowrap; }
.viz-chart__value { display: block; margin-top: 6px; font-size: clamp(2rem, 3vw, 2.75rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.delta { font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: #12824a; background: rgba(31, 174, 91, .13); padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.viz-chart__plot { position: relative; margin-top: 18px; }
.viz-chart__plot svg { width: 100%; height: auto; overflow: visible; }
.viz-chart .line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.viz-chart .area, .viz-chart .prev { opacity: 0; }
.tile.is-in .viz-chart .line { stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s var(--ease) .25s; }
.tile.is-in .viz-chart .area { opacity: 1; transition: opacity 1.4s ease 1.1s; }
.tile.is-in .viz-chart .prev { opacity: 1; transition: opacity 1s ease .2s; }
.plot-dot { position: absolute; right: 0; top: 13.75%; width: 12px; height: 12px; margin: -6px -6px 0 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .2); opacity: 0; transform: scale(.4); }
.tile.is-in .plot-dot { opacity: 1; transform: none; transition: opacity .4s ease 2.2s, transform .6s var(--ease) 2.2s; }
.tile.is-in .plot-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: ping 2.4s cubic-bezier(0, 0, .2, 1) 2.6s infinite; }
.viz-chart__legend { display: flex; gap: 18px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.viz-chart__legend > span { display: inline-flex; align-items: center; gap: 7px; }
.sw { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.sw--accent { background: var(--accent); }
.sw--dash { background: repeating-linear-gradient(90deg, #b9b6ae 0 3px, transparent 3px 6px); }

/* dataLayer-Stream */
.viz-stream { background: #1a1c22; border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); overflow: hidden; }
.viz-stream__bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 11.5px; color: rgb(244 245 247 / .5); }
.viz-stream__bar .dots { display: inline-flex; gap: 5px; }
.viz-stream__bar .dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.viz-stream__window { height: 212px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent); }
.viz-stream__list { list-style: none; margin: 0; padding: 0; animation: stream 16s linear infinite; animation-play-state: paused; }
.tile.is-visible .viz-stream__list { animation-play-state: running; }
.viz-stream__list li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, .045); font-family: var(--mono); font-size: 12.5px; }
.viz-stream__list .ev { color: var(--light); }
.viz-stream__list .tg { font-size: 10.5px; color: rgb(244 245 247 / .5); padding: 2px 7px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.viz-stream__list .ok { width: 7px; height: 7px; border-radius: 50%; background: #2bd273; box-shadow: 0 0 10px rgba(43, 210, 115, .6); }

/* Consent-Toggles */
.consent-card { background: var(--bg); border-radius: 20px; padding: 18px 18px 14px; }
.consent-card__title { font-size: 13px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.toggle { position: relative; width: 42px; height: 26px; border-radius: 999px; background: #d8d5ce; flex: none; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.toggle.is-locked { background: var(--green); opacity: .55; }
.toggle.is-locked::after { transform: translateX(16px); }
.tile.is-visible .toggle--a { animation: toggle-bg 7s var(--ease) infinite; }
.tile.is-visible .toggle--a::after { animation: toggle-knob 7s var(--ease) infinite; }
.tile.is-visible .toggle--b { animation: toggle-bg 7s var(--ease) .7s infinite; }
.tile.is-visible .toggle--b::after { animation: toggle-knob 7s var(--ease) .7s infinite; }
.consent-card__foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }

/* Ads-Balken */
.viz-bars__head { display: flex; justify-content: space-between; align-items: baseline; }
.viz-bars__head strong { font-size: 2rem; font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 172px; margin-top: 18px; }
.bars i { flex: 1; height: var(--h); border-radius: 7px 7px 3px 3px; background: var(--bg-2); transform: scaleY(0); transform-origin: bottom; }
.bars i.is-accent { background: linear-gradient(to top, var(--accent), #7b90ff); }
.tile.is-in .bars i { transform: none; transition: transform 1.3s var(--ease) calc(.2s + var(--i) * 80ms); }

/* IT-Status */
.viz-status ul { list-style: none; margin: 0; padding: 0; }
.viz-status li { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.viz-status .st { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.viz-status .st i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(31, 174, 91, .15); }
.uptime { margin-top: 16px; }
.uptime__ticks { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; margin-bottom: 10px; }
.uptime__ticks i { height: 24px; border-radius: 3px; background: var(--green); opacity: .85; transform: scaleY(.2); transform-origin: bottom; }
.uptime__ticks i.is-dim { opacity: .35; }
.tile.is-in .uptime__ticks i { transform: none; transition: transform .7s var(--ease) calc(.2s + var(--i) * 25ms); }

/* ==========================================================================
   Über mich – Sticky-Zoom
   ========================================================================== */
.about { position: relative; }
.about__stage { position: relative; height: 260vh; }
.about__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.about__frame {
  --ix: 48px; --iy: 10vh; --r: 28px; --s: 1.14; --c: 0; --ov: 0;
  position: absolute; inset: 0; margin: 0;
  background: #fff;
  clip-path: inset(var(--iy) var(--ix) round var(--r));
  will-change: clip-path;
}
.about__frame picture, .about__frame img { width: 100%; height: 100%; }
.about__frame img {
  object-fit: cover; object-position: 62% 8%;
  transform: scale(var(--s));
  filter: grayscale(calc(1 - var(--c)));
  will-change: transform, filter;
}
.about__overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  padding-left: max(var(--pad), calc((100vw - var(--container)) / 2));
  background: linear-gradient(90deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .55) 26%, rgba(255, 255, 255, 0) 46%);
  opacity: var(--ov);
}
.about__overlay-inner { transform: translate3d(0, calc((1 - var(--ov)) * 34px), 0); }
.about__title { margin-top: 20px; font-size: clamp(2.6rem, 5vw, 5.6rem); line-height: .94; letter-spacing: -.055em; font-weight: 600; }
.about__title em { font-size: 1.08em; letter-spacing: -.02em; }

.about__body {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 7vw, 110px); padding-top: clamp(80px, 12vh, 140px);
}
.about__lead { font-size: clamp(1.45rem, 2.35vw, 2.15rem); line-height: 1.24; letter-spacing: -.032em; font-weight: 500; text-wrap: pretty; }
.about__text { margin-top: 28px; color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 54ch; text-wrap: pretty; }
.facts { margin: 0; align-self: end; }
.facts > div { display: grid; grid-template-columns: 116px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.facts dd { margin: 0; font-weight: 500; letter-spacing: -.015em; }

/* ==========================================================================
   Zahlen (dunkel)
   ========================================================================== */
.stats {
  position: relative; overflow: hidden;
  margin-top: clamp(96px, 14vh, 170px);
  padding: clamp(100px, 14vh, 170px) 0;
  background: var(--dark); color: var(--light);
}
.stats::before {
  content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -460px;
  background: radial-gradient(closest-side, rgb(var(--accent-rgb) / .32), transparent 70%);
  pointer-events: none;
}
.stats .h2 { margin-top: 0; max-width: 16ch; }
.stats .h2 .muted { color: rgb(244 245 247 / .38); }
.stats__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid rgba(255, 255, 255, .12); }
.stat { padding: 34px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .08); }
.stat__num { display: flex; align-items: baseline; gap: 8px; font-size: clamp(2.6rem, 5vw, 4.9rem); font-weight: 600; letter-spacing: -.055em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__unit { font-size: .36em; letter-spacing: 0; color: var(--accent-soft); font-weight: 500; }
.stat__label { margin-top: 16px; color: rgb(244 245 247 / .55); font-size: 15px; line-height: 1.45; max-width: 22ch; }

/* ==========================================================================
   Arbeitsweise
   ========================================================================== */
.process__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 110px); }
.process__sticky { position: sticky; top: calc(var(--nav-h) + 56px); }
.process__meter { display: flex; align-items: center; gap: 16px; margin-top: 44px; }
.process__count { font-size: 12px; color: var(--muted); min-width: 56px; }
.process__bar { position: relative; flex: 1; max-width: 220px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.process__bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--pp, 0)); }
.process__steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--accent-ink); padding-top: 12px; }
.step h3 { font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1.04; letter-spacing: -.045em; font-weight: 600; }
.step p { margin-top: 14px; color: var(--muted); font-size: 17.5px; line-height: 1.55; max-width: 44ch; text-wrap: pretty; }
.js .step { opacity: .28; transition: opacity .7s var(--ease); }
.js .step.is-active { opacity: 1; }

/* ==========================================================================
   Werkzeugkasten
   ========================================================================== */
.toolbox { padding: clamp(40px, 6vh, 80px) 0 clamp(96px, 14vh, 160px); overflow: hidden; }
.toolbox__head { text-align: center; margin-bottom: 48px; }
.toolbox__head .h3 { max-width: 20ch; margin-inline: auto; }
.marquee {
  display: flex; overflow: hidden; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee + .marquee { margin-top: 8px; }
.marquee__track { display: flex; flex: none; gap: 12px; padding-right: 12px; animation: marquee 60s linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 16px 26px; border-radius: 999px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px -24px rgba(12, 13, 16, .4);
  font-size: clamp(1rem, 1.35vw, 1.25rem); font-weight: 500; letter-spacing: -.025em;
}
.pill--accent::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact { padding-top: 0; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__title { margin-top: 22px; font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: .98; letter-spacing: -.052em; font-weight: 600; text-wrap: balance; }

.person {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 40px;
  padding: 8px 22px 8px 8px; border-radius: 999px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), 0 16px 40px -28px rgba(12, 13, 16, .4);
}
.person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.person strong { display: block; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.person span { font-size: 13.5px; color: var(--muted); }

.contact__links { list-style: none; padding: 0; margin: 36px 0 0; }
.contact__links li > a, .contact__links li > div {
  display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 16px;
  padding: 18px 0; border-top: 1px solid var(--line);
}
.contact__links li:last-child > * { border-bottom: 1px solid var(--line); }
.contact__value { font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.contact__links a .arrow { color: var(--muted); transition: transform .5s var(--ease), color .3s; }
.contact__links a:hover .arrow { transform: translate(2px, -2px); color: var(--accent); }
.coords { font-size: 11.5px; color: var(--muted); }

.form {
  position: relative; display: grid; gap: 12px;
  padding: clamp(22px, 3.4vw, 44px); border-radius: 32px; background: var(--surface);
  box-shadow: 0 1px 0 rgba(12, 13, 16, .03), 0 50px 90px -60px rgba(12, 13, 16, .45);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; display: block;
  padding: 27px 18px 10px; border: 1px solid transparent; border-radius: 16px;
  background: var(--bg); color: var(--ink);
  font: inherit; font-size: 17px; letter-spacing: -.01em;
  outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.field textarea { min-height: 168px; resize: vertical; padding-top: 30px; line-height: 1.5; }
.field label {
  position: absolute; left: 19px; top: 18px;
  font-size: 17px; color: var(--muted); pointer-events: none;
  transform-origin: left top; transition: transform .3s var(--ease), color .3s;
}
.field input:focus, .field textarea:focus { background: #fff; border-color: var(--ink); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .16); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.72); color: var(--ink-2); }
.field__err { display: none; margin: 6px 4px 0; font-size: 13px; color: #c5221f; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #d93025; background: #fff; }
.field.is-invalid .field__err { display: block; }

.form__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.form__status { font-size: 14px; color: var(--muted); }
.form__status.is-error { color: #c5221f; }
.form__note { font-size: 12.5px; line-height: 1.55; color: var(--muted); margin-top: 6px; }
.form__note a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
.form__note a:hover { color: var(--ink); }
.btn .spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: spin .8s linear infinite; }
.form.is-sending .btn .spinner { display: inline-block; }
.form.is-sending .btn .arrow { display: none; }
.form.is-sending .btn { pointer-events: none; opacity: .85; }

.form__success {
  position: absolute; inset: 0; z-index: 2; border-radius: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 40px; text-align: center; background: var(--surface);
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s;
}
.form__success h3 { font-size: 2rem; letter-spacing: -.045em; font-weight: 600; }
.form__success p { color: var(--muted); max-width: 34ch; }
.success-icon circle, .success-icon path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.form.is-sent .form__success { opacity: 1; visibility: visible; }
.form.is-sent .success-icon circle { stroke-dashoffset: 0; transition: stroke-dashoffset .9s var(--ease) .2s; }
.form.is-sent .success-icon path { stroke-dashoffset: 0; transition: stroke-dashoffset .6s var(--ease) .8s; }
.grecaptcha-badge { visibility: hidden !important; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding-top: 40px; overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 32px; padding: 28px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer__nav { display: flex; gap: 26px; }
.footer__nav a { transition: color .3s; }
.footer__nav a:hover { color: var(--ink); }
.footer__mega {
  display: flex; justify-content: center;
  font-size: 15vw; font-weight: 600; letter-spacing: -.065em; line-height: .76;
  white-space: nowrap; user-select: none; color: var(--ink);
  margin-top: clamp(20px, 4vw, 60px); transform: translateY(14%);
}
.footer__mega > span { display: inline-block; }

/* ==========================================================================
   Reveal- & Entrance-Animationen
   ========================================================================== */
.js .reveal { opacity: 0; transform: translate3d(0, 40px, 0); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 1.1s var(--ease) var(--d, 0s), transform 1.3s var(--ease) var(--d, 0s); }
.js .tile.reveal.is-in { transition: opacity 1.1s var(--ease) var(--d, 0s), transform 1.3s var(--ease) var(--d, 0s), box-shadow .7s var(--ease); }
.js .tile.reveal.is-in:hover { transform: translateY(-4px); transition: transform .7s var(--ease), box-shadow .7s var(--ease); }

.js .hero__title .line > span { transform: translate3d(0, 112%, 0); }
.js .is-loaded .hero__title .line > span,
.is-loaded .hero__title .line > span { transform: none; transition: transform 1.4s var(--ease); }
.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: .1s; }
.js .hero__eyebrow { opacity: 0; transform: translate3d(0, 12px, 0); }
.is-loaded .hero__eyebrow { opacity: 1; transform: none; transition: opacity 1s var(--ease) .05s, transform 1s var(--ease) .05s; }
.js .fade-up { opacity: 0; transform: translate3d(0, 22px, 0); }
.is-loaded .fade-up { opacity: 1; transform: none; transition: opacity 1.2s var(--ease) var(--d, 0s), transform 1.2s var(--ease) var(--d, 0s); }
.is-loaded .hero__lead.fade-up { transform: none; }
.js .hero__photo.is-ready img { animation: hero-photo-in .7s var(--ease); }
@keyframes hero-photo-in {
  from { opacity: .72; transform: scale(1.04); }
}
.js .chip__in { opacity: 0; translate: 0 18px; scale: .94; }
.is-loaded .chip__in { opacity: 1; translate: 0 0; scale: 1; transition: opacity .9s var(--ease) var(--d, 1s), translate 1.2s var(--ease) var(--d, 1s), scale 1.2s var(--ease) var(--d, 1s); }

@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -9px, 0); } }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 174, 91, .5); } 70%, 100% { box-shadow: 0 0 0 6px rgba(31, 174, 91, 0); } }
@keyframes scrollcue { 0% { transform: translateX(-100%); } 55% { transform: translateX(0); } 100% { transform: translateX(100%); } }
@keyframes stream { to { transform: translate3d(0, -50%, 0); } }
@keyframes marquee { to { transform: translate3d(-100%, 0, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toggle-bg { 0%, 16% { background: #d8d5ce; } 24%, 84% { background: var(--green); } 92%, 100% { background: #d8d5ce; } }
@keyframes toggle-knob { 0%, 16% { transform: none; } 24%, 84% { transform: translateX(16px); } 92%, 100% { transform: none; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--analytics { grid-column: span 2; }
  .tile--gtm, .tile--consent, .tile--ads, .tile--it { grid-column: span 1; }
  .tile--it { grid-column: span 2; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { margin-top: 40px; }
}

@media (max-width: 960px) {
  .nav__links, .nav__actions > .btn--sm { display: none; }
  .nav__toggle { display: inline-block; }
  .mobile-menu { display: flex; }

  .hero { flex-direction: column; align-items: stretch; padding-bottom: 0; }
  .hero__copy { max-width: none; }
  .hero__title { font-size: clamp(3rem, 12.4vw, 6.5rem); }
  .hero__inner { position: relative; }
  .hero__media { position: relative; right: auto; bottom: auto; width: min(100%, 620px); margin: 36px auto 0; }
  .hero__scroll { display: none; }
  .chip--a { left: 0; top: 20%; }
  .chip--b { right: 0; }
  .chip--c { left: 2%; top: 70%; }

  .about__body, .contact__grid, .process__grid { grid-template-columns: 1fr; }
  .process__sticky { position: static; }
  .process__meter { display: none; }
  .js .step { opacity: 1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .tile--analytics, .tile--gtm, .tile--consent, .tile--ads, .tile--it { grid-column: span 1; }
  .tile--analytics { grid-template-columns: 1fr; }
  .tile { min-height: 0; border-radius: 24px; }
  .tile--analytics .viz { margin-top: 28px; }

  .hero__eyebrow > span:first-child, .hero__sep { display: none; }
  .hero__title { font-size: clamp(3rem, 15vw, 4.6rem); }
  .chip--a { top: 49%; left: -2%; }
  .chip--b { top: 66%; right: -2%; }
  .chip--c { top: 83%; left: 4%; }
  .statement { padding-top: 64px; }
  .chip__in { font-size: 11.5px; padding: 8px 11px 8px 10px; border-radius: 12px; }
  .chip__in .mono { font-size: 11px; }
  .chip__text small { font-size: 10px; }
  .chip__in--card { min-width: 140px; padding: 10px 12px; }
  .chip__row { font-size: 11px; }

  .about__stage { height: 220vh; }
  .about__frame img { object-position: 51% 0; }
  .about__overlay {
    align-items: flex-end; padding: 0 var(--pad) 12vh;
    background: linear-gradient(0deg, rgb(var(--bg-rgb) / .97) 0%, rgb(244 245 247 / .86) 30%, rgb(244 245 247 / 0) 58%);
  }
  .about__title { font-size: clamp(2.6rem, 13vw, 4rem); }
  .facts > div { grid-template-columns: 96px 1fr; }

  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { padding-right: 12px; }
  .stat + .stat { padding-left: 16px; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat__label { font-size: 14px; }

  .step { grid-template-columns: 1fr; gap: 6px; }
  .step__num { padding-top: 0; }

  .form__row { grid-template-columns: 1fr; }
  .form { border-radius: 26px; }
  .contact__links li > a, .contact__links li > div { grid-template-columns: 80px 1fr auto; }
  .coords { display: none; }
  .footer__top { flex-direction: column-reverse; align-items: flex-start; }
}

/* ==========================================================================
   Reduzierte Bewegung
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .marquee { flex-wrap: wrap; justify-content: center; -webkit-mask-image: none; mask-image: none; }
  .marquee__track { flex-wrap: wrap; justify-content: center; }
  .marquee__track[aria-hidden="true"] { display: none; }
  .w { color: var(--ink); }
  .about__stage { height: auto; }
  .about__sticky { position: relative; height: 80vh; }
}

/* ==========================================================================
   Rechtliches (Impressum, Datenschutz)
   ========================================================================== */
.link-back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 14px; color: var(--ink-2);
  transition: background-color .3s, color .3s;
}
.link-back:hover { background: rgba(12, 13, 16, .05); color: var(--ink); }
.link-back .arrow { transition: transform .5s var(--ease); }
.link-back:hover .arrow { transform: translateX(-3px); }

.legal { padding: calc(var(--nav-h) + clamp(56px, 10vh, 120px)) 0 clamp(80px, 12vh, 140px); }
.legal__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(40px, 6vw, 96px); }
.legal__head { grid-column: 1 / -1; max-width: 960px; margin-bottom: clamp(16px, 4vw, 48px); }
.legal__title { margin-top: 20px; font-size: clamp(2.8rem, 7.2vw, 6.6rem); line-height: .94; letter-spacing: -.058em; font-weight: 600; }
.legal__meta { margin-top: 22px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.legal__toc { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
.legal__toc ol { list-style: none; padding: 0; margin: 14px 0 0; border-top: 1px solid var(--line); counter-reset: toc; }
.legal__toc li { counter-increment: toc; }
.legal__toc a { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); transition: color .3s; }
.legal__toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 11.5px; color: var(--muted); padding-top: 3px; }
.legal__toc a:hover { color: var(--accent-ink); }

.legal__body { max-width: 70ch; }
.legal__body section { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 28px); }
.legal__body section:last-child { border-bottom: 0; margin-bottom: 0; }
.legal__body section > * + * { margin-top: 14px; }
.legal__body h2 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(1.5rem, 2.2vw, 1.95rem); line-height: 1.15; letter-spacing: -.035em; font-weight: 600; }
.legal__body h2 .num { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--accent-ink); }
.legal__body h3 { margin-top: 26px; font-size: 1.1rem; font-weight: 600; letter-spacing: -.02em; }
.legal__body p, .legal__body li { color: var(--ink-2); line-height: 1.7; text-wrap: pretty; }
.legal__body ul { padding-left: 1.2em; }
.legal__body li + li { margin-top: 6px; }
.legal__body li::marker { color: var(--accent); }
.legal__body a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: rgb(var(--accent-rgb) / .35); transition: text-decoration-color .3s; }
.legal__body a:hover { text-decoration-color: var(--accent); }
.legal__body address {
  font-style: normal; line-height: 1.7; color: var(--ink);
  padding: 20px 24px; border-radius: 18px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.legal__body .small { font-size: 14px; color: var(--muted); }
mark.todo { background: #fff1a6; color: var(--ink); padding: 1px 5px; border-radius: 5px; }

.footer--plain { padding-top: 0; }
.footer__nav { flex-wrap: wrap; }

@media (max-width: 960px) {
  .legal__grid { grid-template-columns: 1fr; }
  .legal__toc { position: static; }
}
.legal__body code { font-family: var(--mono); font-size: .86em; padding: 1px 6px; border-radius: 6px; background: var(--bg-2); color: var(--ink); }

/* ==========================================================================
   Consent-Banner
   ========================================================================== */
.footer__btn { font: inherit; color: inherit; cursor: pointer; transition: color .3s; }
.footer__btn:hover { color: var(--ink); }

.consent {
  position: fixed; z-index: 150; left: 20px; bottom: 20px;
  width: min(430px, calc(100vw - 40px));
  padding: 22px 22px 18px; border-radius: 26px;
  background: rgb(255 255 255 / .84);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .8), 0 1px 2px rgba(12, 13, 16, .06), 0 40px 90px -30px rgba(12, 13, 16, .38);
  color: var(--ink);
  opacity: 0; visibility: hidden; transform: translate3d(0, 24px, 0) scale(.98);
  transition: opacity .5s var(--ease), transform .8s var(--ease), visibility .8s;
}
.consent.is-open { opacity: 1; visibility: visible; transform: none; }
.consent__head { display: flex; justify-content: space-between; align-items: center; }
.consent__badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink);
}
.consent__close { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--muted); transition: background-color .3s, color .3s; }
.consent__close:hover { background: rgba(12, 13, 16, .06); color: var(--ink); }
.consent h2 { margin-top: 12px; font-size: 1.5rem; line-height: 1.1; letter-spacing: -.04em; font-weight: 600; }
.consent p { margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.consent__gpc { padding: 10px 12px; border-radius: 12px; background: rgb(var(--accent-rgb) / .08); font-size: 13px !important; }

.consent__prefs { display: none; margin-top: 14px; }
.consent.is-expanded .consent__prefs { display: block; }
.consent__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.consent__row strong { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.consent__row span { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }

.switch {
  -webkit-appearance: none; appearance: none; flex: none; cursor: pointer;
  position: relative; width: 44px; height: 26px; margin: 0; border-radius: 999px;
  background: #d5d8de; transition: background-color .3s var(--ease);
}
.switch::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .22); transition: transform .4s var(--ease);
}
.switch:checked { background: var(--accent); }
.switch:checked::before { transform: translateX(18px); }
.switch:disabled { cursor: not-allowed; opacity: .5; }
.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.consent__btn {
  height: 46px; border-radius: 999px; padding: 0 16px;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 500; letter-spacing: -.01em;
  transition: transform .4s var(--ease), background-color .3s;
}
.consent__btn:hover { background: #24262c; }
.consent__btn:active { transform: scale(.97); }
.consent__btn--wide { grid-column: 1 / -1; background: var(--accent); }
.consent__btn--wide:hover { background: var(--accent-ink); }
.consent__more { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.consent__more button, .consent__more a { padding: 4px 0; color: inherit; transition: color .3s; }
.consent__more button:hover, .consent__more a:hover { color: var(--ink); }
.consent__more a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }

@media (max-width: 560px) {
  .consent { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 20px 18px 14px; border-radius: 24px; }
  .consent h2 { font-size: 1.35rem; }
}
