/* ============================================================
   AutomaNext – öffentliche Website
   ============================================================ */

:root {
  --bg: oklch(98.5% 0.002 280);
  --surface: #ffffff;
  --ink: oklch(21% 0.02 282);
  --ink-soft: oklch(30% 0.02 282);
  --muted: oklch(44% 0.015 280);
  --brand: oklch(51% 0.24 276);
  --brand-deep: oklch(41% 0.2 276);
  --brand-soft: oklch(94.5% 0.03 276);
  --brand-light: oklch(72% 0.16 276);
  --border: oklch(92% 0.006 280);
  --border-strong: oklch(85% 0.01 280);
  --ink-bg: oklch(19% 0.015 282);
  --on-dark: oklch(96% 0.005 280);
  --on-dark-muted: oklch(76% 0.012 280);
  --error: oklch(50% 0.19 25);
  --success-bg: oklch(95% 0.04 150);
  --success-border: oklch(80% 0.09 150);
  --success-ink: oklch(35% 0.09 150);
  --sk: oklch(93% 0.006 280);
  --sk-strong: oklch(84% 0.012 280);
  --sk-ink: oklch(36% 0.03 280);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-card: 14px;
  --radius-btn: 10px;
  /* Z-Skala */
  --z-nav: 40;
  --z-skip: 60;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }
main section[id] { scroll-margin-top: 5.25rem; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, "Segoe UI", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }

a { color: var(--brand); }

:focus-visible {
  outline: 3px solid oklch(51% 0.24 276 / 0.55);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.skip-link {
  position: absolute;
  z-index: var(--z-skip);
  left: 1rem;
  top: -3.5rem;
  background: var(--surface);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 0.75rem; }

/* ---------- Logo ---------- */

.logo { display: inline-flex; align-items: center; width: clamp(11.25rem, 20vw, 14rem); }
.logo-crop {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1095 / 151;
  overflow: hidden;
  background: #fff;
}
.logo-image {
  position: absolute;
  display: block;
  width: 114.52%;
  max-width: none;
  height: auto;
  left: -7.31%;
  top: -361.6%;
}
.logo--light .logo-crop {
  border-radius: 4px;
  box-shadow: 0 0 0 5px #fff;
}

/* ---------- Buttons & Links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.975rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-btn);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn-solid { background: var(--brand); color: #fff; }
.btn-solid:hover { background: var(--brand-deep); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.btn-ghost:hover { color: var(--brand-deep); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn-light { background: #ffffff; color: var(--brand-deep); }
.btn-light:hover { background: oklch(93% 0.02 276); }
.btn-lg { padding: 0.95rem 1.9rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.arrow-link {
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  white-space: nowrap;
}
.arrow-link::after {
  content: "→";
  display: inline-block;
  margin-left: 0.4em;
  transition: transform 0.2s var(--ease-out);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s var(--ease-out);
}
.site-header.scrolled { box-shadow: 0 6px 18px -14px oklch(25% 0.05 276 / 0.5); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.brand-link { text-decoration: none; display: inline-flex; }
.brand-link .logo { width: clamp(10.75rem, 18vw, 12.75rem); }

.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a:not(.btn) {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  transition: color 0.15s var(--ease-out), background-color 0.15s var(--ease-out);
}
.site-nav a:not(.btn):hover { color: var(--ink); background: var(--bg); }
.site-nav a[aria-current="page"] { color: var(--brand-deep); }
.btn-nav { margin-left: 0.6rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero { padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }

.hero.hero--video {
  padding-top: 0;
  background: var(--bg);
}
.hero-video-stage {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(34rem, 72svh, 48rem);
  padding: clamp(4.25rem, 9vw, 7rem) 0;
  overflow: hidden;
  background: var(--ink-bg);
}
.hero-video {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}
.hero-video-overlay {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, oklch(12% 0.025 260 / 0.94) 0%, oklch(12% 0.025 260 / 0.8) 42%, oklch(12% 0.025 260 / 0.35) 74%, oklch(12% 0.025 260 / 0.5) 100%),
    linear-gradient(180deg, oklch(10% 0.02 260 / 0.18), oklch(10% 0.02 260 / 0.58));
}
.hero-video-content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero--video .hero-title { color: #fff; }
.hero--video .hero-kicker,
.hero--video .hero-text,
.hero--video .hero-trust { color: var(--on-dark-muted); }
.hero--video .accent,
.hero--video .kicker-arrow { color: var(--brand-light); }
.hero--video .btn-ghost {
  color: #fff;
  box-shadow: inset 0 0 0 1.5px oklch(100% 0 0 / 0.48);
}
.hero--video .btn-ghost:hover {
  color: #fff;
  box-shadow: inset 0 0 0 1.5px #fff;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 1.6rem;
}
.kicker-arrow { width: 1.05rem; height: 1.05rem; color: var(--brand); flex-shrink: 0; }

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  font-weight: 850;
  line-height: 1.03;
  letter-spacing: -0.03em;
  max-width: 21ch;
}
.accent { font-style: normal; color: var(--brand); }

.hero-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem 3rem;
  align-items: end;
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
}
.hero-text {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36rem;
}
.hero-cta-col { display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-trust { font-size: 0.875rem; color: var(--muted); }

/* Einstiegs-Choreografie (nur mit JS, respektiert reduced motion) */
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
html.js .hero-kicker { animation: rise 0.55s var(--ease-out) both; }
html.js .hero-title { animation: rise 0.65s var(--ease-out) 0.07s both; }
html.js .hero-row { animation: rise 0.65s var(--ease-out) 0.16s both; }
html.js .hero-proof { animation: rise 0.7s var(--ease-out) 0.28s both; }

/* ---------- Skeleton-Bausteine (Mockups) ---------- */

.mock-bar {
  display: flex;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--sk-strong); }

