/* =========================================================
   Valentino Sapienza — Site Stylesheet
   Design tokens + layout + components
   ========================================================= */

/* --- Tokens --- */
:root {
  --ink: #0A0E12;
  --ink-soft: #1A1F26;
  --paper: #F1F0EA;
  --paper-dim: #E8E7DF;
  --paper-hi: #F7F6F1;
  --carbon: #0F1319;
  --carbon-soft: #171C24;
  --signal: #2C4BFF;
  --signal-hi: #4562FF;
  --signal-soft: #EEF0FF;
  --muted: #5B5F66;
  --muted-dark: #8A8F97;
  --line: #DBDAD3;
  --line-dark: #262B33;

  --f-body: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-display: 'Fraunces', 'Bodoni Moda', 'Times New Roman', serif;
  --f-mono: 'Geist Mono', ui-monospace, 'SF Mono', monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --radius: 14px;
  --radius-lg: 28px;

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

/* --- Reset --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'ss02';
}
/* Home page (contains .proj-reveal) needs a dark body so the sticky footer reveal reads clean */
body:has(.proj-reveal) { background: var(--carbon); }
/* Content sections stack ABOVE the sticky footer so it only reveals at the end */
/* Sections that guard the sticky footer.
   Note: .hero, .claim, .pricing, .config, .about, .seo, .quotes are positioned via
   .stack > * / .proj-reveal > .pricing (sticky) — forcing position:relative on them
   here would kill the sticky. */
.projects,
.proj-reveal,
.page-hero,
.cases,
.prose,
.checklist,
.about-body,
.contact-hero,
.contact-switch,
.contact-panel,
.contact-info,
.contact-hero,
.contact-switch,
.contact-panel,
.legal,
.page-hero,
.cases,
.prose,
.checklist,
.about-body,
.parallax-wrap {
  position: relative;
  z-index: 2;
}
/* Sticky child needs its own stacking context above the site footer */
.proj-reveal__sticky { z-index: 2; }
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

/* --- Utility --- */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal);
  display: inline-block;
}
.section { padding-block: clamp(80px, 12vw, 160px); }
.section--tight { padding-block: clamp(56px, 8vw, 96px); }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  /* content-aligned side padding: hugs the max-width content column on wide screens */
  padding: 18px max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  transition: background 0.3s var(--ease-out), backdrop-filter 0.3s var(--ease-out), border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header .brand { justify-self: start; }
.site-header nav { justify-self: center; }
.site-header .burger { justify-self: end; }
.site-header.scrolled {
  background: rgba(241, 240, 234, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
}
.site-header .brand {
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}
.site-header .brand:hover { opacity: 0.7; }
.site-header .brand img {
  height: 52px;
  width: auto;
  display: block;
}
.site-header nav ul {
  list-style: none;
  display: flex;
  gap: clamp(18px, 2.4vw, 34px);
  align-items: center;
}
.site-header nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s;
}
.site-header nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--signal);
  transition: right 0.3s var(--ease-out);
}
.site-header nav a:hover::after,
.site-header nav a.is-active::after { right: 0; }

.burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
}
.burger span {
  width: 20px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}
.burger.is-open span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--paper);
  padding: 100px var(--gutter) 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(38px, 10vw, 64px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  padding: 12px 0;
  color: var(--ink);
}
.mobile-menu .contact-line {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  display: flex; flex-direction: column; gap: 6px;
}

/* =========================================================
   STACK — sticky sections that slide over each other
   ========================================================= */
