/**
 * Apple / Figma Liquid Glass — Weiss-Grau, pro Sektion variierend
 */

:root {
  --bg-deep: #f5f5f7;
  --bg-elev: #ebebef;
  --surface: #ffffff;
  --neon: #0071e3;
  --neon-soft: rgba(0, 113, 227, 0.14);
  --glass-border: rgba(255, 255, 255, 0.88);
  --glass-highlight: rgba(255, 255, 255, 0.98);
  --glass-shadow: rgba(0, 0, 0, 0.07);
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --text: #1d1d1f;
  --text-dim: rgba(29, 29, 31, 0.58);
  --shadow: 0 24px 64px -20px rgba(0, 0, 0, 0.1), 0 8px 20px -8px rgba(0, 0, 0, 0.06);
  --radius: 22px;
  --header-offset: 7.25rem;
}

@media (max-width: 768px) {
  :root {
    --header-offset: 8rem;
  }
}

body {
  color: var(--text);
  background: var(--bg-deep);
}

/* Fix: Titel nicht hinter Header-Band */
.main-content {
  padding-top: var(--header-offset);
}

.section[id] {
  scroll-margin-top: calc(var(--header-offset) + 0.5rem);
}

.site-header.glass-dock {
  z-index: 200;
}

/* Atmosphere */
.abstract-rings,
.blob,
.grain {
  display: none !important;
}

.liquid-orbs {
  position: absolute;
  inset: -15%;
  pointer-events: none;
}

.liquid-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(88px);
  opacity: 0.5;
}

