/* ==========================================================================
   absatzformat.de · Onepager 2026 (Websites, Cockpits, Automatisierung)
   Tokens: brand/visual-guidelines.md (Glass-Hybrid, Aurora, #e72d4b)
   Radius-Regel: Buttons/Chips = Pill · Karten/Panels = 20/28px · UI-Innenleben = 8-12px
   Motion: nur transform/opacity/filter, Abschalten über html.no-motion (Footer-Schalter) am Dateiende
   ========================================================================== */

:root {
  --brand: #e72d4b;
  --brand-hover: #c81e3c;
  --brand-light: #ff5e7a;
  --violet: #7C3AED;
  --violet-soft: #C4B5FD;
  --ok: #34D399;
  --warn: #FBBF24;
  --info: #7DD3FC;

  --bg: #0B0E1A;
  --bg-elev: #141828;
  --bg-card: #121626;
  --glass: rgba(255, 255, 255, .06);
  --glass-strong: rgba(255, 255, 255, .10);
  --line: rgba(255, 255, 255, .12);
  --line-soft: rgba(255, 255, 255, .07);

  --text: #F4F5F7;
  --text-2: #A8B0BD;
  --muted: #7C8493;

  --f-display: "Inter Tight", Inter, system-ui, sans-serif;
  --f-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-brand: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --maxw: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --edge: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  --nav-h: 72px;
  --section-y: clamp(5rem, 10vw, 8rem);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }
html:not(.no-motion) { scroll-behavior: smooth; }
body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: clamp(1rem, 1.15vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: inherit; }
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(231, 45, 75, .35); }

.ic {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.flip { transform: rotate(180deg); }
.mono { font-family: var(--f-mono); font-size: .92em; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 600;
}
.skip:focus { top: 16px; }

/* ---------- Aurora (Brand Sektion 2, Drift 30s) ---------- */
.aurora {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: radial-gradient(ellipse 70% 50% at 50% 115%, rgba(56, 189, 248, .08), transparent 60%);
}
.aurora i {
  position: absolute; width: 62vmax; height: 62vmax; border-radius: 50%;
  filter: blur(60px); opacity: .55; will-change: transform;
}
.aurora i:nth-child(1) {
  left: -14vmax; top: -26vmax;
  background: radial-gradient(circle, rgba(124, 58, 237, .5), transparent 65%);
  animation: drift-a 30s linear infinite alternate;
}
.aurora i:nth-child(2) {
  right: -20vmax; top: -6vmax;
  background: radial-gradient(circle, rgba(231, 45, 75, .38), transparent 65%);
  animation: drift-b 36s linear infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(12vmax, 8vmax, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(-10vmax, 14vmax, 0) scale(.94); } }

/* ---------- Typo ---------- */
.h2 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.05; letter-spacing: -.03em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.15; letter-spacing: -.02em;
}
.h4 { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; line-height: 1.25; letter-spacing: -.015em; }
.lead { margin-top: 16px; max-width: 58ch; color: var(--text-2); font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.55; text-wrap: pretty; }
p { text-wrap: pretty; }

.section { position: relative; padding-block: var(--section-y); }
.section__head { max-width: 760px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
  color: var(--text-2); font-size: .85rem; font-weight: 500;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-size: .95rem; font-weight: 600; white-space: nowrap; line-height: 1;
  transition: background .2s var(--ease-out), border-color .2s var(--ease-out), box-shadow .25s var(--ease-out), color .2s, transform .12s var(--ease-out);
}
.btn .ic { width: 18px; height: 18px; transition: transform .25s var(--ease-out); }
.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #e72d4b, #c81e3c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 12px 28px -12px rgba(231, 45, 75, .65);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .15);
}
.btn--primary:hover { background: linear-gradient(180deg, #d8243f, #b51a35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 16px 36px -12px rgba(231, 45, 75, .8); }
.btn--primary:hover .ic { transform: translateX(3px); }
.btn--ghost {
  color: var(--text); background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn--ghost:hover { background: var(--glass-strong); border-color: rgba(255, 255, 255, .22); }
.btn:active { transform: scale(.97); transition-duration: 80ms; }
.btn--lg { height: 54px; padding: 0 26px; font-size: 1rem; }
.btn--sm { height: 40px; padding: 0 16px; font-size: .875rem; }

.iconbtn {
  width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
  transition: background .2s, border-color .2s, opacity .2s, transform .12s var(--ease-out);
}
.iconbtn:hover { background: var(--glass-strong); }
.iconbtn:active { transform: scale(.94); }
.iconbtn:disabled { opacity: .3; cursor: default; }
.iconbtn .ic { width: 20px; height: 20px; }

/* ---------- Navigation ---------- */
.nav-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 64px; }
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out), backdrop-filter .3s;
}
.nav.is-scrolled {
  background: rgba(11, 14, 26, .72);
  backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom-color: rgba(255, 255, 255, .08);
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.nav__brand { display: block; color: #fff; flex: none; }
.nav__logo { width: 124px; height: auto; }
.nav__links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav__links a:not(.btn) { color: var(--text-2); font-size: .93rem; font-weight: 500; transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__cta-mobile, .nav__toggle { display: none; }

@media (max-width: 960px) {
  .nav__inner { gap: 12px; }
  .nav__cta { margin-left: auto; }
  .nav__toggle {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
  }
  .nav__toggle .ic { width: 20px; height: 20px; }
  .nav__icon-close, .nav.is-open .nav__icon-open { display: none; }
  .nav.is-open .nav__icon-close { display: block; }
  .nav__links {
    position: fixed; top: calc(var(--nav-h) - 4px); left: 12px; right: 12px;
    flex-direction: column; align-items: stretch; gap: 2px; margin: 0;
    padding: 14px; border-radius: 20px;
    background: rgba(20, 24, 40, .94); border: 1px solid var(--line);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
    opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top center;
    visibility: hidden; pointer-events: none;
    transition: opacity .18s var(--ease-out), transform .18s var(--ease-out), visibility 0s linear .18s;
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .nav__links a:not(.btn) { padding: 12px 10px; font-size: 1.05rem; color: var(--text); border-radius: 10px; }
  .nav__links a:not(.btn):hover { background: var(--glass); }
  .nav__cta-mobile { display: inline-flex; margin-top: 8px; }
}
@media (max-width: 520px) { .nav__cta { display: none; } .nav__toggle { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(36px, 7vh, 88px));
  padding-bottom: clamp(56px, 9vh, 104px);
  overflow-x: clip;
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px); align-items: center;
}
.hero__title {
  margin-top: 22px;
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.4rem, 3.9vw, 3.75rem); line-height: 1.04; letter-spacing: -.04em;
}
.hero__line { display: block; }
@media (min-width: 961px) { .hero__line { white-space: nowrap; } }
@media (max-width: 960px) { .hero__title { font-size: clamp(2.3rem, 8.4vw, 3.6rem); } }
.hero__title em { font-style: normal; color: var(--brand-light); }
.hero__lead { margin-top: 24px; max-width: 34em; color: var(--text-2); font-size: clamp(1.08rem, 1.35vw, 1.25rem); line-height: 1.55; }
.hero__ctas { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__visual { position: relative; perspective: 1600px; margin-right: calc(-1 * clamp(24px, 7vw, 140px)); }
.hero__caption { margin-top: 14px; padding-right: clamp(24px, 7vw, 140px); text-align: right; color: var(--muted); font-size: .78rem; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { margin-right: 0; margin-top: 8px; }
  .hero__caption { padding-right: 0; }
}

/* ---------- Fenster (Hero + Projekte) ---------- */
.win {
  position: relative; overflow: hidden; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .03)), rgba(18, 22, 38, .72);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 50px 90px -40px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .25);
  backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.win__bar { height: 42px; display: flex; align-items: center; gap: 12px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line-soft); }
