/* =========================================================
   Kofio – Ladenumfrage
   Mobile first. Alle Breakpoints erweitern nach oben.
   ========================================================= */

/* Die Hausschrift von Playground Coffee. Ein Schnitt, keine
   Achsen – deshalb überall font-weight: 400 verwenden, sonst
   rechnet der Browser einen unsauberen Fettschnitt dazu. */
@font-face {
  font-family: "Play";
  src:
    url("../fonts/Play.woff2") format("woff2"),
    url("../fonts/Play.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #fff5ef;
  --cream-deep: #ffe9dc;
  --paper: #ffffff;
  --ink: #1424ae;
  --ink-70: rgba(20, 36, 174, 0.78);
  --ink-45: #545fac;
  --ink-15: rgba(20, 36, 174, 0.15);
  --ink-08: rgba(20, 36, 174, 0.08);
  --ink-border: rgba(20, 36, 174, 0.55);
  --coral: #e8483f;
  --coral-text: #b52c27;
  --lilac: #cdc9f7;
  --lilac-soft: #e4e1fb;
  --butter: #f7c948;
  --tang: #f5821f;

  /* Play kennt kein Euro-Zeichen. Work Sans als erster Ausweichschritt
     fällt weit weniger auf als eine Serifenschrift. */
  --display: "Play", "Work Sans", Georgia, serif;
  --body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-card: 26px;
  --radius-field: 18px;
  --border: 2px;

  --shadow-card: 0 1px 0 var(--ink-08), 5px 6px 0 rgba(20, 36, 174, 0.07);
  --shadow-pop: 0 10px 30px -12px rgba(20, 36, 174, 0.4);

  --gutter: 20px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --bar-h: 76px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* ---------- Reset ---------- */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(72px + var(--safe-t));
}

html.is-text-editing {
  scroll-behavior: auto;
}

body {
  min-height: 100%;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Muss die display-Werte der Komponenten überschreiben. */
[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* iOS zoomt bei Feldern unter 16px automatisch hinein. */
input,
select,
textarea {
  font-size: max(16px, 1rem);
}

fieldset {
  border: 0;
  padding: 0;
}

legend {
  padding: 0;
}

::selection {
  background: var(--ink);
  color: var(--cream);
}

/* ---------- Utilities ---------- */

.wrap {
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  padding-left: max(var(--gutter), var(--safe-l));
  padding-right: max(var(--gutter), var(--safe-r));
}

.gate {
  display: none;
}

html.is-locked .gate {
  display: block;
  min-height: 70vh;
  padding: calc(48px + var(--safe-t)) 0 80px;
}

html.is-locked .walk,
html.is-locked .skip-link,
html.is-locked .ticker,
html.is-locked main,
html.is-locked footer,
html.is-locked .submitbar,
html.is-locked .topbar__progress {
  display: none !important;
}

.gate__inner .hero__title {
  font-size: clamp(2.4rem, 12vw, 3.6rem);
}

.gate__actions {
  margin-top: 22px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: calc(8px + var(--safe-t));
  left: max(8px, var(--safe-l));
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  font-size: 15px;
  text-decoration: none;
  transform: translateY(calc(-100% - var(--safe-t) - 8px));
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

/* ---------- Typografie ---------- */

.hero__title,
.card__title,
.thanks__title,
.wordmark {
  font-family: var(--display);
  font-weight: 400;
  font-synthesis: none;
  line-height: 0.98;
  letter-spacing: 0;
}

/* Play kennt ä/ö/ü nur als Versalien. In Display-Text den
   Kleinbuchstaben so wrappen, dann bleibt der Rest gemischt. */
.umlaut {
  text-transform: uppercase;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-text);
}

/* ---------- Topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--cream);
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: var(--border) solid var(--ink);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 640px;
  margin-inline: auto;
  padding: calc(4px + var(--safe-t)) max(var(--gutter), var(--safe-r)) 4px
    max(var(--gutter), var(--safe-l));
}

.wordmark {
  min-width: 0;
  font-size: clamp(0.72rem, 3.55vw, 1.05rem);
  line-height: 1;
  white-space: nowrap;
  color: var(--coral-text);
}

.topbar__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
}

.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  cursor: pointer;
  touch-action: manipulation;
}

.motion-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.motion-toggle__track {
  position: relative;
  flex: none;
  width: 34px;
  height: 20px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
}

.motion-toggle__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
  transition: translate 0.18s var(--ease), background-color 0.18s var(--ease);
}

.motion-toggle input:checked + .motion-toggle__track {
  background: var(--ink);
}

.motion-toggle input:checked + .motion-toggle__track .motion-toggle__knob {
  translate: 14px 0;
  background: var(--butter);
}

.motion-toggle input:focus-visible + .motion-toggle__track {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.motion-toggle__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topbar__progress {
  height: 3px;
  background: var(--ink-15);
}

.topbar__progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--coral);
  transition: width 0.45s var(--ease);
}

.form-toast {
  position: fixed;
  z-index: 90;
  top: calc(60px + var(--safe-t));
  left: max(var(--gutter), var(--safe-l));
  right: max(var(--gutter), var(--safe-r));
  max-width: 520px;
  margin-inline: auto;
  padding: 12px 16px;
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-field);
  background: var(--butter);
  color: var(--coral-text);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: var(--shadow-pop);
}

/* ---------- Laufband ---------- */

.ticker {
  overflow: hidden;
  padding: 9px 0;
  background: var(--ink);
  color: var(--cream);
  border-bottom: var(--border) solid var(--ink);
}

.ticker__track {
  display: flex;
  width: max-content;
  -webkit-animation: marquee var(--ticker-s, 28s) linear infinite;
  animation: marquee var(--ticker-s, 28s) linear infinite;
}

.ticker__group {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker__group i {
  font-style: normal;
  color: var(--butter);
}

@-webkit-keyframes marquee {
  to {
    -webkit-transform: translate3d(-50%, 0, 0);
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes marquee {
  to {
    -webkit-transform: translate3d(-50%, 0, 0);
    transform: translate3d(-50%, 0, 0);
  }
}

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

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: 40px 0 0;
}

.hero__blob {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.hero__blob--one {
  top: -60px;
  right: -90px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--lilac), transparent 70%);
}

.hero__blob--two {
  bottom: 40px;
  left: -110px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--cream-deep), transparent 70%);
}

.hero__inner {
  display: flex;
  flex-direction: column;
}

.hero__title {
  margin-top: 10px;
  font-size: clamp(3rem, 15.5vw, 4.4rem);
}

.hero__title em {
  font-style: normal;
  color: var(--coral);
}

.hero__lead {
  margin-top: 18px;
  max-width: 30ch;
  font-size: 1.06rem;
  color: var(--ink-70);
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 26px;
}

.hero__meta {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-45);
}

.hero__mascot {
  position: relative;
  align-self: center;
  width: min(260px, 68vw);
  margin: 22px 0 0;
  padding-bottom: 14px;
}

.hero__ground {
  position: absolute;
  bottom: 8px;
  left: 50%;
  translate: -50% 0;
  width: 78%;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--ink-15), transparent 68%);
}