.stack {
  position: relative;
  z-index: 2;
}
.stack > * {
  position: sticky;
  top: 0;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: clamp(100px, 14vw, 160px) var(--gutter) clamp(40px, 5vw, 72px);
  min-height: max(520px, calc(92vh - 300px));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--paper);
}
.hero__mesh {
  position: absolute;
  inset: -20% -15% 20%;
  z-index: 0;
  filter: blur(80px) saturate(140%);
  opacity: 0.6;
  pointer-events: none;
}
.hero__mesh::before,
.hero__mesh::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: multiply;
  will-change: transform;
}
.hero__mesh::before {
  width: 55vw; height: 55vw;
  left: -12%; top: 8%;
  background: radial-gradient(circle, var(--signal) 0%, transparent 60%);
  animation: mesh-drift-1 60s ease-in-out infinite alternate;
}
.hero__mesh::after {
  width: 42vw; height: 42vw;
  right: -8%; top: 28%;
  background: radial-gradient(circle, #FFCA80 0%, transparent 65%);
  animation: mesh-drift-2 78s ease-in-out infinite alternate;
}
@keyframes mesh-drift-1 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(24%, -12%) scale(1.18); }
  100% { transform: translate(-8%, 16%) scale(0.92); }
}
@keyframes mesh-drift-2 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-22%, 14%) scale(1.15); }
  100% { transform: translate(12%, -10%) scale(0.95); }
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
}
.hero__left { display: flex; flex-direction: column; gap: 32px; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  opacity: 0;
  animation: fade-in 0.9s var(--ease-out) 0.1s forwards;
}
.hero__eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: currentColor;
}
.hero__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(56px, 12.5vw, 200px);
  line-height: 0.88;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-variation-settings: 'opsz' 96;
}
.hero__sub {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink-soft);
  max-width: 22ch;
  opacity: 0;
  animation: fade-in 0.9s var(--ease-out) 0.7s forwards;
}
.hero__sub em { font-style: italic; color: var(--signal); font-weight: 400; }
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-in 0.9s var(--ease-out) 0.85s forwards;
}
.hero__actions .btn { padding: 15px 26px; font-size: 15px; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .word {
  display: inline-block;
  transform: translateY(105%);
  animation: hero-word-up 1.1s var(--ease-out) forwards;
}
.hero__title .line:nth-child(2) .word { animation-delay: 0.12s; }
@keyframes hero-word-up { to { transform: translateY(0); } }

.hero__title em {
  font-style: italic;
  color: var(--signal);
  font-weight: 400;
}

.hero__meta {
  font-size: 13px;
  color: var(--muted);
  display: grid;
  grid-template-columns: auto;
  gap: 18px;
  min-width: 220px;
  max-width: 280px;
  text-align: left;
  opacity: 0;
  animation: fade-in 0.9s var(--ease-out) 0.6s forwards;
}
.hero__meta .row { display: flex; flex-direction: column; gap: 2px; }
.hero__meta .label {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted-dark);
  letter-spacing: 0.02em;
}
.hero__meta .value { color: var(--ink); font-weight: 500; font-size: 14px; }
.hero__meta .live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--ink);
}
.hero__meta .live .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #00C46A;
  box-shadow: 0 0 0 4px rgba(0,196,106,0.15);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(0,196,106,0); } }
@keyframes fade-in { to { opacity: 1; } }

.hero__ticker {
  position: absolute;
  bottom: 24px;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  opacity: 0;
  animation: fade-in 1.2s var(--ease-out) 1s forwards;
  z-index: 2;
}
.hero__ticker .arrow {
  display: inline-flex; align-items: center; gap: 6px;
}

/* =========================================================
   48H STATEMENT
   ========================================================= */
.claim {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(60px, 8vw, 120px);
  min-height: 100vh;   /* fallback */
  min-height: 100dvh;  /* stable when mobile browser bars toggle */
  display: flex;
  align-items: center;
  overflow: hidden;
}
.claim__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(auto, 45%) 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.claim__number {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(140px, 26vw, 380px);
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: var(--paper);
  position: relative;
  font-variation-settings: 'opsz' 96;
}
.claim__number sup {
  font-size: 0.18em;
  vertical-align: super;
  font-family: var(--f-body);
  font-weight: 500;
  color: var(--signal);
  margin-left: -0.1em;
  letter-spacing: 0.02em;
}
.claim__body h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}
.claim__body p {
  color: rgba(241, 240, 234, 0.9);
  font-size: 17px;
  line-height: 1.55;
  max-width: 46ch;
  margin-bottom: 40px;
}
.claim__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line-dark);
}
.claim__grid .cell { display: flex; flex-direction: column; gap: 6px; }
.claim__grid .cell .n {
  font-family: var(--f-display);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.claim__grid .cell .l {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted-dark);
  letter-spacing: 0.02em;
}

/* =========================================================
   PROJEKTE — Clip-Path-Reveal (Portierung von smooth-scroll-hero)
   Outer reserves scroll distance; inner is sticky + clip-path animated by JS.
   ========================================================= */
