/* ──────────────────────────────────────────────────────────────
   subpage.css — gemeinsame Basis für Internaix-Fachseiten.
   Bewusst eigenständig: die Startseite behält ihr Inline-CSS,
   damit hier nichts an ihr refaktoriert werden muss.
   ────────────────────────────────────────────────────────────── */

:root {
  --blue: #3d7fff;
  --orange: #e8823a;
  --bg: #0c0e14;
  --bg2: #0f111a;
  --bg3: #13161f;
  --bg4: #080a10;
  --text: #e2e6f0;
  --muted: #8892a4;
  --subtle: #5a6272;
  --border: rgba(255, 255, 255, 0.07);
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: rgba(61, 127, 255, 0.3);
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #2a2f3d;
  border-radius: 3px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── NAV ── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 80px);
  transition:
    background 0.3s,
    backdrop-filter 0.3s,
    border-color 0.3s;
}

#nav.scrolled {
  background: rgba(12, 14, 20, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.btn-nav {
  background: var(--blue);
  color: #fff;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.btn-nav:hover {
  opacity: 0.85;
}

.nav-links a.btn-nav,
.nav-links a.btn-nav:hover,
#mobile-menu a.btn-nav {
  color: #fff;
}

#hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

#mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  padding: 24px clamp(20px, 5vw, 80px);
  flex-direction: column;
  gap: 20px;
  z-index: 99;
}

#mobile-menu.open {
  display: flex;
}

#mobile-menu a {
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
}

#mobile-menu .btn-nav {
  text-align: center;
  padding: 12px 20px;
  font-size: 15px;
}

.logo-intern,
.logo-x {
  fill: var(--blue);
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
}

.logo-ai {
  fill: var(--orange);
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font-body);
  transition:
    opacity 0.2s,
    transform 0.2s;
  box-shadow: 0 0 32px rgba(61, 127, 255, 0.35);
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--text);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    border-color 0.2s,
    color 0.2s;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* ── SECTIONS ── */
.section {
  padding: 88px clamp(20px, 5vw, 80px);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-inner.narrow {
  max-width: 820px;
}

.bg2 {
  background: var(--bg2);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.section-label-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.section-label span {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h2 {
  font-family: var(--font-head);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: #eef0f6;
  text-wrap: pretty;
}

h3 {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  color: #eef0f6;
  line-height: 1.35;
  text-wrap: pretty;
}

/* ── FLIESSTEXT ── */
.prose p {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--muted);
  line-height: 1.8;
  margin-top: 18px;
  text-wrap: pretty;
}

.prose p.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: #c8d0e0;
}

.prose h2 + p {
  margin-top: 20px;
}

.prose strong {
  color: #c8d0e0;
  font-weight: 600;
}

/* ── LISTEN MIT PRÜFHAKEN ── */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  list-style: none;
  font-size: 15px;
  line-height: 1.6;
  color: #a8b2c4;
}

.checklist li svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--orange);
}

/* menschliche Entscheidungspunkte */
.checklist.human li svg {
  color: var(--orange);
}

/* Ausschlusskriterien */
.checklist.no li svg {
  color: var(--subtle);
}

/* neutrale Ablaufschritte */
.checklist.steps li svg {
  color: var(--blue);
}

.checklist.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px 32px;
}

/* ── KARTEN ── */
.card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.card-highlight {
  background: linear-gradient(
    135deg,
    rgba(61, 127, 255, 0.12),
    rgba(61, 127, 255, 0.05)
  );
  border-color: rgba(61, 127, 255, 0.3);
}

.card-highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--subtle);
  margin-bottom: 28px;
}

.breadcrumb a {
  color: var(--muted);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--text);
}

.breadcrumb [aria-current="page"] {
  color: #a8b2c4;
}

.breadcrumb .sep {
  color: var(--subtle);
}

/* ── SEITENKOPF ── */
#pagehead {
  padding: 132px clamp(20px, 5vw, 80px) 76px;
  background:
    radial-gradient(
      ellipse 70% 60% at 72% 18%,
      rgba(61, 127, 255, 0.1) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 40% 40% at 12% 92%,
      rgba(232, 130, 58, 0.07) 0%,
      transparent 55%
    ),
    var(--bg);
  position: relative;
  overflow: hidden;
}

