/* Primär24 campaign page. Mobile first; one face (Atkinson Hyperlegible Next), brand teal fields,
   marigold actions, clock-arc graphics taken from the logo. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-next-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal: #258189;        /* brand teal from primaer24.de */
  --teal-ink: #1c6b72;    /* teal for text and lines on light grounds (5.9:1 on white) */
  --deep: #0f3a3d;        /* deep teal: process band, footer, body text */
  --sage: #72a993;        /* brand secondary */
  --mist: #e6f0ee;        /* light ground */
  --white: #ffffff;
  --marigold: #f2b544;    /* actions; ink text on it */
  --marigold-hover: #f6c76a;
  --on-teal-soft: #d6ecea; /* secondary text on --deep only (10:1); on --teal it is 3.7:1, so teal fields use white (4.6:1) */
  --muted: #46605f;       /* secondary text on white (6.6:1) */
  --line: #8aa7a4;        /* input borders (3.1:1 on white, the non-text minimum) */
  --warm: #fdf3dd;        /* marigold tint: warnings and draft notes */
  --error: #a32b1f;
  --focus: #0f3a3d;        /* focus ring on light grounds (12:1 on white); white on teal and deep grounds */

  --font: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
  --step-0: 1.125rem;
  --step-1: clamp(1.25rem, 1.15rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
  --step-3: clamp(2.2rem, 1.4rem + 3.6vw, 4.25rem);

  --gutter: clamp(1.25rem, 0.8rem + 2.4vw, 3rem);
  --section: clamp(4rem, 3rem + 5vw, 8rem);
  --radius: 14px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--deep);
  background: var(--white);
  font-kerning: normal;
  padding-bottom: 4.5rem; /* room for the mobile call bar */
}

img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: var(--teal-ink); text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
a:hover { text-decoration-thickness: 0.14em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.top, .hero, .process, .enquiry, .foot, .sheet-page { --focus: var(--white); }
.form-panel, .sheet-card { --focus: var(--deep); }

h1, h2, h3 { line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: var(--step-3); font-weight: 800; line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: var(--step-2); font-weight: 750; }
h3 { font-size: var(--step-1); font-weight: 700; }
/* No automatic hyphenation: in German it splits words that fit ("Be-treuungskräfte"); break-word is the safety net. */
p { margin: 0; text-wrap: pretty; hyphens: manual; overflow-wrap: break-word; }

.wrap { width: min(100% - 2 * var(--gutter), 74rem); margin-inline: auto; }
.nb { hyphens: none; white-space: nowrap; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--marigold); color: var(--deep); padding: 0.7rem 1rem; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 1rem; }

.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; flex: none; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3.5rem; padding: 0.85rem 1.6rem;
  font: 700 1.125rem/1.2 var(--font); text-decoration: none; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.btn-primary { background: var(--marigold); color: var(--deep); box-shadow: 0 6px 18px -8px rgb(15 58 61 / 0.55); }
.btn-primary:hover { background: var(--marigold-hover); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgb(15 58 61 / 0.6); }
.btn-primary:active { transform: translateY(0); }

/* ---- header ---- */
.top { background: var(--teal); color: var(--white); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.brand img { width: clamp(9rem, 7rem + 8vw, 12.5rem); }
.top-call { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--white); font-weight: 700; text-decoration: none; white-space: nowrap; padding: 0.5rem 0; }
.top-call:hover { text-decoration: underline; }
.top-call-label { display: none; font-weight: 400; color: var(--white); margin-right: 0.35rem; }

/* ---- hero ---- */
.hero { background: var(--teal); color: var(--white); padding-block: clamp(1.5rem, 1rem + 3vw, 4rem) clamp(3rem, 2rem + 5vw, 6.5rem); overflow: hidden; }
.hero-grid { display: grid; gap: 1.5rem; align-items: center; }
.hero h1 { max-width: 14ch; }
.lead { margin-top: 1.1rem; font-size: var(--step-1); line-height: 1.5; max-width: 34ch; }
.actions { display: grid; justify-items: start; gap: 0.9rem; margin-top: 1.75rem; }
.hero-note { font-size: 1rem; color: var(--white); max-width: 34ch; }
.hero-note a { color: var(--white); font-weight: 700; }

