/* ============================================================
   mm-sp1.jobtastic.de — Job-Landingpage MediaMarktSaturn
   Sales-Promotor / Tarifberater Internet & TV (m/w/d)
   Mobil zuerst. Markenmotiv: die Schräge aus dem Logo.
   ============================================================ */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("assets/fonts/inter-tight-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #df0000;
  --red-600: #c40000;
  --red-700: #a80000;
  --ink: #0d0d0d;
  --ink-2: #3d3d3a;
  --mute: #6a6a65;
  --line: #e3e3de;
  --line-strong: #cfcfc9;
  --soft: #f4f4f1;
  --white: #fff;

  --display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 48px);
  --max: 1200px;
  --top-h: 60px;
  --slant: 40px;

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--top-h) + 12px);
  scrollbar-color: #8f8f89 var(--soft);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  caret-color: var(--red);
  overflow-x: clip;
}

::selection { background: var(--red); color: #fff; }
.hero ::selection, .apply-head ::selection, .offer-lead ::selection { background: #fff; color: var(--red); }

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .apply-head :focus-visible, .strip :focus-visible,
.offer :focus-visible, .cookie :focus-visible { outline-color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.sr {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none; transition: top 0.2s var(--out);
}
.skip:focus { top: 12px; }

.ic {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

h1, h2, h3, .display { font-family: var(--display); font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(1.875rem, 1.2rem + 3vw, 3rem); line-height: 1.05; letter-spacing: -0.028em; }
h3 { font-size: 1.125rem; line-height: 1.25; letter-spacing: -0.01em; font-weight: 700; }
.display { font-size: clamp(2.75rem, 1.4rem + 6.6vw, 5.25rem); line-height: 0.96; letter-spacing: -0.04em; }
p { text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1.5px solid transparent; border-radius: 12px;
  font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.1; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.25s var(--out), box-shadow 0.25s var(--out);
  -webkit-tap-highlight-color: transparent;
}
.btn .ic { transition: transform 0.3s var(--out); }
.btn:hover .ic { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-sm { min-height: 44px; padding: 10px 16px; font-size: 0.9375rem; border-radius: 10px; }
.btn-lg { min-height: 58px; padding: 16px 26px; font-size: 1.0625rem; border-radius: 14px; }

.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 24px -12px rgba(190, 0, 0, 0.75); }
.btn-red:hover { background: var(--red-600); box-shadow: 0 14px 28px -12px rgba(190, 0, 0, 0.85); }
.btn-white { background: #fff; color: var(--red); box-shadow: 0 14px 30px -14px rgba(70, 0, 0, 0.7); }
.btn-white:hover { background: var(--ink); color: #fff; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-line:hover .ic { transform: none; }

.linklike {
  background: none; border: 0; padding: 0; color: inherit;
  text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px;
}

/* ---------- Kopfzeile ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--top-h); }
.logo { display: block; flex: none; border-radius: 4px; }
.logo img { width: auto; height: 29px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--red); color: #fff; isolation: isolate; }
.hero-media { height: clamp(230px, 37svh, 350px); overflow: hidden; background: #2a0a0a; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 64% 18%; }

.hero-slab {
  position: relative; z-index: 1;
  margin-top: calc(var(--slant) * -1);
  padding: calc(var(--slant) + 26px) var(--gutter) 38px;
  background: var(--red);
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
}

h1 { font-size: clamp(2.125rem, 0.9rem + 6.2vw, 2.875rem); line-height: 1.02; letter-spacing: -0.035em; }
.h1-line { display: block; }
.mwd { font-size: 0.48em; font-weight: 600; letter-spacing: 0; white-space: nowrap; vertical-align: 0.18em; }

.facts { display: grid; gap: 9px; margin-top: 22px; font-weight: 600; font-size: 1.0625rem; line-height: 1.3; }
.facts li { display: flex; align-items: center; gap: 12px; }
.facts .ic { width: 22px; height: 22px; }

.hero-cta { margin-top: 28px; }
.hero-cta .btn { width: 100%; }
.hero-note { margin-top: 12px; font-size: 0.9375rem; font-weight: 500; text-align: center; }

@media (min-width: 900px) {
  :root { --top-h: 76px; }
  .logo img { height: 36px; }

  .hero { display: flex; min-height: clamp(540px, calc(100svh - var(--top-h) - 62px), 740px); }
  .hero-media { position: absolute; inset: 0 0 0 auto; width: 58%; height: auto; }
  .hero-media img { object-position: 78% 30%; }
  .hero-slab {
    width: 56%; margin: 0; padding: 0;
    display: flex; align-items: center;
    clip-path: polygon(0 0, 100% 0, calc(100% - 120px) 100%, 0 100%);
  }
  .hero-inner {
    padding-block: 56px;
    padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
    padding-right: 150px;
  }
  h1 { font-size: clamp(2.25rem, 3.6vw, 3.5rem); }
  .facts { margin-top: 28px; font-size: 1.125rem; gap: 11px; }
  .hero-cta { margin-top: 36px; display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; }
  .hero-cta .btn { width: auto; }
  .hero-note { margin: 0; text-align: left; line-height: 1.35; }
  .hero-note span { display: block; white-space: nowrap; }
}

/* Auftakt: die rote Fläche schiebt sich ins Bild, der Titel folgt zeilenweise */
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: hero-img 1.5s var(--out) both; }
  .hero-slab { animation: slab-up 0.9s var(--out) both; }
  .h1-line, .facts li, .hero-cta { animation: rise 0.8s var(--out) both; }
  .h1-line:nth-child(1) { animation-delay: 0.18s; }
  .h1-line:nth-child(2) { animation-delay: 0.25s; }
  .h1-line:nth-child(3) { animation-delay: 0.32s; }
  .facts li:nth-child(1) { animation-delay: 0.42s; }
  .facts li:nth-child(2) { animation-delay: 0.48s; }
  .facts li:nth-child(3) { animation-delay: 0.54s; }
  .hero-cta { animation-delay: 0.64s; }
  @media (min-width: 900px) { .hero-slab { animation-name: slab-side; } }
}
@keyframes hero-img { from { transform: scale(1.08); } to { transform: none; } }
@keyframes slab-up {
  from { clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%); }
  to   { clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%); }
}
@keyframes slab-side {
  from { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
  to   { clip-path: polygon(0 0, 100% 0, calc(100% - 120px) 100%, 0 100%); }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Schwarze Leiste ---------- */
.strip { background: var(--ink); color: #fff; }
.strip-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px;
  padding-block: 20px;
  font-family: var(--display); font-weight: 600; font-size: 0.9375rem; line-height: 1.25;
}
.strip-list li { display: flex; align-items: flex-start; gap: 10px; }
.strip-list li::before, .row dt::before {
  content: ""; flex: none; width: 9px; height: 0.95em; margin-top: 0.14em;
  background: var(--red); transform: skewX(-20deg);
}
@media (min-width: 900px) {
  .strip-list { grid-template-columns: repeat(4, auto); justify-content: space-between; font-size: 1rem; padding-block: 21px; }
}

/* ---------- Sektionen ---------- */
.sec { padding-block: clamp(72px, 11vw, 136px); }
.sec-head { max-width: 780px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head p { margin-top: 16px; font-size: 1.125rem; color: var(--ink-2); max-width: 60ch; }

.split { display: grid; gap: 28px; }
.prose p { max-width: 62ch; color: var(--ink-2); }
.prose p + p { margin-top: 1em; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose .lead { font-size: clamp(1.25rem, 1.05rem + 1vw, 1.5rem); line-height: 1.4; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; }
  .split .prose { padding-top: 10px; }
}

/* Aufgaben */
.tasks { padding-top: 0; }
.rows { border-top: 2px solid var(--ink); }
.row { display: grid; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.row dt { display: flex; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.015em; }
.row dd { color: var(--ink-2); max-width: 64ch; padding-left: 21px; }
@media (min-width: 900px) {
  .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 48px; padding: 28px 0; }
  .row dt { font-size: 1.375rem; }
  .row dd { padding-left: 0; }
}

/* Profil */
.profile { background: var(--soft); }
.checks { display: grid; gap: 26px; }
.checks li { display: flex; gap: 16px; align-items: flex-start; }
.checks .ic {
  width: 30px; height: 30px; padding: 6px; margin-top: 1px;
  background: var(--red); color: #fff; stroke-width: 3; border-radius: 4px;
  transform: skewX(-10deg);
}
.checks p { margin-top: 4px; color: var(--ink-2); font-size: 1rem; max-width: 46ch; }
@media (min-width: 760px) { .checks { grid-template-columns: 1fr 1fr; gap: 36px 56px; } }
@media (min-width: 1100px) { .checks { grid-template-columns: repeat(3, 1fr); } }

/* Benefits */
.offer { background: var(--ink); color: #fff; }
.offer-lead {
  background: var(--red);
  padding: 30px 26px 34px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), 0 100%);
}
.offer-lead h3 { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; }
.offer-lead p { margin-top: 12px; font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.25rem); line-height: 1.45; font-weight: 500; max-width: 54ch; }
.offer-grid { display: grid; gap: 28px 40px; margin-top: 44px; }
.offer-grid li { border-top: 1px solid rgba(255, 255, 255, 0.26); padding-top: 16px; }
.offer-grid p { margin-top: 6px; font-size: 0.9688rem; color: rgba(255, 255, 255, 0.74); max-width: 44ch; }
.offer-cta { margin-top: 48px; }
.offer-cta .btn { width: 100%; }
@media (min-width: 640px) {
  .offer-grid { grid-template-columns: 1fr 1fr; }
  .offer-cta .btn { width: auto; }
}
@media (min-width: 900px) {
  .offer-lead { padding: 44px 180px 48px 48px; clip-path: polygon(0 0, 100% 0, calc(100% - 96px) 100%, 0 100%); }
  .offer-grid { margin-top: 64px; gap: 44px 48px; }
}
@media (min-width: 1100px) { .offer-grid { grid-template-columns: repeat(4, 1fr); } }

/* Über uns */
.about-grid { display: grid; gap: 36px; align-items: center; }
.about-media { clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%); background: var(--soft); }
.about-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.about h2 { margin-bottom: 20px; }
.punch { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); line-height: 1.1; letter-spacing: -0.025em; color: var(--red) !important; margin-top: 1.1em !important; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* Einblenden beim Scrollen (nur mit JS; ohne JS bleibt alles sichtbar) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; translate: 0 20px; transition: opacity 0.7s var(--out), translate 0.8s var(--out); }
  .js .reveal.is-in { opacity: 1; translate: 0 0; }
  .js .rows .reveal:nth-child(2), .js .checks .reveal:nth-child(2), .js .offer-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
  .js .rows .reveal:nth-child(3), .js .checks .reveal:nth-child(3), .js .offer-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
  .js .rows .reveal:nth-child(4), .js .checks .reveal:nth-child(4), .js .offer-grid .reveal:nth-child(4) { transition-delay: 0.18s; }
}