.win__dots { display: flex; gap: 6px; }
.win__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.win__dots i:first-child { background: var(--brand); }
.win__url { font-family: var(--f-mono); font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win__live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 600; color: var(--ok); transition: color .3s; }
.win__live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.win__pause { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--text-2); transition: background .2s, color .2s; }
.win__pause:hover { background: var(--glass); color: var(--text); }
.win__pause .ic { width: 14px; height: 14px; }
.win__pause .ic-play, .is-paused .win__pause .ic-pause { display: none; }
.is-paused .win__pause .ic-play { display: block; }
.is-paused .win__live { color: var(--muted); }
.is-paused .win__live i { box-shadow: none; }

/* Hero-Cockpit */
.win--hero {
  transform: rotateY(var(--ry, -5deg)) rotateX(var(--rx, 2deg));
  transform-style: preserve-3d;
  transition: transform .8s var(--ease-out);
}
.win__body { display: grid; grid-template-columns: 56px minmax(0, 1fr); }
.win__side { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 0; border-right: 1px solid var(--line-soft); color: var(--muted); }
.win__side span { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; }
.win__side .ic { width: 18px; height: 18px; }
.win__side .is-on { background: rgba(231, 45, 75, .16); color: var(--brand-light); }
.win__main { padding: 20px 22px 22px; min-width: 0; }
.cp__hello { font-size: .78rem; color: var(--muted); }
.cp__title { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.2; }
.cp__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.cp__kpi { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); min-width: 0; }
.cp__kpi-l { font-size: .7rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp__kpi-v { font-family: var(--f-display); font-weight: 800; font-size: 1.65rem; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; display: inline-block; }
.cp__kpi-d { font-size: .68rem; font-weight: 600; color: rgba(255, 255, 255, .8); white-space: nowrap; }
.cp__ok { color: var(--ok); }
.cp__kpi--hl { background: linear-gradient(140deg, #e72d4b, #a81e35); border-color: transparent; }
.cp__kpi--hl .cp__kpi-l { color: rgba(255, 255, 255, .85); }
.cp__kpi-v.is-bump { animation: bump .5s var(--ease-out); }
@keyframes bump { from { transform: translateY(8px); opacity: .2; filter: blur(4px); } }

.cp__chart { margin-top: 10px; padding: 12px 14px 6px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); }
.cp__chart-top { display: flex; justify-content: space-between; font-size: .74rem; color: var(--text-2); }
.cp__chart-top b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.cp__chart svg { width: 100%; height: 64px; margin-top: 4px; overflow: visible; }
.cp__grid line { stroke: rgba(255, 255, 255, .06); stroke-width: .3; }
.cp__line { fill: none; stroke: var(--brand); stroke-width: 1.8; vector-effect: non-scaling-stroke; stroke-linecap: round; }

.cp__feed-h { margin-top: 16px; font-size: .74rem; color: var(--muted); }
.cp__feed {
  position: relative; height: calc(4 * 44px + 3 * 8px); margin-top: 8px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent); mask-image: linear-gradient(180deg, #000 82%, transparent);
}
.cp__row {
  position: absolute; inset: 0 0 auto 0; height: 44px;
  display: flex; align-items: center; gap: 10px; padding: 0 10px;
  border-radius: 10px; background: var(--glass); border: 1px solid var(--line);
  font-size: .82rem;
  transform: translateY(calc(var(--pos, 0) * 52px));
  transition: transform .6s var(--ease-out), opacity .45s var(--ease-out), filter .45s var(--ease-out);
}
.cp__row:nth-child(2) { --pos: 1; } .cp__row:nth-child(3) { --pos: 2; } .cp__row:nth-child(4) { --pos: 3; }
.cp__row.is-entering { opacity: 0; filter: blur(4px); transform: translateY(-20px) scale(.98); }
.cp__row.is-leaving { opacity: 0; filter: blur(3px); }
.cp__ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex: none; }
.cp__ic .ic { width: 15px; height: 15px; stroke-width: 2.2; }
.cp__t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp__tag { flex: none; padding: 3px 9px; border-radius: 999px; font-size: .68rem; font-weight: 600; }
[data-tone="ok"] .cp__ic, [data-tone="ok"] .cp__tag { background: rgba(52, 211, 153, .14); color: var(--ok); }
[data-tone="auto"] .cp__ic, [data-tone="auto"] .cp__tag { background: rgba(124, 58, 237, .2); color: var(--violet-soft); }
[data-tone="new"] .cp__ic, [data-tone="new"] .cp__tag { background: rgba(231, 45, 75, .18); color: #ff8095; }
[data-tone="info"] .cp__ic, [data-tone="info"] .cp__tag { background: rgba(125, 211, 252, .13); color: var(--info); }

@media (max-width: 560px) {
  .win__body { grid-template-columns: minmax(0, 1fr); }
  .win__side { display: none; }
  .win__main { padding: 16px; }
  .cp__kpi { padding: 10px; }
  .cp__kpi-v { font-size: 1.3rem; }
  .cp__kpi-d { display: none; }
  .win--hero { --ry: 0deg; --rx: 0deg; }
}

/* ---------- Logos (einziger Marquee der Seite) ---------- */
.logos { padding-block: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 48px); }
.logos__h { max-width: 46ch; margin: 0 auto 32px; text-align: center; font-size: .95rem; font-weight: 500; color: var(--text-2); text-wrap: balance; }
.marquee {
  display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; align-items: center; gap: 64px; padding-right: 64px; flex: none; animation: marquee 70s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee img { height: 38px; width: auto; max-width: 150px; object-fit: contain; opacity: .5; transition: opacity .3s var(--ease-out); }
.marquee li:hover img { opacity: 1; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Prozess-Story (Sticky Stage) ---------- */
.story__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 96px); margin-top: 24px; }
.story__stage-wrap { position: sticky; top: max(calc(var(--nav-h) + 24px), calc(50vh - min(540px, 70vh) / 2 + var(--nav-h) / 2)); align-self: start; }
.story__steps { padding-bottom: 10vh; }
.stage {
  position: relative; height: min(540px, 70vh); container-type: size; overflow: hidden;
  border-radius: 28px; border: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(124, 58, 237, .16), transparent 70%),
    radial-gradient(ellipse 60% 50% at 10% 100%, rgba(231, 45, 75, .12), transparent 70%),
    radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 22px 22px,
    rgba(255, 255, 255, .015);
}
.node {
  position: absolute; left: 0; top: 0; z-index: 1;
  display: flex; align-items: center; gap: 10px;
  width: min(244px, 66cqw); padding: 10px 16px 10px 10px; border-radius: 999px;
  background: rgba(18, 22, 38, .9); border: 1px dashed rgba(255, 255, 255, .2);
  color: var(--text-2); font-size: .9rem; font-weight: 500; white-space: nowrap;
  transform: translate(calc(var(--x) * 1cqw), calc(var(--y) * 1cqh)) translate(-50%, -50%) rotate(var(--r, 0deg)) scale(var(--s, 1));
  transition: transform .9s var(--ease-out), opacity .6s var(--ease-out), filter .6s var(--ease-out), border-color .6s, background .6s, color .6s;
}
.node__ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); flex: none; transition: background .6s, color .6s; }
.node__ic .ic { width: 16px; height: 16px; }
.node__label { display: grid; min-width: 0; }
.node__chaos, .node__flow { grid-area: 1 / 1; overflow: hidden; text-overflow: ellipsis; transition: opacity .45s var(--ease-out); }
.node__flow { opacity: 0; font-weight: 600; }