.proj-reveal {
  position: relative;
  height: calc(900px + 300vh);   /* fallback: reveal + pricing + config sticky ranges */
  height: calc(900px + 300dvh);
  background: var(--ink); /* matches the .claim section above (48h statement) */
}
/* Pricing lives inside proj-reveal so it can slide up over the pinned projects */
.proj-reveal > .pricing {
  position: sticky;
  top: 0;
  z-index: 3; /* over the reveal-sticky panel */
}
/* Konfigurator sits right after pricing inside proj-reveal — sticky-slides over pricing */
.proj-reveal > .config {
  position: sticky;
  top: 0;
  z-index: 4; /* over pricing */
}
.proj-reveal__sticky {
  position: sticky;
  top: 0;
  height: 100vh;   /* fallback */
  height: 100dvh;
  overflow: hidden;
  will-change: clip-path;
  background: var(--ink); /* matches .claim so the wrapper reads as one continuous dark block */
  /* initial state (no-JS fallback = fully open) */
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.projects {
  background: var(--paper);
  height: 100%;
  position: relative; /* anchor for the absolutely positioned controls in pinned mode */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(48px, 6vw, 96px);
  overflow: hidden;
}
/* Inside the pinned reveal, park the prev/next arrows absolutely so
   card size never squeezes them out of the pinned viewport */
.proj-reveal .projects__controls {
  position: absolute;
  bottom: clamp(20px, 3vw, 40px);
  left: 0;
  right: 0;
  margin: 0;
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  justify-content: flex-end; /* right aligned */
}

/* Mobile fallback: no pin, no clip — just a plain white section */
@media (max-width: 900px) {
  .proj-reveal {
    height: auto;
    background: var(--paper);
  }
  .proj-reveal__sticky {
    position: static;
    height: auto;
    overflow: visible;
    clip-path: none !important;
  }
  .projects {
    height: auto;
    padding-block: clamp(80px, 10vw, 120px);
  }
}
.projects__header {
  margin: 0 auto clamp(48px, 6vw, 80px);
  /* same content-column formula as the card track — guarantees the headline
     is flush-left with the first card on every viewport width */
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
}
.projects__header h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  max-width: 12ch;
}
.projects__header .side {
  display: flex; flex-direction: column; gap: 8px;
  text-align: right;
  color: var(--muted);
  font-size: 14px;
}
.projects__header .side a {
  color: var(--ink);
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
  align-self: flex-end;
  transition: transform 0.3s var(--ease-out);
}
.projects__header .side a:hover { transform: translateX(4px); }

.projects__scroller {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  /* first card aligns with the content column, exactly like the header above */
  scroll-padding-inline-start: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  scroll-padding-inline-end: var(--gutter);
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.projects__scroller::-webkit-scrollbar { display: none; }
.projects__scroller.dragging { cursor: grabbing; user-select: none; }
.projects__track {
  display: flex;
  gap: 20px;
  /* left starts at the content-column edge (same as .projects__header) so the
     first card sits flush with the headline no matter the viewport width */
  padding-left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  padding-right: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  padding-bottom: 24px;
}
.project-card {
  flex: 0 0 clamp(280px, 32vw, 460px);
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease-out);
}
.project-card__img {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--paper-dim);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.project-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.8s var(--ease-out);
}
.project-card:hover .project-card__img img { transform: scale(1.04); }
.project-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 0 4px;
}
.project-card__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.project-card__desc { color: var(--muted); font-size: 14px; line-height: 1.45; }
.project-card__num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted-dark);
  letter-spacing: 0.02em;
  padding-top: 3px;
}

/* Prev / next arrows below the carousel (Apple style) */
.projects__controls {
  max-width: var(--max);
  margin: clamp(24px, 3vw, 40px) auto 0;
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.projects__btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out), opacity 0.2s;
  cursor: pointer;
}
.projects__btn:hover { background: var(--signal); transform: translateY(-1px); }
.projects__btn:disabled,
.projects__btn[aria-disabled="true"] {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  opacity: 0.5;
  cursor: default;
  transform: none;
}
.projects__btn:disabled:hover,
.projects__btn[aria-disabled="true"]:hover {
  background: transparent;
  transform: none;
}
@media (max-width: 720px) {
  .projects__controls { justify-content: flex-start; }
}

/* =========================================================
   PRICING (compacted so it fits inside one pinned viewport)
   ========================================================= */