/* ============================================================
   FUNNEL
   ============================================================ */
.apply {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--red); color: #fff;
  padding-block: clamp(56px, 9vw, 112px) clamp(48px, 9vw, 112px);
}
.apply::before {
  content: ""; position: absolute; z-index: -1; inset: 0 -20% 0 46%;
  background: var(--red-600); transform: skewX(-22deg); transform-origin: bottom;
}
.apply-wrap { display: grid; gap: 28px; }
.apply-head h2 { font-size: clamp(2.5rem, 1.5rem + 5.4vw, 4.5rem); line-height: 0.96; letter-spacing: -0.04em; }
.apply-head p { margin-top: 16px; font-size: 1.125rem; font-weight: 500; max-width: 30ch; }
@media (min-width: 980px) {
  .apply-wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .apply-head { position: sticky; top: calc(var(--top-h) + 40px); padding-top: 24px; }
}

.funnel {
  position: relative;
  background: #fff; color: var(--ink);
  border-radius: 22px;
  padding: 18px 18px 22px;
  box-shadow: 0 30px 70px -28px rgba(60, 0, 0, 0.7), 0 4px 14px -4px rgba(60, 0, 0, 0.28);
  scroll-margin-top: calc(var(--top-h) + 14px);
}
@media (max-width: 480px) { .apply .wrap { padding-inline: 12px; } .apply-head { padding-inline: 8px; } }
@media (min-width: 700px) { .funnel { padding: 26px 34px 34px; border-radius: 26px; } }