/* Schritt 1: Chaos */
.stage[data-step="1"] .node--1 { --x: 30; --y: 18; --r: -7deg; }
.stage[data-step="1"] .node--2 { --x: 68; --y: 32; --r: 5deg; }
.stage[data-step="1"] .node--3 { --x: 32; --y: 63; --r: 4deg; }
.stage[data-step="1"] .node--4 { --x: 68; --y: 80; --r: -4deg; }
.node--n1 { --x: 64; --y: 50; --r: -3deg; }
.node--n2 { --x: 30; --y: 89; --r: 6deg; }

/* Schritt 2 + 3: ein Ablauf */
.stage:not([data-step="1"]) .node--1 { --x: 50; --y: 16; }
.stage:not([data-step="1"]) .node--2 { --x: 50; --y: 38; }
.stage:not([data-step="1"]) .node--3 { --x: 50; --y: 60; }
.stage:not([data-step="1"]) .node--4 { --x: 50; --y: 82; }
.stage:not([data-step="1"]) .node:not(.node--noise) { border-style: solid; border-color: rgba(231, 45, 75, .4); background: rgba(28, 32, 52, .95); color: var(--text); }
.stage:not([data-step="1"]) .node__ic { background: rgba(231, 45, 75, .18); color: var(--brand-light); }
.stage:not([data-step="1"]) .node__chaos { opacity: 0; }
.stage:not([data-step="1"]) .node__flow { opacity: 1; }
.stage:not([data-step="1"]) .node--noise { opacity: 0; --s: .85; filter: blur(4px); }
.stage[data-step="3"] .node:not(.node--noise) { opacity: .35; --s: .94; filter: blur(1.5px); }

.stage__line {
  position: absolute; left: 50cqw; top: 16cqh; width: 2px; height: 66cqh; margin-left: -1px;
  background: linear-gradient(180deg, var(--brand), var(--violet));
  transform: scaleY(0); transform-origin: top; opacity: .85;
  transition: transform 1s var(--ease-out) .25s, opacity .6s;
}
.stage:not([data-step="1"]) .stage__line { transform: scaleY(1); }
.stage[data-step="3"] .stage__line { opacity: .3; }
.stage__dot {
  position: absolute; left: 50%; top: 0; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 14px 2px rgba(231, 45, 75, .9); opacity: 0;
}
.stage[data-step="2"] .stage__dot { animation: dot-run 2.2s var(--ease-in-out) 1s 3; }
@keyframes dot-run {
  0% { transform: translateY(0); opacity: 0; }
  12%, 88% { opacity: 1; }
  100% { transform: translateY(66cqh); opacity: 0; }
}

.stage__panel {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: min(88cqw, 380px);
  padding: 20px; border-radius: 20px;
  background: rgba(24, 28, 46, .92); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 40px 80px -30px rgba(0, 0, 0, .9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; filter: blur(6px); transform: translate(-50%, -44%) scale(.96);
  transition: opacity .6s var(--ease-out), transform .8s var(--ease-out), filter .6s var(--ease-out);
}
.stage[data-step="3"] .stage__panel { opacity: 1; filter: none; transform: translate(-50%, -50%); }
.stage__panel-h { display: flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; }
.stage__panel-h .ic { color: var(--brand-light); width: 18px; height: 18px; }
.stage__panel ul { display: grid; gap: 10px; margin-top: 14px; }
.stage__panel li { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--text-2); }
.stage__badge {
  width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center;
  background: var(--glass-strong); color: var(--text); font-family: var(--f-mono); font-size: .85rem; font-weight: 500;
}
.stage__badge .ic { width: 15px; height: 15px; stroke-width: 2.4; }
.stage__badge--new { background: rgba(231, 45, 75, .2); color: #ff8095; }
.stage__badge--ok { background: rgba(52, 211, 153, .15); color: var(--ok); }

.story__steps { counter-reset: none; }
.story__step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; max-width: 30rem; opacity: .32; transition: opacity .5s var(--ease-out); }
.story__step.is-active { opacity: 1; }
.story__label { font-size: .85rem; font-weight: 600; color: var(--brand-light); margin-bottom: 10px; }
.story__step p:last-child { margin-top: 14px; color: var(--text-2); }
html:not(.js) .story__step { opacity: 1; }