.pricing {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(40px, 5vw, 72px);
  min-height: 100vh;   /* fallback */
  min-height: 100dvh;
  height: 100vh;       /* fallback */
  height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.pricing__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  filter: blur(90px);
  opacity: 0.35;
}
.pricing__glow::before,
.pricing__glow::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}
.pricing__glow::before {
  width: 480px; height: 480px;
  left: -8%; top: 20%;
  background: radial-gradient(circle, var(--signal) 0%, transparent 65%);
}
.pricing__glow::after {
  width: 380px; height: 380px;
  right: -4%; bottom: 10%;
  background: radial-gradient(circle, #FFB47A 0%, transparent 65%);
  opacity: 0.7;
}
.pricing__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}
.pricing__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.pricing__header h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 14ch;
}
.pricing__header h2 em { font-style: italic; color: var(--signal-hi); font-weight: 400; }
.pricing__header .lede {
  color: rgba(241, 240, 234, 0.9);
  font-size: 17px;
  line-height: 1.55;
  max-width: 42ch;
}

.pricing__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.15fr;
  gap: 20px;
}
.plan {
  background: var(--carbon-soft);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.2vw, 28px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.3s;
}
.plan:hover { transform: translateY(-3px); border-color: var(--muted); }
.plan--featured {
  border-color: var(--signal);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(44,75,255,0.28) 0%, transparent 55%),
    var(--carbon-soft);
  box-shadow: 0 0 0 1px var(--signal) inset;
}
.plan__badge {
  position: absolute;
  top: 20px; right: 20px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--paper);
  background: var(--signal);
  padding: 6px 10px;
  border-radius: 100px;
  z-index: 1;
}
.plan__label {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted-dark);
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}
.plan__name {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--paper);
}
.plan__name em { font-style: italic; color: var(--signal-hi); }
.plan__price {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--paper);
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.plan__price small {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 15px;
  color: var(--muted-dark);
  letter-spacing: 0;
}
.plan__note {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted-dark);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.plan__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
  margin-bottom: 18px;
}
.plan__list li {
  padding-left: 22px;
  position: relative;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(241, 240, 234, 0.85);
}
.plan__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(44, 75, 255, 0.15);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12' fill='none'><path d='M2 6.5L5 9L10 3.5' stroke='%232C4BFF' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 8px 8px;
}
.plan__list--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
  row-gap: 6px;
}
/* Card 3: addon rows in 2 columns to fit in one viewport */
.plan__list--addons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
  row-gap: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
  margin-bottom: 18px;
}
.plan__addon-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line-dark);
  font-size: 12px;
}
.plan__addon-row:last-child { border-bottom: 0; }
.plan__addon-row .n {
  font-family: var(--f-mono);
  color: var(--paper);
  white-space: nowrap;
}
.plan__addon-row .t { color: rgba(241, 240, 234, 0.85); line-height: 1.4; }
.plan__foot {
  margin-top: auto;
  padding-top: 12px;
}
.plan__foot .btn { width: 100%; justify-content: center; }
.plan__breakdown {
  display: flex;
  gap: 20px;
  padding: 10px 0 14px;
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--muted-dark);
}
.plan__breakdown span strong { color: var(--paper); font-weight: 500; }

@media (max-width: 1050px) {
  .pricing__grid { grid-template-columns: 1fr; gap: 16px; }
  .pricing__header { grid-template-columns: 1fr; }
  .plan__list--split { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .plan__list--split { grid-template-columns: 1fr; }
}

/* =========================================================
   INCLUDED-IN-BASE (Konfigurator Step 2 header)
   ========================================================= */
.included {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 28px;
}
.included__label {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted-dark);
  letter-spacing: 0.03em;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.included__label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #00C46A;
  display: inline-block;
}
.included__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.included__chip {
  padding: 5px 11px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  color: rgba(241, 240, 234, 0.85);
  font-size: 12.5px;
  line-height: 1;
  font-weight: 500;
}
.included__chip::before {
  content: '✓ ';
  color: #00C46A;
  font-weight: 700;
  margin-right: 3px;
}

/* Feature card: upgrade hint */
.opt-card .upgrade {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--signal-hi);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: auto;
  padding-top: 8px;
}

/* =========================================================
   KONFIGURATOR
   ========================================================= */
