:root {
  --text: #312d33;
  --text-soft: rgba(49, 45, 51, 0.55);
  --text-faint: rgba(49, 45, 51, 0.18);
  --highlight: #d8174a;
  --highlight-soft: rgba(216, 23, 74, 0.14);
  --bg: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* Scrollbar-Platz reservieren → kein Layout-Sprung wenn die Leiste kurz weg ist. */
html {
  scrollbar-gutter: stable;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "ss01", "ss02";
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 100;
}

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 0 6vw;
}

.container {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(3.5rem, 8vh, 7rem);
  padding-top: clamp(20vh, 28vh, 32vh);
  /* Unten nur Basis-Abstand; extra Scroll-Raum kommt dynamisch über .scroll-spacer. */
  padding-bottom: clamp(12vh, 16vh, 20vh);
  transition: padding-top 1.1s cubic-bezier(0.2, 0.7, 0.1, 1);
  will-change: padding-top;
}

.container.compact { padding-top: clamp(8vh, 12vh, 14vh); }

/* Wächst dynamisch, wenn unten noch Scroll-Raum für weiches Auslaufen fehlt. */
.scroll-spacer {
  width: 100%;
  min-height: 0;
  flex-shrink: 0;
  pointer-events: none;
}

.block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2rem, 4vh, 3.5rem);
}

.block.hidden { display: none; }

.question {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-variation-settings: "opsz" 96, "wdth" 100;
  font-size: clamp(2.6rem, 7.4vw, 6.8rem);
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin: 0;
  color: var(--text);
  max-width: 16ch;
  /* Abstand für Auto-Scroll (Brand + Step-Counter) */
  scroll-margin-top: clamp(5.5rem, 12vh, 8.5rem);
}

.question--wide {
  max-width: 22ch;
  font-size: clamp(2rem, 5.5vw, 4.2rem);
  line-height: 0.95;
}

.question--hero {
  max-width: 22ch;
}

.question__line {
  display: block;
}

.question__line + .question__line {
  margin-top: 0.08em;
}

.question__line--greeting {
  font-size: 0.75em;
}

.question__visitor {
  --underlineScale: 0;
  position: relative;
  display: inline-block;
  color: rgba(49, 45, 51, 0.48);
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: inherit;
  font-variation-settings: normal;
  vertical-align: top;
  cursor: pointer;
  isolation: isolate;
}

.question__visitor--custom {
  color: var(--visitor-name-color, var(--text));
}

.question__visitor-mark {
  position: relative;
  display: inline-block;
  vertical-align: top;
  z-index: 1;
}

/* Wie Visitor-Mark — rosa Balken, näher am Text, leichte Überlappung */
.question__visitor-mark::after {
  content: "";
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  bottom: 0.12em;
  height: 0.3em;
  background: var(--highlight);
  border-radius: 0.08em;
  opacity: 0.2;
  transform-origin: left center;
  transform: scaleX(var(--underlineScale, 1));
  pointer-events: none;
  z-index: 0;
}

.question__visitor:hover .question__visitor-mark::after,
.question__visitor:focus-visible .question__visitor-mark::after {
  opacity: 0.34;
}

.question__visitor:focus-visible {
  outline: 2px solid rgba(216, 23, 74, 0.35);
  outline-offset: 0.08em;
}

.question__visitor--editing {
  cursor: text;
}

.question__visitor--editing:focus-visible {
  outline: none;
}

.question__visitor .word {
  position: relative;
  z-index: 1;
  margin-right: 0;
  padding-right: 0.22em;
}

.question__visitor-word--edit {
  position: relative;
  display: inline-block;
  vertical-align: top;
  padding: 0.06em 0.14em 0.1em 0.04em;
  margin-right: 0;
  line-height: 0.92;
}

.question__visitor-mirror {
  display: inline-block;
  visibility: hidden;
  white-space: pre;
  font: inherit;
  font-family: inherit;
  font-size: 1em;
  font-style: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: 0.92;
  pointer-events: none;
  min-width: 0;
  padding: 0;
  margin: 0;
}

.question__visitor-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-family: inherit;
  font-size: 1em;
  font-style: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: 0.92;
  color: inherit;
  caret-color: var(--highlight);
  -webkit-appearance: none;
  appearance: none;
}

.question__visitor-field--intro-cursor {
  caret-color: transparent;
}

.question__visitor-field::selection {
  background: rgba(216, 23, 74, 0.18);
  color: inherit;
}

.input-cursor.question__visitor-cursor {
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  border-radius: 0;
  transform: translateY(-50%);
  pointer-events: none;
  box-shadow: 0 0 18px 0 rgba(216, 23, 74, 0.45);
}