@media (max-width: 960px) {
  .story__grid { grid-template-columns: 1fr; gap: 0; }
  .story__stage-wrap { top: calc(var(--nav-h) + 8px); z-index: 2; padding-block: 12px; background: linear-gradient(180deg, var(--bg) 85%, transparent); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .stage { height: 330px; }
  .node { font-size: .82rem; padding: 8px 14px 8px 8px; }
  .node__ic { width: 26px; height: 26px; }
  .story__step { min-height: 56vh; }
}

/* ---------- Leistungen (Bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.bento__cell {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
  padding: clamp(24px, 3vw, 36px); border-radius: 20px;
  background: var(--glass); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.bento__cell > p { margin-top: 10px; color: var(--text-2); max-width: 52ch; }
.bento__cell::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(231, 45, 75, .16), transparent 60%);
  opacity: 0; transition: opacity .35s var(--ease-out);
}
.bento__cell:hover::before { opacity: 1; }
.bento__cell--main {
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(124, 58, 237, .2), transparent 70%),
    radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 20px 20px,
    var(--glass);
}
.bento__cell--web { background: radial-gradient(ellipse 70% 60% at 100% 0%, rgba(231, 45, 75, .16), transparent 70%), var(--glass); }
.bento__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px; background: rgba(231, 45, 75, .14); color: var(--brand-light); }
.bento__icon .ic { width: 22px; height: 22px; }
.bento__cell .h3 { text-wrap: balance; }
.bento__cell > .bento__claim { margin-top: 12px; color: var(--text); font-size: 1.08rem; font-weight: 500; line-height: 1.45; text-wrap: balance; }
.bento__cell > .bento__sub { margin-top: 28px; font-size: .85rem; color: var(--muted); }

.modules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.modules li {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px 6px 14px; border-radius: 12px; text-align: center;
  background: rgba(11, 14, 26, .45); border: 1px solid var(--line-soft);
  font-size: .8rem; color: var(--text-2);
  transition: background .25s var(--ease-out), border-color .25s, color .25s, opacity .6s var(--ease-out), transform .6s var(--ease-out);
  transition-delay: 0s, 0s, 0s, calc(var(--i) * 50ms + 250ms), calc(var(--i) * 50ms + 250ms);
}
.modules li:hover { background: rgba(231, 45, 75, .1); border-color: rgba(231, 45, 75, .3); color: var(--text); }
.modules .ic { width: 22px; height: 22px; color: var(--brand-light); }
html.js .bento__cell--main:not(.is-in) .modules li { opacity: 0; transform: translateY(10px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips li { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: rgba(11, 14, 26, .4); font-size: .82rem; font-weight: 500; color: var(--text-2); }

/* Webseiten: Besucher -> Anfrage -> Gespräch -> Kunde */
.journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.journey li {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 4px 12px; border-radius: 12px; text-align: center;
  background: rgba(11, 14, 26, .45); border: 1px solid var(--line-soft);
  font-size: .8rem; color: var(--text-2);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--i) * 120ms + 250ms);
}
.journey li:last-child { background: rgba(231, 45, 75, .14); border-color: rgba(231, 45, 75, .35); color: var(--text); }
.journey li + li::before {
  content: ""; position: absolute; left: -10px; top: 50%; width: 10px; height: 1px; background: rgba(231, 45, 75, .5);
}
.journey .ic { width: 20px; height: 20px; color: var(--brand-light); }
html.js .bento__cell--web:not(.is-in) .journey li { opacity: 0; transform: translateY(10px); }
.bento__cell--web .ticks { margin-top: 24px; }

@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .modules, .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey li:nth-child(3)::before { display: none; }
}

/* ---------- Projekte (Sticky Stack) ---------- */
.cases__stack { display: grid; gap: 28px; margin-top: 48px; }
.case {
  position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(24px, 3.5vw, 48px); border-radius: 28px;
  background:
    radial-gradient(ellipse 60% 60% at 100% 0%, rgba(124, 58, 237, .12), transparent 70%),
    linear-gradient(160deg, #181c2f, #0f1220);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 -24px 60px -24px rgba(0, 0, 0, .7);
  transform-origin: 50% 0;
  transition: transform .7s var(--ease-out);
}
.case::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: rgba(8, 10, 20, .6); opacity: 0; transition: opacity .7s var(--ease-out);
}
@media (min-width: 961px) {
  .case { position: sticky; top: calc(var(--nav-h) + 24px + var(--i) * 18px); min-height: min(540px, calc(100dvh - var(--nav-h) - 120px)); }
  .case.is-covered { transform: scale(.95); }
  .case.is-covered::after { opacity: 1; }
}
.case__client { font-size: .85rem; font-weight: 600; color: var(--brand-light); }
.case__title { margin-top: 8px; }
.case__copy > p:not(.case__client) { margin-top: 14px; color: var(--text-2); }
.ticks { display: grid; gap: 10px; margin-top: 22px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; text-wrap: pretty; }
.ticks .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--brand-light); flex: none; }
.ticks small { display: block; margin-top: 1px; color: var(--muted); font-size: .82rem; }

/* Problem → Lösung */
.case__label { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.case__label::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.case__before { margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .025); border: 1px dashed rgba(255, 255, 255, .13); }
.case__copy .case__before p:not(.case__label) { margin-top: 6px; color: var(--text-2); font-size: .93rem; line-height: 1.55; }
.case__copy > p.case__label--now { margin-top: 22px; color: var(--brand-light); }
.case__label--now + .ticks { margin-top: 14px; }
.cases__note { margin-top: 20px; text-align: right; font-size: .78rem; color: var(--muted); }

/* Kein Backdrop-Blur in Sticky-Karten (Chromium zeichnet sonst nicht) – Karte ist ohnehin blickdicht */
.win--case { font-size: .82rem; backdrop-filter: none; -webkit-backdrop-filter: none; background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)), #151a2c; }
/* Echte Oberflächen (Screenshots aus tools/cockpit-demo), mehrere Ansichten blenden über */
.shots__view { position: relative; aspect-ratio: 1.55; overflow: hidden; background: #f3f4f6; }
.shots__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .7s var(--ease-out); }
.shots__slide.is-on { opacity: 1; }
.shots__slide img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.shots__slide figcaption {
  position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px;
  background: rgba(12, 15, 28, .82); border: 1px solid rgba(255, 255, 255, .12); color: var(--text);
  font-size: .72rem; font-weight: 500; letter-spacing: .01em; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .6);
}
.shots__dots { margin-left: auto; display: flex; }
.shots__dots button { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; }
.shots__dots button i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .22); transition: background .3s, transform .3s var(--ease-out); }
.shots__dots button:hover i { background: rgba(255, 255, 255, .5); }
.shots__dots button[aria-current="true"] i { background: var(--brand-light); transform: scale(1.2); }
.shots__dots button:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 1px; }
html.no-motion .shots__slide, html.no-motion .shots__dots i { transition: none; }