.config {
  background: var(--carbon);
  color: var(--paper);
  padding-block: clamp(64px, 8vw, 120px);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.config__inner { width: 100%; }
.config__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.config__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.config__header h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(38px, 5.5vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.config__header .lede {
  color: rgba(241, 240, 234, 0.9);
  font-size: 17px;
  line-height: 1.55;
  max-width: 42ch;
}
.config__stepline {
  display: flex;
  gap: 4px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-dark);
  align-items: center;
  flex-wrap: wrap;
}
.config__step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--muted-dark);
  padding: 6px 12px 6px 6px;
  border-radius: 100px;
  transition: color 0.3s, background 0.3s;
}
.config__step .n {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-dark);
  font-size: 11px;
  transition: all 0.3s;
}
.config__step.active { color: var(--paper); background: var(--carbon-soft); }
.config__step.active .n { background: var(--signal); border-color: var(--signal); color: var(--paper); }
.config__step.done { color: var(--paper); }
.config__step.done .n { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.config__step .sep { opacity: 0.4; }

.config__stage {
  min-height: 480px;
  position: relative;
}
.config__panel {
  display: none;
  animation: panel-in 0.5s var(--ease-out);
}
.config__panel.is-active { display: block; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.config__question {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.config__hint { color: rgba(241, 240, 234, 0.75); font-size: 14px; margin-bottom: 32px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.opt-card {
  background: var(--carbon-soft);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--paper);
  transition: all 0.25s var(--ease-out);
  min-height: 128px;
  position: relative;
}
.opt-card:hover { border-color: var(--muted); transform: translateY(-2px); }
.opt-card.selected {
  border-color: var(--signal);
  background: rgba(44, 75, 255, 0.08);
  box-shadow: 0 0 0 1px var(--signal) inset;
}
.opt-card .icon {
  width: 28px; height: 28px;
  color: var(--signal);
  margin-bottom: 4px;
}
.opt-card .t { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.opt-card .d { color: rgba(241, 240, 234, 0.72); font-size: 13px; line-height: 1.4; }
.opt-card .check {
  position: absolute;
  top: 14px; right: 14px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--signal);
  display: none;
  align-items: center; justify-content: center;
  color: var(--paper);
}
.opt-card.selected .check { display: flex; }

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}
.avatar-card {
  background: var(--carbon-soft);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 22px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  color: var(--paper);
  position: relative;
}
.avatar-card:hover { border-color: var(--muted); }
.avatar-card.selected { border-color: var(--signal); background: rgba(44, 75, 255, 0.08); }
.avatar-card .avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--paper);
  display: grid; place-items: center;
  color: var(--carbon);
  font-weight: 600;
  font-size: 20px;
  overflow: hidden;
}
.avatar-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-card .t { font-size: 13px; font-weight: 500; text-align: center; }

.url-input {
  width: 100%;
  background: var(--carbon-soft);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 18px 22px;
  color: var(--paper);
  font-size: 15px;
  margin-top: 20px;
  transition: border-color 0.2s;
}
.url-input:focus { outline: none; border-color: var(--signal); }
.url-input::placeholder { color: var(--muted-dark); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted-dark);
  letter-spacing: 0.02em;
}
.field input, .field textarea {
  background: var(--carbon-soft);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: var(--paper);
  font-size: 15px;
  transition: border-color 0.2s;
  resize: vertical;
  font-family: var(--f-body);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--signal); }
.field.full { grid-column: 1 / -1; }

.summary {
  background: var(--carbon-soft);
  border-radius: var(--radius);
  padding: 26px;
  margin-top: 32px;
  border: 1px solid var(--line-dark);
}
.summary h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted-dark);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  font-weight: 400;
}
.summary__lines { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.summary__lines .row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 14px; color: var(--paper);
  padding: 6px 0;
  border-bottom: 1px dashed var(--line-dark);
}
.summary__lines .row:last-child { border-bottom: 0; }
.summary__lines .row .r { color: var(--muted-dark); font-family: var(--f-mono); font-size: 13px; }
.summary__total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
}
.summary__total .l { font-size: 14px; color: var(--muted-dark); font-family: var(--f-mono); }
.summary__total .v {
  font-family: var(--f-display);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.summary__total .v small { font-size: 14px; color: var(--muted-dark); font-family: var(--f-body); font-weight: 400; margin-left: 6px; }
.summary__monthly {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted-dark);
  font-family: var(--f-mono);
}

.config__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  gap: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.25s var(--ease-out);
  border: 1px solid transparent;
  letter-spacing: -0.005em;
}
.btn--primary { background: var(--signal); color: var(--paper); }
.btn--primary:hover { background: var(--signal-hi); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line-dark);
}
.btn--ghost:hover { border-color: var(--paper); }
.btn--ghost:disabled { opacity: 0.35; cursor: not-allowed; }
.btn--ghost:disabled:hover { border-color: var(--line-dark); transform: none; }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--ink-soft); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--paper-hi); }