.question .word {
  display: inline-block;
  overflow: visible;
  vertical-align: top;
  /* Rechts/Links Puffer, damit Glyphen-Überhänge (s, ?, kursiv) nicht abgeschnitten werden */
  padding: 0.06em 0.14em 0.1em 0.04em;
  margin-right: 0.12em;
}

.question .word:last-child { margin-right: 0; }

.question .word.accent {
  padding-right: 0.22em;
}

.question .char {
  display: inline-block;
  will-change: transform, opacity, filter;
}

.question .char--end {
  padding-right: 0.06em;
}

.question .word.accent .char--end {
  padding-right: 0.1em;
}

.question .accent {
  color: var(--highlight);
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-variation-settings: normal;
}

.input-row {
  display: flex;
  align-items: stretch;
  gap: 0.9rem;
  width: 100%;
  max-width: 760px;
  opacity: 0;
}

/* Intro: Button nimmt finalen Platz ein, bleibt nur unsichtbar (kein Layout-Sprung). */
.submit-btn--reserve {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
}

.input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
}

.answer-input {
  width: 100%;
  padding: 1.55rem 2rem;
  border: 3px solid var(--text);
  border-radius: 999px;
  font-family: inherit;
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--highlight);
  background: var(--bg);
  outline: none;
  caret-color: var(--highlight);
  transition: border-color 0.35s ease, box-shadow 0.35s ease,
    transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.answer-input::placeholder {
  color: transparent;
  opacity: 0;
  padding-left: 10px;
  transition: color 0.7s ease, opacity 0.7s ease;
}

.answer-input.answer-input--show-placeholder::placeholder {
  color: var(--text-soft);
  opacity: 1;
}

.answer-input:focus {
  border-color: var(--highlight);
  box-shadow: 0 0 0 8px var(--highlight-soft);
}

.answer-input.cursor-empty { caret-color: transparent; }

.answer-input:disabled {
  opacity: 0.55;
  border-color: var(--text-faint);
  color: var(--text-soft);
  cursor: default;
}

.answer-textarea {
  width: 100%;
  min-height: 0;
  resize: none;
  overflow: hidden;
  border-radius: 999px;
  line-height: 1.45;
  padding: 1.55rem 2rem;
}

.answer-textarea--expanded {
  border-radius: 1.5rem;
}

.answer-textarea::placeholder {
  color: var(--text-soft);
  opacity: 1;
}

.details-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  max-width: 760px;
}

.details-form__field {
  width: 100%;
}

.answer-textarea.cursor-empty {
  caret-color: transparent;
}

.input-wrapper--textarea {
  position: relative;
  width: 100%;
}

.details-form .input-hint {
  margin: 0;
  text-align: center;
}

.details-form .submit-btn {
  box-sizing: border-box;
  align-self: center;
  flex-shrink: 0;
}

.input-hint {
  margin: 0.65rem 0 0;
  max-width: 760px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--highlight);
}

.input-hint.hidden {
  display: none;
}

.quiz-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.35rem;
  font-family: inherit;
  font-size: clamp(0.92rem, 1.5vw, 1.05rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  color: var(--highlight);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.quiz-cancel.is-hidden {
  display: none;
  pointer-events: none;
}

.quiz-cancel__icon {
  display: grid;
  place-items: center;
  width: 1.85em;
  height: 1.85em;
  flex-shrink: 0;
  border-radius: 0.3em;
  background: var(--highlight);
  color: #fff;
  box-sizing: border-box;
  /* em bezieht sich auf .quiz-cancel — nicht auf eine verkleinerte Icon-Schrift */
  font-size: 1em;
  line-height: 1;
  text-decoration: none;
}

.quiz-cancel__x {
  display: block;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 0.95em;
  letter-spacing: 0;
  line-height: 1;
  /* Optischer Ausgleich: Kapitälchen-X sitzt in der Schrift oft leicht zu hoch */
  transform: translateY(0.04em);
}

.quiz-cancel__label {
  position: relative;
  display: inline-block;
  text-decoration: none;
  padding-bottom: 0.12em;
}

.quiz-cancel__label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.45s ease;
  pointer-events: none;
}

.quiz-cancel:hover .quiz-cancel__label::after,
.quiz-cancel:focus-visible .quiz-cancel__label::after {
  transform: scaleX(1);
}

.quiz-cancel:hover,
.quiz-cancel:focus-visible {
  outline: none;
}

