/* ZMVZ Schöner Mund, Undenheim – ZFA (m/w/d)
   Direction: "Rot tragen nur die Menschen". Bright page, red only on the people,
   the buttons and small ticks. Round shapes, the smile arc as the one motif. */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-stretch: 100%; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #ffffff;
  --blush: #fde9e7;
  --soft: #f5f2f2;
  --ink: #1b1f24;
  --muted: #5c636b;
  --line: #e4dfdf;
  --red: #c4121e;
  --red-deep: #a00d18;

  --step-small: 0.875rem;
  --step-body: 1.0625rem;
  --step-lead: 1.25rem;
  --step-head: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  --step-display: clamp(2.375rem, 1.4rem + 4.6vw, 4.25rem);

  --pad: 20px;
  --r: 20px;
  --r-s: 14px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-sheet: cubic-bezier(0.32, 0.72, 0, 1);
  --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --tick-red: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23c4121e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 5.5l9 9m0-9l-9 9' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--step-body)/1.5 var(--text); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: clip; }
h1, h2, h3, p, ul, ol, figure, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: var(--step-display); }
h2 { font-size: var(--step-head); }
h3 { font: 600 var(--step-body)/1.25 var(--text); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.sr { position: absolute; width: 2px; height: 2px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: 12px; z-index: 50; padding: 12px 16px; background: var(--ink); color: var(--paper); border-radius: 999px; transform: translateY(-200%); }
.skip:focus { transform: none; }
.wrap { width: min(100% - 2 * var(--pad), 1080px); margin-inline: auto; }
.wrap-narrow { max-width: 620px; }
section { padding-block: 64px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--red); color: #fff; font-weight: 600; font-size: var(--step-body); text-decoration: none; cursor: pointer; transition: transform 140ms var(--ease), background-color 160ms ease; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.btn:active { transform: scale(0.97); }
.btn-quiet { background: var(--soft); color: var(--ink); }
.btn-text { min-height: 48px; padding: 0 8px; border: 0; background: none; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--red-deep); }
  .btn-quiet:hover { background: var(--line); }
}

/* entrances */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 320ms var(--ease) var(--d, 0ms), transform 320ms var(--ease) var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- first screen ---------- */
.hero { position: relative; padding: 0 var(--pad) 36px; overflow: clip; }
.hero-arc { position: absolute; z-index: -1; top: -210px; right: -170px; width: 460px; aspect-ratio: 1; border-radius: 50%; background: var(--blush); }
.top { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { width: 132px; mix-blend-mode: multiply; }
.top-place { padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--paper); font-size: var(--step-small); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.top-place::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.hero-grid { display: grid; gap: 16px; max-width: 1080px; margin-inline: auto; padding-top: 10px; }
.hero h1 span { position: relative; display: inline-block; white-space: nowrap; }
.smile { position: absolute; left: 0; right: 0; bottom: -0.2em; width: 100%; height: 0.24em; overflow: visible; }
.smile path { fill: none; stroke: var(--red); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.js .smile { clip-path: inset(-50% 100% -50% 0); transition: clip-path 520ms var(--ease) 260ms; }
.js .reveal.is-in .smile { clip-path: inset(-50% -2% -50% 0); }
.hero-lead { margin-top: 16px; color: var(--muted); max-width: 34ch; line-height: 1.4; }

.faces-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.face { display: block; aspect-ratio: 4 / 5; border-radius: var(--r-s); overflow: hidden; background: #fff; }
.face img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.86) contrast(0.97); }
.faces figcaption { margin-top: 8px; font-size: var(--step-small); color: var(--muted); }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.facts li { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 6px 12px; border-radius: var(--r-s); background: var(--soft); font-weight: 600; font-size: 0.9375rem; line-height: 1.2; }
.facts li::before, .checks li::before, .vs-yes::before { content: ""; flex: none; width: 18px; height: 18px; background: var(--red); -webkit-mask: var(--tick) center / contain no-repeat; mask: var(--tick) center / contain no-repeat; }

.start-q { font-weight: 600; margin-bottom: 10px; }
.start-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.start-note { margin-top: 10px; text-align: center; font-size: var(--step-small); color: var(--muted); }

/* ---------- comparison ---------- */
.vergleich { background: var(--soft); border-radius: 32px 32px 0 0; }
.vs { display: grid; gap: 10px; margin-top: 28px; }
.vs li { padding: 16px 18px; border-radius: var(--r); background: var(--paper); }
.vs p { display: flex; gap: 10px; align-items: flex-start; }
.vs-no { color: var(--muted); font-size: 0.9375rem; }
.vs-no::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; background: currentColor; opacity: 0.6; -webkit-mask: var(--cross) center / contain no-repeat; mask: var(--cross) center / contain no-repeat; }
.vs-yes { margin-top: 8px; font-weight: 600; font-size: 1.125rem; line-height: 1.3; }
.vs-yes::before { margin-top: 4px; }