.m-nav { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.m-nav--center { justify-content: center; }
.m-logo { width: 42px; height: 10px; border-radius: 5px; background: var(--sk-ink); flex-shrink: 0; }
.m-logo--round { width: 18px; height: 18px; border-radius: 50%; }
.m-links { display: flex; gap: 8px; margin-inline: auto; }
.m-nav--center .m-links { margin-inline: 0; }
.m-links i { width: 22px; height: 6px; border-radius: 3px; background: var(--sk-strong); }
.m-cta { width: 40px; height: 15px; border-radius: 8px; background: var(--brand); flex-shrink: 0; }

.m-line { display: block; border-radius: 5px; background: var(--sk-strong); }
.m-line--xl { height: 15px; width: 88%; background: var(--sk-ink); }
.m-line--lg { height: 13px; width: 62%; background: var(--sk-ink); }
.m-line--md { height: 10px; width: 45%; background: var(--sk-ink); }
.m-line--txt { height: 8px; width: 72%; }
.m-btnrow { display: flex; gap: 8px; margin-top: 4px; }
.m-btn { display: block; width: 58px; height: 17px; border-radius: 9px; background: var(--sk-strong); }
.m-btn--solid { background: var(--brand); }
.m-btn--wide { width: 100%; }
.m-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.m-cols i { height: 52px; border-radius: 8px; background: var(--sk); }
.m-block { display: block; height: 38px; border-radius: 8px; background: var(--sk); }
.m-block--short { width: 68%; }

.mock {
  margin: 0;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 1px 3px oklch(25% 0.04 276 / 0.08), 0 18px 40px -28px oklch(30% 0.1 276 / 0.35);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.mock-preview-image {
  display: block;
  width: 100%;
  height: auto;
}
.mock-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.m-hero { display: flex; flex-direction: column; gap: 0.6rem; padding-block: 0.4rem; }

.m-split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 12px; align-items: stretch; }
.m-menu { display: flex; flex-direction: column; gap: 9px; }
.m-menu .m-btn { margin-top: 3px; }
.m-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.m-dish { display: block; height: 8px; width: 70%; border-radius: 4px; background: var(--sk-strong); }
.m-dish--short { width: 52%; }
.m-price { display: block; width: 16px; height: 8px; border-radius: 4px; background: var(--brand); }
.m-photo { border-radius: 9px; background: linear-gradient(140deg, var(--sk-strong), var(--sk) 70%); min-height: 96px; }
.m-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.m-strip i { height: 26px; border-radius: 6px; background: var(--sk); }

.m-events { display: flex; flex-direction: column; gap: 9px; }
.m-event { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.m-date { width: 26px; height: 26px; border-radius: 7px; background: var(--brand-soft); }
.m-eventlines { display: flex; flex-direction: column; gap: 5px; }
.m-eventlines i { display: block; height: 7px; border-radius: 4px; background: var(--sk-strong); }
.m-eventlines i:last-child { width: 55%; background: var(--sk); }
.m-chip { width: 38px; height: 14px; border-radius: 999px; background: var(--brand); }
.m-chip--muted { background: var(--sk-strong); }
.m-sponsors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.m-sponsors i { height: 16px; border-radius: 5px; background: var(--sk); }

/* ---------- Sektionen allgemein ---------- */

section { padding: clamp(3.75rem, 8vw, 6.5rem) 0; }
.hero { padding-bottom: clamp(2rem, 4vw, 3rem); }

.section-title {
  font-size: clamp(1.95rem, 3.8vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
}
.section-sub {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 52ch;
  font-size: 1.05rem;
}
/* ---------- Preise ---------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.price-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(1.6rem, 3vw, 2.2rem);
}
.price-card--featured {
  background: var(--ink-bg);
  border-color: var(--ink-bg);
  color: #fff;
  box-shadow: 0 32px 64px -32px oklch(20% 0.05 282 / 0.55);
}
.price-flag {
  align-self: flex-start;
  background: var(--brand);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3em 0.9em;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.price-name { font-size: 1.25rem; font-weight: 700; }
.price-value {
  font-size: clamp(2.3rem, 3vw, 2.8rem);
  font-weight: 850;
  letter-spacing: -0.025em;
  margin-top: 0.4rem;
  line-height: 1.05;
}
.price-tagline { margin-top: 0.8rem; color: var(--muted); font-size: 0.95rem; }
.price-card--featured .price-tagline { color: var(--on-dark-muted); }
.price-features {
  list-style: none;
  margin: 1.4rem 0 1.4rem;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.price-card--featured .price-features { border-top-color: oklch(100% 0 0 / 0.16); }
.price-features li { position: relative; padding-left: 1.6rem; font-size: 0.95rem; }
.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--brand);
}
.price-card--featured .price-features li::before { color: var(--brand-light); }
.price-more { color: var(--muted); padding-left: 0 !important; }
.price-more::before { content: none !important; }
.price-card--featured .price-more { color: var(--on-dark-muted); }
.price-ideal { margin-top: auto; padding-bottom: 1.4rem; font-size: 0.9rem; color: var(--muted); }
.price-card--featured .price-ideal { color: var(--on-dark-muted); }
.pricing-note {
  margin-top: clamp(2rem, 4vw, 3rem);
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 62ch;
}
.pricing--band { background: var(--surface); border-block: 1px solid var(--border); }

/* ---------- Ablauf ---------- */

.step-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.975rem;
  flex-shrink: 0;
}
.step .step-num { margin-bottom: 0.9rem; }
.step h3 { font-size: 1.15rem; }
.step p { margin-top: 0.45rem; color: var(--muted); font-size: 0.95rem; }

.timeline { list-style: none; padding: 0; margin: 0; max-width: 46rem; }
.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.6rem;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.timeline-step::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 3.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: var(--border-strong);
}
.timeline-step:last-child::before { display: none; }
.timeline-step .step-num { width: 3rem; height: 3rem; font-size: 1.1rem; }
.timeline-body h2 { font-size: 1.4rem; font-weight: 700; padding-top: 0.55rem; }
.timeline-body p { margin-top: 0.55rem; color: var(--muted); max-width: 56ch; }
.process-detail { padding-top: clamp(1rem, 3vw, 2rem); }

/* ---------- FAQ ---------- */

.faq-inner { max-width: 52rem; }
.faq-list { margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }
.faq-item { border-top: 1px solid var(--border-strong); }
.faq-item:last-child { border-bottom: 1px solid var(--border-strong); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0.25rem;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: color 0.15s var(--ease-out);
}
.faq-item summary:hover h3 { color: var(--brand-deep); }
.faq-icon {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--brand);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out);
}
.faq-icon::before { width: 14px; height: 2.5px; }
.faq-icon::after { width: 2.5px; height: 14px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); }
.faq-item > p {
  padding: 0 2.75rem 1.5rem 0.25rem;
  color: var(--muted);
  max-width: 65ch;
}
.faq-more { margin-top: 1.75rem; color: var(--muted); font-size: 0.975rem; }
.faq-more a { font-weight: 600; color: var(--brand-deep); }