.intro-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--text);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  z-index: 4;
  box-shadow: inset 0 0 0 0 var(--text);
}

.intro-dot.gone {
  display: none;
}

.input-cursor {
  position: absolute;
  left: 2rem;
  top: 50%;
  width: 10px;
  height: 1.5em;
  background: var(--highlight);
  border-radius: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 5;
  transform: translateY(-50%);
  box-shadow: 0 0 18px 0 rgba(216, 23, 74, 0.45);
}

.input-cursor.show {
  opacity: 1;
  animation: blink 1s steps(1, end) infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0 2rem 0 2.2rem;
  border: 3px solid var(--text);
  border-radius: 999px;
  font-family: inherit;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--bg);
  background: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    background-color 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    color 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.submit-btn__icon {
  width: 1.35em;
  height: 1.35em;
  flex-shrink: 0;
  transform-origin: center center;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.submit-btn:hover {
  background: var(--highlight);
  border-color: var(--highlight);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -16px rgba(216, 23, 74, 0.6);
}

.submit-btn:hover .submit-btn__icon {
  transform: rotate(45deg);
}

.submit-btn:active { transform: translateY(0); }

.submit-btn:disabled {
  background: var(--text-faint);
  border-color: var(--text-faint);
  color: var(--bg);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  width: 100%;
  max-width: 920px;
}

.card {
  aspect-ratio: 3 / 4;
  border-radius: 38px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 4px solid var(--card-color, transparent);
  background: #312d33;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.35s ease, box-shadow 0.4s ease;
  will-change: transform;
}

.card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.35rem 0.85rem 1.1rem;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.72) 52%,
    transparent 100%
  );
  pointer-events: none;
}

.card__title {
  display: block;
  font-size: clamp(0.82rem, 1.35vw, 1.05rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: center;
  color: var(--card-color, var(--text));
  text-shadow: none;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, 0.1), transparent 55%);
  pointer-events: none;
}

.card:hover { transform: translateY(-8px); }

.card.selected {
  border-color: var(--highlight);
  box-shadow: 0 28px 60px -22px rgba(216, 23, 74, 0.55),
    0 0 0 1px rgba(216, 23, 74, 0.15);
  transform: translateY(-4px);
}

.option-pills,
.time-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  max-width: 900px;
  width: 100%;
}

.pill-btn {
  padding: 1.25rem 2.2rem;
  border: 3px solid var(--text);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(1.05rem, 1.55vw, 1.4rem);
  letter-spacing: -0.015em;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
    background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease,
    box-shadow 0.3s ease;
  will-change: transform;
}

.pill-btn:hover {
  background: var(--text);
  color: var(--bg);
  transform: translateY(-3px);
}

.pill-btn.selected {
  background: var(--highlight);
  border-color: var(--highlight);
  color: var(--bg);
  box-shadow: 0 18px 40px -18px rgba(216, 23, 74, 0.6);
}

/* CTA: Telefon + Angebot */
.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  width: 100%;
  max-width: 640px;
  min-height: 160px; /* gelockt – kein vertikaler Sprung beim Morph */
}

.cta-row--email-mode {
  max-width: 760px;
  gap: 1rem;
}

.offer-wrap {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  min-width: 0;
  /* Höhe an cta-row gleichziehen – verhindert, dass der wrap vertikal kollabiert,
     sobald der offer-btn aus dem Flow genommen wird (position: absolute beim Morph). */
  min-height: 160px;
}

/* offer-btn füllt seinen wrap komplett (sonst wäre er nicht so breit wie phone-card). */
.offer-wrap > .offer-btn {
  width: 100%;
  align-self: stretch;
}

/* Im Default-Zustand: E-Mail-Feld & Send-Button komplett aus dem Layout. */
.offer-wrap .offer-email,
.offer-wrap .email-send-btn {
  display: none;
}

.cta-row--email-mode .offer-wrap {
  flex: 1 1 0;
  justify-content: stretch;
}

.cta-row--email-mode .offer-email,
.cta-row--email-mode .email-send-btn {
  display: flex;
}

/* Beide CTA-Buttons im gleichen Look: weißer BG, roter Rahmen, rotes Icon. */
.cta-card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 160px;
  min-width: 0;
  padding: 2rem;
  border: 3px solid var(--highlight);
  border-radius: 38px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.35s ease;
  will-change: width, height, transform, box-shadow;
}

.cta-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px -20px rgba(216, 23, 74, 0.45);
}

.cta-card__icon {
  width: 52px;
  height: 52px;
  color: var(--highlight);
  flex-shrink: 0;
}

