/* ============================================================
   KIkeriKI — Hofrot Design System
   Display: Bricolage Grotesque · Body: Hanken Grotesk
   ============================================================ */

:root {
  /* Surfaces */
  --paper: #F6F6F3;
  --card: #FFFFFF;
  --subtle: #EFEFEA;

  /* Ink */
  --ink: #17181C;
  --ink-muted: #5B5F66;
  --ink-subtle: #8A8E95;

  /* Accent (single) */
  --accent: #D62E1E;
  --accent-hover: #B8261A;
  --accent-tint: #FBEAE7;
  --accent-strong: #A8281B;

  /* Lines / neutrals */
  --line: #E2E2DC;
  --slate: #3C4046;

  /* Radii (one scale) */
  --r-card: 14px;
  --r-btn: 10px;
  --r-input: 8px;

  /* Layout */
  --maxw: 1200px;
  --gutter: 1.5rem;

  /* Motion */
  --t-fast: .18s ease;
  --t-med: .4s cubic-bezier(.16, 1, .3, 1);

  /* Type */
  --font-display: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg, video { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.06; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

p { color: var(--ink-muted); }
strong { color: var(--ink); font-weight: 500; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--ink-muted);
  line-height: 1.55;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
}

.accent { color: var(--accent); }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section--alt { background: var(--card); border-block: 1px solid var(--line); }
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head p { margin-top: .75rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-family: var(--font-body); font-weight: 500; font-size: 1rem;
  line-height: 1; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--r-btn);
  padding: .85rem 1.35rem;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent; color: var(--ink);
  border-color: color-mix(in srgb, var(--ink) 28%, transparent);
  padding: .8rem 1.25rem;
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.link-underline {
  font-weight: 500; color: var(--ink); text-decoration: none;
  border-bottom: 2px solid var(--accent); padding-bottom: 2px;
}
.link-underline:hover { color: var(--accent); }

/* Focus visibility everywhere */
:where(a, button, [tabindex], summary, input, textarea):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  letter-spacing: -0.02em; color: var(--ink); text-decoration: none;
}
.nav__links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav__link {
  font-weight: 500; font-size: .97rem; color: var(--ink-muted);
  text-decoration: none; transition: color var(--t-fast);
}
.nav__link:hover { color: var(--ink); }
.nav__cta { padding: .6rem 1.1rem; font-size: .95rem; }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; color: var(--ink);
}
.nav__toggle svg { width: 26px; height: 26px; margin-inline: auto; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero__inner {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
.hero__title { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.08; margin-bottom: 1.1rem; }
.hero__lead { max-width: 34ch; margin-bottom: 1.9rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }

.hero__media {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  background: var(--subtle); border: 1px solid var(--line);
  border-radius: var(--r-card);
}

/* ---------- Trust strip ---------- */
.trust { background: var(--card); border-bottom: 1px solid var(--line); }
.trust__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding-block: 1rem;
}
.trust__text { font-weight: 500; color: var(--slate); font-size: .98rem; }
.trust__pills { display: flex; gap: .5rem; flex-wrap: wrap; }
.pill {
  font-size: .82rem; font-weight: 500; color: var(--slate);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-input); padding: .4rem .7rem; text-decoration: none;
}
.pill:hover { border-color: var(--slate); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--t-med), transform var(--t-med); }
.reveal.is-visible { opacity: 1; transform: none; }
/* Fail-safe: if JS never runs, content must stay visible (no blank page) */
html.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Footer (base) ---------- */
.site-footer {
  background: var(--ink); color: var(--paper);
  padding-block: 2.5rem; font-size: .95rem;
}
.site-footer a { color: var(--paper); text-decoration: none; opacity: .85; }
.site-footer a:hover { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; aspect-ratio: 16 / 10; }
  .nav__links {
    position: absolute; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.25rem;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity var(--t-fast), transform var(--t-fast);
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__link { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav__links .nav__cta { margin-top: .9rem; justify-content: center; }
  .nav__toggle { display: block; }
}

@media (max-width: 560px) {
  .hero__lead { max-width: none; }
  .btn { width: 100%; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .link-underline { align-self: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Problem ---------- */
.pain-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem; margin-top: .5rem;
}
.pain { border-top: 2px solid var(--accent); border-radius: 0; padding-top: .9rem; font-size: 1rem; }
.pain strong { display: block; color: var(--ink); margin-bottom: .25rem; font-size: 1.05rem; }
.problem__close { margin-top: 2.25rem; font-size: 1.15rem; font-weight: 500; color: var(--ink); max-width: 42rem; }

/* ---------- Tabs (Aufgaben) — contained module ---------- */
.tabs {
  display: grid; grid-template-columns: 230px 1fr; gap: 2rem; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 1.75rem; box-shadow: 0 1px 2px rgba(23, 24, 28, .04), 0 12px 30px rgba(23, 24, 28, .06);
}
.tablist { display: flex; flex-direction: column; gap: .35rem; border-right: 1px solid var(--line); padding-right: 1.5rem; }
.tab {
  font-family: var(--font-body); font-weight: 500; font-size: 1rem; line-height: 1.25;
  text-align: left; width: 100%; padding: .7rem .9rem; border: 0; background: transparent;
  border-radius: var(--r-btn); color: var(--ink-muted); cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.tab:hover { background: var(--subtle); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--accent-tint); color: var(--accent-strong); }
.cap-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.cap { background: var(--subtle); border-radius: var(--r-card); padding: 1.4rem 1.45rem; }
.cap h3 { font-size: 1.1rem; margin-bottom: .45rem; }
.cap p { font-size: .97rem; }
.cap__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--card); color: var(--slate); border: 1px solid var(--line); margin-bottom: .85rem; }
.cap__icon svg { width: 22px; height: 22px; }
.cap__eg { margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-muted); }
.cap__eg-label { font-weight: 500; color: var(--ink); }
[role="tabpanel"] + [role="tabpanel"] { margin-top: 1rem; }
.no-js .tablist { display: none; }
.no-js [role="tabpanel"][hidden] { display: block; }