/* ---------- CTA-Band ---------- */

.cta-band {
  position: relative;
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.cta-watermark {
  position: absolute;
  right: 0;
  bottom: 8%;
  width: clamp(300px, 42vw, 620px);
  aspect-ratio: 1095 / 151;
  overflow: hidden;
  opacity: 0.08;
  pointer-events: none;
}
.cta-watermark img {
  position: absolute;
  display: block;
  width: 114.52%;
  max-width: none;
  height: auto;
  left: -7.31%;
  top: -361.6%;
}
.cta-inner { position: relative; max-width: 46rem; }
.cta-title { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 850; letter-spacing: -0.025em; line-height: 1.1; }
.cta-text { margin: 1.1rem auto 0; color: oklch(100% 0 0 / 0.85); font-size: 1.1rem; max-width: 38rem; }
.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  margin-top: 2.2rem;
}
.cta-contact { display: flex; align-items: center; gap: 0.9rem; color: oklch(100% 0 0 / 0.6); flex-wrap: wrap; justify-content: center; }
.cta-mail { color: #fff; font-weight: 500; text-decoration-color: oklch(100% 0 0 / 0.5); }
.cta-mail:hover { text-decoration-color: #fff; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink-bg);
  color: var(--on-dark-muted);
  padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(17rem, 0.82fr) minmax(0, 2fr);
  align-items: start;
  gap: clamp(3rem, 7vw, 6rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}
.footer-brand .logo { width: clamp(10.75rem, 16vw, 12rem); }
.footer-brand .logo--light .logo-crop {
  border-radius: 6px;
  box-shadow: none;
}
.footer-slogan { margin-top: 1.25rem; max-width: 31ch; font-size: 0.95rem; line-height: 1.65; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
}
.footer-col h3 {
  color: var(--on-dark);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 1rem;
}
.footer-col a {
  display: block;
  color: var(--on-dark-muted);
  text-decoration: none;
  padding: 0.22rem 0;
  font-size: 0.95rem;
  transition: color 0.15s var(--ease-out);
}
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 0.95rem; padding-top: 0.22rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: clamp(2.75rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid oklch(100% 0 0 / 0.1);
  font-size: 0.85rem;
  color: oklch(62% 0.012 280);
}

/* ---------- Unterseiten-Kopf ---------- */

.page-head { padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(1rem, 3vw, 2rem); }
.page-title {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 850;
  letter-spacing: -0.028em;
  line-height: 1.06;
  max-width: 24ch;
}
.page-intro { margin-top: 1.4rem; font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.notfound { padding-bottom: clamp(4rem, 8vw, 7rem); }
.notfound .hero-actions { margin-top: 2rem; }

/* ---------- Kontakt ---------- */

.contact { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.form-success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success-ink);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 2rem;
}
.form-success h2 { font-size: 1.2rem; }
.form-success p { margin-top: 0.5rem; font-size: 0.975rem; }

.form-alert {
  background: oklch(96% 0.025 25);
  border: 1px solid oklch(80% 0.1 25);
  color: var(--error);
  border-radius: 12px;
  padding: 1.1rem 1.4rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.contact-form { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-field { margin-bottom: 1.3rem; }
.form-field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; }
.form-legend { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.5rem; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  transition: border-color 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
}
.form-field select {
  min-height: 3.05rem;
  cursor: pointer;
}
.form-field textarea { resize: vertical; min-height: 8rem; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: oklch(55% 0.012 280); }
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px oklch(51% 0.24 276 / 0.18);
}
.has-error input, .has-error select, .has-error textarea { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.875rem; margin-top: 0.4rem; }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-consent { margin-top: 0.4rem; }
.consent-label { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 400 !important; cursor: pointer; }
.consent-label input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--brand);
  flex-shrink: 0;
}
.consent-label span { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.55; }
.contact-form .btn { margin-top: 1.4rem; }