.cta-card__label {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* Angebot-Button identisch zu Telefonat (alte schwarze Button-Styles entfernt). */
.offer-btn {
  font-size: 1.1rem;
}

.offer-btn__text {
  display: inline-block;
  white-space: nowrap;
}

/* Schmales E-Mail-Feld, vertikal in der 160px-Row zentriert */
.offer-email {
  flex: 0 1 0;
  width: 0;
  min-width: 0;
  height: 72px;
  min-height: 72px;
  padding: 0 1.6rem;
  border: 3px solid var(--text);
  border-radius: 999px;
  font-family: inherit;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--highlight);
  background: var(--bg);
  outline: none;
  opacity: 0;
  pointer-events: none;
  /* Smooth focus-Highlight statt Schnapp. */
  transition: border-color 0.45s ease, box-shadow 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  box-shadow: 0 0 0 0 var(--highlight-soft);
  will-change: clip-path, opacity;
}

.offer-email.is-visible {
  flex: 1 1 auto;
  width: auto;
  pointer-events: auto;
}

.offer-email:focus {
  border-color: var(--highlight);
  box-shadow: 0 0 0 6px var(--highlight-soft);
}

.offer-email::placeholder {
  color: var(--text-soft);
  font-weight: 600;
}

.email-send-btn {
  flex: 0 0 0;
  width: 0;
  min-width: 0;
  height: 80px;
  min-height: 80px;
  align-self: center;
  padding: 0 1.35rem;
  gap: 0.45rem;
  border: 3px solid var(--text);
  border-radius: 38px;
  background: var(--text);
  color: var(--bg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform-origin: center center;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    background-color 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    color 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.email-send-btn.is-visible {
  flex: 0 0 auto;
  width: auto;
  min-width: 7.5rem;
  pointer-events: auto;
}

.email-send-btn__label {
  line-height: 1;
}

.email-send-btn__icon {
  width: 1.35em;
  height: 1.35em;
  flex-shrink: 0;
  transform-origin: center center;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.email-send-btn:hover:not(:disabled) {
  background: var(--highlight);
  border-color: var(--highlight);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -16px rgba(216, 23, 74, 0.55);
}

.email-send-btn:hover:not(:disabled) .email-send-btn__icon {
  transform: rotate(45deg);
}

.email-send-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.offer-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.cta-card.is-selected {
  background: var(--highlight);
  border-color: var(--highlight);
  color: var(--bg);
  box-shadow: 0 18px 40px -18px rgba(216, 23, 74, 0.55);
  transform: none;
}

.cta-card.is-selected .cta-card__icon,
.cta-card.is-selected .cta-card__label {
  color: var(--bg);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal.hidden {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(49, 45, 51, 0.45);
  backdrop-filter: blur(6px);
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 2.2rem 2rem 2rem;
  background: var(--bg);
  border: 3px solid var(--text);
  border-radius: 38px;
  box-shadow: 0 40px 80px -30px rgba(49, 45, 51, 0.35);
}

.modal__close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 44px;
  height: 44px;
  border: 3px solid var(--text);
  border-radius: 50%;
  background: var(--bg);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.modal__close:hover {
  background: var(--highlight);
  border-color: var(--highlight);
  color: var(--bg);
}

.modal__title {
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.modal__subtitle {
  margin: 0 0 1.6rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.modal__section {
  margin-bottom: 1.4rem;
}

.modal__label {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.modal__slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.slot-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.85rem 1.1rem;
  border: 3px solid var(--text);
  border-radius: 999px;
  background: var(--bg);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease,
    border-color 0.25s ease;
}

.slot-btn strong {
  font-size: 1rem;
}

.slot-btn span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-soft);
}

.slot-btn--time {
  flex-direction: row;
}

.slot-btn:hover {
  transform: translateY(-2px);
}

.slot-btn.selected {
  background: var(--highlight);
  border-color: var(--highlight);
  color: var(--bg);
}

.slot-btn.selected span {
  color: rgba(255, 255, 255, 0.75);
}

.modal__section--fields {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.modal__section--fields .modal__label:not(:first-of-type) {
  margin-top: 0.35rem;
}

.modal__field {
  width: 100%;
  padding: 1rem 1.35rem;
  border: 3px solid var(--text);
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--highlight);
  background: var(--bg);
  outline: none;
  transition: border-color 0.35s ease, box-shadow 0.45s ease;
}

.modal__field::placeholder {
  color: var(--text-soft);
  font-weight: 600;
}

.modal__field:focus {
  border-color: var(--highlight);
  box-shadow: 0 0 0 6px var(--highlight-soft);
}

.modal__confirm {
  width: 100%;
  margin-top: 0.5rem;
  padding: 1.15rem 1.5rem;
  border: 3px solid var(--text);
  border-radius: 999px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bg);
  background: var(--text);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

.modal__confirm:hover:not(:disabled) {
  background: var(--highlight);
  border-color: var(--highlight);
}

.modal__confirm:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

body.modal-open {
  overflow: hidden;
}

/* Bestätigung */
.page.hidden,
.confirmation.hidden {
  display: none;
}

.confirmation {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 6vw;
  overflow: hidden;
}

/* Decorative background shapes */
.confirm-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.confirm-shape {
  position: absolute;
  opacity: 0;
  will-change: transform;
}

.confirm-shape--ring {
  top: 10%;
  left: 7%;
  width: 110px;
  height: 110px;
  border: 7px solid var(--highlight);
  border-radius: 50%;
}

.confirm-shape--dot {
  top: 17%;
  right: 11%;
  width: 28px;
  height: 28px;
  background: var(--text);
  border-radius: 50%;
}

.confirm-shape--blob {
  bottom: 14%;
  left: 9%;
  width: 90px;
  height: 90px;
  background: var(--highlight);
  border-radius: 62% 38% 50% 50% / 50% 60% 40% 50%;
  opacity: 0;
}

.confirm-shape--squiggle {
  bottom: 18%;
  right: 8%;
  width: 130px;
  height: 36px;
  color: var(--text);
}

.confirm-shape--star {
  top: 38%;
  left: 5%;
  width: 36px;
  height: 36px;
  color: var(--highlight);
}

.confirm-shape--cross {
  position: absolute;
  top: 50%;
  right: 6%;
  width: 30px;
  height: 30px;
}
.confirm-shape--cross span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 6px;
  background: var(--text);
  border-radius: 999px;
}
.confirm-shape--cross span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}
.confirm-shape--cross span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Confetti */
.confetti-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 3;
}

.confetti-piece {
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  pointer-events: none;
  border-radius: 3px;
}

.confetti-piece--circle {
  border-radius: 50%;
}

.confetti-piece--rect {
  width: 8px;
  height: 16px;
  border-radius: 2px;
}

/* Inner content */
.confirmation__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
  width: 100%;
}