.mascot {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.mascot__strip {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.mascot--wave .mascot__strip {
  width: 600%;
  background-image: url("../img/mascot-wave-strip.png");
  animation: mascot-strip-wave 1.08s steps(6) infinite;
}

.mascot--walk .mascot__strip {
  width: 800%;
  background-image: url("../img/mascot-walk-strip.png");
  animation: mascot-strip-walk 0.84s steps(8) infinite;
}

@keyframes mascot-strip-walk {
  to {
    left: -800%;
  }
}

@keyframes mascot-strip-wave {
  to {
    left: -600%;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 13px 26px;
  border: var(--border) solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    transform 0.16s var(--spring),
    background-color 0.16s var(--ease),
    box-shadow 0.16s var(--ease);
}

.btn--primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow-pop);
}

.btn--ghost {
  background: transparent;
}

.btn--lg {
  min-height: 58px;
  padding: 16px 32px;
  font-size: 1.08rem;
}

.btn--block {
  width: 100%;
}

.btn:active {
  transform: scale(0.97);
}

@media (hover: hover) {
  .btn--primary:hover {
    background: #101d8c;
  }

  .btn--ghost:hover {
    background: var(--ink-08);
  }
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---------- Formular ---------- */

.survey {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 34px;
  padding-bottom: 26px;
}

.survey__requirement {
  padding: 12px 16px;
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-field);
  background: var(--butter);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

.card {
  position: relative;
  padding: 22px 20px 24px;
  background: var(--paper);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s var(--ease);
}

.card--accent {
  background: linear-gradient(160deg, var(--lilac-soft), var(--cream-deep));
}

.card.is-done {
  box-shadow:
    0 1px 0 var(--ink-08),
    5px 6px 0 rgba(20, 36, 174, 0.14);
}

.card.is-done::after {
  content: "✓";
  position: absolute;
  top: -11px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: var(--border) solid var(--ink);
  background: var(--butter);
  font-size: 14px;
  font-weight: 700;
  animation: pop 0.32s var(--spring);
}

@keyframes pop {
  from {
    transform: scale(0.2);
    opacity: 0;
  }
}

.card__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
}

.card__legend {
  width: 100%;
}

.card__num {
  flex: none;
  font-family: var(--display);
  font-weight: 400;
  font-size: 14px;
  color: var(--coral-text);
  padding-top: 2px;
}

.card__title {
  font-size: clamp(1.5rem, 6.6vw, 1.85rem);
  text-wrap: balance;
}

.card__hint {
  margin-top: 8px;
  font-size: 0.94rem;
  color: var(--ink-45);
}

/* ---------- Optionen ---------- */

.options {
  margin-top: 18px;
}

.options--stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.options--chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.opt {
  display: block;
  cursor: pointer;
}

.opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.opt__box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 18px;
  border: var(--border) solid var(--ink-border);
  border-radius: var(--radius-field);
  background: var(--cream);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  touch-action: manipulation;
  transition:
    background-color 0.16s var(--ease),
    border-color 0.16s var(--ease),
    color 0.16s var(--ease),
    transform 0.16s var(--spring);
}