/* ---------- package ---------- */
.paket { background: var(--soft); padding-top: 0; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.tile { padding: 18px; border-radius: var(--r); background: var(--blush); display: flex; flex-direction: column; gap: 6px; }
.tile-wide { grid-column: 1 / -1; background: var(--paper); }
.tile p { color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }
.tile .tile-fig { font: 700 clamp(1.75rem, 8.4vw, 3rem)/1 var(--display); letter-spacing: -0.03em; color: var(--red); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- team ---------- */
.team-intro { margin-top: 16px; color: var(--muted); max-width: 52ch; }
.cards { display: flex; gap: 12px; margin-top: 28px; padding: 4px var(--pad) 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--pad); overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cards::-webkit-scrollbar { display: none; }
.card { flex: 0 0 78%; max-width: 320px; scroll-snap-align: start; padding: 18px; border-radius: var(--r); background: var(--soft); }
.card .face { width: 96px; margin-bottom: 14px; }
.card h3 { font: 700 1.25rem/1.15 var(--display); letter-spacing: -0.02em; }
.card-who { margin-top: 2px; color: var(--red); font-weight: 600; font-size: var(--step-small); }
.card p:last-child { margin-top: 10px; color: var(--muted); font-size: 0.9375rem; }
.cards-hint { margin-top: 10px; padding-inline: var(--pad); font-size: var(--step-small); color: var(--muted); }

/* ---------- fit and steps ---------- */
.ablauf { background: var(--blush); border-radius: 32px; margin-inline: 8px; }
.ablauf-grid { display: grid; gap: 48px; }
.checks { display: grid; gap: 12px; margin-top: 24px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { margin-top: 4px; }
.steps { counter-reset: s; display: grid; gap: 20px; margin-top: 24px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font: 700 1.125rem/1 var(--display); }
.steps p { color: var(--muted); font-size: 0.9375rem; }

/* ---------- questions ---------- */
.fragen h2 { margin-bottom: 20px; }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 12px 0; font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-right: 4px; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: translateY(-3px) rotate(45deg); transition: transform 200ms var(--ease); }
details[open] summary::after { transform: translateY(3px) rotate(225deg); }
details p { padding: 0 0 18px; color: var(--muted); max-width: 56ch; }

/* ---------- form ---------- */
.schluss { background: var(--soft); border-radius: 32px 32px 0 0; padding-bottom: 80px; }
.schluss-job { margin-top: 14px; font-weight: 600; color: var(--red); }
.schluss-lead { margin-top: 8px; color: var(--muted); }
.panel { margin-top: 28px; padding: 22px 18px 18px; border-radius: 24px; background: var(--paper); }
.progress { height: 6px; border-radius: 999px; background: var(--soft); overflow: hidden; margin-bottom: 22px; }
.progress span { display: block; height: 100%; border-radius: 999px; background: var(--red); transform-origin: left; transform: scaleX(0.2); transition: transform 300ms var(--ease); }
.step { display: none; }
.step.is-on { display: grid; gap: 10px; animation: step-in 240ms var(--ease) both; }
@keyframes step-in { from { opacity: 0; transform: translateX(24px); } }
legend { font: 700 1.375rem/1.15 var(--display); letter-spacing: -0.02em; margin-bottom: 16px; text-wrap: balance; }
.opt { display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 2px; height: 2px; }
.opt span { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 10px 18px; border-radius: var(--r-s); background: var(--soft); font-weight: 600; transition: transform 140ms var(--ease), background-color 160ms ease, color 160ms ease; user-select: none; -webkit-user-select: none; }
.opt span::after { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c9c2c2; transition: border-color 160ms ease, background-color 160ms ease; }
.opt:active span { transform: scale(0.98); }
.opt input:checked + span { background: var(--red); color: #fff; }
.opt input:checked + span::after { border-color: #fff; background: #fff var(--tick-red) center / 14px no-repeat; }
.opt input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.more, .field { display: grid; gap: 6px; font-weight: 600; font-size: 0.9375rem; }
.more { margin-top: 8px; }
.more[hidden] { display: none; }
input[type="text"], input[type="tel"], input[type="email"], textarea { width: 100%; min-height: 54px; padding: 14px 16px; border: 2px solid transparent; border-radius: var(--r-s); background: var(--soft); font-size: 1.0625rem; font-weight: 400; transition: border-color 160ms ease; }
textarea { resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 0; height: 0; overflow: hidden; }
.agree { display: flex; gap: 12px; align-items: flex-start; margin-top: 6px; font-size: var(--step-small); color: var(--muted); cursor: pointer; }
.agree input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--red); }
.form-error { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-s); background: var(--blush); color: var(--red-deep); font-weight: 600; font-size: 0.9375rem; }
.form-nav { display: flex; align-items: center; gap: 8px; margin-top: 20px; }
.form-nav .btn { flex: 1; }
.form-nav [hidden] { display: none; }
.danke h3 { font: 700 1.5rem/1.15 var(--display); letter-spacing: -0.02em; margin-bottom: 10px; }
.danke p { color: var(--muted); }
.danke[hidden] { display: none; }

/* ---------- footer ---------- */
.foot { background: var(--soft); padding: 8px 0 120px; font-size: var(--step-small); color: var(--muted); }
.foot .wrap { border-top: 1px solid var(--line); padding-top: 24px; }
.foot nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; margin-top: 8px; }
.foot nav a { padding: 12px 0; }
.foot .btn-text { padding: 0; }

