:root {
  --sp-teal: #70BFCB;
  --sp-dark: #123B4E;
  --sp-blue: #227296;
  --sp-green: #1E847F;
  --sp-pale: #F4FBFC;
  --sp-soft: #E5F4F7;
  --sp-border: #B7D5DC;
  --sp-text: #0A2F43;
  --sp-muted: #4D6270;
  --sp-white: #FFFFFF;
  --background: #F4F7F8;
  --sp-error: #8A1F11;
  --shadow: 0 14px 36px rgba(18, 59, 78, 0.12);
  --radius-lg: 12px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1240px;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--sp-text);
  background: var(--background);
  line-height: 1.55;
}

a { color: var(--sp-blue); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--sp-dark);
  color: #fff;
  padding: 10px 14px;
  z-index: 20;
}

.skip-link:focus { left: 8px; }

.shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  background: var(--sp-dark);
  color: #fff;
  border-bottom: 5px solid var(--sp-teal);
}

.header-inner {
  min-height: clamp(70px, 9dvh, 90px);
  padding-block: clamp(10px, 1.6dvh, 16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-logo {
  display: block;
  width: clamp(52px, 6.5vw, 72px);
  height: auto;
  border-radius: 10px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  color: #FFFFFF;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 800;
  line-height: 1;
}

.brand-subtitle {
  color: #D6E8EC;
  font-size: clamp(0.82rem, 1.2vw, 0.95rem);
  line-height: 1.2;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: #B4DCEE;
}

.eyebrow.dark { color: var(--sp-blue); }

.brand-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.pilot-label {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.9rem;
}

.main-shell {
  margin: 28px auto 0;
  padding-bottom: 36px;
}

.section-card {
  background: var(--sp-white);
  border: 1px solid #D7E6EA;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  padding: 26px;
}

.hero {
  border-top: 7px solid var(--sp-teal);
}

h1, h2, h3 {
  color: var(--sp-dark);
  line-height: 1.22;
  margin: 0 0 14px;
}

h1 { font-size: clamp(2rem, 4vw, 3.15rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

.lead {
  font-size: 1.12rem;
  color: #314C5B;
  max-width: 920px;
  margin: 0 0 22px;
}

.section-intro {
  margin: 0;
  color: var(--sp-muted);
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.notice-box {
  background: var(--sp-pale);
  border: 1px solid var(--sp-border);
  border-radius: var(--radius-md);
  padding: 16px;
  min-height: 118px;
}

.notice-box strong,
.notice-box span { display: block; }

.notice-box strong { margin-bottom: 8px; color: var(--sp-dark); }
.notice-box span { color: var(--sp-muted); }

.privacy-card {
  background: #F9FCFD;
  box-shadow: none;
}

.assessment-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 22px;
}

.progress-wrap {
  min-width: 230px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--sp-pale);
  border: 1px solid var(--sp-border);
}

#stepLabel {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--sp-dark);
}

.progress-bar {
  height: 10px;
  background: #DDECEF;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--sp-teal);
  transition: width 0.2s ease;
}

.step-panel {
  border: 1px solid #C9DEE4;
  background: #FBFEFE;
  border-radius: var(--radius-lg);
  padding: 22px;
  min-height: 340px;
}

.step-kicker {
  color: var(--sp-blue);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

label span.label-title,
.field-label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--sp-dark);
}

input[type="text"],
textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--sp-border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font: inherit;
  color: var(--sp-text);
  background: #fff;
}

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

input:focus,
textarea:focus,
button:focus,
.option-card:focus-within {
  outline: 3px solid rgba(112, 191, 203, 0.45);
  outline-offset: 2px;
}

.counter-row {
  display: flex;
  justify-content: flex-end;
  color: var(--sp-muted);
  font-size: 0.82rem;
  margin-top: 6px;
}

.option-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 20px;
}

.option-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--sp-border);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.option-card:hover,
.option-card.selected {
  border-color: var(--sp-teal);
  background: #F1FAFC;
  box-shadow: 0 10px 24px rgba(18, 59, 78, 0.08);
}

.option-card input {
  margin-top: 5px;
  accent-color: var(--sp-blue);
}

.option-title {
  display: block;
  font-weight: 700;
  color: var(--sp-dark);
}

.option-description {
  display: block;
  color: var(--sp-muted);
  margin-top: 4px;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 24px;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  min-height: 48px;
}

.primary-button {
  background: var(--sp-dark);
  color: #fff;
}