.options--stack .opt__box::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  border: var(--border) solid var(--ink-45);
  border-radius: 50%;
  transition: inherit;
}

.opt--chip .opt__box {
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.97rem;
}

.opt--chip .opt__box small {
  font-size: 0.8em;
  font-weight: 400;
  opacity: 0.6;
}

.opt input:checked + .opt__box {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.options--stack .opt input:checked + .opt__box::before {
  border-color: var(--cream);
  background:
    radial-gradient(circle at center, var(--butter) 0 4.5px, transparent 5px);
}

.opt input:focus-visible + .opt__box {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.opt input:active + .opt__box {
  transform: scale(0.96);
}

@media (hover: hover) {
  .opt input:not(:checked) + .opt__box:hover {
    border-color: var(--ink);
  }
}

/* ---------- Felder ---------- */

.field {
  position: relative;
  margin-top: 18px;
}

.field__label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-70);
}

input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border: var(--border) solid var(--ink-border);
  border-radius: var(--radius-field);
  background: var(--paper);
  font-family: inherit;
  line-height: 1.45;
  transition:
    border-color 0.16s var(--ease),
    box-shadow 0.16s var(--ease);
}

.card--accent input,
.card--accent select,
.card--accent textarea {
  background: rgba(255, 255, 255, 0.82);
}

textarea {
  min-height: 116px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--ink-45);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px var(--ink-08);
}

input[aria-invalid="true"] {
  border-color: var(--coral-text);
}

.select {
  position: relative;
}

.select select {
  appearance: none;
  padding-right: 46px;
  cursor: pointer;
}

.select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 9px;
  height: 9px;
  border-right: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  rotate: 45deg;
  translate: 0 -70%;
  pointer-events: none;
}

.field__count {
  display: block;
  margin-top: 6px;
  text-align: right;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-45);
}

.field__error {
  display: block;
  margin-top: 7px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--coral-text);
}

/* ---------- Schalter ---------- */

.switch {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 20px;
  padding: 4px 0;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.switch__track {
  flex: none;
  position: relative;
  width: 52px;
  height: 32px;
  border: var(--border) solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  transition: background-color 0.2s var(--ease);
}

.switch__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  transition: translate 0.22s var(--spring), background-color 0.2s var(--ease);
}

.switch input:checked + .switch__track {
  background: var(--ink);
}

.switch input:checked + .switch__track .switch__knob {
  translate: 20px 0;
  background: var(--butter);
}

.switch input:focus-visible + .switch__track {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.switch__label {
  font-size: 0.97rem;
  font-weight: 500;
  line-height: 1.35;
}

/* ---------- Schieberegler ---------- */

.slider {
  margin-top: 20px;
}

.slider__value {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.6rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ink-70);
}

.slider__input {
  --fill: 40%;
  width: 100%;
  margin: 20px 0 0;
  padding: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}

.slider__input::-webkit-slider-runnable-track {
  height: 12px;
  border: var(--border) solid var(--ink);
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--ink) var(--fill),
    var(--paper) var(--fill)
  );
}

.slider__input::-moz-range-track {
  height: 12px;
  border: var(--border) solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
}

.slider__input::-moz-range-progress {
  height: 12px;
  border-radius: 999px;
  background: var(--ink);
}

.slider__input::-webkit-slider-thumb {
  appearance: none;
  width: 32px;
  height: 32px;
  margin-top: -14px;
  border: var(--border) solid var(--ink);
  border-radius: 50%;
  background: var(--butter);
  box-shadow: 0 3px 10px -3px rgba(20, 36, 174, 0.5);
}