#pagehead::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.pagehead-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

h1 {
  font-family: var(--font-head);
  font-size: clamp(31px, 4.6vw, 54px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #eef0f6;
  margin-bottom: 24px;
  text-wrap: pretty;
}

h1 .accent {
  color: var(--orange);
}

.offer-line {
  margin-top: 22px;
  font-size: 15px;
  color: #c8d0e0;
  line-height: 1.6;
  padding-left: 14px;
  border-left: 2px solid var(--orange);
  text-wrap: pretty;
}

.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
}

/* ── ABLAUFKETTE ── */
.flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 32px;
}

.flow-step {
  border: 1px solid var(--border);
  background: var(--bg3);
  border-radius: 40px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #c8d0e0;
  white-space: nowrap;
}

.flow-step.tech {
  border-color: rgba(61, 127, 255, 0.35);
  color: var(--blue);
}

.flow-step.human {
  border-color: rgba(232, 130, 58, 0.35);
  color: var(--orange);
}

.flow-arrow {
  color: var(--subtle);
  font-size: 14px;
  line-height: 1;
}

/* ── NUMMERIERTE SCHRITTE ── */
.steps {
  display: grid;
  gap: 0;
  margin-top: 40px;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.step:last-child {
  border-bottom: 1px solid var(--border);
}

.step-n {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.08em;
  padding-top: 3px;
}

.step.human .step-n {
  color: var(--orange);
}

.step p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-top: 8px;
  text-wrap: pretty;
}

/* ── PREISBOX ── */
.price-box {
  margin-top: 30px;
  padding: 26px 30px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(61, 127, 255, 0.14),
    rgba(61, 127, 255, 0.05)
  );
  border: 1px solid rgba(61, 127, 255, 0.3);
  text-align: center;
}

.price-box .amount {
  font-family: var(--font-head);
  font-size: clamp(26px, 3.6vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  color: #eef0f6;
}

.price-box .amount span {
  color: var(--orange);
  font-size: 0.52em;
  letter-spacing: 0;
}

.price-box .terms {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

/* ── FAQ ── */
.faq {
  margin-top: 40px;
  border-top: 1px solid var(--border);
}

.faq-item {
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}

.faq-item p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 10px;
  text-wrap: pretty;
}

/* ── ABSCHLUSS-SIGNATUR ── */
.signature {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.signature .name {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: #eef0f6;
}

.signature .claim {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}

.signature .domain {
  font-size: 13px;
  color: var(--subtle);
  margin-top: 8px;
}

/* ── FOOTER ── */
footer {
  padding: 32px clamp(20px, 5vw, 80px);
  background: var(--bg4);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links button {
  background: none;
  border: none;
  color: var(--subtle);
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: color 0.2s;
  padding: 0;
}

.footer-links button:hover {
  color: var(--muted);
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--subtle);
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--muted);
}

.footer-copy {
  color: #3a4258;
  font-size: 13px;
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.25s;
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
}

.modal-head {
  padding: 28px 32px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-head h2 {
  font-size: 22px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.modal-body {
  padding: 28px 32px;
  overflow-y: auto;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.modal-body h3 {
  color: #c8d0e0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  margin-top: 28px;
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body h4 {
  color: #c8d0e0;
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 20px;
}

.modal-body p {
  margin-bottom: 12px;
}

.modal-body a {
  color: var(--blue);
}

/* ── COOKIE-BANNER ── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--bg3);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px clamp(20px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

#cookie-banner p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 680px;
}

#cookie-banner .ds-link {
  background: none;
  border: none;
  color: var(--blue);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-actions button {
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition:
    opacity 0.2s,
    color 0.2s,
    border-color 0.2s;
}

#cookie-decline {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 16px;
}

#cookie-decline:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
}

#cookie-accept {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 8px 20px;
  font-weight: 600;
}

#cookie-accept:hover {
  opacity: 0.88;
}

/* ── FADE IN ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  #hamburger {
    display: block;
  }

  #pagehead {
    padding-top: 116px;
  }

  .step {
    grid-template-columns: 34px 1fr;
    gap: 14px;
  }

  .modal-head,
  .modal-body {
    padding-left: 22px;
    padding-right: 22px;
  }
}

/* ── HINWEISBOX (menschliche Kontrolle) ── */
.notice {
  margin-top: 32px;
  padding: 24px 28px;
  border-radius: 14px;
  background: rgba(232, 130, 58, 0.07);
  border: 1px solid rgba(232, 130, 58, 0.28);
  border-left-width: 3px;
}

.notice .notice-head {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1.35;
}

.notice p {
  margin-top: 10px;
  font-size: 15px;
  color: #a8b2c4;
  line-height: 1.75;
  text-wrap: pretty;
}

/* ── ZAHLUNGSPLAN ── */
.pay-plan {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.pay-plan div {
  text-align: center;
}

.pay-plan .share {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
}

.pay-plan .sum {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  color: #eef0f6;
  margin-top: 4px;
}

.pay-plan .when {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.5;
}

/* ── TEASER (Startseite verweist hierher) ── */
.price-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
  text-wrap: pretty;
}

/* ── EIGNUNGSCHECK ── */

/* kompakter Seitenkopf: der Check soll ohne Scrollen beginnen */
#pagehead.compact {
  padding: 104px clamp(20px, 5vw, 80px) 34px;
}

#pagehead.compact h1 {
  font-size: clamp(25px, 2.5vw, 34px);
  line-height: 1.2;
  max-width: 620px;
  margin-bottom: 0;
}

#pagehead.compact .breadcrumb {
  margin-bottom: 20px;
}

#pagehead.compact .section-label {
  margin-bottom: 12px;
}

.quiz {
  max-width: 960px;
  margin: 0 auto;
}

/* die eigentliche Frage sitzt in einer abgegrenzten Karte */
.quiz-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px clamp(20px, 3.5vw, 40px) 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.quiz-progress {
  margin-bottom: 26px;
}

.quiz-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--subtle);
  margin-bottom: 10px;
}