.contact-aside { display: flex; flex-direction: column; gap: 1.25rem; }
.aside-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.6rem 1.7rem;
}
.aside-block h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 1.1rem; }
.after-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.95rem; }
.after-list li { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.95rem; color: var(--ink-soft); }
.step-num--sm { width: 1.7rem; height: 1.7rem; font-size: 0.85rem; margin-top: -0.1rem; }
.aside-contact { display: flex; flex-direction: column; gap: 0.3rem; }
.aside-contact a { font-weight: 600; text-decoration: none; color: var(--brand-deep); }
.aside-contact a:hover { text-decoration: underline; }
.aside-note { margin-top: 0.9rem; font-size: 0.875rem; color: var(--muted); }
.aside-block--quiet { background: var(--brand-soft); border-color: transparent; }
.aside-block--quiet p { font-size: 0.95rem; color: var(--brand-deep); line-height: 1.6; }

/* ---------- Rechtstexte ---------- */

.legal { padding-top: clamp(1rem, 2vw, 1.5rem); }
.legal-inner { max-width: 46rem; }
.legal h2 { font-size: 1.3rem; font-weight: 700; margin: 2.4rem 0 0.8rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-soft); line-height: 1.7; }
.legal ul { padding-left: 1.3rem; margin: 0.8rem 0; display: flex; flex-direction: column; gap: 0.35rem; }

/* ---------- Reveal-Animation ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.32s var(--ease-out), transform 0.38s var(--ease-out);
}
html.js .reveal-l { transform: translateX(-16px); }
html.js .reveal-r { transform: translateX(16px); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Hero-Beweis: Website + Dashboard nebeneinander ---------- */

.hero-proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.hero-proof-panel { background: var(--surface); border-radius: 16px; padding: 1rem 1rem 1.25rem; box-shadow: 0 1px 3px oklch(25% 0.04 276 / 0.08), 0 24px 48px -32px oklch(30% 0.1 276 / 0.3); }
.hero-proof-label { font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-bottom: 0.75rem; }
.hero-proof-panel .mock { box-shadow: none; }

/* ---------- Ein-Satz-Sektion ---------- */