@media (max-width: 760px) {
  .tabs { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.25rem; }
  .tablist { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: .5rem; border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: .6rem; }
  .tab { white-space: nowrap; width: auto; }
}

/* ---------- Demo ---------- */
.demo__badge {
  position: absolute; top: 14px; left: 14px; font-size: .75rem; font-weight: 500;
  color: var(--accent); background: var(--accent-tint); padding: .35rem .6rem; border-radius: var(--r-input);
}

/* ---------- Beispielrechnung ---------- */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.5rem; }
.calc__controls {
  display: flex; flex-direction: column; gap: 1.5rem; justify-content: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.75rem;
}
.calc__field { display: flex; flex-direction: column; gap: .6rem; }
.calc__field-label { font-weight: 500; color: var(--ink); }
.calc__field-row { display: flex; align-items: center; gap: 1rem; }
.calc__field-row input[type="range"] { flex: 1; accent-color: var(--accent); }
.calc__field-row output { font-weight: 500; min-width: 2.5ch; text-align: right; color: var(--ink); }
.calc__result {
  background: var(--ink); border-radius: var(--r-card); padding: 1.75rem;
  display: flex; flex-direction: column; justify-content: center;
}
.calc__label { color: var(--ink-subtle); font-size: .9rem; margin-bottom: .25rem; }
.calc__value { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.4rem); line-height: 1.05; color: #fff; font-variant-numeric: tabular-nums; }
.calc__sub { margin-top: .45rem; font-size: .95rem; color: rgba(255, 255, 255, .72); }
.calc__note { margin-top: 1rem; font-size: .85rem; color: var(--ink-subtle); }

/* ---------- Ablauf (Schritte) ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.5rem; }
.step h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.step p { font-size: .97rem; }

/* ---------- Ablauf-Zeitleiste ---------- */
.tl-banner {
  display: flex; align-items: center; gap: .55rem; width: fit-content;
  margin: 0 auto 2.4rem; padding: .5rem 1.1rem;
  background: var(--accent-tint); border: 1px solid var(--accent);
  border-radius: 999px; color: var(--accent-strong); font-size: .95rem;
}
.tl-banner strong { font-family: var(--font-display); font-weight: 700; }
.tl-banner svg { flex: none; }

.timeline {
  list-style: none; margin: 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem;
}
.timeline::before,
.timeline::after {
  content: ""; position: absolute; top: 17px; left: 10%; right: 10%; height: 2px;
}
.timeline::before { background: var(--line); }
.timeline::after {
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 1.1s var(--t-med) .15s;
}
.timeline.is-visible::after { transform: scaleX(1); }