/* the clock dial: a circular photo inside the logo's ticks and arrowed arc */
.dial { position: relative; margin: 0; aspect-ratio: 1; }
.dial-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dial-photo { position: absolute; inset: 13%; width: 74%; height: 74%; object-fit: cover; border-radius: 50%; background: var(--deep); }
.ticks line { stroke: var(--white); stroke-width: 5; stroke-linecap: round; opacity: 0.8; }
.sweep { fill: none; stroke: var(--marigold); stroke-width: 7; stroke-linecap: round; }
.arrow-fill { fill: var(--marigold); }
/* phones: the dial comes first and bleeds off the right edge, so the first screen shows a face, not a text slab */
.hero-dial { order: -1; width: min(54vw, 13rem); justify-self: end; margin: -0.5rem calc(-0.3 * min(54vw, 13rem)) -0.5rem 0; }
.hero-dial .dial-photo { object-position: 46% 50%; }

/* ---- duties ---- */
.tasks { padding-block: var(--section); background: var(--white); }
.tasks-grid { display: grid; gap: 2.5rem; }
.tasks-intro p { margin-top: 1rem; max-width: 60ch; }
.duties { margin: 0; display: grid; gap: 1.75rem; }
.duties > div { padding-top: 1.1rem; border-top: 2px solid var(--sage); }
.duties dt { font-size: var(--step-1); font-weight: 750; color: var(--teal-ink); }
.duties dd { margin: 0.4rem 0 0; max-width: 46ch; }
.tasks-photo { margin: 0; border-radius: var(--radius); overflow: hidden; }
.tasks-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 60%; }
.not-included { background: var(--mist); border-radius: var(--radius); padding: 1.5rem 1.6rem; }
.not-included h3 { font-size: 1.2rem; }
.not-included p { margin-top: 0.5rem; }

/* ---- process: the logo arc as a timeline ---- */
.process { background: var(--deep); color: var(--white); padding-block: var(--section); }
.process-arc { display: none; }
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 2rem; position: relative; }
.steps li { position: relative; padding-left: 3.75rem; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 1.2rem; top: 2.9rem; bottom: -1.9rem; width: 2px;
  background: linear-gradient(var(--sage), var(--sage)) no-repeat; opacity: 0.75;
}
.steps h3 { display: flex; align-items: center; gap: 0.9rem; margin-left: -3.75rem; }
.step-n {
  display: grid; place-items: center; width: 2.45rem; height: 2.45rem; flex: none; border-radius: 50%;
  background: var(--marigold); color: var(--deep); font-size: 1.1rem; font-weight: 800;
}
.steps p { margin-top: 0.5rem; color: var(--on-teal-soft); max-width: 40ch; }
.process-path { fill: none; stroke: var(--sage); stroke-width: 3; stroke-linecap: round; }
.stop { fill: var(--marigold); stroke: var(--deep); stroke-width: 5; }

/* ---- team dial ---- */
.team { background: var(--mist); padding-block: var(--section); }
.team-dial { display: grid; gap: 2rem; margin-top: 2.5rem; }
.team-center { width: min(78%, 22rem); justify-self: center; }
.team-center .sweep { stroke: var(--teal); stroke-width: 5; stroke-dasharray: 92 8; }
.symbol { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); padding: 0.1rem 0.55rem; border-radius: 999px; background: rgb(255 255 255 / 0.9); color: var(--deep); font-size: 0.8rem; font-weight: 600; }
.team-center .dial-photo { inset: 9%; width: 82%; height: 82%; object-position: 50% 40%; }
.role h3 { color: var(--teal-ink); }
.role p { margin-top: 0.45rem; }

/* ---- FAQ ---- */
.faq { padding-block: var(--section); }
.faq-grid { display: grid; gap: 2rem; }
.faq-list { border-top: 2px solid var(--deep); }
.faq details { border-bottom: 1px solid rgb(15 58 61 / 0.25); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.2rem 0; font-size: var(--step-1); font-weight: 700; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--mist) center / 0.8rem no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%230f3a3d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--teal-ink); }
.faq details p { padding: 0 0 1.4rem; max-width: 62ch; }