.ui { padding: 18px; display: grid; gap: 14px; }
.ui__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ui__head b { font-family: var(--f-display); font-weight: 600; font-size: .98rem; }
.ui__chip { padding: 4px 10px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: .72rem; color: var(--text-2); white-space: nowrap; }
.ui__muted { color: var(--muted); font-size: .74rem; }
.ui__big { display: flex; align-items: center; gap: 6px; font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ui__big small { font-size: .72rem; font-weight: 500; color: var(--muted); }
.ui__ok { color: var(--ok); font-size: .72rem; font-weight: 600; }
.ui__ok-ic .ic { width: 18px; height: 18px; color: var(--ok); stroke-width: 2.4; }
.ui__table { width: 100%; border-collapse: collapse; }
.ui__table th { text-align: left; font-size: .7rem; font-weight: 500; color: var(--muted); padding: 0 8px 8px; }
.ui__table td { padding: 9px 8px; border-top: 1px solid var(--line-soft); white-space: nowrap; }
.st { padding: 3px 9px; border-radius: 999px; font-size: .7rem; font-weight: 600; }
.st--ok { background: rgba(52, 211, 153, .14); color: var(--ok); }
.st--info { background: rgba(125, 211, 252, .12); color: var(--info); }
.st--warn { background: rgba(251, 191, 36, .14); color: var(--warn); }
.ui__metric { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); }
.ui__metric > div { display: grid; }
.ui__metric svg { width: 100%; height: 54px; overflow: visible; }
.ui__metric path { fill: none; stroke: var(--brand); stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.ui__limit { stroke: rgba(251, 191, 36, .55); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.ui__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ui__kpis > div { display: grid; gap: 2px; padding: 12px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); min-width: 0; }
.ui__kpis .ui__muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) {
  .ui__kpis { gap: 8px; }
  .ui__kpis > div { padding: 10px; }
  .ui__kpis .ui__big { font-size: 1.1rem; gap: 4px; }
  .ui__kpis .ui__ok-ic .ic { width: 14px; height: 14px; }
}
.ui__list { display: grid; gap: 8px; }
.ui__list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--glass); border: 1px solid var(--line-soft); }
.ui__list .ic { width: 16px; height: 16px; color: var(--text-2); }
.lamp { width: 10px; height: 10px; border-radius: 50%; }
.lamp--ok { background: var(--ok); box-shadow: 0 0 10px rgba(52, 211, 153, .6); }
.lamp--warn { background: var(--warn); box-shadow: 0 0 10px rgba(251, 191, 36, .6); }
.ui__bar { width: 96px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.ui__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-light)); transform: scaleX(var(--w)); transform-origin: left; }
.phases { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.phases li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .7rem; color: var(--text-2); text-align: center; }
.phases li:not(:first-child)::before { content: ""; position: absolute; top: 14px; right: 50%; width: 100%; height: 1px; background: var(--line); z-index: -1; }
.phases li.is-done:not(:first-child)::before, .phases li.is-now::before { background: rgba(52, 211, 153, .4); }
.phases span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-card); border: 1px solid var(--line); }
.phases .ic { width: 14px; height: 14px; stroke-width: 2.4; }
.phases .is-done span { background: #123227; border-color: transparent; color: var(--ok); }
.phases .is-now span { border: 2px solid var(--brand); box-shadow: 0 0 0 4px rgba(231, 45, 75, .15); }
.phases .is-now { color: var(--text); font-weight: 600; }
.vis { padding: 3px 9px; border-radius: 999px; font-size: .7rem; font-weight: 600; background: var(--glass-strong); color: var(--text-2); }
.vis--trade { background: rgba(251, 191, 36, .13); color: var(--warn); }
.vis--client { background: rgba(124, 58, 237, .2); color: var(--violet-soft); }
.ui__list--people li { grid-template-columns: auto minmax(0, 1fr) auto; }
.ui__list--people small { display: block; font-size: .7rem; color: var(--muted); }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; background: linear-gradient(140deg, rgba(124, 58, 237, .5), rgba(231, 45, 75, .4)); }
.sc { min-width: 40px; padding: 5px 8px; border-radius: 8px; text-align: center; font-family: var(--f-mono); font-size: .8rem; background: var(--glass-strong); }
.sc--hi { background: rgba(52, 211, 153, .14); color: var(--ok); }
.sc--lo { color: var(--muted); }

@media (max-width: 960px) {
  .case { grid-template-columns: 1fr; }
}

/* ---------- Websites (Galerie) ---------- */
.sites { padding-bottom: calc(var(--section-y) * .6); }
.sites__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.sites__nav { display: flex; gap: 10px; flex: none; }
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(80vw, 540px); gap: 22px;
  margin-top: 40px; padding: 4px var(--edge) 16px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery:focus-visible { outline-offset: -2px; }
.gallery__item { scroll-snap-align: start; }
/* Mini-Browser mit ganzseitigem Screenshot, scrollt automatisch (nur sichtbar, Hover hält an) */
.site__win {
  display: block; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)), #151a2c;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform .35s var(--ease-out), border-color .25s, box-shadow .35s var(--ease-out);
}
.site__win .win__bar { height: 36px; }
.site__win:hover { border-color: rgba(255, 255, 255, .22); transform: translateY(-4px); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .08); }
.site__win:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 4px; }
.site__view { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; container-type: size; background: #fff; }
.site__shot { display: block; width: 100%; height: auto; }
.site__open {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: #fff;
  background: rgba(11, 14, 26, .82); border: 1px solid rgba(255, 255, 255, .14);
  opacity: 0; transform: translateY(6px); transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
}
.site__open .ic { width: 15px; height: 15px; }
.site__win:hover .site__open, .site__win:focus-visible .site__open { opacity: 1; transform: none; }
html:not(.no-motion) .site__shot {
  will-change: transform;
  animation: site-scroll var(--dur, 28s) ease-in-out var(--delay, 0s) infinite;
  animation-play-state: paused;
}
html:not(.no-motion) .site.is-playing .site__shot { animation-play-state: running; }
html:not(.no-motion) .site__win:hover .site__shot,
html:not(.no-motion) .site__win:focus-visible .site__shot { animation-play-state: paused; }
/* -100% = eigene Bildhöhe, 100cqh = Höhe des Fensters: fährt genau bis zum Seitenende */
@keyframes site-scroll {
  0%, 7% { transform: translateY(0); }
  46%, 56% { transform: translateY(calc(-100% + 100cqh)); }
  95%, 100% { transform: translateY(0); }
}
.gallery figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: .95rem; }
.gallery figcaption b { font-weight: 600; }
.gallery figcaption span { color: var(--text-2); font-size: .88rem; }
@media (max-width: 640px) { .sites__nav { display: none; } }