.primary-button:hover { background: #0A2F43; }

.secondary-button {
  background: var(--sp-soft);
  color: var(--sp-dark);
  border: 1px solid var(--sp-border);
}

.secondary-button:hover { background: #D8EEF2; }

.ghost-button {
  background: transparent;
  color: var(--sp-dark);
  border: 1px solid transparent;
}

.ghost-button:hover { border-color: var(--sp-border); background: #F7FBFC; }

button[hidden] { display: none; }
button:disabled { opacity: 0.55; cursor: not-allowed; }

.form-error {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #FFF4F0;
  border: 1px solid #F0B6A7;
  color: var(--sp-error);
  font-weight: 700;
}

.result-card {
  border-top: 7px solid var(--sp-teal);
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 16px;
  margin-top: 12px;
}

.result-box,
.score-box,
.profile-box {
  background: var(--sp-pale);
  border: 1px solid #D2E5EA;
  border-radius: var(--radius-md);
  padding: 18px;
}

.route-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--sp-dark);
  font-weight: 700;
  margin-bottom: 14px;
}

.next-steps {
  padding-left: 20px;
}

.score-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #D6E5E9;
}

.score-row:last-child { border-bottom: 0; }
.score-row strong { color: var(--sp-dark); }

.profile-box {
  grid-column: 1 / -1;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-item strong,
.profile-item span { display: block; }
.profile-item strong { color: var(--sp-dark); }
.profile-item span { color: var(--sp-muted); white-space: pre-wrap; }

.small-note {
  margin-top: 18px;
  color: var(--sp-muted);
  font-size: 0.92rem;
}

.site-footer {
  padding: 30px 0;
  color: #E8F6F8;
  background: var(--sp-dark);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.footer-inner p {
  margin: 6px 0 0;
  color: #CFE3E7;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
}

.footer-inner a {
  color: #E8F6F8;
}

@media (max-width: 840px) {
  .header-inner,
  .assessment-head,
  .result-grid {
    display: block;
  }

  .pilot-label { display: inline-block; margin-top: 16px; }
  .progress-wrap { margin-top: 16px; min-width: 0; }
  .notice-grid,
  .form-grid,
  .profile-grid { grid-template-columns: 1fr; }
  .section-card { padding: 20px; }
  .step-panel { padding: 18px; }
  .result-grid > * + * { margin-top: 14px; }
}

@media (max-width: 520px) {
  .main-shell { margin-top: 16px; padding-left: 12px; padding-right: 12px; }
  .section-card { border-radius: 16px; padding: 16px; }
  .brand { align-items: flex-start; }
  .brand-logo { width: 56px; }
  .button-row { align-items: stretch; }
  .button-row button { width: 100%; }
  .option-card { grid-template-columns: 1fr; }
  .option-card input { position: absolute; right: 16px; top: 16px; }
}

@media print {
  body { background: #fff; }
  .site-header, .site-footer, .privacy-card, .wizard-card, .result-actions, .skip-link { display: none !important; }
  .section-card { box-shadow: none; border: 1px solid #ccc; }
  .result-grid { grid-template-columns: 1fr; }
}

body.menu-open { overflow: hidden; }
.site-header {
  position: fixed;
  z-index: 1500;
  inset: 0 0 auto;
  border-bottom: 1px solid rgba(112, 191, 203, .16);
  background: rgba(18, 59, 78, .96);
  color: #fff;
  backdrop-filter: blur(14px);
  transition: box-shadow .18s ease, background-color .18s ease;
}
.site-header.is-scrolled { background: rgba(18, 59, 78, .99); box-shadow: 0 12px 30px rgba(7,31,30,.22); }
.site-header .header-inner { min-height: 72px; justify-content: flex-start; padding-block: 8px; }
.site-header .brand,
.mobile-navigation .brand { display: inline-flex; width: clamp(96px, 7vw, 128px); height: 56px; flex: 0 0 auto; align-items: center; text-decoration: none; }
.site-header .brand img,
.mobile-navigation .brand img { display: block; width: auto; max-width: 100%; height: 52px; object-fit: contain; border-radius: 0; }
.desktop-nav--module { display: flex; flex: 1 1 auto; justify-content: flex-end; gap: 4px; }
.desktop-nav--module a,
.header-exit-link { display: inline-flex; min-height: 40px; align-items: center; border-radius: 8px; padding: 8px 10px; color: #fff; font-size: .84rem; font-weight: 700; line-height: 1.25; text-decoration: none; }
.desktop-nav--module a:hover,
.desktop-nav--module a[aria-current="page"] { background: rgba(112,191,203,.12); color: var(--sp-teal); }
.header-exit-link { flex: 0 0 auto; border: 1px solid rgba(112,191,203,.45); background: rgba(255,255,255,.06); }
.header-exit-link:hover,
.mobile-exit-link:hover { background: var(--sp-teal); color: var(--sp-dark); }
.menu-button { display: none; width: 46px; height: 46px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; margin-left: auto; border: 1px solid rgba(255,255,255,.28); border-radius: 10px; background: transparent; cursor: pointer; }
.menu-button span { width: 21px; height: 2px; border-radius: 999px; background: #fff; }
.mobile-navigation { position: fixed; z-index: 3000; inset: 0; padding: 16px; background: rgba(7,31,30,.98); }
.mobile-navigation[hidden] { display: none; }
.mobile-navigation__panel { overflow-y: auto; max-height: calc(100vh - 32px); border: 1px solid rgba(112,191,203,.3); border-radius: 22px; padding: 22px; background: var(--sp-dark); }
.mobile-navigation__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.menu-close { width: 44px; height: 44px; border: 0; border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; font-size: 1.45rem; cursor: pointer; }
.mobile-navigation nav { display: grid; gap: 5px; margin-bottom: 22px; }
.mobile-navigation nav a,
.mobile-exit-link { border-radius: 10px; padding: 12px 13px; color: #fff; font-size: 1.02rem; font-weight: 700; text-decoration: none; }
.mobile-navigation nav a:hover,
.mobile-navigation nav a[aria-current="page"] { background: rgba(112,191,203,.13); }
.mobile-exit-link { display: inline-flex; border: 1px solid rgba(112,191,203,.45); }
.main-shell { padding-top: calc(86px + clamp(14px, 2dvh, 24px)); }
.module-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.module-breadcrumb a { display: inline-flex; border: 1px solid var(--sp-border); border-radius: 999px; padding: 8px 12px; background: rgba(255,255,255,.9); color: var(--sp-dark); font-size: .9rem; font-weight: 700; text-decoration: none; }
.module-breadcrumb a:hover { border-color: var(--sp-teal); color: var(--sp-blue); }
@media (max-width: 1280px) { .desktop-nav--module, .header-exit-link { display: none; } .menu-button { display: inline-flex; } }
@media (max-width: 680px) { .site-header .brand, .mobile-navigation .brand { width: 96px; height: 52px; } .site-header .brand img, .mobile-navigation .brand img { height: 48px; } }
@media print { .mobile-navigation, .module-breadcrumb, .site-header { display: none !important; } .main-shell { padding-top: 0; } }


/* R3 – geführte Seitenlogik, kompaktere Ergebnis- und Anfrageansicht */
.main-shell { margin-top: 22px; }
.hero.section-card { padding: 20px 24px; }
.hero h1 { font-size: clamp(2rem, 3.3vw, 2.8rem); }
.hero .lead { margin-bottom: 14px; }
.notice-grid { gap: 10px; }
.notice-box { min-height: auto; padding: 12px 14px; }
.wizard-card .assessment-head { margin-bottom: 16px; }
.result-card { padding: 22px 26px; }
.result-card h2#result-title { font-size: clamp(1.75rem, 2.8vw, 2.25rem); }
.result-grid { grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.85fr); gap: 14px; }
.next-step-box { grid-column: 1 / -1; }
.result-box, .score-box, .profile-box, .cta-result-box { padding: 15px; }
.cta-result-box { border: 2px solid var(--sp-teal); border-radius: var(--radius-md); background: #FFFFFF; }
.route-pill { margin-bottom: 10px; }
.next-steps li { margin: 3px 0; }
.small-note, .cta-hint { display: none; }
.request-card { padding: 22px 26px; }
.confirmation-list { display: grid; gap: 10px; margin-top: 18px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--sp-border); border-radius: var(--radius-sm); background: #fff; }
.check-row input { margin-top: 4px; accent-color: var(--sp-blue); }
.order-actions { margin-top: 18px; padding: 16px; border: 1px solid var(--sp-border); border-radius: var(--radius-md); background: var(--sp-pale); }
.case-number-box { display: inline-grid; gap: 3px; padding: 10px 12px; border-radius: var(--radius-sm); background: #FFFFFF; border: 1px solid var(--sp-border); }
.status-message { color: var(--sp-green); font-weight: 700; }
.link-button, .overview-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
@media (max-width: 840px) { .hero.section-card { padding: 18px; } .notice-grid { grid-template-columns: 1fr; } }
/* iOS/mobile safe-area root background correction */
html {
  min-height: 100%;
  background: #123B4E;
  background-color: #123B4E;
  overscroll-behavior-y: none;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #123B4E;
  background-color: #123B4E;
}

main,
.site-main,
.page-main {
  flex: 1 0 auto;
  background: #FFFFFF;
}

.site-header,
.mobile-header,
.mobile-navigation,
.mobile-navigation__panel,
.mobile-navigation__header,
.site-footer {
  background: #123B4E;
  background-color: #123B4E;
}

.mobile-navigation,
.mobile-navigation__panel,
.site-footer {
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