.quiz-progress-head strong {
  color: var(--blue);
  font-weight: 700;
}

.quiz-bar {
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.quiz-bar span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--blue);
  transition: width 0.35s ease;
}

.quiz-question {
  font-family: var(--font-head);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #eef0f6;
  max-width: 640px;
  text-wrap: pretty;
  outline: none;
}

.quiz-hint {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.quiz-options {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Antwortflaechen: echte Auswahlkarten, nie native Buttons */
.option {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  text-align: left;
  background: var(--bg2);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 14px 20px;
  color: #c8d0e0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  cursor: pointer;
  transition:
    border-color 0.18s,
    background 0.18s,
    color 0.18s;
}

.option:hover {
  border-color: rgba(61, 127, 255, 0.4);
  background: rgba(61, 127, 255, 0.06);
  color: #eef0f6;
}

.option:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* gewaehlt: deutlich, aber ruhig */
.option[aria-pressed="true"] {
  border-color: rgba(61, 127, 255, 0.55);
  background: rgba(61, 127, 255, 0.11);
  color: #eef0f6;
}

.option-box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition:
    border-color 0.18s,
    background 0.18s;
}

.option-box.round {
  border-radius: 50%;
}

.option[aria-pressed="true"] .option-box {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.quiz-nav {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* Zurueck: sekundaerer Button im Designsystem */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.quiz-nav .btn-primary {
  margin-left: auto;
}

.btn-primary:focus-visible,
.btn-ghost:focus-visible,
.btn-submit:focus-visible,
.modal-close:focus-visible,
.footer-links button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.quiz-next[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

/* ── ERGEBNIS ── */
.result-level {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 40px;
  padding: 6px 15px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.result-level.hoch {
  background: rgba(61, 127, 255, 0.14);
  border: 1px solid rgba(61, 127, 255, 0.4);
  color: var(--blue);
}

.result-level.mittel {
  background: rgba(232, 130, 58, 0.12);
  border: 1px solid rgba(232, 130, 58, 0.38);
  color: var(--orange);
}

.result-level.niedrig {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
}

.result h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  outline: none;
}

.result .prose p {
  font-size: 15px;
  line-height: 1.75;
}

.result h3 {
  font-size: 16px;
}

/* ── FORMULAR ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label,
.form-group legend {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  background: var(--bg3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 13px 16px;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: var(--bg2);
  font-size: 15px;
  color: #c8d0e0;
  cursor: pointer;
  transition:
    border-color 0.18s,
    background 0.18s,
    color 0.18s;
}

.radio-row label:hover {
  border-color: rgba(61, 127, 255, 0.4);
  color: #eef0f6;
}

/* native Radios und Checkbox vollstaendig ersetzen */
.radio-row input[type="radio"],
.consent-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition:
    border-color 0.18s,
    background 0.18s;
}

.radio-row input[type="radio"] {
  border-radius: 50%;
}

.consent-row input[type="checkbox"] {
  border-radius: 6px;
  margin-top: 1px;
}

.radio-row input[type="radio"]::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  transform: scale(0);
  transition: transform 0.16s ease;
}

.consent-row input[type="checkbox"]::before {
  content: "";
  width: 11px;
  height: 11px;
  transform: scale(0);
  transition: transform 0.16s ease;
  background: #fff;
  clip-path: polygon(
    14% 44%,
    0 59%,
    39% 100%,
    100% 20%,
    85% 5%,
    39% 70%
  );
}

.radio-row input[type="radio"]:checked,
.consent-row input[type="checkbox"]:checked {
  border-color: var(--blue);
  background: var(--blue);
}

.radio-row input[type="radio"]:checked::before,
.consent-row input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.radio-row input:focus-visible,
.consent-row input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.radio-row label:has(input:checked) {
  border-color: rgba(61, 127, 255, 0.55);
  background: rgba(61, 127, 255, 0.11);
  color: #eef0f6;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  cursor: pointer;
}

.consent-row .ds-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--blue);
  text-decoration: underline;
  cursor: pointer;
}