.slider__input::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border: var(--border) solid var(--ink);
  border-radius: 50%;
  background: var(--butter);
}

.slider__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-45);
}

/* ---------- Abschluss ---------- */

.privacy {
  padding: 2px 6px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-45);
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.human {
  margin: 8px 6px 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink-70);
}

.human a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.human__hint {
  margin: 0;
  font-size: 14px;
}

/* Google erlaubt das Ausblenden, wenn der Hinweis unten sichtbar bleibt. */
.grecaptcha-badge {
  visibility: hidden;
}

.submit-inline {
  margin-top: 4px;
}

/* ---------- Fixierte Leiste ---------- */

.submitbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  padding: 11px max(var(--gutter), var(--safe-r)) calc(11px + var(--safe-b))
    max(var(--gutter), var(--safe-l));
  background: var(--cream);
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: var(--border) solid var(--ink);
  translate: 0 130%;
  transition: translate 0.4s var(--ease);
  pointer-events: none;
}

.submitbar.is-visible {
  translate: 0 0;
  pointer-events: auto;
}

html.is-text-editing .submitbar {
  translate: 0 130%;
  pointer-events: none;
  transition-duration: 0.12s;
}

.submitbar__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 640px;
  margin-inline: auto;
}

.submitbar__meter {
  flex: 1;
  min-width: 0;
}

.submitbar__count {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-70);
}

.submitbar__error {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--coral-text);
}

.submitbar__bar {
  appearance: none;
  display: block;
  width: 100%;
  height: 7px;
  margin-top: 6px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  overflow: hidden;
}

.submitbar__bar::-webkit-progress-bar {
  background: var(--paper);
}

.submitbar__bar::-webkit-progress-value {
  background: var(--ink);
  transition: width 0.45s var(--ease);
}

.submitbar__bar::-moz-progress-bar {
  background: var(--ink);
  transition: width 0.45s var(--ease);
}

.submitbar__btn {
  flex: none;
  min-height: 48px;
  padding: 12px 22px;
  font-size: 0.98rem;
}

/* Platz für die fixierte Leiste, damit sie den Fuß nicht verdeckt. */
body {
  padding-bottom: calc(var(--bar-h) + var(--safe-b) + 12px);
}

/* Nach dem Absenden ist die Leiste weg. */
body.is-sent {
  padding-bottom: 0;
}

/* ---------- Laufendes Maskottchen am Bildschirmrand ---------- */

.walk {
  --walk-h: clamp(44px, 10vw, 64px);
  --walk-s: 96s;
  --walk-delay: 0s;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 110;
  pointer-events: none;
}

html.is-text-editing .walk {
  visibility: hidden;
}

.walk__actor {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--walk-h);
  height: var(--walk-h);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
  overflow: hidden;
  pointer-events: auto;
  animation: walk-edge var(--walk-s) linear infinite;
  animation-delay: var(--walk-delay);
}

.walk.is-speaking .walk__actor {
  animation-play-state: paused;
}

.walk.is-speaking .mascot--walk {
  opacity: 0;
}

.walk.is-speaking .mascot--walk .mascot__strip {
  animation-play-state: paused;
}

@keyframes walk-edge {
  0% {
    transform: translate3d(
      calc(100vw - var(--walk-h) - var(--safe-r)),
      calc(100dvh - var(--walk-h) - var(--safe-b)),
      0
    ) rotate(0deg);
  }
  24% {
    transform: translate3d(var(--safe-l), calc(100dvh - var(--walk-h) - var(--safe-b)), 0)
      rotate(0deg);
  }
  25% {
    transform: translate3d(var(--safe-l), calc(100dvh - var(--walk-h) - var(--safe-b)), 0)
      rotate(90deg);
  }
  49% {
    transform: translate3d(var(--safe-l), var(--safe-t), 0) rotate(90deg);
  }
  50% {
    transform: translate3d(var(--safe-l), var(--safe-t), 0) rotate(180deg);
  }
  74% {
    transform: translate3d(calc(100vw - var(--walk-h) - var(--safe-r)), var(--safe-t), 0)
      rotate(180deg);
  }
  75% {
    transform: translate3d(calc(100vw - var(--walk-h) - var(--safe-r)), var(--safe-t), 0)
      rotate(270deg);
  }
  99% {
    transform: translate3d(
      calc(100vw - var(--walk-h) - var(--safe-r)),
      calc(100dvh - var(--walk-h) - var(--safe-b)),
      0
    ) rotate(270deg);
  }
  100% {
    transform: translate3d(
      calc(100vw - var(--walk-h) - var(--safe-r)),
      calc(100dvh - var(--walk-h) - var(--safe-b)),
      0
    ) rotate(360deg);
  }
}

