/* =====================================================
   Bedarfs-Check Landingpage — reif & möller
   ===================================================== */

/* Atkinson Hyperlegible (selbst-gehostet) */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('/assets/fonts/AtkinsonHyperlegible-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('/assets/fonts/AtkinsonHyperlegible-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --rm-blue:        #054783;
  --rm-blue-deep:   #01284b;  /* CI-Footer-Blau */
  --rm-yellow:      #f9d500;
  --rm-yellow-soft: #fff8d4;
  --rm-gray:        #6F7072;
  --rm-gray-soft:   #f5f7fa;
  --rm-border:      #e3e8ef;
  --text-on-light:  #054783;
  --text-muted:     #6F7072;
  --text-on-dark:   #ffffff;
  --font-base: 'Atkinson Hyperlegible', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --space-xs: 4px; --space-sm: 8px; --space-md: 16px;
  --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px;
  --shadow-soft: 0 2px 8px rgba(5, 71, 131, 0.06);
  --shadow-medium: 0 6px 24px rgba(5, 71, 131, 0.10);
}

.bedarfscheck-body * { box-sizing: border-box; }
/* Override globaler `body { padding-top: 80px !important }` aus override.min.css */
body.bedarfscheck-body { padding-top: 0 !important; padding-bottom: 0 !important; }
.bedarfscheck-body { margin: 0; padding: 0; font-family: var(--font-base); color: var(--text-on-light); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.bedarfscheck-body a { color: var(--rm-blue); text-decoration: underline; text-underline-offset: 2px; }
.bedarfscheck-body a:hover { text-decoration-thickness: 2px; }
.bedarfscheck-body img { max-width: 100%; height: auto; }
.bedarfscheck-body button { font-family: inherit; cursor: pointer; }
.bedarfscheck-body legend { padding: 0; }

/* ===== Topbar ===== */
/* Wichtig: Override globaler Site-Regel `header { display: none }` */
header.bc-topbar,
.bedarfscheck-body .bc-topbar {
  display: block !important;
  position: sticky; top: 0; z-index: 50;
  background: #fff; box-shadow: 0 1px 0 var(--rm-border);
  color: inherit; font-size: inherit;
  margin-bottom: 0; padding: 0;
  white-space: normal;
}
.bc-topbar__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--space-lg);   /* 80px Logo + 18px*2 Padding = 116px Header-Höhe (wie MainNav) */
  min-height: 116px; box-sizing: border-box;
}
.bc-topbar__brand { display: inline-flex; align-items: center; }
/* Override globaler Regel `img { height: auto !important }` */
.bedarfscheck-body .bc-topbar__logo {
  height: 80px !important; width: auto !important;
  display: block; max-height: 80px; max-width: none;
}
.bc-topbar__badge {
  font-size: 12px; letter-spacing: 0.06em;
  color: var(--rm-blue); background: #fff;
  border: 1.5px solid var(--rm-border);
  padding: 8px 18px; border-radius: 999px;
  font-weight: 700; text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .bedarfscheck-body .bc-topbar__logo { height: 56px !important; }
  .bc-topbar__inner { min-height: 92px; padding: 14px var(--space-md); }
  .bc-topbar__badge { font-size: 10px; padding: 6px 12px; letter-spacing: 0.04em; }
}

/* ===== Hero ===== */
.bc-hero {
  background: var(--rm-blue-deep);
  color: var(--text-on-dark);
  position: relative; overflow: hidden;
}
.bc-hero::before {
  content: ''; position: absolute; right: -120px; top: -160px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(249, 213, 0, 0.18) 0%, rgba(249, 213, 0, 0) 70%);
  pointer-events: none;
}
.bc-hero__inner {
  max-width: 900px; margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
  position: relative;
}
.bc-hero__eyebrow {
  margin: 0 0 var(--space-md);
  color: var(--rm-yellow);
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
}
.bc-hero__title {
  margin: 0; font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.15; font-weight: 700;
  color: #ffffff;
}
.bc-hero__accent { color: var(--rm-yellow); }
.bc-hero__rule {
  display: block; width: 64px; height: 4px;
  background: var(--rm-yellow); margin: var(--space-lg) 0;
  border-radius: 2px;
}
.bc-hero__lead {
  margin: 0; font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55; max-width: 700px;
  color: rgba(255,255,255,0.94);
}