.btn-submit {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 15px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition:
    opacity 0.2s,
    transform 0.2s;
  font-family: var(--font-body);
  box-shadow: 0 0 28px rgba(61, 127, 255, 0.3);
  width: 100%;
}

.btn-submit:hover:not(:disabled) {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-submit:disabled {
  background: #2a2f3d;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.form-error {
  font-size: 13px;
  color: var(--orange);
  background: rgba(232, 130, 58, 0.1);
  border: 1px solid rgba(232, 130, 58, 0.25);
  border-radius: 8px;
  padding: 11px 14px;
  margin-bottom: 16px;
}

.form-error a {
  color: var(--orange);
  text-decoration: underline;
}

.success-box {
  text-align: center;
  padding: 48px 32px;
  background: var(--bg3);
  border-radius: 16px;
  border: 1px solid rgba(61, 127, 255, 0.25);
  outline: none;
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(61, 127, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--blue);
}

.success-box h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.success-box p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  #pagehead.compact {
    padding-top: 96px;
  }

  .quiz-card {
    padding: 26px 20px 24px;
  }

  .quiz-nav .btn-primary {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .radio-row label {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

.quiz-section {
  padding-top: 34px;
}

/* flache Desktop-Viewports (z. B. 1366x768): Frage muss vollstaendig
   sichtbar bleiben, ohne dass die Bedienhoehe darunter leidet */
@media (min-width: 901px) and (max-height: 840px) {
  #pagehead.compact {
    padding-top: 92px;
    padding-bottom: 24px;
  }

  #pagehead.compact h1 {
    font-size: 27px;
  }

  #pagehead.compact .breadcrumb {
    margin-bottom: 16px;
  }

  .quiz-section {
    padding-top: 24px;
  }

  .quiz-card {
    padding-top: 26px;
    padding-bottom: 24px;
  }

  .quiz-progress {
    margin-bottom: 20px;
  }

  .quiz-options {
    margin-top: 20px;
    gap: 9px;
  }

  .option {
    min-height: 52px;
    padding: 12px 18px;
  }

  .quiz-nav {
    margin-top: 20px;
    padding-top: 16px;
  }
}

/* ab fuenf Antworten zweispaltig; mobil bleibt es einspaltig */
@media (min-width: 901px) {
  .quiz-options.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .quiz-options.grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}