.walk__img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.walk__img--wave {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.walk.is-speaking .mascot--wave {
  opacity: 1;
}

.walk__bubble {
  position: fixed;
  z-index: 111;
  left: 0;
  top: 0;
  width: max-content;
  max-width: min(84vw, 300px);
  pointer-events: none;
  padding: 11px 15px;
  border: var(--border) solid var(--ink);
  border-radius: 18px;
  background: var(--butter);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: var(--shadow-card);
  animation: pop 0.28s var(--spring);
}

.walk__bubble::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  rotate: 45deg;
  background: var(--butter);
}

.walk__bubble[data-side="bottom"]::after {
  bottom: -7px;
  left: var(--tail, 50%);
  translate: -50% 0;
  border-right: var(--border) solid var(--ink);
  border-bottom: var(--border) solid var(--ink);
}

.walk__bubble[data-side="top"]::after {
  top: -7px;
  left: var(--tail, 50%);
  translate: -50% 0;
  border-left: var(--border) solid var(--ink);
  border-top: var(--border) solid var(--ink);
}

.walk__bubble[data-side="left"]::after {
  left: -7px;
  top: var(--tail, 50%);
  translate: 0 -50%;
  border-left: var(--border) solid var(--ink);
  border-bottom: var(--border) solid var(--ink);
}

.walk__bubble[data-side="right"]::after {
  right: -7px;
  top: var(--tail, 50%);
  translate: 0 -50%;
  border-right: var(--border) solid var(--ink);
  border-top: var(--border) solid var(--ink);
}

/* ---------- Dankeseite ---------- */

.thanks {
  display: grid;
  place-items: center;
  min-height: 78vh;
  padding: 40px 0 60px;
  text-align: center;
}

.thanks__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.thanks__mascot {
  width: min(230px, 60vw);
}

.thanks__title {
  margin-top: 6px;
  font-size: clamp(3rem, 17vw, 4.6rem);
  color: var(--coral);
}

.thanks__lead {
  margin-top: 14px;
  max-width: 32ch;
  color: var(--ink-70);
}

.thanks__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

/* ---------- Fuß ---------- */

.footer {
  margin-top: 8px;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 10px max(var(--gutter), var(--safe-r)) 14px max(var(--gutter), var(--safe-l));
  font-size: 0.72rem;
}

.footer__links a {
  color: var(--ink-45);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* =========================================================
   Größere Bildschirme
   ========================================================= */

@media (min-width: 480px) {
  :root {
    --gutter: 28px;
  }

  .hero {
    padding-top: 54px;
  }

  .hero__cta {
    flex-direction: row;
    align-items: center;
    gap: 18px;
  }

  .card {
    padding: 26px 26px 28px;
  }
}

@media (min-width: 700px) {
  body {
    font-size: 18px;
  }

  :root {
    --bar-h: 80px;
  }

  .wrap {
    max-width: 720px;
  }

  .topbar__inner,
  .submitbar__inner {
    max-width: 720px;
  }

  .hero__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "eyebrow mascot"
      "title   mascot"
      "lead    mascot"
      "cta     mascot";
    align-items: start;
    column-gap: 24px;
    padding-bottom: 20px;
  }

  .hero .eyebrow {
    grid-area: eyebrow;
  }

  .hero__title {
    grid-area: title;
    font-size: clamp(4rem, 8vw, 5.4rem);
  }

  .hero__lead {
    grid-area: lead;
  }

  .hero__cta {
    grid-area: cta;
  }

  .hero__mascot {
    grid-area: mascot;
    align-self: end;
    width: 250px;
    margin: 0;
  }

  .survey {
    padding-top: 48px;
  }

  .options--stack .opt__box,
  .card {
    /* Etwas mehr Luft auf Tablets. */
    line-height: 1.4;
  }
}

@media (min-width: 1024px) {
  .hero__blob--one {
    width: 460px;
    height: 460px;
    right: -140px;
  }

  .topbar,
  .submitbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--cream);
  }
}

/* =========================================================
   Manueller Ruhemodus
   ========================================================= */

html[data-motion="reduced"] {
  scroll-behavior: auto;
}

html[data-motion="reduced"] .walk {
  display: none;
}

html[data-motion="reduced"] .ticker__track,
html[data-motion="reduced"] .mascot__strip {
  animation: none !important;
  transform: none !important;
  left: 0;
}

html[data-motion="reduced"] *,
html[data-motion="reduced"] *::before,
html[data-motion="reduced"] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

@media print {
  .topbar,
  .ticker,
  .submitbar,
  .walk,
  .gate,
  .hero__blob {
    display: none;
  }
}