/* ---------- Ablauf ---------- */
.flow__wrap { position: relative; margin-top: 56px; }
.flow__track { position: absolute; left: 24px; right: 12%; top: 23px; height: 2px; background: var(--line-soft); border-radius: 2px; overflow: hidden; }
.flow__fill { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--brand), var(--violet)); transform-origin: left; transform: scaleX(1); }
html.js .flow__fill { transform: scaleX(0); transition: transform 1.6s var(--ease-out) .2s; }
html.js .flow__wrap.is-in .flow__fill { transform: scaleX(1); }
.flow__list { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.flow__dot {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-elev); border: 1px solid rgba(231, 45, 75, .45); color: var(--brand-light);
  box-shadow: 0 0 0 6px var(--bg);
}
.flow__dot .ic { width: 20px; height: 20px; }
.flow__step .h4 { margin-top: 22px; }
.flow__step p { margin-top: 8px; color: var(--text-2); font-size: .95rem; }

@supports (animation-timeline: view()) {
  html.js .flow__fill { transition: none; animation: fill-x linear both; animation-timeline: view(); animation-range: entry 70% cover 55%; }
}
@keyframes fill-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fill-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (max-width: 860px) {
  .flow__list { grid-template-columns: 1fr; gap: 32px; }
  .flow__step { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 20px; }
  .flow__dot { grid-row: span 2; }
  .flow__step .h4 { margin-top: 10px; }
  .flow__track { left: 23px; right: auto; top: 24px; bottom: 24px; width: 2px; height: auto; }
  .flow__fill { transform-origin: top; }
  html.js .flow__fill { transform: scaleY(0); }
  html.js .flow__wrap.is-in .flow__fill { transform: scaleY(1); }
  @supports (animation-timeline: view()) {
    html.js .flow__fill { animation-name: fill-y; animation-range: entry 20% cover 70%; }
  }
}

/* ---------- Über mich ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__photo {
  position: relative; max-width: 440px; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .8);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__copy > p:not(.lead) { margin-top: 16px; color: var(--text-2); max-width: 58ch; }
.facts { display: flex; flex-wrap: wrap; gap: 20px 44px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.facts dt { font-size: .8rem; color: var(--muted); }
.facts dd { margin-top: 2px; font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -.02em; }
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 340px; }
}

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq__item { border-bottom: 1px solid var(--line-soft); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-family: var(--f-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -.01em;
  transition: color .2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: #fff; }
.faq__item summary .ic { width: 20px; height: 20px; color: var(--brand-light); transition: transform .25s var(--ease-out); }
.faq__item[open] summary .ic { transform: rotate(45deg); }
.faq__a p { padding-bottom: 22px; max-width: 62ch; color: var(--text-2); }
@supports (interpolate-size: allow-keywords) {
  .faq__list { interpolate-size: allow-keywords; }
  .faq__item::details-content { height: 0; overflow: clip; transition: height .3s var(--ease-out), content-visibility .3s allow-discrete; }
  .faq__item[open]::details-content { height: auto; }
}
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.contact { padding-top: calc(var(--section-y) * .6); }
.contact__panel {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: clamp(32px, 5vw, 72px);
  padding: clamp(28px, 5vw, 64px); border-radius: 28px; border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 70% at 0% 0%, rgba(231, 45, 75, .2), transparent 60%),
    radial-gradient(ellipse 60% 70% at 100% 100%, rgba(124, 58, 237, .2), transparent 60%),
    rgba(255, 255, 255, .03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}
.topics { border: 0; margin-top: 30px; }
.topics legend { margin-bottom: 12px; font-size: .9rem; font-weight: 600; }
.topics legend span { color: var(--muted); font-weight: 400; }
.topics__list { display: flex; flex-wrap: wrap; gap: 8px; }
.topic {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px 9px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(11, 14, 26, .35); color: var(--text-2);
  font-size: .88rem; font-weight: 500;
  transition: background .2s var(--ease-out), border-color .2s, color .2s, transform .12s var(--ease-out);
}
.topic .ic { width: 16px; height: 16px; stroke-width: 2.4; opacity: .3; transform: scale(.85); transition: opacity .2s, transform .25s var(--ease-out), color .2s; }
.topic:hover { border-color: rgba(255, 255, 255, .24); color: var(--text); }
.topic:active { transform: scale(.97); }
.topic[aria-pressed="true"] { background: rgba(231, 45, 75, .14); border-color: rgba(231, 45, 75, .55); color: var(--text); }
.topic[aria-pressed="true"] .ic { opacity: 1; transform: none; color: var(--brand-light); }
.contact__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.contact__card { align-self: stretch; display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 20px; background: rgba(11, 14, 26, .45); border: 1px solid var(--line); }
.contact__card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.contact__name { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; }
.contact__role { font-size: .85rem; color: var(--muted); }
.contact__list { margin-top: auto; }
.contact__list a, .contact__list span { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line-soft); font-size: .92rem; overflow-wrap: anywhere; }
.contact__list span { color: var(--text-2); }
.contact__list a { transition: color .2s; }
.contact__list a:hover { color: var(--brand-light); }
.contact__list .ic { width: 18px; height: 18px; color: var(--brand-light); }
@media (max-width: 900px) { .contact__panel { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { position: relative; margin-top: var(--section-y); padding: 56px 0 32px; border-top: 1px solid var(--line-soft); background: rgba(11, 14, 26, .6); }
.footer__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 32px; }
.footer__logo { width: 150px; height: auto; color: #fff; }
.footer__brand p { margin-top: 16px; color: var(--text-2); font-size: .92rem; line-height: 1.5; }
.footer__addr { font-style: normal; color: var(--text-2); font-size: .92rem; line-height: 1.7; }
.footer__links { display: flex; flex-direction: column; gap: 8px; font-size: .92rem; color: var(--text-2); }
.footer__links a:hover { color: var(--text); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: .8rem; color: var(--muted); }
@media (max-width: 720px) { .footer__inner { grid-template-columns: 1fr; } }

/* Schalter: Animationen an/aus */
.footer__bottom { align-items: center; }
.motion-switch {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 4px 6px 12px; border-radius: 999px;
  color: var(--text-2); font-size: .8rem; font-weight: 500;
  border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .03);
  transition: border-color .2s, color .2s;
}
.motion-switch:hover { color: var(--text); border-color: var(--line); }
.motion-switch:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 3px; }
.motion-switch__track {
  position: relative; width: 34px; height: 20px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); transition: background .2s var(--ease-out);
}
.motion-switch__track i {
  position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
  transition: transform .2s var(--ease-out);
}
.motion-switch[aria-checked="true"] .motion-switch__track { background: var(--brand); }
.motion-switch[aria-checked="true"] .motion-switch__track i { transform: translateX(14px); }
.motion-switch:not([aria-checked="true"]) .motion-switch__label::after { content: " aus"; }

/* ==========================================================================
   MOTION
   ========================================================================== */