.funnel-top { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.f-back {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin-left: -6px;
  background: transparent; border: 0; border-radius: 50%; color: var(--ink);
  transition: background-color 0.2s, transform 0.25s var(--out);
}
.f-back:hover { background: var(--soft); transform: translateX(-2px); }
.f-back[hidden] { display: none; }
.f-progress { flex: 1; height: 6px; background: #ebebe6; border-radius: 99px; overflow: hidden; }
.f-progress span {
  display: block; height: 100%; width: 11%;
  background: var(--red); border-radius: 99px;
  transition: width 0.7s var(--out);
}
.f-count { flex: none; font-size: 0.8125rem; font-weight: 600; color: var(--mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.funnel.is-end .f-count, .funnel.is-end .f-back { display: none; }

.funnel-body { position: relative; margin: 18px -6px -6px; padding: 6px; overflow: hidden; }
.funnel-body.is-sizing { transition: height 0.45s var(--out); }

.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step[hidden] { display: none; }
.q {
  float: left; width: 100%; padding: 0; margin: 0 0 22px;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.4375rem, 1.1rem + 1.7vw, 1.9375rem); line-height: 1.14; letter-spacing: -0.025em;
  text-wrap: balance;
}
.q + * { clear: both; }

@media (prefers-reduced-motion: no-preference) {
  .step.is-leaving { animation: step-out 0.17s ease-in both; }
  .step.is-entering { animation: step-in 0.5s var(--out) both; }
  .step.is-entering .tile, .step.is-entering .trio-row { animation: step-in 0.55s var(--out) both; }
  .step.is-entering .tile:nth-child(2), .step.is-entering .trio-row:nth-child(2) { animation-delay: 0.06s; }
  .step.is-entering .tile:nth-child(3), .step.is-entering .trio-row:nth-child(3) { animation-delay: 0.12s; }
  .funnel-body[data-dir="back"] .step.is-leaving { animation-name: step-out-back; }
  .funnel-body[data-dir="back"] .step.is-entering,
  .funnel-body[data-dir="back"] .step.is-entering .tile,
  .funnel-body[data-dir="back"] .step.is-entering .trio-row { animation-name: step-in-back; }
}
@keyframes step-out { to { opacity: 0; transform: translateX(-22px); } }
@keyframes step-out-back { to { opacity: 0; transform: translateX(22px); } }
@keyframes step-in { from { opacity: 0; transform: translateX(34px); } to { opacity: 1; transform: none; } }
@keyframes step-in-back { from { opacity: 0; transform: translateX(-34px); } to { opacity: 1; transform: none; } }

/* Auswahl-Kacheln */
.tiles { display: grid; gap: 12px; }
.tiles-2 { grid-template-columns: 1fr 1fr; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 22px;
  min-height: 124px; padding: 16px 18px 18px;
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: 16px;
  font-family: var(--display); font-weight: 700; font-size: 1.375rem; line-height: 1; letter-spacing: -0.02em;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.3s var(--out), box-shadow 0.3s var(--out);
}
.tile input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tile-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--soft); color: var(--ink); transition: background-color 0.2s, color 0.2s; }
.tile-ic .ic { width: 20px; height: 20px; stroke-width: 2.4; }
.tile-row { flex-direction: row; align-items: center; justify-content: flex-start; gap: 16px; min-height: 70px; padding: 14px 18px; font-size: 1.25rem; }
@media (hover: hover) {
  .tile:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 24px -16px rgba(0, 0, 0, 0.45); }
}
.tile:active { transform: scale(0.985); }
.tile:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.tile:has(input:checked) { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 14px 26px -16px rgba(190, 0, 0, 0.9); }
.tile:has(input:checked) .tile-ic { background: #fff; color: var(--red); }

/* Felder */
.field {
  display: block; width: 100%;
  padding: 15px 16px;
  background: #fff; color: var(--ink);
  border: 1.5px solid var(--line-strong); border-radius: 14px;
  font-size: 1.0625rem; line-height: 1.45;
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
textarea.field { resize: none; min-height: 132px; overflow: hidden; }
.field::placeholder { color: #74746e; opacity: 1; }
.field:hover { border-color: #9c9c95; }
.field:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(13, 13, 13, 0.1); }
.field.is-bad { border-color: var(--red-600); background: #fff6f5; }
.field.is-bad:focus { box-shadow: 0 0 0 4px rgba(223, 0, 0, 0.14); }

.trio { display: grid; gap: 10px; }
.trio-row { display: flex; align-items: center; gap: 12px; }
.trio-n { flex: none; width: 26px; font-family: var(--display); font-weight: 800; font-size: 1.375rem; color: var(--red); text-align: center; font-variant-numeric: tabular-nums; }

.err { margin-top: 12px; color: #b00000; font-size: 0.9375rem; font-weight: 600; line-height: 1.4; }
.err[hidden] { display: none; }

.step-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; }
.step-nav .btn[hidden] { display: none; }
.step-nav:not(:has(.btn:not([hidden]))) { margin-top: 0; }
@media (max-width: 560px) { .step-nav .btn { width: 100%; } }

/* Kontakt */
.form-grid { display: grid; gap: 16px; }
@media (min-width: 560px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.fg { min-width: 0; }
.fg-full { grid-column: 1 / -1; }
.lbl { display: block; margin-bottom: 7px; font-size: 0.875rem; font-weight: 600; line-height: 1.3; }
.lbl em { font-style: normal; font-weight: 500; color: var(--mute); margin-left: 6px; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg label { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span {
  display: block; padding: 13px 8px; text-align: center;
  border: 1.5px solid var(--line-strong); border-radius: 12px;
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.seg label:hover span { border-color: var(--ink); }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.seg.is-bad span { border-color: var(--red-600); }

.drop {
  display: grid; justify-items: center; gap: 4px; text-align: center;
  padding: 20px 16px;
  border: 1.5px dashed #adada6; border-radius: 14px;
  color: var(--ink-2); cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.drop .ic { width: 24px; height: 24px; color: var(--red); margin-bottom: 4px; }
.drop-t { font-size: 1rem; }
.drop-t strong { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
.drop-h { font-size: 0.8125rem; color: var(--mute); }
.drop:hover, .drop.is-over { border-color: var(--red); background: #fff6f5; }
#f-dateien:focus-visible + .files, .drop:has(+ #f-dateien:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (hover: none) { .drop-or { display: none; } }

.files { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.files:not(:empty) { margin-top: 10px; }
.files li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 12px; background: var(--soft); border-radius: 12px;
  font-size: 0.9375rem;
}
.files .ic { width: 18px; height: 18px; color: var(--mute); }
.files .fn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.files .fs { flex: none; color: var(--mute); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.files button { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); transition: background-color 0.2s; }
.files button:hover { background: #e2e2dc; }
.files button .ic { color: inherit; width: 16px; height: 16px; stroke-width: 2.4; }
@media (prefers-reduced-motion: no-preference) { .files li { animation: rise 0.4s var(--out) both; } }

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

.consent-line { display: flex; gap: 12px; align-items: flex-start; font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.consent-line a { color: var(--ink); font-weight: 600; }
.consent-line input {
  flex: none; -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; margin: 0; cursor: pointer;
  border: 1.5px solid #8d8d86; border-radius: 7px; background: #fff center / 16px no-repeat;
  transition: background-color 0.2s, border-color 0.2s;
}
.consent-line input:checked {
  background-color: var(--red); border-color: var(--red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 9.5 17 19 7.5'/%3E%3C/svg%3E");
}
.consent-line.is-bad input { border-color: var(--red-600); box-shadow: 0 0 0 4px rgba(223, 0, 0, 0.14); }

.secure { display: flex; align-items: center; gap: 7px; font-size: 0.8125rem; color: var(--mute); line-height: 1.3; }
.secure .ic { width: 15px; height: 15px; }

.f-submit .spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; border-radius: 50%; }
.f-submit.is-loading { pointer-events: none; background: var(--red-700); }
.f-submit.is-loading .ic { display: none; }
.f-submit.is-loading .spinner { display: block; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Endzustände */
.end { outline: none; }
.end .q { float: none; margin-bottom: 14px; }
.end p { color: var(--ink-2); max-width: 50ch; }
.end p + p { margin-top: 0.8em; }
.done-mark { width: 68px; height: 68px; margin-bottom: 20px; }
.done-mark svg { width: 100%; height: 100%; fill: none; stroke: var(--red); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.done-mark circle { fill: var(--red); stroke: none; transform-origin: center; }
.done-mark path { stroke: #fff; stroke-width: 5; stroke-dasharray: 44; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .done.is-entering .done-mark circle { animation: pop 0.6s var(--out) both; }
  .done.is-entering .done-mark path { animation: draw 0.5s 0.3s var(--out) both; }
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes draw { from { stroke-dashoffset: 44; } to { stroke-dashoffset: 0; } }

/* ---------- Fuß ---------- */
.foot { border-top: 1px solid var(--line); padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); text-align: center; }
.powered { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 0.9375rem; color: var(--ink-2); }
.powered a { display: block; border-radius: 6px; transition: opacity 0.2s, transform 0.3s var(--out); }
.powered a:hover { opacity: 0.75; transform: translateY(-1px); }
.powered img { width: auto; height: 30px; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 14px; font-size: 0.875rem; color: var(--ink-2); }
.foot-nav a, .foot-nav button { color: inherit; padding: 6px 0; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.25em; transition: color 0.2s, text-decoration-color 0.2s; }
.foot-nav a:hover, .foot-nav button:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* ---------- Mobile Sticky-CTA ---------- */
.sticky-cta {
  position: fixed; inset: auto 0 0 0; z-index: 40;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform 0.45s var(--out);
}
.sticky-cta[hidden] { display: none; }
.sticky-cta.is-on { transform: none; }
.sticky-cta .btn { width: 100%; }
@media (max-width: 899px) { .foot { padding-bottom: calc(104px + env(safe-area-inset-bottom)); } }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ---------- Cookie-Hinweis ---------- */
.cookie {
  position: fixed; z-index: 60;
  left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  padding: 18px 18px 16px;
  background: var(--ink); color: #fff; border-radius: 18px;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.6), 0 2px 10px rgba(0, 0, 0, 0.25);
}
.cookie[hidden] { display: none; }
.cookie-t { font-family: var(--display); font-weight: 700; font-size: 1.0625rem; }
.cookie-d { margin-top: 6px; font-size: 0.875rem; line-height: 1.5; color: rgba(255, 255, 255, 0.82); }
.cookie-d a { color: #fff; }
.cookie-a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 14px; }
.cookie .btn-line { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.cookie .btn-line:hover { background: #fff; color: var(--ink); border-color: #fff; }
.cookie .linklike { font-size: 0.875rem; padding: 10px 6px; }
@media (max-width: 420px) { .cookie-a .btn { flex: 1 1 auto; } }
/* Desktop: rechts unten, damit der Bewerben-Button im Hero frei bleibt */
@media (min-width: 700px) { .cookie { left: auto; right: 24px; bottom: 24px; max-width: 440px; padding: 22px 22px 18px; } }
@media (prefers-reduced-motion: no-preference) { .cookie { animation: rise 0.6s 0.5s var(--out) both; } }

.cookie-modal { border: 0; padding: 0; border-radius: 22px; width: min(520px, calc(100vw - 24px)); color: var(--ink); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6); }
.cookie-modal::backdrop { background: rgba(13, 13, 13, 0.6); }
.cookie-panel { position: relative; padding: 26px 22px 22px; }
.cookie-panel h2 { font-size: 1.5rem; padding-right: 44px; }
.cookie-sub { margin-top: 10px; font-size: 0.9375rem; color: var(--ink-2); }
.cookie-x { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--soft); color: var(--ink); }
.cookie-x:hover { background: #e2e2dc; }
.cat { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.cat-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 700; cursor: pointer; }
.cat p { margin-top: 4px; font-size: 0.875rem; color: var(--ink-2); max-width: 46ch; }
.switch {
  flex: none; -webkit-appearance: none; appearance: none; position: relative;
  width: 46px; height: 28px; margin: 0; border-radius: 99px; background: #bdbdb6; cursor: pointer;
  transition: background-color 0.25s;
}
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.3s var(--out); }
.switch:checked { background: var(--red); }
.switch:checked::after { transform: translateX(18px); }
.switch:disabled { background: var(--ink); opacity: 0.55; cursor: not-allowed; }
.cookie-panel .cookie-a { margin-top: 22px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
}