.tl__item {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s var(--t-med), transform .5s var(--t-med);
}
.timeline.is-visible .tl__item { opacity: 1; transform: none; }
.timeline.is-visible .tl__item:nth-child(2) { transition-delay: .1s; }
.timeline.is-visible .tl__item:nth-child(3) { transition-delay: .2s; }
.timeline.is-visible .tl__item:nth-child(4) { transition-delay: .3s; }
.timeline.is-visible .tl__item:nth-child(5) { transition-delay: .4s; }

.tl__node {
  width: 36px; height: 36px; border-radius: 50%; position: relative; z-index: 1;
  display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--card); border: 2px solid var(--line); color: var(--ink-subtle);
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  transition: background var(--t-med), border-color var(--t-med), color var(--t-med);
}
.timeline.is-visible .tl__node { background: var(--accent); border-color: var(--accent); color: #fff; }
.tl__item--goal .tl__node { box-shadow: 0 0 0 4px var(--accent-tint); }

.tl__when { display: block; font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: .35rem; }
.tl__title { font-size: 1.05rem; margin: 0 0 .4rem; }
.tl__text { font-size: .92rem; color: var(--ink-muted); line-height: 1.5; }

.tl-after { text-align: center; max-width: 60ch; margin: 2.2rem auto 0; color: var(--ink-muted); }

@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before, .timeline::after { top: 0; bottom: 0; left: 17px; right: auto; width: 2px; height: auto; }
  .timeline::after { transform: scaleY(0); transform-origin: top; }
  .timeline.is-visible::after { transform: scaleY(1); }
  .tl__item { flex-direction: row; align-items: flex-start; text-align: left; gap: 1rem; padding-bottom: 1.7rem; }
  .tl__item:last-child { padding-bottom: 0; }
  .tl__node { margin-bottom: 0; flex: none; }
  .tl__body { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tl__item { opacity: 1; transform: none; transition: none; }
  .timeline::after { transition: none; }
}

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.member__photo {
  width: 96px; height: 96px; border-radius: 50%; background: var(--subtle); color: var(--slate);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 1rem;
}
.member__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 42%;
  transform: scale(1.18); display: block;
}
.member h3 { font-size: 1.15rem; margin-bottom: .15rem; }
.member__role { color: var(--accent); font-weight: 500; font-size: .9rem; margin-bottom: .6rem; }
.member p { font-size: .97rem; }

@media (max-width: 760px) {
  .calc, .steps, .team { grid-template-columns: 1fr; }
}

/* ---------- Preise ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: start; }
.price { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.75rem; display: flex; flex-direction: column; }
.price--featured { border: 2px solid var(--accent); background: var(--card); box-shadow: 0 1px 2px rgba(23, 24, 28, .04), 0 14px 34px rgba(23, 24, 28, .07); }
.price__badge { display: inline-block; align-self: flex-start; font-size: .75rem; font-weight: 500; color: var(--accent); background: var(--accent-tint); padding: .3rem .6rem; border-radius: var(--r-input); margin-bottom: .75rem; }
.price__name { font-size: 1.15rem; margin-bottom: .5rem; }
.price__amount { font-family: var(--font-body); color: var(--ink-muted); font-size: 1rem; margin-bottom: .15rem; }
.price__amount strong { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--ink); }
.price__amount span { font-size: .95rem; }
.price__hint { font-size: .85rem; color: var(--ink-muted); margin-bottom: 1.25rem; }
.price__list { list-style: none; display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.5rem; flex: 1; }
.price__list li { position: relative; padding-left: 1.5rem; font-size: .95rem; color: var(--ink-muted); }
.price__list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.price__cta { width: 100%; }
.price__terms { margin-top: 1.5rem; font-size: .9rem; color: var(--ink-muted); text-align: center; }
.founding { margin-top: 1.25rem; background: var(--accent-tint); border-radius: var(--r-card); padding: 1.25rem 1.5rem; font-size: 1rem; color: var(--ink); }
.founding strong { color: var(--accent); }
.founding__todo { color: var(--ink-subtle); }

/* ---------- FAQ ---------- */
.faq { max-width: 48rem; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; font-weight: 500; font-size: 1.05rem; color: var(--ink); padding: 1.1rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; font-weight: 400; line-height: 1; }
.faq__item[open] summary::after { content: "\2212"; }
.faq__item p { padding: 0 0 1.2rem; color: var(--ink-muted); max-width: 62ch; }