/* Läuft immer, außer der Besucher schaltet im Footer ab (html.no-motion) */
/* Hero: Zeilen materialisieren nacheinander (Jakub: opacity + y + blur) */
html.js:not(.no-motion) [data-hero] { animation: hero-in .9s var(--ease-out) backwards; animation-delay: calc(var(--n, 0) * 90ms + 80ms); }
html.js:not(.no-motion) [data-hero="1"] { --n: 1; } html.js:not(.no-motion) [data-hero="2"] { --n: 2; }
html.js:not(.no-motion) [data-hero="3"] { --n: 3; } html.js:not(.no-motion) [data-hero="4"] { --n: 4; }
html.js:not(.no-motion) .hero__visual { animation: win-in 1.2s var(--ease-out) .35s backwards; }

/* Scroll-Reveals: einmalig, 14px, Stagger über --d */
html.js:not(.no-motion) [data-reveal] {
  opacity: 0; transform: translateY(14px); filter: blur(8px);
  transition: opacity .8s var(--ease-out) var(--d, 0ms), transform .8s var(--ease-out) var(--d, 0ms), filter .8s var(--ease-out) var(--d, 0ms);
}
html.js:not(.no-motion) [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
/* Bento-Zellen: Reveal und Hover-Spotlight getrennt halten */
html.js:not(.no-motion) .bento__cell[data-reveal]:nth-child(2) { --d: 90ms; }
html.js:not(.no-motion) .bento__cell[data-reveal]:nth-child(3) { --d: 180ms; }

/* Hero-Chart zeichnet sich einmal. Per clip-path statt stroke-dasharray:
   pathLength + non-scaling-stroke ergibt in Chrome Lücken im Strich. Negativer Inset, damit runde Linienenden und Strichbreite nicht abgeschnitten werden. */
html.js:not(.no-motion) .cp__line { clip-path: inset(-4px 100% -4px -4px); transition: clip-path 1.8s var(--ease-in-out) .9s; }
html.js:not(.no-motion) .cp__area { opacity: 0; transition: opacity 1s var(--ease-out) 1.8s; }
html.js:not(.no-motion) .is-drawn .cp__line { clip-path: inset(-4px -4px -4px -4px); }
html.js:not(.no-motion) .is-drawn .cp__area { opacity: 1; }

@keyframes hero-in { from { opacity: 0; transform: translateY(16px); filter: blur(10px); } }
@keyframes win-in { from { opacity: 0; transform: translateY(40px) scale(.97); filter: blur(8px); } }

/* Touch-Geräte: kein Hover-Spotlight, keine Tilt-Ausgangslage */
@media (hover: none) {
  .bento__cell::before { display: none; }
  .win--hero { --ry: 0deg; --rx: 0deg; }
}

/* Animationen aus (Footer-Schalter): alles statisch, Inhalte sofort sichtbar */
html.no-motion *, html.no-motion *::before, html.no-motion *::after {
  animation-duration: .01ms !important; animation-iteration-count: 1 !important;
  transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important;
}
html.no-motion .aurora i, html.no-motion .marquee__track, html.no-motion .stage__dot { animation: none !important; }
html.no-motion .marquee { overflow-x: auto; }
html.no-motion .win--hero { --ry: 0deg; --rx: 0deg; }
html.no-motion.js .flow__fill { animation: none !important; transform: none !important; }

/* Reduzierte Transparenz: solide Flächen statt Glass */
@media (prefers-reduced-transparency: reduce) {
  .win, .nav.is-scrolled, .nav__links, .stage__panel, .pill, .btn--ghost { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg-elev); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .win, .nav.is-scrolled, .stage__panel { background: var(--bg-elev); }
}

/* ---------- Rechtstexte (impressum/, datenschutz/) ---------- */
.legal { padding-top: calc(var(--section-y) + 40px); }
.legal__body { max-width: 72ch; color: var(--text-2); line-height: 1.65; overflow-wrap: anywhere; }
.legal__body .h2 { color: var(--text); margin-bottom: 8px; }
.legal__body h2 { margin-top: 44px; color: var(--text); font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; line-height: 1.25; letter-spacing: -.015em; }
.legal__body h3 { margin-top: 24px; color: var(--text); font-size: 1rem; font-weight: 600; }
.legal__body p, .legal__body ul { margin-top: 12px; }
.legal__body ul { padding-left: 1.2em; list-style: disc; }
.legal__body li + li { margin-top: 4px; }
.legal__body strong { color: var(--text); font-weight: 600; }
.legal__body a { color: var(--text); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; }
.legal__body a:hover { color: var(--brand); }
.legal__body .legal__stand { margin-top: 40px; font-size: .85rem; color: var(--muted); }

/* ---------- Kontakt-Modal (sections/10-kontakt.php, Formular -> api/kontakt.php) ---------- */
html.js .only-nojs, html:not(.js) .only-js { display: none !important; }
html.modal-open { overflow: hidden; }
.modal {
  width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 48px); margin: auto; padding: 0;
  border: 1px solid var(--line); border-radius: 22px; background: var(--bg-elev); color: var(--text);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
  overscroll-behavior: contain;
}
.modal::backdrop { background: rgba(5, 7, 14, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in .32s var(--ease-out); }
.modal[open]::backdrop { animation: fade-in .25s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
html.no-motion .modal[open], html.no-motion .modal[open]::backdrop { animation: none; }
.modal__box { padding: clamp(22px, 4vw, 34px); }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal__close { flex: none; width: 40px; height: 40px; margin: -6px -8px 0 0; display: grid; place-items: center; border-radius: 10px; color: var(--text-2); transition: background .2s, color .2s; }
.modal__close:hover { background: var(--glass); color: var(--text); }
.modal__close .ic { width: 20px; height: 20px; }

.cform__lead { margin-top: 6px; color: var(--text-2); }
.cform__topics { border: 0; margin-top: 22px; }
.cform__topics legend, .field label { margin-bottom: 8px; font-size: .86rem; font-weight: 600; }
.cform__topics legend span, .field label span { color: var(--muted); font-weight: 400; }
.topic--check { cursor: pointer; position: relative; }
.topic--check input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.topic--check:has(input:checked) { background: rgba(231, 45, 75, .14); border-color: rgba(231, 45, 75, .55); color: var(--text); }
.topic--check:has(input:checked) .ic { opacity: 1; transform: none; color: var(--brand-light); }
.topic--check:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }

.cform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; margin-top: 20px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(11, 14, 26, .55); color: var(--text); font: inherit; font-size: 1rem;
  transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .22); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: rgba(11, 14, 26, .8); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--brand-light); }