.liquid-orb--1 {
  width: 50vmin;
  height: 50vmin;
  top: 8%;
  left: -5%;
  background: radial-gradient(circle, #fff 0%, #e8e8ed 55%, transparent 72%);
  animation: orb1 24s ease-in-out infinite alternate;
}

.liquid-orb--2 {
  width: 42vmin;
  height: 42vmin;
  top: 40%;
  right: -8%;
  background: radial-gradient(circle, #f2f2f7 0%, #d1d1d6 50%, transparent 70%);
  animation: orb2 28s ease-in-out infinite alternate;
}

.liquid-orb--3 {
  width: 36vmin;
  height: 36vmin;
  bottom: 12%;
  left: 30%;
  background: radial-gradient(circle, #fafafa 0%, #c7c7cc 45%, transparent 68%);
  animation: orb3 22s ease-in-out infinite alternate;
}

.liquid-orb--4 {
  width: 28vmin;
  height: 28vmin;
  top: 55%;
  right: 25%;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.09) 0%, transparent 65%);
  animation: orb4 26s ease-in-out infinite alternate;
}

@keyframes orb1 {
  to { transform: translate(6%, 5%) scale(1.1); }
}
@keyframes orb2 {
  to { transform: translate(-5%, 7%) scale(0.94); }
}
@keyframes orb3 {
  to { transform: translate(4%, -6%) scale(1.06); }
}
@keyframes orb4 {
  to { transform: translate(-3%, -4%) scale(1.12); opacity: 0.7; }
}

.bg-layer {
  transition: opacity 2.4s cubic-bezier(0.22, 0.1, 0.18, 1), transform 2.4s cubic-bezier(0.22, 0.1, 0.18, 1);
  will-change: opacity, transform;
}

.bg-layer--mesh {
  background: linear-gradient(165deg, #fafafa 0%, #f0f0f5 50%, #e8e8ed 100%);
  animation: bgMeshLight 24s ease-in-out infinite alternate;
}
.bg-layer--diagonal {
  background: linear-gradient(145deg, #f4f4f6 0%, #eaeaef 100%);
  animation: bgDriftLight 28s ease-in-out infinite alternate;
}
.bg-layer--dots {
  background:
    radial-gradient(circle at 50% 35%, #fff 0%, transparent 48%),
    radial-gradient(rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #f5f5f7, #eaeaef);
  background-size: 100% 100%, 22px 22px, 100% 100%;
  animation: bgDotLight 32s linear infinite;
}
.bg-layer--grid {
  background: linear-gradient(180deg, #eef0f4 0%, #e2e4e9 100%);
}
.bg-layer--flow {
  background: linear-gradient(135deg, #f2f3f7 0%, #e6e7ec 100%);
}
.bg-layer--lattice,
.bg-layer--cipher {
  background: linear-gradient(160deg, #f6f6f8 0%, #ebebef 100%);
}
.bg-layer--aurora {
  background: linear-gradient(180deg, #f8f8fa 0%, #ececf0 100%);
}
.bg-layer--pulse {
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.95) 0%, transparent 45%),
    linear-gradient(180deg, #f3f3f7 0%, #e9e9ee 100%);
}

@keyframes bgMeshLight {
  to { transform: scale(1.04) translate(1.2%, -0.8%); }
}
@keyframes bgDriftLight {
  to { transform: translate(1.5%, -1%) scale(1.02); }
}
@keyframes bgDotLight {
  to { background-position: 0 0, 22px 22px, 0 0; }
}

body[data-bg-theme="mesh"] .bg-layer--mesh,
body[data-bg-theme="diagonal"] .bg-layer--diagonal,
body[data-bg-theme="dots"] .bg-layer--dots,
body[data-bg-theme="grid"] .bg-layer--grid,
body[data-bg-theme="flow"] .bg-layer--flow,
body[data-bg-theme="lattice"] .bg-layer--lattice,
body[data-bg-theme="cipher"] .bg-layer--cipher,
body[data-bg-theme="aurora"] .bg-layer--aurora,
body[data-bg-theme="pulse"] .bg-layer--pulse {
  opacity: 1;
}

/* ── Sektions-Backdrop (Textur + Grip, je Abschnitt) ── */
.section-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.section > .wrap {
  position: relative;
  z-index: 1;
}

.section--hero .section-backdrop {
  background:
    linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

.section--context .section-backdrop {
  background:
    repeating-linear-gradient(-12deg, transparent, transparent 40px, rgba(0, 0, 0, 0.018) 40px, rgba(0, 0, 0, 0.018) 41px),
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(255, 255, 255, 0.9), transparent 55%);
}

.section--refs .section-backdrop {
  background:
    radial-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, transparent 100%);
  background-size: 18px 18px, 100% 100%;
}

.section--why .section-backdrop {
  background:
    linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.7;
}

.section--diff .section-backdrop {
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(0, 113, 227, 0.04), transparent 60%);
}

.section--method .section-backdrop {
  background:
    repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(0, 0, 0, 0.015) 80px, rgba(0, 0, 0, 0.015) 81px);
}

.section--contact .section-backdrop {
  background: radial-gradient(ellipse 90% 70% at 50% 30%, rgba(255, 255, 255, 0.85), transparent 55%);
}

.section--about-footer .section-backdrop {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.02));
}

/* Sektions-Tönung */
.section--hero {
  padding-top: clamp(0.75rem, 2.5vw, 1.5rem);
  --glass-blur: 44px;
  --glass-fill: rgba(255, 255, 255, 0.72);
  --glass-edge: rgba(255, 255, 255, 0.95);
}

.section--hero .hero-copy {
  padding-top: 0.35rem;
}

.section--context { --glass-blur: 36px; --glass-fill: rgba(255, 255, 255, 0.52); --glass-edge: rgba(255, 255, 255, 0.82); }
.section--refs { --glass-blur: 40px; --glass-fill: rgba(255, 255, 255, 0.58); background: rgba(255, 255, 255, 0.35); }
.section--why { --glass-blur: 32px; --glass-fill: rgba(255, 255, 255, 0.48); }
.section--diff { --glass-blur: 38px; --glass-fill: rgba(255, 255, 255, 0.55); background: rgba(250, 250, 252, 0.5); }
.section--method { --glass-blur: 34px; --glass-fill: rgba(255, 255, 255, 0.5); }
.section--contact { --glass-blur: 42px; --glass-fill: rgba(255, 255, 255, 0.62); }
.section--about-footer { --glass-blur: 30px; --glass-fill: rgba(255, 255, 255, 0.45); }

/* ── Typo: lesbar, premium (kein unsichtbarer Shimmer) ── */
.section-title.kinetic-heading,
.kinetic-heading {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  color: #1d1d1f !important;
  animation: none !important;
}

.display-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.06;
  font-size: clamp(1.9rem, 1.15rem + 2.4vw, 2.95rem);
  color: #1d1d1f;
  margin: 0 0 1rem;
  max-width: 14ch;
  text-wrap: balance;
}

.display-title--wide {
  max-width: 18ch;
}

.display-title--hero {
  font-size: clamp(2.35rem, 1.4rem + 3.8vw, 3.75rem);
  max-width: 11ch;
  line-height: 1.02;
  margin-bottom: 1.15rem;
}

.title-accent {
  color: #0071e3;
  font-weight: 700;
}

.title-muted {
  display: block;
  font-weight: 600;
  color: rgba(29, 29, 31, 0.72);
  font-size: 0.92em;
  letter-spacing: -0.03em;
}

.section-kicker {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(0, 113, 227, 0.85);
}

.section-intro {
  color: var(--text-dim);
  font-size: 1.06rem;
  line-height: 1.62;
}

.hero-glow {
  display: none;
}

.hero-line--accent,
.hero-title .title-accent {
  background: none;
  color: #0071e3;
}

.section-head--center .display-title {
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.atmosphere::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.038;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.section-head,
.context-lead-split__copy,
.refs-copy,
.about-intro {
  position: relative;
  z-index: 2;
}


.eyebrow-glow {
  background: none;
  color: rgba(29, 29, 31, 0.52);
  animation: none;
  letter-spacing: 0.22em;
}

/* ── Liquid Glass (Figma: blur + frost + specular + depth) ── */
.glass-panel,
.glass-dock,
.liquid-card {
  background: linear-gradient(
    168deg,
    var(--glass-fill, rgba(255, 255, 255, 0.55)) 0%,
    rgba(255, 255, 255, 0.28) 48%,
    rgba(245, 245, 247, 0.38) 100%
  ) !important;
  backdrop-filter: blur(var(--glass-blur, 36px)) saturate(200%) brightness(1.02) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur, 36px)) saturate(200%) brightness(1.02) !important;
  border: 1px solid var(--glass-edge, var(--glass-border)) !important;
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    0 1px 2px var(--glass-shadow),
    var(--shadow) !important;
}

/* Hero-Animation: flach, ohne Glass-Schatten */
.hero-canvas-wrap.glass-frame {
  background: #f5f5f7 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.glass-frame:not(.hero-canvas-wrap) {
  background: linear-gradient(
    168deg,
    var(--glass-fill, rgba(255, 255, 255, 0.55)) 0%,
    rgba(255, 255, 255, 0.28) 48%,
    rgba(245, 245, 247, 0.38) 100%
  ) !important;
  backdrop-filter: blur(var(--glass-blur, 36px)) saturate(200%) brightness(1.02) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur, 36px)) saturate(200%) brightness(1.02) !important;
  border: 1px solid var(--glass-edge, var(--glass-border)) !important;
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05),
    0 1px 2px var(--glass-shadow) !important;
}