/* ---------- Buchung ---------- */
.booking { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.booking__cal { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 2rem; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; text-align: center; position: relative; }
.booking__cal-label { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.booking__cal-sub { font-size: .9rem; color: var(--ink-muted); max-width: 24rem; }
.booking__cal-sub a { color: var(--accent-strong); font-weight: 500; }
.booking__cal-note { font-size: .85rem; color: var(--ink-muted); margin-top: .3rem; }
.booking__cal-note a { color: var(--accent-strong); font-weight: 500; }
.booking__cal-gate { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.booking__cal-gate[hidden] { display: none; }
.booking__cal-gate .btn { margin-top: .6rem; }
.booking__cal-embed { width: 100%; min-height: 560px; }
.booking__cal-embed iframe { width: 100%; border: 0; }
.booking__cal.is-loaded { padding: .4rem; min-height: 620px; justify-content: flex-start; }

/* ---------- Audit P0-3: one unified card surface ---------- */
.step, .price, .member, .calc__controls, .booking__form, .booking__cal {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
}
.member { padding: 1.5rem; }
.price--featured { background: var(--card); border: 2px solid var(--accent); box-shadow: 0 1px 2px rgba(23, 24, 28, .04), 0 14px 34px rgba(23, 24, 28, .07); }
/* On white (alt) sections, cards switch to a subtle fill so they stay visible */
.section--alt .step, .section--alt .member, .section--alt .calc__controls,
.section--alt .booking__form, .section--alt .booking__cal,
.section--alt .price:not(.price--featured) {
  background: var(--subtle); border-color: transparent;
}

/* ---------- Skip link (a11y) ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: var(--r-btn); font-weight: 500; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Motion: tab panel fade-in (interaction feedback) ---------- */
@keyframes kk-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
html.js [role="tabpanel"]:not([hidden]) { animation: kk-fade .28s cubic-bezier(.16, 1, .3, 1); }
@keyframes kk-pop { from { transform: scale(.985); } to { transform: none; } }
.calc__result.is-updated { animation: kk-pop .32s cubic-bezier(.16, 1, .3, 1); }

/* ---------- Demo-Film: "Was passiert, während du arbeitest" ---------- */
.film { max-width: 1040px; margin: 0 auto; padding-bottom: 1rem; }

/* Szenen-Tabs */
.film__tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.1rem; }
.film__tab {
  display: flex; flex-direction: column; gap: .15rem; text-align: left;
  font: inherit; cursor: pointer; line-height: 1.15;
  padding: .6rem 1rem; border-radius: var(--r-btn);
  border: 1px solid var(--line); background: var(--card); color: var(--ink-muted);
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.film__tab-k { font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-subtle); }
.film__tab-s { font-weight: 600; color: var(--ink); }
.film__tab:hover { border-color: var(--ink-subtle); }
.film__tab[aria-selected="true"] { border-color: var(--accent); background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent); }
.film__tab[aria-selected="true"] .film__tab-k { color: var(--accent-strong); }
.film__tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Bühne */
.film__stage {
  position: relative; display: grid;
  grid-template-columns: 1fr 30px 1.18fr 30px 1fr;
  align-items: stretch; gap: .4rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: 0 1px 2px rgba(23, 24, 28, .04), 0 18px 40px rgba(23, 24, 28, .07);
  padding: 1.4rem;
}
.film__col { display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.film__col-label { font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-subtle); }

/* Flow zwischen den Spalten – erscheint erst beim Übergang, feste Höhe */
.film__flow { align-self: start; margin-top: 5.5rem; position: relative; width: 30px; height: 2px; background: transparent; border-radius: 2px; transition: background .3s var(--t-med); }
.film__flow.is-active { background: var(--line); }
.film__flow-dot { position: absolute; top: 50%; left: 0; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--accent); opacity: 0; }
.film__flow.is-active .film__flow-dot { animation: kk-flow .55s ease forwards; }
@keyframes kk-flow { 0% { left: -2px; opacity: 0; } 15% { opacity: 1; } 100% { left: 28px; opacity: 0; } }

/* Geräte (Mail / Handy) */
.device { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-input); overflow: hidden; }
.device__bar { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .75rem; background: var(--subtle); border-bottom: 1px solid var(--line); }
.device__app { font-weight: 600; font-size: .82rem; color: var(--ink-muted); }
.device__time { font-size: .72rem; color: var(--ink-subtle); }
.device__body { padding: .85rem .9rem; min-height: 124px; }