.field__err { min-height: 0; margin-top: 6px; font-size: .8rem; color: var(--brand-light); }
.field__err:empty { display: none; }
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 22px; }
.cform__note { flex: 1 1 220px; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.cform__note a, .cform__done a, .cform__status a { color: var(--text); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; }
.cform__status { margin-top: 14px; font-size: .88rem; color: var(--brand-light); }
.cform__status:empty { display: none; }
[data-submit][aria-busy="true"] { opacity: .7; pointer-events: none; }
.cform__done { padding: 18px 0 4px; text-align: center; }
.cform__done:focus { outline: none; }
.cform__done-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 14px; border-radius: 50%; background: rgba(52, 211, 153, .14); color: var(--ok); }
.cform__done-ic .ic { width: 28px; height: 28px; }
.cform__done p { margin: 10px auto 22px; max-width: 40ch; color: var(--text-2); }
@media (max-width: 560px) {
  .modal { width: 100%; max-width: none; height: 100dvh; max-height: none; border-radius: 0; border: 0; }
  .cform__grid { grid-template-columns: 1fr; }
}

/* ---------- Cookie-Banner + Einstellungen (includes/consent.php, assets/js/consent.js) ----------
   Aufbau nach clients/AF/custom-cookie-banner-standalone, Optik: Glass-Card aus visual-guidelines.md §4 */
.footer__btn { text-align: left; color: inherit; font-size: inherit; transition: color .2s; }
.footer__btn:hover { color: var(--text); }

.cc {
  position: fixed; z-index: 60; left: var(--edge); bottom: 20px;
  width: min(580px, calc(100vw - 2 * var(--gutter)));
  padding: 20px 20px 18px; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: rgba(20, 24, 40, .74); border: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 70px -24px rgba(0, 0, 0, .75);
}
/* Lichtkante oben + Aurora-Schimmer in der Ecke */
.cc::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; z-index: -1;
  background: linear-gradient(90deg, transparent 4%, rgba(255, 94, 122, .9) 30%, rgba(124, 58, 237, .8) 70%, transparent 96%);
}
.cc::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 260px; height: 200px; left: -90px; top: -110px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(231, 45, 75, .28), transparent);
  filter: blur(10px);
}
.cc__body { display: flex; gap: 16px; align-items: flex-start; }
.cc__ic {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  color: var(--brand-light); background: rgba(231, 45, 75, .13); border: 1px solid rgba(231, 45, 75, .3);
}
.cc__ic .ic { width: 22px; height: 22px; }
.cc__eyebrow { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cc__title { margin-top: 2px; font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; line-height: 1.25; letter-spacing: -.015em; }
.cc__text { margin-top: 6px; font-size: .88rem; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.cc__text a { color: var(--text); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; }
.cc__text a:hover { color: var(--brand-light); }
.cc__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.cc__actions .btn { width: 100%; padding-inline: 12px; }

/* Rein/raus: nur transform/opacity, kurz nach dem Hero */
html.js .cc { opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .5s var(--ease-out) .5s, transform .6s var(--ease-out) .5s; }
html.js .cc.is-in { opacity: 1; transform: none; }
html.js .cc.is-out { opacity: 0; transform: translateY(10px); transition-duration: .22s; transition-delay: 0s; }
html.no-motion .cc { transition: none !important; }

/* Einstellungen (nutzt .modal vom Kontaktformular) */
.cc-modal { width: min(600px, calc(100% - 32px)); }
.cc-tabs { display: inline-flex; gap: 4px; margin-top: 20px; padding: 4px; border-radius: 999px; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .03); }
.cc-tab { height: 34px; padding: 0 16px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--text-2); transition: background .2s, color .2s; }
.cc-tab:hover { color: var(--text); }
.cc-tab[aria-selected="true"] { background: var(--glass-strong); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.cc-pane { margin-top: 16px; }

.cc-cat { border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(255, 255, 255, .025); }
.cc-cat + .cc-cat { margin-top: 10px; }
.cc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 14px 6px 6px; }
.cc-cat__toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: 10px; font-weight: 600; font-size: .95rem; }
.cc-cat__toggle:hover { background: var(--glass); }
.cc-cat__chev { width: 16px; height: 16px; color: var(--muted); transition: transform .25s var(--ease-out); }
.cc-cat__toggle[aria-expanded="true"] .cc-cat__chev { transform: rotate(180deg); }
.cc-cat__count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--glass); font-family: var(--f-mono); font-size: .72rem; font-weight: 500; color: var(--text-2); text-align: center; }
.cc-cat__body { padding: 0 16px 16px 42px; font-size: .88rem; color: var(--text-2); line-height: 1.55; }
.cc-item { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.cc-item dt { color: var(--text); font-weight: 600; }
.cc-item dd { margin-top: 2px; font-size: .82rem; color: var(--muted); }
.cc-item a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; }

/* Schalter: gleiche Optik wie der Animations-Schalter im Footer */
.cc-switch { position: relative; flex: none; display: inline-block; width: 42px; height: 24px; cursor: pointer; }
.cc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.cc-switch i { position: absolute; inset: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); transition: background .2s var(--ease-out); pointer-events: none; }
.cc-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); transition: transform .2s var(--ease-out); }
.cc-switch input:checked + i { background: var(--brand); }
.cc-switch input:checked + i::after { transform: translateX(18px); }
.cc-switch input:focus-visible + i { outline: 2px solid var(--brand-light); outline-offset: 3px; }
.cc-switch--locked { cursor: not-allowed; opacity: .55; }

.cc-about h3 { margin-top: 18px; font-size: .95rem; font-weight: 600; }
.cc-about h3:first-child { margin-top: 4px; }
.cc-about p { margin-top: 6px; font-size: .88rem; line-height: 1.6; color: var(--text-2); }
.cc-about a { color: var(--text); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; }
.cc-modal__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 24px; }

@media (max-width: 560px) {
  .cc { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 16px; border-radius: 18px; }
  .cc__ic { display: none; }
  .cc__actions { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cc__actions [data-consent-open] { grid-column: 1 / -1; order: 3; }
  .cc-modal { width: 100%; }
  .cc-modal__foot .btn { flex: 1 1 100%; }
  .cc-cat__body { padding-left: 16px; }
}
@media (prefers-reduced-transparency: reduce) { .cc { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg-elev); } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .cc { background: var(--bg-elev); } }

/* ---------- 404 (404.php) ---------- */
.notfound { padding-top: calc(var(--section-y) + 60px); min-height: 78dvh; }
.notfound__code {
  font-size: clamp(4.5rem, 14vw, 9rem); font-weight: 500; line-height: 1; letter-spacing: -.04em;
  background: linear-gradient(120deg, var(--brand-light), var(--violet-soft)); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 18px;
}
.notfound__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.notfound__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 36px; font-size: .92rem; color: var(--text-2); }
.notfound__links a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.notfound__links a:hover { color: var(--text); text-decoration-color: var(--brand); }