.liquid-card {
  position: relative;
  overflow: hidden;
}

.liquid-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, transparent 32%);
  pointer-events: none;
  z-index: 0;
}

.liquid-card > * {
  position: relative;
  z-index: 1;
}

.glass-hover {
  --spot-x: 50%;
  --spot-y: 40%;
}

.glass-hover::before {
  background: radial-gradient(
    420px circle at var(--spot-x) var(--spot-y),
    rgba(255, 255, 255, 0.95),
    transparent 42%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}

.glass-hover:hover::before {
  opacity: 1;
}

.glass-hover:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 1) !important;
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -1px 0 rgba(0, 0, 0, 0.03),
    0 28px 72px -20px rgba(0, 0, 0, 0.14),
    0 0 0 1px rgba(0, 113, 227, 0.06) !important;
}

/* Design-Probe — Original-Format, hell */
.design-probe {
  margin-top: 2.75rem;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(245, 247, 255, 0.55) 48%,
    rgba(255, 255, 255, 0.7) 100%
  ) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 24px 56px -28px rgba(0, 0, 0, 0.1) !important;
}

.design-probe::before {
  background: radial-gradient(ellipse 80% 55% at 12% 8%, rgba(0, 113, 227, 0.07), transparent 55%);
}

.design-probe-kicker {
  color: #0071e3;
}