.confirmation__hero {
  margin-bottom: 2.5rem;
}

.confirmation__mark {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1.75rem;
}

.confirmation__mark-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--highlight);
  opacity: 0;
  pointer-events: none;
}

.confirmation__mark-core {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--highlight);
  color: var(--bg);
  border-radius: 50%;
  box-shadow: 0 30px 60px -22px rgba(216, 23, 74, 0.55);
  z-index: 2;
}

.confirmation__mark-core svg {
  width: 60px;
  height: 60px;
}

.confirmation__title {
  margin: 0;
  font-size: clamp(3.4rem, 9vw, 6rem);
  font-weight: 800;
  font-variation-settings: "opsz" 96, "wdth" 100;
  letter-spacing: -0.05em;
  line-height: 0.92;
  color: var(--text);
}

.confirmation__title em {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--highlight);
  font-variation-settings: normal;
  letter-spacing: -0.02em;
  margin-left: 0.05em;
}

/* Summary */
.confirmation__summary {
  text-align: center;
  margin: 0 0 2rem;
}

.confirmation__lead,
.confirmation__detail {
  margin: 0 0 1rem;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.55;
  color: var(--text);
  text-align: center;
}

.confirmation__lead + .confirmation__lead {
  margin-top: 2rem;
}

.confirmation__booking {
  margin-top: 2.25rem;
  padding: 1.6rem 1.75rem;
  border: 3px solid var(--text);
  border-radius: 28px;
  background: var(--bg);
  text-align: center;
  box-shadow: 0 20px 48px -32px rgba(49, 45, 51, 0.28);
}

.confirmation__booking-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--highlight);
}

.confirmation__booking-when {
  margin: 0 0 0.65rem;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.45;
  color: var(--text);
}

.confirmation__booking .confirmation__detail {
  margin-bottom: 0;
}

.confirmation__lead strong,
.confirmation__detail strong {
  --underlineScale: 0;
  position: relative;
  display: inline-block;
  font-weight: 800;
  color: var(--highlight);
  white-space: nowrap;
}

.confirmation__lead strong::after,
.confirmation__detail strong::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 7px;
  background: var(--highlight);
  border-radius: 3px;
  opacity: 0.2;
  transform-origin: left center;
  transform: scaleX(var(--underlineScale));
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}