/* ---- enquiry ---- */
.enquiry { background: var(--teal); color: var(--white); padding-block: var(--section); }
.enquiry-grid { display: grid; gap: 2.5rem; }
.enquiry-side p { margin-top: 1rem; max-width: 40ch; }
.side-call { font-size: 1.05rem; color: var(--white); }
.side-call a { color: var(--white); font-size: var(--step-2); font-weight: 800; text-decoration: none; letter-spacing: -0.01em; }
.side-call a:hover { text-decoration: underline; }
.side-photo { display: none; margin: 2rem 0 0; }
.side-photo img { width: 13rem; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid var(--marigold); }

.form-panel { background: var(--white); color: var(--deep); border-radius: calc(var(--radius) + 4px); padding: clamp(1.4rem, 1rem + 2vw, 2.5rem); box-shadow: 0 24px 60px -30px rgb(15 58 61 / 0.6); }
.field { display: grid; gap: 0.35rem; margin-bottom: 1.2rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
.fields > * { grid-column: 1 / -1; }
label { font-weight: 700; }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; min-height: 3.25rem; padding: 0.7rem 0.9rem;
  font: 400 1.125rem/1.4 var(--font); color: var(--deep);
  background: var(--white); border: 2px solid var(--line); border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { min-height: 7.5rem; resize: vertical; }
select { appearance: none; padding-right: 2.6rem; background: var(--white) right 0.9rem center / 0.9rem no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230f3a3d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
input:hover, select:hover, textarea:hover { border-color: var(--teal-ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--teal-ink); box-shadow: 0 0 0 4px rgb(37 129 137 / 0.28); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.hint { font-size: 1rem; color: var(--muted); }
.hint-warn { color: var(--deep); background: var(--warm); border-radius: 8px; padding: 0.6rem 0.8rem; }
.error { color: var(--error); font-size: 1rem; font-weight: 600; }
.consent { grid-template-columns: auto 1fr; align-items: start; column-gap: 0.85rem; margin-top: 0.5rem; }
.consent input { width: 1.6rem; height: 1.6rem; margin: 0.15rem 0 0; accent-color: var(--teal); }
.consent label { font-weight: 400; font-size: 1rem; line-height: 1.5; }
.consent .error { grid-column: 1 / -1; }
/* ---- enquiry funnel (markup from the Worker, steps from funnel/funnel.js) ---- */
.funnel { scroll-margin-top: 1.5rem; }
.funnel-progress { margin-bottom: 1.6rem; }
.funnel-count { font-size: 1rem; font-weight: 600; color: var(--muted); }
.funnel-bar { height: 6px; margin-top: 0.5rem; background: var(--mist); border-radius: 999px; overflow: hidden; }
.funnel-bar span { display: block; height: 100%; background: var(--teal); transform: scaleX(0.2); transform-origin: left; transition: transform 0.45s var(--ease-out); }
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.funnel:not(.is-stepped) .step + .step { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgb(15 58 61 / 0.2); }
.step-q { padding: 0; margin-bottom: 1.25rem; font-size: var(--step-2); font-weight: 750; line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; }
.step-q:focus { outline: none; }
.step-hint { margin: -0.6rem 0 1.25rem; }
.options { display: grid; gap: 0.65rem; }
.option {
  display: flex; align-items: center; gap: 0.85rem; min-height: 3.5rem; padding: 0.75rem 1.1rem;
  border: 2px solid var(--line); border-radius: 12px; font-weight: 600; line-height: 1.3; cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.option:hover { border-color: var(--teal-ink); }
.option:has(input:checked) { border-color: var(--teal); background: var(--mist); }
.option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (forced-colors: active) { .option:has(input:checked) { outline: 3px solid Highlight; outline-offset: -3px; } }
.option input {
  appearance: none; display: grid; place-items: center; flex: none; width: 1.35rem; height: 1.35rem; margin: 0;
  border: 2px solid var(--line); border-radius: 50%; background: var(--white);
}
.option input::before { content: ""; width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--teal); transform: scale(0); transition: transform 0.15s var(--ease-out); }
.option input:checked { border-color: var(--teal); }
.option input:checked::before { transform: scale(1); }
.option input:focus-visible { outline: none; }
.step[aria-invalid="true"] .option { border-color: var(--error); }
.field-choice { border: 0; padding: 0; min-width: 0; }
.field-choice legend { padding: 0; margin-bottom: 0.45rem; font-weight: 700; }
.options-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Side-by-side answers are tiles: no radio circle (the input stays for keyboard and screen readers), the
   chosen tile turns teal. Keeps two columns inside a phone-width card. */
.options-2 .option, .options-compact .option { position: relative; justify-content: center; text-align: center; }
.options-2 .option input, .options-compact .option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.options-2 .option:has(input:checked), .options-compact .option:has(input:checked) { box-shadow: inset 0 0 0 2px var(--teal); font-weight: 750; }
/* the chosen tile also gets a drawn check, so the choice does not rest on colour alone */
.options-2 .option:has(input:checked)::after, .options-compact .option:has(input:checked)::after {
  content: ""; position: absolute; top: 0.35rem; right: 0.4rem; width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--teal) center / 0.65rem no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5 5 9l5-6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.options-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.options-compact .option { min-height: 3rem; padding: 0.5rem 0.6rem; font-weight: 500; }
.more { margin-bottom: 1.2rem; }
.more summary { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0; font-weight: 700; color: var(--teal-ink); cursor: pointer; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before {
  content: ""; flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--mist) center / 0.75rem no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%230f3a3d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  transition: transform 0.3s var(--ease-out);
}
.more[open] summary::before { transform: rotate(45deg); }
.more[open] summary { margin-bottom: 0.6rem; }
.step-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; margin-top: 1.6rem; }
.step-nav-end { display: flex; align-items: center; gap: 1.25rem; }
.step-nav-last { margin-top: 0.75rem; }
.link-btn {
  min-height: 2.75rem; padding: 0.4rem 0; border: 0; background: none; cursor: pointer;
  font: 600 1.05rem/1.2 var(--font); color: var(--teal-ink); text-decoration: underline; text-underline-offset: 0.18em;
}
.btn-quiet { min-height: 3rem; padding: 0.6rem 1.5rem; background: var(--white); color: var(--deep); border-color: var(--deep); }
.btn-quiet:hover { background: var(--mist); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn-submit { width: 100%; margin-top: 0.5rem; }
.btn-submit[disabled] { opacity: 0.7; cursor: progress; }
.form-status { margin-top: 1rem; font-weight: 600; }
.form-status.is-error { color: var(--error); }
.form-done { text-align: center; padding: 1rem 0; }
.form-done:focus { outline: none; }
.form-done h3 { margin-top: 1rem; font-size: var(--step-2); }
.form-done p { margin: 0.8rem auto 0; max-width: 34ch; }
.done-mark { width: 4.5rem; height: 4.5rem; margin-inline: auto; fill: none; stroke: var(--teal); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }

/* ---- footer + call bar ---- */
.foot { background: var(--deep); color: var(--on-teal-soft); padding-block: 3rem 2.5rem; font-size: 1rem; }
.foot-grid { display: grid; gap: 1.5rem; }
.foot a { color: var(--white); }
.foot-logo { width: 9rem; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.foot-note { font-size: 0.95rem; }

.callbar {
  position: fixed; inset: auto 0 0 0; z-index: 5; display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 0.6rem; padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / 0.97); box-shadow: 0 -6px 24px -10px rgb(15 58 61 / 0.45);
  transition: transform 0.35s var(--ease-out), visibility 0s;
}
/* app.js tucks the bar away while the hero button or the form itself is on screen */
.callbar.is-tucked { transform: translateY(110%); visibility: hidden; transition: transform 0.35s var(--ease-out), visibility 0s 0.35s; }
.callbar a { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 3.1rem; border-radius: 999px; font-weight: 700; text-decoration: none; }
.callbar-call { color: var(--deep); border: 2px solid var(--deep); }
.callbar-form { background: var(--marigold); color: var(--deep); }

/* ---- wider screens ---- */
@media (min-width: 40rem) {
  .hero-grid { grid-template-columns: 1fr minmax(13rem, 0.8fr); gap: 2rem; }
  .hero h1 { max-width: none; }
  .hero-dial { order: 0; width: 100%; max-width: 32rem; justify-self: center; margin: 0; }
  .fields > .half { grid-column: auto; }
  .top-call-label { display: inline; }
  .duties { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .options:not(.options-compact) { grid-template-columns: 1fr 1fr; }
  .options-compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .side-photo { display: block; }
}

@media (min-width: 60rem) {
  body { padding-bottom: 0; }
  .callbar { display: none; }
  .hero-grid { grid-template-columns: 1.3fr 0.7fr; gap: 3rem; }
  .hero h1 { font-size: clamp(3rem, 1rem + 3.4vw, 4rem); }

  .tasks-grid { grid-template-columns: repeat(12, 1fr); column-gap: 2rem; row-gap: 3rem; }
  .tasks-intro { grid-column: 1 / 7; }
  .duties { grid-column: 1 / -1; }
  .tasks-photo { grid-column: 1 / 9; }
  .not-included { grid-column: 9 / -1; align-self: end; }

  .process-arc { display: block; width: 100%; height: auto; margin-top: 2.5rem; overflow: visible; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 0.75rem; }
  .steps li { padding-left: 0; }
  .steps li:not(:last-child)::after { display: none; }
  .steps h3 { margin-left: 0; }
  .steps li:nth-child(2), .steps li:nth-child(3) { margin-top: -3.6rem; }

  .team-dial {
    grid-template-columns: 1fr minmax(18rem, 24rem) 1fr; grid-template-areas: ". r12 ." "r9 c r3" ". r6 .";
    gap: 1.5rem 3rem; align-items: center;
  }
  .team-center { grid-area: c; width: 100%; }
  .role-12 { grid-area: r12; text-align: center; }
  .role-3 { grid-area: r3; }
  .role-6 { grid-area: r6; text-align: center; }
  .role-9 { grid-area: r9; text-align: right; }
  .role-12 p, .role-6 p { margin-inline: auto; max-width: 46ch; }
  .role-9 p { margin-left: auto; max-width: 34ch; }
  .role-3 p { max-width: 34ch; }

  .faq-grid { grid-template-columns: 1fr 2fr; gap: 4rem; }
  .enquiry-grid { grid-template-columns: 0.85fr 1.15fr; gap: 4rem; align-items: start; }
  .foot-grid { grid-template-columns: auto 1fr auto; align-items: start; gap: 2rem 3rem; }
  .foot-note { grid-column: 1 / -1; }
}

/* ---- the one authored motion: the arcs draw clockwise when they come into view ---- */
@media (prefers-reduced-motion: no-preference) {
  .js .sweep, .js .process-path { stroke-dasharray: 100 100; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease-out); }
  .js .team-center .sweep { stroke-dasharray: 92 8; }
  .js .arcs-pending .sweep, .js .arcs-pending .process-path { stroke-dashoffset: 100; }
  .js .arcs-pending .team-center .sweep { stroke-dashoffset: 92; }
  .js .stop { transition: transform 0.5s var(--ease-out), opacity 0.5s; transform-box: fill-box; transform-origin: center; }
  .js .arcs-pending .stop { transform: scale(0.2); opacity: 0; }
  .js .stop:nth-of-type(2) { transition-delay: 0.35s; }
  .js .stop:nth-of-type(3) { transition-delay: 0.7s; }
  .js .stop:nth-of-type(4) { transition-delay: 1.05s; }
  .js .arrow-fill { transition: opacity 0.3s 1.25s; }
  .js .arcs-pending .arrow-fill { opacity: 0; transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .callbar, .funnel-bar span, .option, .option input::before { transition: none; }
}

/* ---- the enquiry page (/anfrage): a sheet over the site, one question per screen ---- */
.sheet-page { display: flex; flex-direction: column; min-height: 100dvh; padding-bottom: 0; background: var(--teal); }
.sheet-row { display: flex; align-items: center; gap: 1.25rem; width: min(100% - 2 * var(--gutter), 42rem); margin-inline: auto; padding-block: 0.9rem; color: var(--white); }
.sheet-row .brand img { width: 8.5rem; }
.sheet-call, .sheet-close { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; color: var(--white); font-weight: 700; text-decoration: none; }
.sheet-call { margin-left: auto; }
.sheet-call:hover, .sheet-close:hover { text-decoration: underline; }
.sheet { flex: 1; width: min(100% - 1.5rem, 42rem); margin-inline: auto; padding-bottom: 1.5rem; }
.sheet-card { background: var(--white); color: var(--deep); border-radius: 20px; padding: clamp(1.35rem, 1rem + 2vw, 2.5rem); box-shadow: 0 24px 60px -30px rgb(15 58 61 / 0.6); }
.sheet-card .form-done h2 { margin-top: 1rem; font-size: var(--step-2); }
.sheet-card .form-done p + p { margin-top: 1rem; }
.sheet-note { margin-top: 1rem; text-align: center; font-size: 1rem; color: var(--white); }
.sheet-foot { display: flex; justify-content: center; padding: 0 var(--gutter) 1.5rem; font-size: 0.95rem; }
.sheet-foot a { color: var(--white); }
@media (min-width: 40rem) {
  .sheet { display: flex; flex-direction: column; justify-content: center; padding-block: 1rem 4rem; }
}
@media (max-width: 39.99rem) {
  .sheet-call-num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .sheet-call .icon { width: 1.5rem; height: 1.5rem; }
}

/* ---- plain pages (privacy notice, thanks, error) ---- */
.plain { padding-bottom: 0; }
.prose { padding-block: clamp(2.5rem, 2rem + 3vw, 5rem); max-width: 46rem; }
.prose h1 { font-size: var(--step-2); }
.prose h2 { font-size: var(--step-1); margin-top: 2.2rem; }
.prose p, .prose ul { margin-top: 0.9rem; }
.prose li + li { margin-top: 0.5rem; }
.prose mark { background: var(--warm); color: var(--deep); padding: 0 0.2em; }
.draft { background: var(--warm); border-radius: 10px; padding: 0.9rem 1.1rem; margin-bottom: 2rem; }

/* ---- internal start page (/intern on the Worker, behind a password) ---- */
.intern-page { padding-bottom: 0; background: var(--mist); min-height: 100dvh; }
.intern-page .top { background: var(--deep); }
.intern-tag { padding: 0.25rem 0.8rem; border: 2px solid var(--white); border-radius: 999px; font-weight: 700; font-size: 1rem; }
.intern { padding-block: clamp(2rem, 1.5rem + 3vw, 4rem); }
.intern h1 { font-size: var(--step-2); }
.intern-lead { margin-top: 0.75rem; max-width: 56ch; }
.tool-grid { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.tool > a, .tool > div { display: grid; align-content: start; gap: 0.5rem; height: 100%; padding: 1.4rem 1.5rem; border-radius: var(--radius); background: var(--white); color: var(--deep); text-decoration: none; }
.tool > a { box-shadow: 0 10px 28px -18px rgb(15 58 61 / 0.5); transition: box-shadow 0.2s, transform 0.2s var(--ease-out); }
.tool > a:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -18px rgb(15 58 61 / 0.6); }
.tool-name { font-size: var(--step-1); font-weight: 750; color: var(--teal-ink); }
.tool > a:hover .tool-name { text-decoration: underline; text-underline-offset: 0.18em; }
.tool-host { margin-top: 0.4rem; font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.tool-soon > div { background: transparent; border: 2px dashed var(--line); }
.tool-soon .tool-name { color: var(--deep); }
.tool-badge { justify-self: start; margin-top: 0.4rem; padding: 0.15rem 0.7rem; border-radius: 999px; background: var(--warm); font-size: 0.95rem; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .tool > a { transition: none; } }

/* ---- consent banner (tracking.js; only when a GTM container is configured) ---- */
.consent-banner { position: fixed; inset: auto 0 0 0; z-index: 20; padding: 0 var(--gutter) calc(1rem + env(safe-area-inset-bottom)); pointer-events: none; }
.consent-inner {
  pointer-events: auto; width: min(100%, 46rem); margin-inline: auto; padding: 1.4rem 1.5rem; border-radius: var(--radius);
  background: var(--white); color: var(--deep); box-shadow: 0 -10px 40px -14px rgb(15 58 61 / 0.55); --focus: var(--deep);
}
.consent-inner h2 { font-size: var(--step-1); }
.consent-inner h2:focus { outline: none; }
.consent-inner p { margin-top: 0.6rem; font-size: 1rem; }
.consent-choices { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1rem; }
.consent-choices label { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.consent-choices input { width: 1.3rem; height: 1.3rem; accent-color: var(--teal); }
.consent-actions { display: grid; gap: 0.6rem; margin-top: 1.2rem; }
.consent-actions .btn { width: 100%; }
@media (min-width: 40rem) { .consent-actions { grid-template-columns: repeat(3, 1fr); } }
.foot-btn { min-height: auto; padding: 0; color: var(--white); font-weight: 400; font-size: inherit; }
.sheet-foot .foot-btn { color: var(--white); }