.design-probe-title {
  color: #1d1d1f;
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.55rem);
}

.design-probe-list {
  color: var(--text-dim);
}

.design-probe-list strong {
  color: #1d1d1f;
}

.design-probe-outro {
  border-top-color: rgba(0, 0, 0, 0.07);
}

/* Header / Nav */
.site-header.glass-dock,
.site-footer.glass-dock {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}

.site-header .nav a:not(.nav-cta) {
  color: rgba(29, 29, 31, 0.62);
}

.site-header .nav a:not(.nav-cta):hover,
.site-header .nav a:not(.nav-cta):focus-visible {
  color: #1d1d1f !important;
  background: rgba(0, 0, 0, 0.07) !important;
}

.nav a:hover {
  color: #1d1d1f;
  background: rgba(0, 0, 0, 0.04);
}

.nav-cta {
  background: linear-gradient(180deg, #1d1d1f, #3a3a3c) !important;
  color: #fff !important;
}

.mobile-nav a {
  color: #1d1d1f !important;
}

.mobile-nav a:hover {
  color: #1d1d1f !important;
  background: rgba(0, 0, 0, 0.06) !important;
}

/* Hero canvas — Apple-clean, kein Eck-Schatten */
.hero-canvas-wrap,
.hero-canvas-wrap.glass-frame,
.viz-locked .hero-canvas-wrap {
  background: #f5f5f7 !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: none !important;
  border-radius: 20px;
  overflow: hidden;
}

.hero-vignette {
  display: none !important;
}

#wireCanvas {
  filter: none;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.92);
  color: rgba(29, 29, 31, 0.62);
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: none !important;
}

.hero-metrics li {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(0, 0, 0, 0.11) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
}

.hero-metrics li:hover {
  background: #ffffff !important;
  border-color: rgba(0, 113, 227, 0.22) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
}

.hero-metrics strong {
  color: #1d1d1f !important;
  font-weight: 700 !important;
  font-size: 1.08rem !important;
  letter-spacing: -0.02em;
}

.hero-metrics span {
  color: #3a3a3c !important;
  font-weight: 600 !important;
  opacity: 1 !important;
}

/* Über mich — professioneller Cred-Kasten */
.about-card--premium {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(248, 249, 252, 0.88)) !important;
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 16px 40px -20px rgba(0, 0, 0, 0.1) !important;
}

.about-card__eyebrow {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(0, 113, 227, 0.85);
}