/* Polaroid-style preview */
.confirmation__style-card {
  --preview-color: var(--text);
  position: relative;
  display: inline-block;
  margin: 2rem auto 2rem;
  padding: 1rem 1rem 1.4rem;
  background: var(--bg);
  border: 4px solid var(--text);
  border-radius: 32px;
  box-shadow: 0 32px 60px -28px rgba(49, 45, 51, 0.4),
    0 0 0 1px rgba(49, 45, 51, 0.06);
  transform: rotate(-4deg);
  will-change: transform;
}

.confirmation__style-card::before {
  content: "STIL";
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%) rotate(3deg);
  padding: 0.45rem 0.85rem;
  background: var(--highlight);
  color: var(--bg);
  border: 3px solid var(--text);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  white-space: nowrap;
  z-index: 2;
}

.confirmation__style-preview-inner {
  width: 160px;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  background: #312d33;
  position: relative;
  overflow: hidden;
}

.confirmation__style-preview-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: radial-gradient(
    120% 70% at 50% 0%,
    rgba(255, 255, 255, 0.1),
    transparent 55%
  );
  pointer-events: none;
}

.confirmation__style-preview-inner .card__caption {
  padding: 0.85rem 0.55rem 0.7rem;
}

.confirmation__style-preview-inner .card__title {
  font-size: 0.72rem;
}

/* Footnote */
.confirmation__footnote {
  margin: 1rem 0 2.5rem;
  text-align: center;
}

.confirmation__footnote-text {
  display: inline-block;
  margin: 0;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
  color: var(--text);
  text-align: center;
  max-width: 100%;
}

.confirmation__footnote-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2em;
  height: 1.2em;
  margin: 0 0.1em;
  vertical-align: -0.12em;
  color: var(--highlight);
}

.confirmation__footnote-bullhorn {
  position: relative;
  z-index: 2;
  width: 0.92em;
  height: 0.92em;
  display: inline-block;
  transform: rotate(-20deg);
  transform-origin: center center;
}

.confirmation__footnote-icon .confirmation__ring {
  position: absolute;
  inset: -0.2em;
  border: 3px solid var(--highlight);
  border-radius: 50%;
  opacity: 0.45;
  pointer-events: none;
}

/* Restart Button */
.confirmation__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.confirmation__back,
.confirmation__home {
  padding: 1.05rem 2.4rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  line-height: 1.15;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease,
    transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.3s ease;
}

.confirmation__back {
  border: 3px solid var(--text);
  background: var(--bg);
  color: var(--text);
}

.confirmation__back:hover {
  background: var(--highlight);
  color: var(--bg);
  border-color: var(--highlight);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -16px rgba(216, 23, 74, 0.55);
}

.confirmation__home {
  border: 3px solid var(--text);
  background: var(--text);
  color: var(--bg);
}

.confirmation__home:hover {
  background: var(--highlight);
  border-color: var(--highlight);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -16px rgba(216, 23, 74, 0.55);
}

@media (max-width: 640px) {
  .confirmation { padding: 3rem 5vw; }
  .confirm-shape--ring { width: 70px; height: 70px; border-width: 5px; }
  .confirm-shape--blob { width: 60px; height: 60px; }
  .confirm-shape--squiggle { width: 90px; }
  .confirmation__mark { width: 96px; height: 96px; }
  .confirmation__mark-core svg { width: 48px; height: 48px; }
  .confirmation__style-preview-inner { width: 130px; }
  .confirmation__style-preview-inner .card__title { font-size: 0.65rem; }
}

.thinking {
  display: flex;
  gap: 0.7rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.thinking span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text);
  animation: think 1.1s ease-in-out infinite;
}
.thinking span:nth-child(2) { animation-delay: 0.18s; background: var(--highlight); }
.thinking span:nth-child(3) { animation-delay: 0.36s; }

@keyframes think {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.35; }
  50% { transform: translateY(-10px) scale(1.15); opacity: 1; }
}

/* Glassmorphism Top-Bar */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(2rem + 110px);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(255, 255, 255, 0.72) 42%,
    rgba(255, 255, 255, 0.38) 72%,
    rgba(255, 255, 255, 0) 100%
  );
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 38%,
    rgba(0, 0, 0, 0.55) 68%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 38%,
    rgba(0, 0, 0, 0.55) 68%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 9;
  pointer-events: none;
}

.brand {
  position: fixed;
  top: 2rem;
  left: 2rem;
  display: flex;
  align-items: center;
  z-index: 10;
  text-decoration: none;
  line-height: 0;
}