.config__done {
  text-align: center;
  padding: 40px 0;
}
.config__done .checkmark {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--signal);
  display: inline-flex;
  align-items: center; justify-content: center;
  margin-bottom: 28px;
  color: var(--paper);
}
.config__done h3 {
  font-family: var(--f-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.config__done p { color: var(--muted-dark); max-width: 40ch; margin: 0 auto; }

/* Toast: floating success/error confirmation shown after submit */
.cfg-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 24px);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px 14px 18px;
  border-radius: 100px;
  background: var(--carbon);
  color: var(--paper);
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.4;
  max-width: min(560px, calc(100vw - 32px));
  box-shadow: 0 24px 64px -18px rgba(0,0,0,0.45), 0 4px 14px rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out);
}
.cfg-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.cfg-toast__icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cfg-toast--success .cfg-toast__icon { background: var(--signal); color: var(--paper); }
.cfg-toast--error   .cfg-toast__icon { background: #C0392B; color: var(--paper); }
.cfg-toast__text { flex: 1; }
@media (max-width: 560px) {
  .cfg-toast {
    left: 16px; right: 16px; bottom: 20px;
    transform: translateY(24px);
    max-width: none;
    font-size: 13px;
    padding: 12px 18px 12px 14px;
  }
  .cfg-toast.is-visible { transform: translateY(0); }
  .cfg-toast__icon { width: 28px; height: 28px; }
}

/* =========================================================
   ÜBER MICH TEASER
   ========================================================= */
.about {
  background: var(--paper);
  padding-block: clamp(64px, 8vw, 120px);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.about__inner { width: 100%; }
.about__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about__portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--paper-dim), var(--paper-hi));
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--muted-dark);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  position: relative;
  border: 1px solid var(--line);
}
.about__portrait img { width: 100%; height: 100%; object-fit: cover; }
.about__portrait .placeholder { text-align: center; padding: 20px; }
.about__portrait .placeholder svg { margin: 0 auto 12px; opacity: 0.4; }

.about__body {
  max-width: 56ch;
}
.about__body h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}
.about__body h2 em { font-style: italic; color: var(--signal); font-weight: 400; }
.about__body p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.about__body .signature {
  margin-top: 32px;
  font-family: var(--f-display);
  font-size: 22px;
  font-style: italic;
  letter-spacing: -0.01em;
}
.about__body .link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
  font-weight: 500;
  font-size: 15px;
  transition: transform 0.3s var(--ease-out);
}
.about__body .link:hover { transform: translateX(4px); }

/* =========================================================
   SEO SECTION
   ========================================================= */
.seo {
  background: var(--paper-dim);
  padding-block: clamp(64px, 8vw, 120px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.seo__inner { width: 100%; }
.seo__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}
.seo__body h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}
.seo__body p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 18px;
  max-width: 52ch;
}
.seo__body .link {
  display: inline-flex;
  align-items: center; gap: 8px;
  margin-top: 20px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
  font-weight: 500;
  font-size: 15px;
  transition: transform 0.3s var(--ease-out);
}
.seo__body .link:hover { transform: translateX(4px); }