.about-creds {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.about-cred {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 1rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.about-cred:last-of-type {
  border-bottom: none;
  padding-bottom: 0.35rem;
}

.about-cred dt {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.02em;
}

.about-cred dd {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(29, 29, 31, 0.52);
  text-align: right;
  white-space: nowrap;
}

.about-card__foot {
  margin: 1.15rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(29, 29, 31, 0.62);
}

@media (max-width: 520px) {
  .about-cred {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .about-cred dd {
    text-align: left;
    white-space: normal;
  }
}

.psych-gaze-panel.glass-frame,
.psych-gaze-viz__page {
  background: rgba(255, 255, 255, 0.82) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

.psych-page-body::before {
  content: "";
  position: absolute;
  inset: 12px 10px 10px;
  border-radius: 4px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 1;
}

.psych-fake-layout {
  opacity: 0.92 !important;
  z-index: 2;
}

.psych-fake-bar {
  background: rgba(0, 0, 0, 0.14) !important;
}

.psych-fake-line {
  background: rgba(0, 0, 0, 0.09) !important;
}

.psych-fake-grid span {
  background: rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.psych-term {
  background: rgba(255, 255, 255, 0.92);
  color: rgba(29, 29, 31, 0.78);
  border-color: rgba(0, 0, 0, 0.08);
}

.psych-term.is-hot {
  color: #1d1d1f;
  border-color: rgba(0, 113, 227, 0.22);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

/* Bento — Lesbarkeit & Kontrast */
.bento-card h3 {
  color: #1d1d1f !important;
}

.bento-card p {
  color: rgba(29, 29, 31, 0.72) !important;
}

.bento-card p strong {
  color: #1d1d1f !important;
}

.bento-icon {
  color: rgba(0, 113, 227, 0.8) !important;
}

.section--context .bento-card[data-accent="white"] {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.94), rgba(245, 247, 252, 0.75)) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

.section--context .bento-card[data-accent="cyan"] {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.94), rgba(230, 240, 255, 0.65)) !important;
  border-color: rgba(0, 113, 227, 0.12) !important;
}

.section--context .bento-card[data-accent="gold"] {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.94), rgba(252, 246, 232, 0.6)) !important;
  border-color: rgba(180, 140, 60, 0.12) !important;
}

/* Referenzen — neutral, ohne Hover */
.ref-list li {
  color: #1d1d1f !important;
  border-bottom-color: rgba(0, 0, 0, 0.07) !important;
  transition: none !important;
  padding-left: 0 !important;
}

.ref-list li:hover {
  color: #1d1d1f !important;
  padding-left: 0 !important;
}

.ref-dot {
  background: rgba(29, 29, 31, 0.28) !important;
  box-shadow: none !important;
}

/* «Live in Tage» — lesbar auf hellem Hintergrund */
.accent-text,
.method-card--highlight .accent-text {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  color: #0071e3 !important;
  font-weight: 700;
}

/* Ablauf — neuer Flow */
.process-flow {
  display: grid;
  gap: 0.75rem;
  margin-top: 2.25rem;
  padding: 1.35rem 1.15rem;
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.78), rgba(245, 247, 252, 0.55));
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 20px 48px -24px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .process-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 1.75rem 1.25rem 1.5rem;
    position: relative;
  }

  .process-flow::before {
    content: "";
    position: absolute;
    top: 2.35rem;
    left: 14%;
    right: 14%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.12) 12%, rgba(0, 0, 0, 0.12) 88%, transparent);
  }
}

.process-flow__step {
  text-align: center;
  padding: 0.35rem 0.5rem;
  position: relative;
  z-index: 1;
}

.process-flow__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 0.7rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #1d1d1f, #3a3a3c);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.25);
}

.process-flow__body h4 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: #1d1d1f;
}

.process-flow__body p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(29, 29, 31, 0.58);
}

.process-flow__note {
  margin: 1.15rem 0 0;
  text-align: center;
  font-size: 0.92rem;
}

/* Diff cards — Textkontrast */
.diff-card h3,
.method-card h3 {
  color: #1d1d1f !important;
}

.diff-card p,
.method-card p {
  color: rgba(29, 29, 31, 0.68) !important;
}

.pull-quote--large {
  color: #1d1d1f !important;
}

.prose-panel p {
  color: rgba(29, 29, 31, 0.72) !important;
}

.prose-panel .lead-graf {
  color: #1d1d1f !important;
}

.diff-card--featured {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.9), rgba(238, 244, 255, 0.6)) !important;
}

.method-card--highlight {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(248, 248, 250, 0.65)) !important;
  box-shadow: 0 0 56px -12px rgba(0, 113, 227, 0.1) !important;
}

