:root {
  --ink: #15211d;
  --muted: #68756d;
  --line: #ded8c8;
  --paper: #f8f5ee;
  --surface: #fffdf8;
  --green: #536b3a;
  --green-dark: #314225;
  --gold: #c29637;
  --coral: #d76650;
  --shadow: 0 24px 80px rgba(37, 32, 22, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(159, 232, 112, .18), transparent 24rem),
    radial-gradient(circle at 88% 8%, rgba(194, 150, 55, .12), transparent 25rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input, textarea { font: inherit; }
button {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button[disabled] { cursor: wait; opacity: .68; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(18px, 5vw, 68px);
  border-bottom: 1px solid rgba(49, 66, 37, .14);
  background: rgba(248, 245, 238, .92);
  backdrop-filter: blur(18px);
}

.brand, nav a {
  color: var(--ink);
  text-decoration: none;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 500;
}
.brand strong { color: var(--green); }
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--green);
}
.brand-mark svg { width: 100%; fill: currentColor; }
nav {
  display: flex;
  gap: clamp(14px, 3vw, 36px);
  font-weight: 800;
}

main {
  min-width: 0;
  overflow: hidden;
}
.hero {
  min-height: calc(100vh - 83px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  align-items: center;
  gap: clamp(32px, 7vw, 92px);
  padding: clamp(50px, 8vw, 104px) clamp(18px, 5vw, 68px) 72px;
}
.hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(56px, 7.4vw, 112px);
  line-height: .88;
  letter-spacing: 0;
}
.hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.65;
}
.hero-actions, .quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 30px;
}
.primary-button, .ghost-button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 0;
  border: 1px solid var(--green-dark);
  padding: 0 28px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, color .18s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.primary-button {
  background: var(--green);
  color: #fffdf8;
}
.ghost-button {
  background: transparent;
  color: var(--green-dark);
}
.primary-button:hover, .ghost-button:hover { transform: translateY(-1px); }
.primary-button.tap-pressed,
.ghost-button.tap-pressed,
.primary-button:active,
.ghost-button:active {
  transform: translateY(1px) scale(.985);
  box-shadow: 0 8px 18px rgba(37, 32, 22, .12) inset;
}
.primary-button.is-loading {
  pointer-events: none;
}
.primary-button.is-loading::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 253, 248, .42);
  border-top-color: #fffdf8;
  border-radius: 50%;
  animation: spin .72s linear infinite;
}
.sonar-button {
  position: relative;
  isolation: isolate;
  overflow: visible;
  border-color: color-mix(in srgb, var(--green-dark) 82%, var(--gold));
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  box-shadow: 0 16px 36px rgba(49, 66, 37, .25), 0 0 0 1px rgba(255, 253, 248, .28) inset;
  animation: button-breathe 1.65s ease-in-out infinite;
}
.sonar-button::before,
.sonar-button::after {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -1;
  border: 1px solid rgba(83, 107, 58, .38);
  opacity: 0;
  animation: sonar-pulse 2.4s ease-out infinite;
}
.sonar-button::after {
  inset: -15px;
  border-color: rgba(194, 150, 55, .32);
  animation-delay: .72s;
}
.sonar-button:hover::before,
.sonar-button:hover::after {
  animation-duration: 1.7s;
}
.sonar-button:hover {
  animation-duration: 1.15s;
}
.microcopy { font-size: 14px !important; }

.hero-panel {
  min-height: 620px;
  border: 1px solid var(--line);
  background: #efe9da;
  box-shadow: var(--shadow);
  display: grid;
  align-content: end;
  gap: 16px;
  padding: clamp(18px, 3vw, 34px);
  position: relative;
  overflow: visible;
}

.visual-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.visual-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 33, 27, .02), rgba(18, 33, 27, .54));
}