.perfcard {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 40px 80px -30px rgba(10, 14, 18, 0.35);
}
.perfcard__header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 28px;
}
.perfcard__header .url {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted-dark);
}
.perfcard__header .device { font-family: var(--f-mono); font-size: 11px; color: var(--muted-dark); letter-spacing: 0.02em; }
.perfcard__scores {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 20px);
}
.score {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
}
.score__ring {
  width: 72px; height: 72px;
  position: relative;
  display: grid; place-items: center;
}
.score__ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.score__ring .track { stroke: var(--line-dark); }
.score__ring .fill { stroke: #00C46A; transition: stroke-dashoffset 1.5s var(--ease-out); }
.score__ring .fill.warn { stroke: #FFB020; }
.score__ring .val {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.score__label {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--muted-dark);
  letter-spacing: 0.03em;
}
.perfcard__vitals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}
.vital { display: flex; flex-direction: column; gap: 4px; }
.vital .l { font-family: var(--f-mono); font-size: 10px; color: var(--muted-dark); letter-spacing: 0.03em; }
.vital .v { font-family: var(--f-display); font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.vital .v small { font-size: 11px; color: var(--muted-dark); font-family: var(--f-mono); font-weight: 400; margin-left: 3px; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.quotes {
  background: var(--paper);
  padding-block: clamp(64px, 8vw, 120px);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.quotes__header {
  max-width: var(--max);
  margin: 0 auto clamp(48px, 6vw, 80px);
  padding-inline: var(--gutter);
}
.quotes__header h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(38px, 5.5vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  max-width: 14ch;
}
.quotes__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 48px) clamp(40px, 6vw, 96px);
}
.quote {
  padding-top: 32px;
  border-top: 1px solid var(--ink);
}
.quote__mark {
  font-family: var(--f-display);
  font-size: 56px;
  line-height: 0.6;
  color: var(--signal);
  margin-bottom: 12px;
}
.quote__text {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  color: var(--ink);
}
.quote__foot {
  display: flex; align-items: center; gap: 14px;
}
.quote__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-dim);
  flex-shrink: 0;
}
.quote__avatar img { width: 100%; height: 100%; object-fit: cover; }
.quote__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.quote__site {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.quote__desc { font-size: 12px; color: var(--muted); }
.quote__stars {
  margin-left: auto;
  display: flex; gap: 2px;
  color: var(--ink);
  font-size: 13px;
  align-items: center;
}
.quote__stars .n {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  margin-left: 6px;
}

/* =========================================================
   CTA + Parallax Footer
   ========================================================= */
.parallax-wrap {
  position: relative;
  z-index: 2;
}
.cta {
  background: var(--paper);
  padding: clamp(80px, 12vw, 140px) var(--gutter) clamp(96px, 14vw, 160px);
  border-radius: 0 0 clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px);
  position: relative;
  z-index: 2;
  text-align: center;
  overflow: hidden;
}
.cta__inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.cta h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(44px, 8vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
}
.cta h2 em { font-style: italic; color: var(--signal); font-weight: 400; }
.cta .btn { padding: 20px 40px; font-size: 16px; }
.cta__note {
  margin-top: 20px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.site-footer {
  background: var(--carbon);
  color: var(--paper);
  padding: clamp(80px, 12vw, 140px) var(--gutter) 40px;
  position: sticky;
  bottom: 0;
  margin-top: calc(-1 * clamp(24px, 4vw, 48px));
  z-index: 1;
}
.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(auto, 40%) 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  padding-bottom: 80px;
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 32px;
}
.site-footer__signature {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.site-footer__signature em { font-style: italic; color: var(--signal-hi); }
.site-footer__addr {
  font-size: 13px;
  color: var(--muted-dark);
  line-height: 1.6;
}
.site-footer__addr a { color: var(--paper); border-bottom: 1px solid var(--line-dark); padding-bottom: 1px; }
.site-footer__addr a:hover { border-color: var(--paper); }
.site-footer__col h5 {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 11px;
  color: var(--muted-dark);
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}
.site-footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer__col a {
  color: var(--paper);
  font-size: 15px;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-footer__col a:hover { border-bottom-color: var(--paper); }
.site-footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted-dark);
  letter-spacing: 0.02em;
  flex-wrap: wrap;
}
.site-footer__legal a { color: var(--muted-dark); }
.site-footer__legal a:hover { color: var(--paper); }