.btn-primary {
  background: linear-gradient(180deg, #1d1d1f, #333336);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  color: #1d1d1f;
  border-color: rgba(0, 0, 0, 0.1);
}

.form-field input,
.form-field textarea {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1d1d1f;
}

.form-field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-optional {
  font-weight: 500;
  color: rgba(29, 29, 31, 0.42);
  font-size: 0.82em;
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

a { color: #0071e3; }

.section-alt {
  background: none !important;
}

.section--why {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(245, 246, 250, 0.2) 100%);
}

.section--method {
  background: linear-gradient(180deg, rgba(248, 249, 252, 0.45) 0%, transparent 100%);
}

.psych-page-chrome {
  border-bottom-color: rgba(0, 0, 0, 0.07) !important;
}

.psych-dot {
  background: rgba(0, 0, 0, 0.15) !important;
}

.context-viz-note {
  color: rgba(29, 29, 31, 0.58) !important;
}

.section--about-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 3rem;
}

.site-header {
  opacity: 1 !important;
  animation: none !important;
  transform: translateX(-50%) !important;
}

.bg-layer {
  transition: none !important;
}

body[data-bg-theme] .bg-layer:not(.bg-layer--mesh) {
  opacity: 0 !important;
  visibility: hidden !important;
}

body[data-bg-theme] .bg-layer--mesh {
  opacity: 1 !important;
}

.skeleton-layer,
.page-transition {
  display: none !important;
}

.mobile-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
}

@media (prefers-reduced-motion: reduce) {
  .liquid-orb,
  .bg-layer {
    animation: none !important;
  }
  .glass-hover:hover {
    transform: none;
  }
  [data-reveal]:not(.site-header):not(.site-footer) {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── Footer Legal ── */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-mark--footer {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  flex-shrink: 0;
}

.brand-mark--footer .brand-mark__icon {
  width: 15px;
  height: 15px;
}

.footer-copy {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.01em;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
}

.footer-legal a {
  color: rgba(29, 29, 31, 0.55);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: #1d1d1f;
}

.footer-legal a[aria-current="page"] {
  color: #1d1d1f;
  font-weight: 600;
}

.site-footer {
  align-items: center;
  gap: 0.75rem 1.25rem;
  transform: none !important;
  opacity: 1 !important;
}

@media (min-width: 640px) {
  .site-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .footer-legal {
    justify-self: end;
  }
}

/* ── Legal Pages ── */
.legal-page {
  background: #f5f5f7;
}

.legal-page .atmosphere,
.legal-page .page-transition,
.legal-page .skeleton-layer {
  display: none;
}

.main-content--legal {
  padding-top: 6.5rem;
  padding-bottom: 3rem;
  min-height: calc(100vh - 8rem);
}

.site-header--legal {
  justify-content: space-between;
}

.site-header--legal .legal-back {
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
}

.btn--sm {
  min-height: auto;
}

.legal-doc {
  max-width: 46rem;
  margin: 0 auto;
}

.legal-kicker {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(0, 113, 227, 0.85);
}

.legal-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 1.2rem + 2vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #1d1d1f;
}

.legal-updated {
  margin: 0 0 1.75rem;
  font-size: 0.88rem;
  color: rgba(29, 29, 31, 0.52);
}

.legal-section {
  margin-bottom: 1.65rem;
}

.legal-section h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #1d1d1f;
}

.legal-section h3 {
  margin: 1rem 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1d1d1f;
}