.mailrow { display: flex; gap: .4rem; font-size: .82rem; color: var(--ink-subtle); margin-bottom: .5rem; }
.compose { color: var(--ink); font-size: .95rem; line-height: 1.5; min-height: 3em; white-space: pre-wrap; }
.compose.is-typing::after { content: "▍"; color: var(--accent); animation: kk-caret .9s steps(1) infinite; }
@keyframes kk-caret { 50% { opacity: 0; } }
.sendbtn { display: inline-block; margin-top: .7rem; padding: .4rem .9rem; border-radius: var(--r-btn); background: var(--accent); color: #fff; font-weight: 600; font-size: .85rem; opacity: 0; transform: translateY(4px); transition: opacity var(--t-fast), transform var(--t-fast); }
.sendbtn.is-ready { opacity: 1; transform: none; }
.sendbtn.is-pressed { animation: kk-press .25s ease; }
@keyframes kk-press { 50% { transform: scale(.92); } }
.sendflash { display: none; margin-top: .7rem; font-weight: 600; font-size: .85rem; color: #2E6B43; }
.sendflash.is-on { display: inline-block; animation: kk-fade .3s var(--t-med); }

/* Maschine: Posteingang + Schritte */
.machine { display: flex; flex-direction: column; gap: .7rem; }
.machine__mail {
  display: grid; grid-template-columns: 1fr auto; gap: .1rem .5rem; align-items: baseline;
  border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: var(--r-input);
  background: var(--paper); padding: .6rem .8rem;
  opacity: 0; transform: translateX(10px);
  transition: opacity .35s var(--t-med), transform .35s var(--t-med), border-color .35s var(--t-med);
}
.machine__mail.is-in { opacity: 1; transform: none; border-left-color: var(--accent); }
.machine__from { font-weight: 600; color: var(--ink); }
.machine__time { font-size: .72rem; color: var(--ink-subtle); text-align: right; }
.machine__subj { color: var(--ink-muted); grid-column: 1 / -1; font-size: .9rem; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .15rem; }
.step { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: .5rem; padding: .42rem .2rem; min-height: 2.1em; opacity: 0; transition: opacity .3s var(--t-med); }
.step.is-on { opacity: 1; }
.step__ico { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); position: relative; }
.step.is-on .step__ico { border-color: var(--accent); background: var(--accent); }
.step.is-on .step__ico::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.step.is-active .step__ico { animation: kk-ring .6s ease; }
@keyframes kk-ring { 0% { box-shadow: 0 0 0 0 rgba(214, 46, 30, .35); } 100% { box-shadow: 0 0 0 7px rgba(214, 46, 30, 0); } }
.step__txt { color: var(--ink); font-size: .92rem; }
.step__val { font-size: .8rem; font-weight: 600; color: var(--ink-muted); background: var(--subtle); border-radius: 999px; padding: .15rem .6rem; white-space: nowrap; opacity: 0; transition: opacity .25s var(--t-med) .1s; }
.step.is-on .step__val { opacity: 1; }
.step--alert.is-on .step__val { color: #fff; background: var(--accent); }
.step--human.is-on .step__val { color: var(--accent-strong); background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent); }

/* Beim Szenenwechsel: alles sofort zurücksetzen (kein leeres Ausfaden) */
.film.is-resetting .step,
.film.is-resetting .step__val,
.film.is-resetting .machine__mail,
.film.is-resetting .device--result,
.film.is-resetting .sendbtn,
.film.is-resetting .sendflash,
.film.is-resetting .film__flow { transition: none !important; }

/* Ergebnis */
.device--result { opacity: 0; transform: translateY(8px); transition: opacity .4s var(--t-med), transform .4s var(--t-med); }
.device--result.is-in { opacity: 1; transform: none; }
.reply__line { font-size: .82rem; color: var(--ink-subtle); margin-bottom: .35rem; }
.reply__k { margin-right: .35rem; }
.reply__msg { color: var(--ink); font-size: .95rem; line-height: 1.5; }
.reply__msg strong { font-weight: 700; }
.reply__status { display: inline-block; margin-top: .7rem; font-weight: 600; font-size: .82rem; color: #2E6B43; }

.push { display: flex; flex-direction: column; gap: .3rem; }
.push__head { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-strong); }
.push__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: kk-pulse 1.4s ease-out infinite; }
@keyframes kk-pulse { 0% { box-shadow: 0 0 0 0 rgba(214, 46, 30, .35); } 100% { box-shadow: 0 0 0 10px rgba(214, 46, 30, 0); } }
.push__title { font-weight: 700; color: var(--ink); font-size: .98rem; }
.push__meta { color: var(--ink-muted); font-size: .88rem; }