.core {
  position: absolute;
  top: clamp(22px, 4vw, 46px);
  right: clamp(22px, 4vw, 46px);
  width: 128px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fffdf8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: .95;
  z-index: 1;
  box-shadow: 0 18px 38px rgba(18, 33, 27, .26);
}
.signal-list {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.signal-list p, .status-card, .name-shell, .question-card, .contact-shell, .result-shell, .explain, .privacy {
  border: 1px solid var(--line);
  background: var(--surface);
}
.signal-list p {
  margin: 0;
  padding: 16px 18px;
  color: var(--muted);
  backdrop-filter: blur(10px);
}
.signal-list strong { color: var(--gold); margin-right: 12px; }

.status-card, .name-shell, .quiz-shell, .contact-shell, .result-shell, .explain, .privacy {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto 28px;
}
.status-card {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.status-card h2, .status-card p { margin: 0; }
.status-card p { margin-top: 6px; color: var(--muted); }
.status-pill {
  position: relative;
  min-width: 94px;
  text-align: center;
  border-radius: 999px;
  background: #efe6d0;
  padding: 9px 14px;
  color: #866212;
  font-weight: 900;
  overflow: hidden;
  white-space: nowrap;
}
.status-card[data-status="prueft"] .status-pill {
  min-width: 178px;
  border: 1px solid rgba(83, 107, 58, .22);
  background: #f5efe1;
  color: var(--green-dark);
  padding: 10px 16px 16px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}
.status-card[data-status="prueft"] .status-pill::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 7px;
  height: 4px;
  border-radius: 999px;
  background: rgba(83, 107, 58, .18);
}
.status-card[data-status="prueft"] .status-pill::after {
  content: "";
  position: absolute;
  bottom: 7px;
  left: 14px;
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--green));
  animation: status-scan 1.15s ease-in-out infinite;
}
.status-card[data-status="aktiv"] .status-pill {
  min-width: 172px;
  border: 1px solid rgba(83, 107, 58, .34);
  border-radius: 14px;
  background: linear-gradient(135deg, #314225, #536b3a);
  color: #fffdf8;
  box-shadow: 0 16px 34px rgba(49, 66, 37, .2);
  padding: 12px 18px;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: 12px;
}
.status-card[data-status="aktiv"] .status-pill::before {
  content: "✓";
  display: inline-grid;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  place-items: center;
  border-radius: 50%;
  background: #f4d890;
  color: var(--green-dark);
  font-size: 13px;
}
.status-card[data-status="aktiv"] .status-pill::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(244, 216, 144, .42);
  animation: sticker-glow 1.9s ease-in-out infinite;
  pointer-events: none;
}
.missing-link-badge {
  position: absolute;
  top: 50%;
  right: 28px;
  width: min(360px, 32vw);
  transform: translateY(-50%);
  border: 1px solid rgba(194, 150, 55, .46);
  background: linear-gradient(135deg, #314225, #536b3a);
  box-shadow: 0 18px 38px rgba(49, 66, 37, .24);
  color: #fffdf8;
  padding: 14px 18px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
}
.missing-link-badge strong {
  display: block;
  margin-top: 4px;
  color: #f4d890;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.email-open-loop-badge {
  position: relative;
  clear: both;
  margin: 34px 0 28px;
  padding: 18px 22px;
  border: 1px solid rgba(194, 150, 55, .56);
  background: linear-gradient(135deg, #314225, #536b3a);
  box-shadow: 0 18px 38px rgba(49, 66, 37, .24);
  color: #fffdf8;
  text-align: left;
  animation: badge-pulse 1.8s ease-in-out infinite;
}
.email-open-loop-badge span,
.email-open-loop-badge strong {
  display: block;
}
.email-open-loop-badge .email-open-loop-kicker {
  margin-bottom: 5px;
  color: #f4d890;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.email-open-loop-badge strong {
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 1.25;
}
.email-open-loop-badge span:last-child {
  font-size: 14px;
  line-height: 1.5;
}
.result-shell > #resultNext {
  display: block;
  margin-bottom: 0;
}
.status-card[data-status="fehlt"] {
  padding-right: min(430px, 38vw);
}
.status-card[data-status="fehlt"] .status-pill {
  display: none;
}
.status-card[data-status="fehlt"] .missing-link-badge {
  opacity: 1;
  animation: badge-pulse 1.8s ease-in-out infinite;
}

.quiz-shell {
  display: grid;
  min-width: 0;
  gap: 16px;
}
body.quiz-mode .hero,
body.quiz-mode .status-card,
body.quiz-mode .explain,
body.quiz-mode .privacy,
body.quiz-mode footer {
  display: none;
}
body.quiz-mode main {
  min-height: calc(100vh - 83px);
  display: grid;
  place-items: center;
  padding: clamp(14px, 2.2vw, 28px);
}
body.quiz-mode .quiz-shell,
body.quiz-mode .name-shell,
body.quiz-mode .contact-shell,
body.quiz-mode .result-shell {
  width: min(980px, 100%);
  min-width: 0;
  margin: 0;
}
.progress-row {
  display: grid;
  grid-template-columns: auto 1fr;
  min-width: 0;
  gap: 18px;
  align-items: center;
  font-weight: 900;
  color: var(--green-dark);
  overflow-wrap: anywhere;
}
.progress-track {
  height: 8px;
  background: #e7e0d1;
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  width: 4%;
  background: var(--gold);
  transition: width .25s ease;
}
.question-card, .name-shell, .contact-shell, .result-shell, .explain, .privacy {
  min-width: 0;
  padding: clamp(24px, 5vw, 48px);
  box-shadow: var(--shadow);
}
body.quiz-mode .question-card,
body.quiz-mode .name-shell,
body.quiz-mode .contact-shell,
body.quiz-mode .result-shell {
  min-height: min(560px, calc(100vh - 132px));
  display: grid;
  align-content: center;
}
body.quiz-mode .question-card {
  padding: clamp(22px, 2.8vw, 32px);
}
body.quiz-mode .question-card h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: .98;
}
body.quiz-mode .question-card > p:not(.section-label) {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.5;
}
.section-label {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.question-card h2, .name-shell h2, .contact-shell h2, .result-shell h2, .explain h2, .privacy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.question-card > p:not(.section-label), .name-shell p, .contact-shell p, .result-shell p, .explain p, .privacy p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 17px;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.answers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  gap: 9px;
  margin-top: 18px;
}
.scale-answer {
  min-height: 170px;
  border: 1px solid var(--line);
  background: #fbf8ef;
  padding: 24px;
}
.scale-value {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fffdf8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1;
}
.scale-answer input[type="range"] {
  min-height: auto;
  accent-color: var(--green);
  padding: 0;
}
.scale-labels {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.text-answer {
  min-height: 210px;
}
.text-answer textarea {
  min-height: 160px;
}
.answer-option {
  min-height: 56px;
  min-width: 0;
  border: 1px solid var(--line);
  background: #fbf8ef;
  padding: 11px 13px;
  text-align: left;
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  transition: border .18s ease, background .18s ease, transform .18s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.answers[data-density="compact"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.answers[data-density="compact"] .answer-option {
  min-height: 54px;
  font-size: 14px;
  line-height: 1.24;
}
.quiz-actions {
  margin-top: 18px;
}
.answer-option:hover, .answer-option.active {
  border-color: var(--green);
  background: #eff4e7;
  transform: translateY(-1px);
}
.answer-option.tap-pressed,
.answer-option:active {
  transform: translateY(1px) scale(.992);
  background: #e6efd8;
}
.answer-option:focus-visible,
.primary-button:focus-visible,
.ghost-button:focus-visible {
  outline: 3px solid rgba(194, 150, 55, .42);
  outline-offset: 3px;
}
.quiz-actions { justify-content: space-between; }

.name-shell, .contact-shell {
  grid-template-columns: .8fr 1.2fr;
  gap: 36px;
  align-items: start;
}
.name-shell:not([hidden]) { display: grid; }
.contact-shell:not([hidden]) { display: grid; }
.lead-form {
  display: grid;
  gap: 18px;
}
label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}
input, textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  background: #fffdf8;
  padding: 12px 14px;
  color: var(--ink);
}
textarea { resize: vertical; }
.full { grid-column: 1 / -1; }
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}
.checkbox input { width: 20px; min-height: 20px; margin-top: 2px; }
.checkbox span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
  line-height: 1.5;
}
.checkbox a, .legal-card a, .site-footer a {
  color: var(--green-dark);
  font-weight: 900;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.contact-progress {
  height: 8px;
  overflow: hidden;
  background: #e7e0d1;
}
.contact-progress span {
  display: block;
  width: 33%;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transition: width .25s ease;
}
.contact-step-card {
  min-height: 220px;
  align-content: center;
  border: 1px solid var(--line);
  background: #fbf8ef;
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 18px 46px rgba(37, 32, 22, .08);
}
.contact-step-card > span,
.contact-step-card label > span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}
.contact-input-card {
  min-height: 176px;
  gap: 14px;
  font-size: 16px;
  letter-spacing: 0;
}
.contact-input-card input {
  min-height: 58px;
  margin-top: 8px;
  border-color: color-mix(in srgb, var(--line) 82%, var(--green));
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}
.contact-input-card input::placeholder {
  color: rgba(104, 117, 109, .52);
}
.phone-step-card {
  min-height: 220px;
  align-content: start;
}
.phone-step-card > label:not(.checkbox) {
  gap: 8px;
}
.phone-step-card .checkbox {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 14px;
  line-height: 1.55;
}
.contact-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.contact-actions .primary-button,
.contact-actions .ghost-button {
  min-width: 180px;
}