.legal-section p {
  margin: 0 0 0.75rem;
  font-size: 0.94rem;
  line-height: 1.62;
  color: rgba(29, 29, 31, 0.72);
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-list {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
  color: rgba(29, 29, 31, 0.72);
  font-size: 0.94rem;
  line-height: 1.55;
}

.legal-list li {
  margin-bottom: 0.35rem;
}

.legal-section code {
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.05);
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.legal-nav a {
  font-size: 0.9rem;
  font-weight: 600;
}

.site-footer--legal {
  margin-top: 0;
}

/* ── Cookie-Banner ── */
html.fonts-fallback {
  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 25000;
  padding: 0.45rem clamp(0.65rem, 2vw, 1rem) max(0.45rem, env(safe-area-inset-bottom));
  pointer-events: none;
}

.cookie-banner__panel {
  pointer-events: auto;
  max-width: 56rem;
  max-height: min(52vh, 320px);
  margin: 0 auto;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  backface-visibility: hidden;
  transform: translate3d(0, calc(100% + 1rem), 0);
  opacity: 0;
  transition:
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.38s ease;
  will-change: transform, opacity;
}

.cookie-banner:not([hidden]) .cookie-banner__panel {
  transform: translate3d(0, calc(100% + 1rem), 0);
  opacity: 0;
}

.cookie-banner.is-visible .cookie-banner__panel {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.cookie-banner.is-closing .cookie-banner__panel {
  transform: translate3d(0, calc(100% + 1rem), 0);
  opacity: 0;
}

.cookie-banner__main {
  min-width: 0;
}

.cookie-banner__kicker {
  display: none;
}

.cookie-banner__title {
  margin: 0 0 0.15rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #1d1d1f;
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.35;
  color: rgba(29, 29, 31, 0.72);
}

.cookie-banner__toggle {
  display: inline-block;
  width: auto;
  margin: 0.35rem 0 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  color: #0071e3;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}

.cookie-banner__toggle:hover {
  text-decoration: underline;
}

.cookie-banner__more {
  margin: 0.35rem 0 0;
  font-size: 0.74rem;
  color: rgba(29, 29, 31, 0.68);
}

.cookie-banner__list {
  margin: 0.25rem 0 0;
  padding-left: 1rem;
  line-height: 1.35;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.cookie-banner__btn {
  flex: 1 1 7.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.15;
  border: 1px solid transparent;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transform: none;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.cookie-banner__btn:hover,
.cookie-banner__btn:active,
.cookie-banner__btn:focus,
.cookie-banner__btn:focus-visible {
  transform: none;
  outline: none;
}

.cookie-banner__btn--ghost {
  background: rgba(255, 255, 255, 0.92);
  color: #1d1d1f;
  border-color: rgba(0, 0, 0, 0.12);
}

.cookie-banner__btn--ghost:hover {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.18);
}

.cookie-banner__btn--primary {
  background: #1d1d1f;
  color: #fff;
  border-color: #1d1d1f;
}

.cookie-banner__btn--primary:hover {
  background: #333336;
}

.cookie-banner__legal {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  line-height: 1.3;
}

.cookie-banner__legal a {
  color: #0071e3;
  text-decoration: none;
}

.cookie-banner__legal a:hover {
  text-decoration: underline;
}

@media (min-width: 720px) {
  .cookie-banner__panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "main actions"
      "toggle actions"
      "more more";
    align-items: center;
    column-gap: 0.85rem;
    row-gap: 0.2rem;
    padding: 0.5rem 0.85rem;
  }

  .cookie-banner__main {
    grid-area: main;
  }

  .cookie-banner__title {
    display: inline;
    margin: 0 0.45rem 0 0;
    font-size: 0.84rem;
  }

  .cookie-banner__text {
    display: inline;
    font-size: 0.76rem;
  }

  .cookie-banner__toggle {
    grid-area: toggle;
    margin: 0;
  }

  .cookie-banner__more {
    grid-area: more;
    margin: 0;
  }

  .cookie-banner__actions {
    grid-area: actions;
    margin: 0;
    justify-content: flex-end;
  }

  .cookie-banner__btn {
    flex: 0 0 auto;
    min-width: 0;
    padding: 0.38rem 0.7rem;
    font-size: 0.76rem;
  }
}

@media (min-width: 640px) {
  .cookie-banner__actions {
    justify-content: flex-end;
  }

  .cookie-banner__btn {
    flex: 0 1 auto;
    min-width: 7.5rem;
  }
}

/* ── Legal table (Datenschutz) ── */
.legal-table-wrap {
  overflow-x: auto;
  margin: 0.85rem 0 1rem;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 12px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  line-height: 1.45;
}

.legal-table th,
.legal-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.legal-table th {
  background: rgba(0, 0, 0, 0.03);
  font-weight: 700;
  color: #1d1d1f;
}

.legal-table td {
  color: rgba(29, 29, 31, 0.72);
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-note {
  margin-top: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner__panel {
    transition: opacity 0.2s ease;
    transform: none;
  }

  .cookie-banner.is-visible .cookie-banner__panel,
  .cookie-banner.is-closing .cookie-banner__panel {
    transform: none;
  }
}