/* =========================================================
   REVEAL / MOTION
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__title .word { transform: none; }
  .hero__meta, .hero__ticker { opacity: 1; }
  .hero__mesh::before, .hero__mesh::after { animation: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  /* Footer stays sticky on mobile too (keeps the parallax reveal where the CTA
     scrolls up over the dark footer). Padding tightened so the whole footer
     — signature, address, Sozial column, legal — fits above Safari's bottom bar. */
  .site-footer {
    padding: 48px var(--gutter) 24px;
  }
  /* Reduce CTA bottom padding so the transition into the footer is quicker
     and less scroll travel is needed to see the signature. */
  .cta {
    padding: clamp(64px, 10vw, 100px) var(--gutter) clamp(48px, 8vw, 72px);
  }
  /* Hide the hero meta column on phones */
  .hero__meta { display: none; }
  /* Pricing content is too tall on mobile (cards stack vertically) — no sticky here.
     Keep position:relative so .pricing__glow anchors to pricing, not to .proj-reveal
     (that's why the glow was appearing above the projects headline). */
  .proj-reveal > .pricing,
  .proj-reveal > .config {
    position: relative;
    top: auto;
  }
  .pricing {
    min-height: auto;
    height: auto;
    padding-block: clamp(72px, 12vw, 120px);
  }
  /* Config / About / SEO / Quotes: on mobile the sticky-slide can crop long content
     (Konfigurator especially). Keep them as normal sections that scroll naturally. */
  .stack > .config,
  .stack > .about,
  .stack > .seo,
  .stack > .quotes {
    position: static;
    top: auto;
  }
  .config, .about, .seo, .quotes {
    min-height: auto;
    padding-block: clamp(72px, 12vw, 120px);
    display: block;
  }
  /* Hero+claim stack sticky keeps working — claim slides over hero on mobile too */
  .site-header nav ul { display: none; }
  .burger { display: flex; }

  /* Hero on mobile: content left-aligned, vertically centered in the viewport */
  .hero {
    align-items: center;
    padding-top: clamp(100px, 18vw, 140px);
    padding-bottom: clamp(48px, 8vw, 96px);
  }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__meta { max-width: none; grid-template-columns: repeat(2, 1fr); gap: 20px 24px; }
  /* Make the drifting mesh in the hero more visible on smaller screens */
  .hero__mesh { opacity: 0.8; filter: blur(50px) saturate(160%); }
  /* Pricing glow: anchor behind the header instead of drifting into the cards */
  .pricing__glow {
    inset: 0 0 auto 0;
    height: min(560px, 60vh);
    opacity: 0.55;
    filter: blur(70px);
  }
  .pricing__glow::before {
    width: 100%; height: 100%;
    left: 0; top: 0;
    background: radial-gradient(ellipse 85% 70% at 18% 55%, var(--signal) 0%, transparent 65%);
  }
  .pricing__glow::after { display: none; }
  .claim__inner { grid-template-columns: 1fr; gap: 40px; }
  .claim__body p { max-width: none; }
  .about__inner { grid-template-columns: 1fr; }
  .about__portrait { max-width: 320px; }
  .seo__inner { grid-template-columns: 1fr; gap: 48px; }
  .quotes__grid { grid-template-columns: 1fr; gap: 40px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 24px; padding-bottom: 20px; margin-bottom: 16px; }
  /* Hide only the site-navigation column on mobile/tablet — Sozial column with
     Instagram, TikTok and "Angebot einholen" stays visible */
  .site-footer__grid > .site-footer__col:first-of-type { display: none; }
  /* Tighter signature block on mobile so signature + address + Sozial + legal fit */
  .site-footer__signature { font-size: clamp(32px, 8vw, 44px); margin-bottom: 12px; }
  .site-footer__addr { font-size: 12px; line-height: 1.55; }
  .site-footer__col h5 { margin-bottom: 12px; }
  .site-footer__col ul { gap: 8px; }
  .site-footer__col a { font-size: 14px; }
  .site-footer__legal { padding-top: 12px; }
  .config__header { grid-template-columns: 1fr; }
  .config__stepline { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .config__stepline::-webkit-scrollbar { display: none; }
  .config__step .sep { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .projects__header { flex-direction: column; align-items: flex-start; }
  .projects__header .side { text-align: left; }
  .projects__header .side a { align-self: flex-start; }
  .site-footer__legal { flex-direction: column; gap: 8px; }
  /* Konfigurator-Karten (Branche + Features) am Handy schmaler & 2-spaltig */
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .opt-card {
    padding: 14px 12px;
    gap: 4px;
    min-height: 88px;
    border-radius: 14px;
  }
  .opt-card .t { font-size: 13px; }
  .opt-card .d { font-size: 11px; line-height: 1.35; }
  .opt-card .check { top: 10px; right: 10px; width: 16px; height: 16px; }
  .opt-card .check svg { width: 10px; height: 10px; }
}
@media (max-width: 560px) {
  .hero__meta { grid-template-columns: 1fr 1fr; }
  .claim__grid { grid-template-columns: 1fr; gap: 20px; }
  .perfcard__scores { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .perfcard__vitals { grid-template-columns: 1fr; gap: 12px; }
  .cta .btn { padding: 18px 28px; }
  .config__stepline { padding-bottom: 14px; margin-bottom: 24px; gap: 2px; }
  .config__step { padding: 3px 8px 3px 3px; gap: 6px; font-size: 10px; }
  .config__step .n { width: 18px; height: 18px; font-size: 9px; }
}