.brand__logo {
  display: block;
  height: clamp(22px, 3vw, 32px);
  width: auto;
  max-width: min(180px, 42vw);
  object-fit: contain;
}

.step-counter {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  top: auto;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  z-index: 11;
}
.step-counter .current { color: var(--text); font-weight: 800; }

.top-bar-right {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 11;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.05rem;
}

.quiz-exit {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: inherit;
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s ease;
  will-change: transform;
}

.quiz-exit.is-hidden {
  display: none;
  pointer-events: none;
}

.quiz-exit__icon {
  /* Früheres FA fa-house: gleiche optische Größe wie font-size am Glyph */
  display: block;
  width: 1em;
  height: 1em;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  color: var(--highlight);
  fill: currentColor;
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  transform-origin: center center;
}

.quiz-exit__label {
  --underlineScale: 1;
  position: relative;
  display: inline-block;
  font-weight: 800;
  color: var(--highlight);
  white-space: nowrap;
}

.quiz-exit__label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 7px;
  background: var(--highlight);
  border-radius: 3px;
  opacity: 0.2;
  transform-origin: left center;
  transform: scaleX(var(--underlineScale));
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.quiz-exit:hover,
.quiz-exit:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.quiz-exit:hover .quiz-exit__label::after,
.quiz-exit:focus-visible .quiz-exit__label::after {
  opacity: 0.42;
}

.quiz-exit:hover .quiz-exit__icon,
.quiz-exit:focus-visible .quiz-exit__icon {
  transform: scale(1.12);
}

/* Sprach-Toggle — unter dem Homepage-Link (ab Schritt 2). */
.lang-toggle {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: inherit;
}

.lang-toggle__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 1.35rem;
  border: none;
  font-family: inherit;
  font-size: clamp(0.78rem, 1.05vw, 0.9rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.15;
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  will-change: transform, opacity;
}

.lang-toggle__btn[data-lang="de"] {
  background: #d8174a;
  color: #e8b923;
}

.lang-toggle__btn[data-lang="sv"] {
  background: #FECC02;
  color: #006AA7;
}

.lang-toggle__btn:not(.is-active) {
  opacity: 0.3;
  filter: grayscale(0.5);
}

.lang-toggle__btn:not(.is-active):hover,
.lang-toggle__btn:not(.is-active):focus-visible {
  opacity: 0.55;
  filter: grayscale(0.2);
  outline: none;
}

.lang-toggle__btn.is-active {
  opacity: 1;
  filter: none;
}

.lang-toggle__divider {
  display: none;
}

.quiz-progress {
  position: fixed;
  right: clamp(1.25rem, 2.2vw, 2.25rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
}

.quiz-progress__rail {
  position: relative;
  width: 28px;
  height: min(360px, 52vh);
}

.quiz-progress__track {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(49, 45, 51, 0.1);
  box-shadow: inset 0 1px 2px rgba(49, 45, 51, 0.08);
  overflow: visible;
}

.quiz-progress__fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    #f03d6a 0%,
    var(--highlight) 38%,
    rgba(216, 23, 74, 0.72) 100%
  );
  box-shadow: 0 0 14px rgba(216, 23, 74, 0.35);
  transform-origin: top center;
  will-change: height;
}

.quiz-progress__glow {
  position: absolute;
  left: 50%;
  top: 0;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--highlight);
  box-shadow: 0 0 0 5px var(--highlight-soft), 0 0 20px rgba(216, 23, 74, 0.5);
  will-change: top;
  z-index: 2;
}

.quiz-progress__steps {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  z-index: 3;
}