/* ===== Main / Form ===== */
.bc-main { background: #fff; }
.bc-form-section {
  max-width: 760px; margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg) var(--space-xl);
}
.bc-formError {
  background: #fdecec; color: #b3261e;
  padding: 14px 16px; border-radius: var(--r-sm);
  margin-bottom: var(--space-lg);
  font-size: 14px;
}

/* ===== Step Indicator ===== */
.bc-stepind { margin-bottom: var(--space-xl); }
.bc-stepind__row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: var(--space-sm);
}
.bc-stepind__counter {
  color: var(--rm-blue); font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.bc-stepind__counter [data-bc-step-num] {
  color: inherit; font-weight: inherit;
}
.bc-stepind__name { color: var(--text-muted); font-size: 14px; }
.bc-stepind__bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.bc-stepind__bar { height: 4px; background: var(--rm-border); border-radius: 2px; transition: background 0.2s ease; }
.bc-stepind__bar--active { background: var(--rm-yellow); }

/* ===== Form ===== */
.bc-form { display: block; }
.bc-step { border: 0; padding: 0; margin: 0 0 var(--space-lg); }
.bc-step[hidden] { display: none; }
.bc-step__legend {
  font-size: 26px; font-weight: 700; color: var(--rm-blue);
  margin: 0 0 var(--space-sm); padding: 0;
}
.bc-step__lead {
  margin: 0 0 var(--space-xl); padding: 0 0 var(--space-md);
  font-size: 17px; color: var(--text-muted); line-height: 1.55;
  border-bottom: 1px solid var(--rm-border);
}

.bc-field { margin-bottom: 32px; }
.bc-label {
  display: block; font-size: 17px; font-weight: 700;
  color: var(--rm-blue); margin-bottom: var(--space-sm);
  line-height: 1.4;
}
.bc-pflicht {
  display: inline-block; vertical-align: middle;
  margin-left: 6px;
  background: var(--rm-yellow); color: var(--rm-blue);
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px;
}
.bc-help { font-size: 13px; color: var(--rm-gray); font-style: italic; margin: var(--space-xs) 0 0; font-weight: 400; }
.bc-help--js-off { display: none; }

.bc-input, .bc-textarea {
  width: 100%; font-family: inherit; font-size: 16px;
  padding: 14px 16px; border: 1.5px solid var(--rm-border);
  border-radius: 8px; background: #fff; color: var(--text-on-light);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.bc-input:focus, .bc-textarea:focus {
  outline: none; border-color: var(--rm-blue);
  box-shadow: 0 0 0 3px rgba(5, 71, 131, 0.10);
}
.bc-textarea { resize: vertical; min-height: 100px; }
.bc-input--error { border-color: #b3261e; }
.bc-error { margin: var(--space-xs) 0 0; font-size: 13px; color: #b3261e; }

/* Single-Select gestapelt: aktive Option = weißer BG + blaue Border + gelber Strich links + gelber Häkchen + bold */
.bc-options-stack { display: flex; flex-direction: column; gap: 8px; }
.bc-option {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px 16px 22px; background: var(--rm-gray-soft);
  border: 1.5px solid transparent; border-radius: 8px;
  cursor: pointer; transition: all 0.15s ease;
  position: relative; overflow: hidden;
}
.bc-option input { position: absolute; opacity: 0; pointer-events: none; }
.bc-option__check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; flex: 0 0 18px;
  opacity: 0; transition: opacity 0.15s ease;
}
.bc-option__label { font-size: 17px; font-weight: 700; color: var(--rm-blue); }
.bc-option:hover { background: #ebf0f6; }
.bc-option--active {
  background: #fff; border-color: var(--rm-blue);
  box-shadow: var(--shadow-soft);
}
.bc-option--active::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 4px; background: var(--rm-yellow); border-radius: 0 2px 2px 0;
}
.bc-option--active .bc-option__check { opacity: 1; }

/* Multi-Select Chips — Override globaler label/color-Regeln mit hoher Specificity */
.bc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bedarfscheck-body .bc-chip {
  display: inline-flex; align-items: center;
  padding: 12px 22px; background: var(--rm-gray-soft);
  color: var(--rm-blue) !important; border-radius: 999px;
  cursor: pointer; transition: all 0.15s ease;
  font-size: 16px; font-weight: 700;
  line-height: 1.2;
  border: 1.5px solid transparent;
  margin: 0;
}
.bedarfscheck-body .bc-chip span {
  color: inherit !important;
  font-weight: inherit;
}
.bc-chip input { position: absolute; opacity: 0; pointer-events: none; }
.bedarfscheck-body .bc-chip:hover { background: #ebf0f6; }
.bedarfscheck-body .bc-chip--active,
.bedarfscheck-body .bc-chip--active:hover {
  background: var(--rm-blue) !important;
  color: #ffffff !important;
  border-color: var(--rm-blue);
}
.bedarfscheck-body .bc-chip--active span { color: #ffffff !important; }

/* Checkbox-Soft (DSGVO + Conditional) */
.bc-checkbox {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px; background: var(--rm-yellow-soft);
  border-radius: 8px; cursor: pointer;
  border: 1.5px solid transparent;
}
.bc-checkbox--error { border-color: #b3261e; }
.bc-checkbox input {
  margin: 2px 0 0; flex: 0 0 18px; width: 18px; height: 18px;
  accent-color: var(--rm-blue); cursor: pointer;
}
.bc-checkbox span { font-size: 16px; line-height: 1.5; }

.bc-conditional[hidden] { display: none; }

/* Honeypot */
.bc-honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* reCAPTCHA Notice */
.bc-formNotice {
  background: var(--rm-yellow-soft);
  padding: 14px 16px; border-radius: 8px;
  margin: var(--space-md) 0; font-size: 14px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border-left: 4px solid var(--rm-yellow);
}
.bc-btn--small { padding: 8px 14px; font-size: 13px; }

/* ===== Actions ===== */
.bc-actions {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding-top: var(--space-lg);
  border-top: 1px solid var(--rm-border);
  position: relative;
}
.bc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-size: 18px; font-weight: 700;
  padding: 14px 30px; border-radius: 8px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: all 0.15s ease;
}
.bc-btn--primary { background: var(--rm-blue); color: #fff; }
.bc-btn--primary:hover { background: #043466; box-shadow: var(--shadow-medium); transform: translateY(-1px); }
.bc-btn--secondary { background: transparent; color: var(--rm-blue); border-color: var(--rm-blue); }
.bc-btn--secondary:hover { border-width: 2px; }
.bc-btn[hidden] { display: none; }

/* ===== Trust ===== */
.bc-trust {
  margin: var(--space-xl) auto 0;
  max-width: 760px;
  background: var(--rm-gray-soft);
  border-radius: 12px;
  padding: 32px;
  border-left: 4px solid var(--rm-yellow);
}
.bc-trust--success { margin-bottom: var(--space-xl); }
.bc-trust__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bc-trust__col { display: block; }
.bc-trust__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; background: var(--rm-yellow);
  border-radius: 50%; margin-bottom: var(--space-sm);
}
.bc-trust__head { display: block; font-size: 16px; font-weight: 700; color: var(--rm-blue); margin-bottom: 4px; }
.bc-trust__text { margin: 0; font-size: 15px; color: var(--text-muted); line-height: 1.5; }

/* ===== Success ===== */
.bc-success { padding: var(--space-2xl) var(--space-lg); }
.bc-success__inner { max-width: 680px; margin: 0 auto; text-align: center; }
.bc-success__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--rm-yellow-soft); margin-bottom: var(--space-lg);
  border: 3px solid var(--rm-yellow);
}
.bc-success__title { font-size: 28px; margin: 0 0 var(--space-md); color: var(--rm-blue); }
.bc-success__text { font-size: 17px; margin: 0 0 var(--space-md); }
.bc-success__sub { font-size: 15px; color: var(--text-muted); margin: 0 0 var(--space-md); }
.bc-success__hint {
  background: var(--rm-yellow-soft); padding: 14px 18px;
  border-left: 4px solid var(--rm-yellow); border-radius: 4px;
  text-align: left; max-width: 540px; margin: var(--space-lg) auto;
  font-size: 14px;
}
.bc-success__contact { margin-top: var(--space-xl); font-size: 14px; color: var(--text-muted); }

/* ===== Success-State Reset / Reload (Messe-Kiosk) ===== */
.bc-success__reset {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px dashed var(--rm-border);
  text-align: center;
}
.bc-success__resetLead {
  font-size: 14px; color: var(--text-muted);
  margin: 0 auto var(--space-md); max-width: 520px;
}
a.bc-btn--reset,
a.bc-btn--reset:link,
a.bc-btn--reset:visited {
  display: inline-flex; align-items: center; gap: 12px;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 19px;
  animation: bcResetPulse 2.4s ease-in-out 1.5s infinite;
  box-shadow: 0 0 0 0 rgba(249, 213, 0, 0.55);
}
a.bc-btn--reset:hover,
a.bc-btn--reset:focus-visible {
  color: #fff !important;
  text-decoration: none !important;
  animation-play-state: paused;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(5, 71, 131, 0.28);
}
.bc-btn__icon { display: inline-flex; align-items: center; }
.bc-btn--reset:hover .bc-btn__icon svg,
.bc-btn--reset:focus-visible .bc-btn__icon svg {
  transform: rotate(-180deg);
  transition: transform 0.5s ease;
}
.bc-btn__icon svg { transition: transform 0.5s ease; }

@keyframes bcResetPulse {
  0%   { box-shadow: 0 0 0 0   rgba(249, 213, 0, 0.55); }
  60%  { box-shadow: 0 0 0 14px rgba(249, 213, 0, 0); }
  100% { box-shadow: 0 0 0 0   rgba(249, 213, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .bc-btn--reset { animation: none; }
  .bc-btn__icon svg { transition: none; }
}

/* ===== Footer ===== */
/* Override globaler `footer { color/font-size/margin/before }`-Regeln */
footer.bc-footer,
.bedarfscheck-body .bc-footer {
  background: var(--rm-blue-deep);
  color: #c9d3e0 !important;
  padding: var(--space-xl) var(--space-lg);
  font-size: 15px !important; line-height: 1.7;
  margin: 0 !important;
  border-top: 0;
}
.bc-footer:before { content: none !important; display: none !important; }
.bc-footer__inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
.bc-footer a { color: #fff; text-decoration: none; }
.bc-footer a:hover { text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .bc-trust__inner { grid-template-columns: 1fr; gap: 18px; }
  .bc-trust { padding: 24px; }
  .bc-form-section { padding: var(--space-xl) var(--space-md); }
  .bc-hero__inner { padding: var(--space-xl) var(--space-md); }
  .bc-stepind__name { display: none; }
  .bc-actions { display: flex; flex-direction: column-reverse; gap: 10px; }
  .bc-btn { width: 100%; }
  .bc-step__legend { font-size: 22px; }
}

/* ===== JS-Off Fallback ===== */
.no-js .bc-step[hidden] { display: block !important; }
.no-js .bc-stepind { display: none; }
.no-js [data-bc-prev], .no-js [data-bc-next] { display: none !important; }
.no-js [data-bc-submit] { display: inline-flex !important; }
.no-js .bc-actions { justify-content: flex-end; border-top: 1px solid var(--rm-border); padding-top: var(--space-lg); }
.no-js .bc-conditional[hidden] { display: block !important; }
.no-js .bc-help--js-off { display: block; }