.result-shell:not([hidden]) { display: block; }
.result-shell {
  border-color: rgba(83, 107, 58, .32);
  background: linear-gradient(135deg, #fffdf8, #eef4e7);
}
.result-depth {
  display: grid;
  gap: 16px;
  margin: 30px 0;
}
.result-depth section {
  border-left: 3px solid var(--gold);
  padding: 5px 0 5px 18px;
}
.result-depth h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.15;
}
.result-depth p { margin: 9px 0 0; }
.result-depth .result-depth-lead {
  border-left-width: 5px;
  background: rgba(255, 253, 248, .72);
  padding: 22px;
}
.result-depth .result-depth-step {
  border-color: var(--green);
  background: rgba(238, 244, 231, .9);
  padding: 20px;
}
.result-depth .result-depth-connection {
  border-color: #b88a2b;
  background: rgba(252, 247, 232, .82);
  padding: 20px;
}
.result-depth .result-depth-resource {
  border-color: var(--green);
  background: rgba(244, 248, 239, .9);
  padding: 20px;
}
.result-depth .result-depth-week {
  border-color: #426752;
  background: rgba(230, 241, 232, .82);
  padding: 20px;
}
.result-depth .result-depth-deeper {
  border-color: var(--ink);
  background: rgba(255, 253, 248, .82);
  padding: 20px;
}
.result-depth-signals ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.result-depth-signals li {
  position: relative;
  padding-left: 22px;
}
.result-depth-signals li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.explain {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 36px;
}
.explain-grid {
  display: grid;
  gap: 12px;
}
.explain-grid article {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 18px;
}
.explain-grid h3 { margin: 0; font-size: 20px; }
.explain-grid p { margin: 6px 0 0; }
.privacy { margin-bottom: 60px; }
.site-footer {
  padding: 30px;
  color: var(--muted);
  text-align: center;
}
.site-footer nav {
  justify-content: center;
  margin-bottom: 12px;
}
.site-footer p { margin: 0; }
.legal-page {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 86px) 0 48px;
}
.legal-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(26px, 5vw, 58px);
}
.legal-card h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 7vw, 84px);
  line-height: .95;
  letter-spacing: 0;
}
.legal-updated {
  margin: 14px 0 34px;
  color: var(--muted);
  font-weight: 800;
}
.legal-card section {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 24px;
}
.legal-card h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
}
.legal-card p, .legal-card address {
  margin: 0;
  color: var(--muted);
  font-style: normal;
  font-size: 17px;
  line-height: 1.75;
}
.legal-card p + p { margin-top: 10px; }