/* Bildunterschrift */
.film__caption { margin: 1.1rem auto 0; max-width: 70ch; text-align: center; color: var(--ink-muted); font-size: 1rem; line-height: 1.5; min-height: 3em; }
.film__caption strong { color: var(--ink); font-weight: 700; }

/* Vertrauen */
.film__trust { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.4rem 0 0; justify-content: center; }
.film__trust li { font-size: .8rem; color: var(--ink-muted); background: var(--subtle); border-radius: 999px; padding: .3rem .75rem; }

@media (max-width: 860px) {
  .film__stage { grid-template-columns: 1fr; gap: .9rem; padding: 1.1rem; }
  .film__flow { width: 2px; height: 22px; justify-self: center; align-self: center; margin-top: 0; }
  .film__flow-dot { left: 50%; margin-left: -3.5px; top: 0; margin-top: 0; }
  .film__flow.is-active .film__flow-dot { animation: kk-flow-v .55s ease forwards; }
  .device__body { min-height: 0; }
}
@keyframes kk-flow-v { 0% { top: -2px; opacity: 0; } 15% { opacity: 1; } 100% { top: 20px; opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .machine__mail, .device--result, .step__val, .sendbtn { opacity: 1; transform: none; }
  .step { opacity: 1; }
  .film__flow-dot, .push__dot { animation: none !important; }
}

/* ---------- Mobile: hint that the tab row scrolls ---------- */
@media (max-width: 760px) {
  .tablist { -webkit-mask-image: linear-gradient(to right, #000 86%, transparent); mask-image: linear-gradient(to right, #000 86%, transparent); }
}
.booking__form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.75rem; }
.booking__form-intro { font-weight: 500; color: var(--ink); margin-bottom: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { font-size: .9rem; font-weight: 500; color: var(--ink); }
.field input, .field textarea { font-family: var(--font-body); font-size: 1rem; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: var(--r-input); background: var(--card); color: var(--ink); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.booking__form .btn { width: 100%; }
.booking__status { margin-top: .85rem; font-size: .9rem; color: var(--ink-muted); min-height: 1.2em; }
.booking__status.is-error { color: var(--accent); }
.booking__status.is-ok { color: #2E6B43; }

/* ---------- Footer ---------- */
.footer__inner { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 1.25rem; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.footer__brand { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--paper); }
.footer__tag { color: rgba(248, 248, 245, .7); font-size: .95rem; margin-top: .25rem; }
.footer__links { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; }
.footer__copy { padding-top: 1rem; color: rgba(248, 248, 245, .6); font-size: .85rem; }

@media (max-width: 760px) {
  .pricing, .booking { grid-template-columns: 1fr; }
}

/* ---------- Legal pages ---------- */
.legal-page { padding-block: clamp(3rem, 6vw, 5rem); }
.legal-page .container { max-width: 820px; }
.legal-page h1 { margin-bottom: 1rem; }
.legal-page h2 { font-size: 1.4rem; margin: 2rem 0 .75rem; }
.legal-page h3 { margin: 1.5rem 0 .5rem; }
.legal-page p, .legal-page li { color: var(--ink-muted); }
.legal-page a { color: var(--accent); }
.legal-lead { font-size: 1.1rem; color: var(--ink-muted); margin-bottom: 1.5rem; }

/* a11y contrast: stronger red for small accent text on light surfaces */
.eyebrow, .demo__badge, .price__badge, .member__role, .founding strong, .booking__status.is-error { color: var(--accent-strong); }
.site-footer .accent { color: #F2897C; }

/* Inline section CTA (repeat at high-intent moments) */
.section-cta { text-align: center; margin-top: 2.5rem; }
.hero__eyebrow { margin-bottom: .7rem; }
.booking__consent { font-size: .8rem; color: var(--ink-muted); margin: .25rem 0 1rem; }
.booking__consent a { color: var(--accent-strong); }