.oneliner { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.oneliner-text {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.35;
  max-width: 46rem;
  color: var(--ink-soft);
}

/* ---------- Zwei Produktbereiche ---------- */

.areas { background: var(--surface); border-block: 1px solid var(--border); }
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.area-card {
  display: block;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  padding: clamp(2rem, 4vw, 2.75rem);
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.area-card-tag { display: block; font-size: 0.82rem; font-weight: 600; color: var(--brand-deep); margin-bottom: 0.9rem; }
.area-card h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; }
.area-card p { margin-top: 0.8rem; color: var(--muted); max-width: 40ch; }
.area-card .arrow-link { display: inline-block; margin-top: 1.4rem; pointer-events: none; }
.area-card--web { background: var(--bg); }
.area-card--gastro { background: var(--ink-bg); border-color: var(--ink-bg); color: #fff; }
.area-card--gastro .area-card-tag { color: var(--brand-light); }
.area-card--gastro p { color: var(--on-dark-muted); }
.area-card--gastro .arrow-link { color: var(--brand-light); }

/* ---------- Problem / Lösung ---------- */

.problem-list {
  list-style: none;
  margin: clamp(1.75rem, 3.5vw, 2.5rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem 2.5rem;
  border-bottom: 1px solid var(--border);
}
.problem-list li {
  position: relative;
  padding: 1rem 0 1rem 1.9rem;
  border-top: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.problem-list li::before { content: "✕"; position: absolute; left: 0; top: 1.05rem; color: oklch(55% 0.13 25); font-weight: 700; }
.problem-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.problem + .features { border-top: 1px solid var(--border); }

.solution { background: var(--surface); border-block: 1px solid var(--border); }
.solution-inner { max-width: 50rem; }
.solution-text { margin-top: 1.1rem; font-size: 1.15rem; color: var(--muted); line-height: 1.65; }

/* ---------- Markenblöcke: AutomaNext Web / Gastronomie ---------- */

.brand-block-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.brand-block-copy h2 { font-size: clamp(2rem, 3.6vw, 2.7rem); font-weight: 850; letter-spacing: -0.025em; }
.brand-block-lede { margin-top: 1rem; font-size: 1.1rem; max-width: 42ch; }
.brand-block-list { list-style: none; margin: 1.4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.brand-block-list li { position: relative; padding-left: 1.7rem; font-weight: 500; }
.brand-block-list li::before { content: "↗"; position: absolute; left: 0; font-weight: 700; }
.brand-block-note { margin-top: 1.2rem; font-size: 0.95rem; font-style: normal; }
.brand-block--web { background: var(--bg); }
.brand-block--web .brand-block-lede,
.brand-block--web .brand-block-note { color: var(--muted); }
.brand-block--web .brand-block-list li::before { color: var(--brand); }

.brand-block--gastro { background: var(--ink-bg); color: #fff; }
.brand-block--gastro .brand-block-lede { color: var(--on-dark-muted); }
.brand-block--gastro .brand-block-list li::before { color: var(--brand-light); }
.brand-block--gastro .brand-block-note {
  background: oklch(100% 0 0 / 0.06);
  border-left: none;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  color: var(--on-dark);
  font-weight: 500;
}
.brand-block--gastro .arrow-link { color: var(--brand-light); }
.brand-block--gastro .mock { box-shadow: 0 24px 48px -28px oklch(0% 0 0 / 0.5); }

/* ---------- Warum AutomaNext ---------- */

.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem clamp(2rem, 5vw, 4rem); margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }
.why-item { padding-top: 1.4rem; border-top: 1px solid var(--border-strong); }
.why-item h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.why-item p { margin-top: 0.55rem; color: var(--muted); max-width: 44ch; }
.why-item:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- Preis-Orientierung ---------- */

.price-orientation { background: var(--surface); border-block: 1px solid var(--border); }
.price-orientation-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }
.price-orientation-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: clamp(1.75rem, 3vw, 2.25rem);
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.price-orientation-card h3 { font-size: 1.05rem; font-weight: 700; }
.price-orientation-value { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; margin-top: 0.5rem; }
.price-orientation-card p:not(.price-orientation-value) { margin-top: 0.6rem; color: var(--muted); font-size: 0.95rem; }
.price-orientation-card .arrow-link { display: inline-block; margin-top: 1.1rem; pointer-events: none; }

/* ---------- Zielgruppen (Chips) ---------- */

.audience { background: var(--surface); border-block: 1px solid var(--border); padding-block: clamp(2.75rem, 5vw, 4rem); }
.audience-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: clamp(1.5rem, 3vw, 2rem) 0 0;
}
.audience-list li {
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5em 1.1em;
  border-radius: 999px;
}

/* ---------- Leistungs-Karten (Web / Gastronomie) ---------- */

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }
.feature-card { padding: clamp(1.5rem, 2.5vw, 1.85rem); border: 1px solid var(--border); border-radius: 14px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; }
.feature-card p { margin-top: 0.6rem; color: var(--muted); font-size: 0.95rem; }

.feature-grid--with-visual { grid-template-columns: 1.1fr 0.9fr; align-items: start; gap: clamp(2rem, 4vw, 3rem); margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }
.feature-list-col { display: flex; flex-direction: column; }
.feature-row { padding: 1.3rem 0; border-top: 1px solid var(--border); }
.feature-row:first-child { border-top: none; padding-top: 0; }
.feature-row h3 { font-size: 1.05rem; font-weight: 700; }
.feature-row p { margin-top: 0.4rem; color: var(--muted); font-size: 0.95rem; }
.feature-visual-col { position: sticky; top: 6rem; }
.expansion-note { margin-top: clamp(2rem, 4vw, 2.75rem); color: var(--muted); font-size: 0.95rem; max-width: 62ch; padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* ---------- Lieferando-Hinweis ---------- */

.lieferando-note {
  margin-top: 1.4rem;
  max-width: 56ch;
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--brand-soft);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
}

/* ---------- Kompakter Ablauf (Unterseite) ---------- */

.process-compact-inner { max-width: 46rem; }
.process-compact-list { list-style: none; margin: 1.5rem 0 1.75rem; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.process-compact-list li { display: flex; gap: 1rem; align-items: flex-start; color: var(--ink-soft); }
.process-compact-list strong { color: var(--ink); }

/* ---------- Abschluss-CTA (Unterseite) ---------- */

.closing { text-align: center; background: var(--surface); border-block: 1px solid var(--border); }
.closing-inner { max-width: 40rem; }
.closing h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; }
.closing p { margin: 1rem 0 1.75rem; color: var(--muted); font-size: 1.05rem; }

/* ---------- Unterseiten-Kopf mit Visual ---------- */

.page-head-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.page-head-visual .mock { margin-top: 0; }
.page-head:has(.page-head-grid) { padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.page-head.page-head--dark { background: var(--ink-bg); color: #fff; padding-bottom: clamp(3.5rem, 6vw, 5rem); }
.page-title--light { color: #fff; }
.page-intro--light { color: var(--on-dark-muted); }
.hero-kicker--light { color: var(--on-dark-muted); }
.hero-kicker--light .kicker-arrow { color: var(--brand-light); }
.btn-ghost--light { color: #fff; box-shadow: inset 0 0 0 1.5px oklch(100% 0 0 / 0.35); }
.btn-ghost--light:hover { box-shadow: inset 0 0 0 1.5px #fff; color: #fff; }

/* ---------- ROI-Rechner ---------- */

.roi { background: var(--surface); border-block: 1px solid var(--border); }
.roi-calc {
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
}
.roi-inputs { display: flex; flex-direction: column; gap: 1.6rem; justify-content: center; }
.roi-field { display: flex; flex-direction: column; gap: 0.5rem; }
.roi-field-label { font-weight: 600; font-size: 0.95rem; }
.roi-field-value { font-weight: 700; color: var(--brand-deep); font-size: 0.95rem; }
.roi-field input[type="range"] {
  width: 100%;
  accent-color: var(--brand);
  height: 1.4rem;
  cursor: pointer;
}
.roi-results { display: flex; flex-direction: column; gap: 0.75rem; justify-content: center; }
.roi-result {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  background: var(--bg);
}
.roi-result-label { color: var(--muted); font-size: 0.925rem; }
.roi-result-value { font-weight: 700; font-size: 1.15rem; }
.roi-result--highlight {
  flex-wrap: wrap;
  background: var(--ink-bg);
  color: #fff;
}
.roi-result--highlight .roi-result-label { color: var(--on-dark-muted); }
.roi-result--highlight .roi-result-value { font-size: 1.6rem; color: var(--brand-light); width: 100%; text-align: right; }
.roi-result-sub { width: 100%; text-align: right; font-size: 0.85rem; color: var(--on-dark-muted); }
.roi-note { margin-top: 1.25rem; color: var(--muted); font-size: 0.9rem; max-width: 62ch; }

/* ---------- Gastronomie-Preiskarte ---------- */

.gastro-price-card {
  max-width: 42rem;
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
}
.gastro-price-head { display: flex; align-items: center; gap: 1.5rem; }
.gastro-price-head > div { flex-shrink: 0; }
.gastro-price-head .price-value { white-space: nowrap; }
.gastro-price-plus { font-size: 1.5rem; font-weight: 700; color: var(--border-strong); }
.gastro-price-commission { margin-top: 1.2rem; font-weight: 700; color: var(--brand-deep); }
.price-features--cols { column-count: 2; column-gap: 2rem; display: block; }
.price-features--cols li { break-inside: avoid; margin-bottom: 0.55rem; }

/* ---------- Radiobuttons (Kontaktweg) ---------- */

.radio-row { display: flex; gap: 1.5rem; }
.radio-label { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; cursor: pointer; }
.radio-label input { accent-color: var(--brand); width: 1.1rem; height: 1.1rem; }

/* ---------- Affiliate-Programm ---------- */

.section-eyebrow {
  margin-bottom: 0.75rem;
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.affiliate-primary {
  box-shadow: 0 12px 28px -18px oklch(41% 0.2 276 / 0.85);
}

.affiliate-home {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.affiliate-home-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 5rem);
}
.affiliate-home-head > p {
  color: var(--muted);
  max-width: 43rem;
}
.affiliate-home-grid,
.affiliate-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.affiliate-home-card,
.affiliate-benefit-card {
  min-width: 0;
  padding: clamp(1.35rem, 2.5vw, 1.8rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 0 18px 45px -42px oklch(22% 0.04 276 / 0.5);
  transition: transform 0.2s var(--ease-out), border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.affiliate-card-num {
  display: block;
  margin-bottom: 1.35rem;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}
.affiliate-home-card h3,
.affiliate-benefit-card h2 {
  font-size: 1.05rem;
  line-height: 1.3;
}
.affiliate-home-card p,
.affiliate-benefit-card p {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.93rem;
}
.affiliate-home-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.affiliate-hero {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.affiliate-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 28rem;
  aspect-ratio: 1;
  right: -14rem;
  top: -13rem;
  border-radius: 50%;
  background: var(--brand-soft);
  filter: blur(1px);
  pointer-events: none;
}
.affiliate-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(28rem, 1.05fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.affiliate-hero-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 42ch;
}
.affiliate-hero .hero-actions { gap: 0.5rem; }
.affiliate-hero .btn-lg { padding-inline: 1.8rem; }
.affiliate-hero-visual { min-width: 0; }

.affiliate-dashboard {
  overflow: hidden;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 28px 80px -52px oklch(22% 0.08 276 / 0.5);
}
.affiliate-dashboard-head,
.affiliate-dashboard-row,
.affiliate-dashboard-provision {
  display: flex;
  align-items: center;
}
.affiliate-dashboard-head {
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.affiliate-dashboard-head > div { display: grid; }
.affiliate-dashboard-head strong { font-size: 1.05rem; }
.affiliate-dashboard-eyebrow {
  color: var(--brand-deep);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.affiliate-dashboard-avatar,
.affiliate-company-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 750;
}
.affiliate-dashboard-avatar { width: 2.25rem; height: 2.25rem; font-size: 0.75rem; }
.affiliate-dashboard-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding-block: 1rem;
}
.affiliate-dashboard-stats > div {
  display: grid;
  padding: 0.8rem;
  border-radius: 10px;
  background: var(--bg);
}
.affiliate-dashboard-stats span,
.affiliate-dashboard-provision > span,
.affiliate-dashboard-provision small {
  color: var(--muted);
  font-size: 0.72rem;
}
.affiliate-dashboard-stats strong { font-size: 1rem; }
.affiliate-dashboard-list {
  border: 1px solid var(--border);
  border-radius: 12px;
}
.affiliate-dashboard-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  padding: 0.8rem;
  border-top: 1px solid var(--border);
}
.affiliate-dashboard-row:first-child { border-top: 0; }
.affiliate-company-mark {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.68rem;
  background: oklch(95% 0.035 80);
  color: oklch(45% 0.12 70);
}
.affiliate-company-mark--blue { background: oklch(95% 0.04 240); color: oklch(45% 0.14 245); }
.affiliate-company-mark--green { background: oklch(95% 0.04 150); color: oklch(40% 0.1 150); }
.affiliate-dashboard-row > span:nth-child(2) {
  display: grid;
  min-width: 0;
}
.affiliate-dashboard-row strong {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.affiliate-dashboard-row small { color: var(--muted); font-size: 0.68rem; }
.affiliate-status {
  align-self: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
  white-space: nowrap;
}
.affiliate-status--active { background: var(--brand-soft); color: var(--brand-deep); }
.affiliate-status--success { background: var(--success-bg); color: var(--success-ink); }
.affiliate-dashboard-provision {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.2rem 1rem;
  margin-top: 1rem;
  padding: 0.9rem;
  border-radius: 10px;
  background: var(--ink-bg);
  color: #fff;
}
.affiliate-dashboard-provision strong { color: var(--brand-light); font-size: 0.88rem; }
.affiliate-dashboard-provision small { width: 100%; color: var(--on-dark-muted); }

.affiliate-benefits {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--surface);
}
.affiliate-benefit-grid { margin-top: 0; }
.affiliate-benefit-card { background: var(--bg); box-shadow: none; }

.affiliate-process { background: var(--bg); }
.affiliate-step-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
}
.affiliate-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.affiliate-step-num {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-weight: 750;
}
.affiliate-step h3 { font-size: 1.08rem; }
.affiliate-step p { margin-top: 0.55rem; color: var(--muted); font-size: 0.94rem; }

.affiliate-audience {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.affiliate-audience-grid,
.affiliate-trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(24rem, 1.15fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}
.affiliate-audience-grid .section-sub,
.affiliate-trust-grid .section-sub { margin-top: 1rem; }
.affiliate-audience-list,
.affiliate-trust-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.affiliate-audience-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  font-size: 0.9rem;
  font-weight: 600;
}
.affiliate-audience-list li span { color: var(--brand); }

.affiliate-trust { background: var(--ink-bg); color: #fff; }
.affiliate-trust .section-title { color: #fff; }
.affiliate-trust .section-eyebrow { color: var(--brand-light); }
.affiliate-trust .section-sub { color: var(--on-dark-muted); }
.affiliate-trust-list {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid oklch(100% 0 0 / 0.12);
}
.affiliate-trust-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 0;
  border-bottom: 1px solid oklch(100% 0 0 / 0.12);
  color: var(--on-dark);
  font-weight: 600;
}
.affiliate-trust-list li span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--brand-light);
  box-shadow: 0 0 0 5px oklch(72% 0.16 276 / 0.12);
}

.affiliate-closing {
  background: var(--brand);
  color: #fff;
  text-align: center;
}
.affiliate-closing-inner { max-width: 46rem; }
.affiliate-closing h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.affiliate-closing p {
  margin: 1.2rem auto 1.8rem;
  color: oklch(96% 0.015 276);
  max-width: 42rem;
}
.affiliate-closing small {
  display: block;
  margin-top: 0.85rem;
  color: oklch(93% 0.025 276);
}

.affiliate-service-teaser {
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface);
}
.affiliate-service-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--brand-soft);
}
.affiliate-service-card p { color: var(--ink-soft); font-size: 0.95rem; }
.affiliate-service-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.aside-block--affiliate {
  border-color: oklch(82% 0.06 276);
  background: var(--brand-soft);
}
.aside-block--affiliate h2 { margin: 0.45rem 0 0; }
.aside-block--affiliate p { margin-top: 0.75rem; color: var(--muted); }
.aside-block--affiliate .arrow-link { display: inline-block; margin-top: 1rem; }
.aside-affiliate-label {
  color: var(--brand-deep);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-affiliate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.4rem, 3vw, 1.8rem) clamp(1.4rem, 3.5vw, 2.1rem);
  border: 1px solid oklch(100% 0 0 / 0.11);
  border-radius: 16px;
  background: oklch(22.5% 0.022 282);
}
.footer-affiliate strong { color: #fff; font-size: 1.05rem; }
.footer-affiliate p { max-width: 48rem; margin-top: 0.35rem; color: var(--on-dark-muted); font-size: 0.9rem; }
.footer-affiliate-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 2.85rem;
  padding: 0.65rem 1rem;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
}
.footer-affiliate-link:hover { color: #fff; background: var(--brand-deep); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html.js .hero-kicker, html.js .hero-title, html.js .hero-row, html.js .hero-proof { animation: none !important; }
  .btn, .mock, .arrow-link::after, .area-card, .price-orientation-card, .affiliate-home-card, .affiliate-benefit-card { transition: none !important; }
  .btn:hover { transform: none; }
  .hero-video { visibility: hidden; }
  .hero-video-stage {
    background: var(--ink-bg) url('/assets/video/hero-wallpaper-poster.webp') center / cover no-repeat;
  }
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
  .arrow-link:hover::after { transform: translateX(4px); }
  .area-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 52px -30px oklch(30% 0.12 276 / 0.35);
    border-color: transparent;
  }
  .price-orientation-card:hover { border-color: var(--brand); transform: translateY(-2px); }
  .affiliate-home-card:hover,
  .affiliate-benefit-card:hover {
    transform: translateY(-3px);
    border-color: oklch(82% 0.06 276);
    box-shadow: 0 24px 50px -38px oklch(35% 0.1 276 / 0.38);
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .affiliate-home-grid, .affiliate-benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem clamp(1.25rem, 4vw, 2rem) 1.25rem;
    box-shadow: 0 20px 30px -24px oklch(25% 0.05 276 / 0.4);
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 0.85rem 0.6rem; font-size: 1.05rem; }
  .btn-nav { margin: 0.6rem 0 0; }

  .hero-row { grid-template-columns: 1fr; align-items: start; }
  .hero-cta-col { align-items: flex-start; }
  .hero-proof { grid-template-columns: 1fr; max-width: 26rem; margin-inline: auto; }
  .area-grid { grid-template-columns: 1fr; }
  .brand-block-inner { grid-template-columns: 1fr; }
  .brand-block--gastro .brand-block-visual { order: 0; }
  .brand-block-visual .mock { max-width: 26rem; margin-inline: auto; }
  .why-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; }
  .price-orientation-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .page-head-grid { grid-template-columns: 1fr; }
  .page-head-visual { width: 100%; max-width: 26rem; margin-inline: auto; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid--with-visual { grid-template-columns: 1fr; }
  .feature-visual-col { position: static; max-width: 26rem; }
  .roi-calc { grid-template-columns: 1fr; }
  .roi-result--highlight .roi-result-value,
  .roi-result-sub { text-align: right; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-aside {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }
  .affiliate-home-head,
  .affiliate-hero-grid,
  .affiliate-audience-grid,
  .affiliate-trust-grid { grid-template-columns: 1fr; }
  .affiliate-home-head { gap: 1.25rem; }
  .affiliate-hero-visual { width: 100%; max-width: 38rem; margin-inline: auto; }
}

@media (max-width: 640px) {
  .brand-link .logo { width: 10.75rem; }
  .cta-watermark { right: 1.5rem; }
  .step-grid, .problem-list { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-aside { grid-template-columns: 1fr; }
  .site-footer { padding-top: 2rem; }
  .footer-grid { gap: 2.25rem; }
  .footer-links { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .btn-lg { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-cta-col { width: 100%; }
  .hero-video-stage { min-height: 36rem; padding-block: 4rem; }
  .hero-video { object-position: 50% center; }
  .hero-video-overlay {
    background: linear-gradient(180deg, oklch(10% 0.02 260 / 0.76), oklch(10% 0.02 260 / 0.9));
  }
  .gastro-price-head { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .gastro-price-plus { display: none; }
  .price-features--cols { column-count: 1; }
  .radio-row { flex-direction: column; gap: 0.75rem; }
  .affiliate-home-grid,
  .affiliate-benefit-grid,
  .affiliate-step-grid,
  .affiliate-audience-list { grid-template-columns: 1fr; }
  .affiliate-home-actions,
  .footer-affiliate { align-items: flex-start; flex-direction: column; }
  .affiliate-service-card { grid-template-columns: auto 1fr; }
  .affiliate-service-card .arrow-link { grid-column: 2; white-space: normal; }
  .affiliate-dashboard-row { grid-template-columns: auto minmax(0, 1fr); }
  .affiliate-dashboard-row .affiliate-status { grid-column: 2; justify-self: start; }
  .affiliate-dashboard-provision { align-items: flex-start; flex-direction: column; }
}

/* ---------- Datenschutz- und Consent-Dialog ---------- */
.footer-privacy-button { border: 0; padding: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.footer-privacy-button:hover { color: #fff; }
.consent-layer { position: fixed; z-index: 1000; inset: 0; display: grid; align-items: end; padding: 1rem; background: oklch(10% 0.02 280 / .58); }
.consent-layer[hidden] { display: none; }
.consent-dialog { width: min(100%, 56rem); max-height: calc(100vh - 2rem); overflow: auto; margin: 0 auto; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: 0 24px 80px oklch(10% 0.03 280 / .35); }
.consent-dialog h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
.consent-dialog > div > p { margin-top: .65rem; color: var(--muted); }
.consent-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1.25rem; }
.consent-actions .btn { min-height: 3rem; }
.consent-links { display: flex; gap: 1rem; font-size: .9rem; }
.consent-options { display: grid; gap: .7rem; margin-top: 1rem; }
.consent-options label { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.consent-options span { display: grid; gap: .15rem; }
.consent-options small { color: var(--muted); line-height: 1.4; }
.consent-options input { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; accent-color: var(--brand); }
.consent-dialog[data-error="true"]::after { content: "Die Auswahl konnte nicht gespeichert werden. Bitte versuchen Sie es erneut."; display: block; margin-top: 1rem; color: var(--error); }
@media (max-width: 640px) { .consent-actions { grid-template-columns: 1fr; } .consent-layer { padding: .5rem; } .consent-dialog { max-height: calc(100vh - 1rem); } }