/* ---------- phone dock ---------- */
.dock { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60px; padding: 8px 20px; border-radius: 999px; background: var(--red); color: #fff; text-decoration: none; line-height: 1.2; transform: translateY(calc(100% + 32px)); transition: transform 240ms var(--ease-sheet); user-select: none; -webkit-user-select: none; }
.dock span { font-size: 0.75rem; opacity: 0.9; }
.dock strong { font-weight: 600; }
.dock.is-on { transform: none; }
.dock.is-on:active { transform: scale(0.97); }
.dock[hidden] { display: none; }

/* ---------- cookie choice ---------- */
.consent { position: fixed; z-index: 40; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); padding: 12px 14px; border-radius: var(--r); background: var(--ink); color: #fff; font-size: 0.8125rem; line-height: 1.35; }
.consent[hidden] { display: none; }
.consent-btns { display: flex; gap: 8px; margin-top: 10px; }
.consent .btn { flex: 1; min-height: 44px; padding: 0 12px; font-size: 0.9375rem; }
.consent .btn-quiet { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* ---------- wider screens ---------- */
@media (min-width: 900px) {
  :root { --pad: 40px; }
  section { padding-block: 104px; }
  .hero { padding-bottom: 88px; }
  .top { max-width: 1080px; margin-inline: auto; height: 84px; }
  .logo { width: 170px; }
  .hero-arc { top: -260px; right: -120px; width: 760px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; column-gap: 72px; row-gap: 28px; padding-top: 48px; align-items: start; }
  .hero-text, .facts, .start { grid-column: 1; }
  .faces { grid-column: 2; grid-row: 1 / span 3; }
  .faces-row { grid-template-columns: 1fr 1fr; gap: 14px; }
  .faces-row .face:nth-child(even) { transform: translateY(28px); }
  .faces figcaption { margin-top: 44px; }
  .face { border-radius: 24px; }
  .hero-lead { font-size: var(--step-lead); }
  .facts { max-width: 520px; }
  .start { max-width: 520px; }
  .start-note { text-align: left; }
  .vergleich, .schluss { border-radius: 56px 56px 0 0; }
  .vs { grid-template-columns: 1fr 1fr; gap: 14px; }
  .vs li { padding: 24px; }
  .paket { padding-top: 0; }
  .tiles { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .tile { padding: 24px; }
  .tile-wide { grid-column: span 2; }
  .tile .tile-fig { font-size: 3rem; }
  .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; overflow: visible; width: min(100% - 2 * var(--pad), 1080px); margin-inline: auto; padding: 0; }
  .card { max-width: none; padding: 24px; }
  .cards-hint { display: none; }
  .ablauf { border-radius: 56px; margin-inline: 24px; }
  .ablauf-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .panel { padding: 36px; }
  .foot { padding-bottom: 48px; }
  .dock { display: none; }
  .consent { left: auto; top: auto; right: 24px; bottom: 24px; width: 380px; padding: 18px; font-size: var(--step-small); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .smile { opacity: 1; transform: none; clip-path: none; transition: none; }
  .step.is-on { animation: none; }
  .btn, .dock, .opt span, .progress span { transition: none; }
}