.quiz-progress__step {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2.5px solid rgba(49, 45, 51, 0.14);
  background: var(--bg);
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(49, 45, 51, 0.06);
  transition: border-color 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
    background-color 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.quiz-progress__step.is-done {
  border-color: var(--highlight);
  background: var(--highlight);
  transform: scale(0.95);
  box-shadow: 0 0 10px rgba(216, 23, 74, 0.28);
}

.quiz-progress__step.is-current {
  width: 14px;
  height: 14px;
  border: 3px solid var(--highlight);
  background: var(--highlight);
  transform: scale(1);
  box-shadow: 0 0 0 6px var(--highlight-soft), 0 0 16px rgba(216, 23, 74, 0.35);
  animation: quiz-progress-pulse 2.4s ease-in-out infinite;
}

.quiz-progress__step.is-upcoming {
  border-color: rgba(49, 45, 51, 0.16);
  background: var(--bg);
  transform: scale(1);
}

@keyframes quiz-progress-pulse {
  0%, 100% {
    box-shadow: 0 0 0 6px var(--highlight-soft), 0 0 16px rgba(216, 23, 74, 0.35);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(216, 23, 74, 0.06), 0 0 22px rgba(216, 23, 74, 0.45);
  }
}

.quiz-progress.is-hidden {
  opacity: 0;
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .quiz-progress__step.is-current { animation: none; }
}

@media (max-width: 760px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .input-cursor { left: 1.6rem; }

  /* Mehr Breite nutzen: seitliches Padding reduzieren */
  .page { padding-left: 4vw; padding-right: 4vw; }
  .container { padding-left: 0; padding-right: 0; }
  .block { padding-left: 0; padding-right: 0; }

  /* Namenszeile gleich groß wie restlicher Text */
  .question__line--greeting { font-size: 1em; }

  /* Glassmorphism Top-Bar: mobile Höhe + weicher Verlauf */
  body::after {
    height: calc(max(1.2rem, env(safe-area-inset-top, 0px)) + 72px);
  }

  .brand {
    top: max(1.2rem, env(safe-area-inset-top, 0px));
    left: max(1.2rem, env(safe-area-inset-left, 0px));
    z-index: 11;
  }
  .top-bar-right {
    top: max(1.2rem, env(safe-area-inset-top, 0px));
    right: max(1.2rem, env(safe-area-inset-right, 0px));
  }

  .lang-toggle__btn {
    padding: 0.42rem 1.05rem;
    font-size: 0.78rem;
  }

  .quiz-cancel {
    margin-top: 1.1rem;
    font-size: 0.92rem;
    -webkit-tap-highlight-color: transparent;
  }

  .quiz-exit {
    gap: 0.45rem;
    font-size: 1rem;
    -webkit-tap-highlight-color: transparent;
  }

  .quiz-exit__icon {
    font-size: 1.35rem;
  }

  .step-counter {
    bottom: max(1.2rem, env(safe-area-inset-bottom, 0px));
    right: max(1.2rem, env(safe-area-inset-right, 0px));
    top: auto;
    left: auto;
  }
  .quiz-progress {
    display: none;
  }

  /* Buttons mobil: einheitlich höher */
  .submit-btn {
    padding: 1.1rem 2rem;
  }
  .confirmation__back,
  .confirmation__home {
    padding: 1.1rem 2rem;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
  }
  .confirmation__actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  .cta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "phone offer";
    gap: 0.9rem;
    max-width: 100%;
    min-height: 0;
    align-items: stretch;
  }

  .cta-row > .phone-card {
    grid-area: phone;
    width: 100%;
    min-height: 130px;
  }

  .cta-row > .offer-wrap {
    grid-area: offer;
    display: contents;
    min-height: 0;
  }

  .cta-row .offer-btn {
    grid-area: offer;
    width: 100%;
    min-height: 130px;
    position: static;
  }

  .cta-row .offer-email,
  .cta-row .email-send-btn {
    display: none;
  }

  .cta-row--mobile-email {
    grid-template-areas:
      "phone offer"
      "email email"
      "send send";
  }

  .cta-row--mobile-email .offer-email {
    display: flex !important;
    grid-area: email;
    width: 100% !important;
    max-width: 100%;
    flex: none !important;
    min-width: 0;
    min-height: 72px;
    height: auto;
    margin: 0;
    padding: 1.55rem 2rem;
    opacity: 1;
    pointer-events: auto;
    clip-path: none !important;
    box-sizing: border-box;
  }

  .cta-row--mobile-email .email-send-btn {
    display: inline-flex !important;
    grid-area: send;
    width: 100% !important;
    max-width: 100%;
    flex: none !important;
    min-width: 0;
    min-height: 72px;
    height: auto;
    margin: 0;
    padding: 1.2rem 2rem;
    opacity: 1;
    pointer-events: auto;
    border-radius: 999px;
    box-sizing: border-box;
    align-self: stretch;
  }

  .cta-row--mobile-email .offer-btn {
    opacity: 1 !important;
    pointer-events: auto !important;
    border-width: 3px !important;
    padding: 2rem;
  }

  .question--wide { max-width: 100%; }
}

@media (max-width: 480px) {
  .input-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
  }

  .input-wrapper {
    width: 100%;
    flex: none;
  }

  .submit-btn {
    width: 100%;
    padding: 1.2rem 2rem;
    box-sizing: border-box;
  }

  .quiz-exit {
    font-size: 0.92rem;
    gap: 0.4rem;
  }

  .quiz-exit__icon {
    font-size: 1.28rem;
  }

  .step-counter {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
  }
}

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