[hidden] { display: none !important; }

@keyframes sonar-pulse {
  0% {
    opacity: 0;
    transform: scale(.94);
  }
  16% {
    opacity: .9;
  }
  78% {
    opacity: 0;
    transform: scale(1.18);
  }
  100% {
    opacity: 0;
    transform: scale(1.22);
  }
}

@keyframes button-breathe {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 16px 36px rgba(49, 66, 37, .25), 0 0 0 1px rgba(255, 253, 248, .28) inset;
  }
  50% {
    transform: scale(1.045);
    box-shadow: 0 22px 46px rgba(49, 66, 37, .34), 0 0 0 1px rgba(255, 253, 248, .42) inset, 0 0 26px rgba(194, 150, 55, .28);
  }
}

@keyframes badge-pulse {
  0%, 100% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 18px 38px rgba(49, 66, 37, .24);
  }
  50% {
    transform: translateY(-50%) scale(1.035);
    box-shadow: 0 22px 52px rgba(49, 66, 37, .36), 0 0 22px rgba(194, 150, 55, .26);
  }
}

@keyframes status-scan {
  0% {
    transform: translateX(0);
    opacity: .72;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(92px);
    opacity: .72;
  }
}

@keyframes sticker-glow {
  0%, 100% {
    box-shadow: 0 0 0 rgba(244, 216, 144, 0);
  }
  50% {
    box-shadow: 0 0 22px rgba(244, 216, 144, .32);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sonar-button::before,
  .sonar-button::after {
    animation: none;
  }
  .sonar-button {
    animation: none;
  }
  .missing-link-badge {
    animation: none !important;
  }
  .status-card[data-status="prueft"] .status-pill::after,
  .status-card[data-status="aktiv"] .status-pill::after {
    animation: none !important;
  }
}

@media (max-width: 920px) {
  .name-shell:not([hidden]),
  .contact-shell:not([hidden]) {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .question-card h2,
  .name-shell h2,
  .contact-shell h2,
  .result-shell h2 {
    font-size: clamp(34px, 10vw, 48px);
    line-height: .98;
  }
  .question-card,
  .name-shell,
  .contact-shell,
  .result-shell {
    padding: clamp(22px, 6vw, 34px);
  }
  .contact-step-card {
    min-height: auto;
    padding: 20px;
  }
  .contact-input-card input {
    font-size: 16px;
  }
  .phone-step-card .checkbox {
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    line-height: 1.5;
  }
  .phone-step-card .checkbox input {
    flex: 0 0 18px;
    width: 18px;
    min-height: 18px;
  }
}

@media (max-width: 780px) {
  .site-header { position: relative; align-items: flex-start; flex-direction: column; }
  nav { width: 100%; justify-content: space-between; gap: 8px; font-size: 14px; }
  .hero, .name-shell:not([hidden]), .contact-shell:not([hidden]), .explain {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; }
  .hero-panel { min-height: 440px; }
  body.quiz-mode main {
    min-height: auto;
    display: block;
    overflow-x: clip;
    overflow-y: visible;
    padding: 18px 14px calc(104px + env(safe-area-inset-bottom));
  }
  body.quiz-mode .question-card, body.quiz-mode .name-shell, body.quiz-mode .contact-shell, body.quiz-mode .result-shell {
    min-height: auto;
    max-width: 100%;
    overflow-x: clip;
  }
  body.quiz-mode .quiz-actions,
  body.quiz-mode .contact-actions {
    position: fixed;
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 50;
    display: grid;
    grid-template-columns: minmax(76px, .42fr) minmax(0, 1fr);
    gap: 8px;
    border: 1px solid rgba(49, 66, 37, .18);
    border-radius: 18px;
    background: rgba(255, 253, 248, .95);
    padding: 8px;
    box-shadow: 0 18px 46px rgba(21, 33, 29, .18);
    backdrop-filter: blur(18px);
  }
  body.quiz-mode .quiz-actions .primary-button,
  body.quiz-mode .quiz-actions .ghost-button,
  body.quiz-mode .contact-actions .primary-button,
  body.quiz-mode .contact-actions .ghost-button {
    width: auto;
    min-width: 0;
    min-height: 52px;
    border-radius: 12px;
    padding: 0 12px;
    font-size: 14px;
    white-space: nowrap;
  }
  body.quiz-mode .quiz-actions .primary-button.is-waiting {
    border-color: #cfc8ba;
    background: #d8d4ca;
    color: #79766e;
    box-shadow: none;
    cursor: not-allowed;
  }
  body.quiz-mode .quiz-actions .primary-button.is-ready {
    border-color: var(--green-dark);
    background: var(--green);
    color: #fffdf8;
  }
  body.quiz-mode .quiz-actions .ghost-button,
  body.quiz-mode .contact-actions .ghost-button {
    border-color: rgba(49, 66, 37, .16);
    background: #f8f5ee;
  }
  body.quiz-mode .quiz-actions .ghost-button::before,
  body.quiz-mode .contact-actions .ghost-button::before {
    content: "‹";
    font-size: 22px;
    line-height: 1;
  }
  body.quiz-mode .quiz-actions .primary-button::after,
  body.quiz-mode .contact-actions .primary-button::after {
    content: "›";
    font-size: 22px;
    line-height: 1;
  }
  body.quiz-mode .contact-actions .primary-button[hidden],
  body.quiz-mode .contact-actions .ghost-button[hidden] {
    display: none !important;
  }
  body.quiz-mode .contact-actions:has(.ghost-button[hidden]) {
    grid-template-columns: 1fr;
  }
  body.quiz-mode .contact-actions:has(.ghost-button[hidden]) .primary-button {
    grid-column: 1;
  }
  body.quiz-mode .quiz-shell,
  body.quiz-mode .name-shell,
  body.quiz-mode .contact-shell,
  body.quiz-mode .result-shell {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }
  body.quiz-mode .question-card h2 {
    max-width: 100%;
    font-size: clamp(30px, 9.2vw, 38px);
    line-height: 1.03;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
  }
  body.quiz-mode .question-card > p:not(.section-label) {
    font-size: 16px;
    line-height: 1.45;
    overflow-wrap: normal;
    hyphens: manual;
  }
  .progress-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .answers {
    gap: 10px;
    margin-top: 20px;
  }
  .answer-option {
    min-height: 62px;
    padding: 14px;
    font-size: 15px;
    line-height: 1.3;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
  }
  .answers[data-density="compact"] {
    grid-template-columns: 1fr;
  }
  .answers[data-density="compact"] .answer-option {
    min-height: 0;
    padding: 16px 18px;
    font-size: 16px;
    line-height: 1.35;
  }
  .scale-answer {
    min-height: 0;
    padding: 20px;
  }
  .scale-labels {
    gap: 10px;
    font-size: 13px;
    line-height: 1.3;
    hyphens: manual;
  }
  .contact-shell > div > p:not(.section-label) {
    font-size: 16px;
    line-height: 1.5;
  }
  body.quiz-mode .contact-shell {
    gap: 12px;
  }
  body.quiz-mode .contact-shell .section-label {
    margin-bottom: 8px;
  }
  body.quiz-mode .contact-shell h2 {
    font-size: clamp(30px, 9vw, 38px);
    line-height: .98;
  }
  body.quiz-mode .contact-shell > div > p:not(.section-label) {
    margin: 10px 0 0;
    font-size: 15px;
    line-height: 1.45;
  }
  body.quiz-mode .contact-progress {
    height: 6px;
  }
  body.quiz-mode .contact-step-card {
    padding: 16px;
  }
  body.quiz-mode .contact-input-card {
    gap: 10px;
  }
  body.quiz-mode .contact-input-card input {
    min-height: 52px;
    margin-top: 6px;
  }
  body.quiz-mode .phone-step-card .checkbox {
    margin-top: 10px;
    padding-top: 12px;
    font-size: 12px;
    line-height: 1.42;
  }
  .core { width: 104px; font-size: 25px; }
  .answers, .lead-form { grid-template-columns: 1fr; }
  .status-card { align-items: flex-start; flex-direction: column; }
  .status-card[data-status="fehlt"] {
    padding: 24px;
    padding-bottom: 116px;
  }
  .missing-link-badge {
    top: auto;
    left: 20px;
    right: 20px;
    bottom: 22px;
    width: auto;
    transform: none;
    font-size: 11px;
  }
  .missing-link-badge strong {
    font-size: 11px;
  }
  .primary-button, .ghost-button { width: 100%; }
}

/* Safari keeps its browser controls above the visual viewport on the first tap.
   Lift the persistent quiz navigation so it remains directly tappable. */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 780px) {
    body.quiz-mode .quiz-actions,
    body.quiz-mode .contact-actions {
      bottom: calc(42px + env(safe-area-inset-bottom));
    }
  }
}

@media (hover: none) and (pointer: coarse) {
  .primary-button:hover,
  .ghost-button:hover,
  .answer-option:hover {
    transform: none;
  }
  .answer-option.active {
    transform: none;
  }
  .answer-option:focus:not(:focus-visible),
  .primary-button:focus:not(:focus-visible),
  .ghost-button:focus:not(:focus-visible) {
    outline: none;
  }
}
