/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0D1528;
  --bg-card:     #162040;
  --bg-card2:    #1a2850;
  --orange:      #F97316;
  --orange-dark: #EA6B0A;
  --orange-light:#FED7AA;
  --white:       #ffffff;
  --text:        #e2e8f0;
  --text-muted:  #94a3b8;
  --border:      rgba(255,255,255,.08);
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 4px 24px rgba(0,0,0,.4);

  --green-bg:    rgba(34,197,94,.15);
  --green-fg:    #4ade80;
  --green-border:rgba(74,222,128,.3);
  --yellow-bg:   rgba(234,179,8,.15);
  --yellow-fg:   #facc15;
  --yellow-border:rgba(250,204,21,.3);
  --red-bg:      rgba(239,68,68,.15);
  --red-fg:      #f87171;
  --red-border:  rgba(248,113,113,.3);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Arial', Helvetica, sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-light); }

/* ---- Site Header ---- */
.site-header {
  background: rgba(13,21,40,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  flex-shrink: 0;
}
.logo-text {
  font-size: 18px;
  font-weight: bold;
  color: var(--white);
  display: block;
  letter-spacing: -.3px;
}
.logo-text span { color: var(--orange); }
.logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}
.header-badge {
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ---- Container ---- */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

/* ---- Hero ---- */
.hero {
  text-align: center;
  margin-bottom: 40px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249,115,22,.15);
  border: 1px solid rgba(249,115,22,.3);
  color: var(--orange);
  font-size: 13px;
  font-weight: bold;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 36px;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
  font-weight: 800;
}
.hero-sub {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- Info Boxes ---- */
.info-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.info-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  font-size: 13px;
  color: var(--text-muted);
}
.info-icon {
  width: 44px;
  height: 44px;
  background: var(--orange);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  margin: 0 auto 10px;
}
.info-box-title {
  color: var(--white);
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 4px;
}

/* ---- Alert ---- */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 14px;
}
.alert-error {
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  color: var(--red-fg);
}

/* ---- Card ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  margin-bottom: 24px;
}
.card-title {
  font-size: 20px;
  color: var(--white);
  margin-bottom: 8px;
  font-weight: 700;
}
.card-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}
.cta-card {
  border-top: 3px solid var(--orange);
  text-align: center;
}
.cta-card h2 {
  color: var(--white);
  margin-bottom: 10px;
  font-size: 22px;
}
.cta-card p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 14px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Form ---- */
.lead-form { display: flex; flex-direction: column; gap: 20px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group--half { max-width: calc(50% - 8px); }

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.req { color: var(--orange); }

input[type=text], input[type=email], select {
  padding: 11px 14px;
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  background: rgba(255,255,255,.05);
  color: var(--white);
}
input[type=text]::placeholder,
input[type=email]::placeholder { color: var(--text-muted); }
input[type=text]:focus, input[type=email]:focus, select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,.2);
  background: rgba(255,255,255,.08);
}
select option { background: var(--bg-card); color: var(--white); }
select optgroup { background: var(--bg); color: var(--text-muted); font-style: normal; font-size: 12px; }

.sector-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 5px;
}

/* ---- DSGVO Box ---- */
.dsgvo-box {
  background: rgba(249,115,22,.08);
  border: 1px solid rgba(249,115,22,.25);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.dsgvo-label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  font-weight: normal;
  line-height: 1.6;
}
.dsgvo-label input[type=checkbox] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--orange);
  cursor: pointer;
}
.dsgvo-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: inherit;
  text-decoration: none;
  transition: background .15s, transform .1s, opacity .2s, box-shadow .15s;
  letter-spacing: .2px;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 14px rgba(249,115,22,.4);
}
.btn-primary:hover:not(:disabled) {
  background: var(--orange-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(249,115,22,.5);
}
.btn-secondary {
  background: rgba(255,255,255,.08);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-large {
  padding: 14px 32px;
  font-size: 16px;
  width: 100%;
  text-align: center;
}
.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-ready {
  background: #22c55e !important;
  box-shadow: 0 4px 14px rgba(34,197,94,.4) !important;
  animation: pulse 1s ease-in-out;
}
@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* ---- Progress Bar ---- */
.progress-bar-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 69px;
  z-index: 90;
}
.progress-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.progress-track {
  height: 6px;
  background: rgba(255,255,255,.08);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 3px;
  transition: width .3s ease;
}

/* ---- Module Card ---- */
.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  overflow: hidden;
}
.module-header {
  background: linear-gradient(135deg, rgba(249,115,22,.2), rgba(249,115,22,.05));
  border-bottom: 1px solid rgba(249,115,22,.2);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.module-number {
  font-size: 40px;
  font-weight: 800;
  color: rgba(249,115,22,.3);
  line-height: 1;
  min-width: 54px;
}
.module-title {
  font-size: 17px;
  color: var(--white);
  margin-bottom: 4px;
  font-weight: 700;
}
.module-focus {
  font-size: 12px;
  color: var(--orange);
  font-weight: 600;
}
.module-desc {
  padding: 16px 24px;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  line-height: 1.7;
  background: rgba(0,0,0,.15);
}

/* ---- Question Row ---- */
.question-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.question-row:last-child { border-bottom: none; }
.question-row:nth-child(even) { background: rgba(0,0,0,.1); }
.question-row.answered { background: rgba(249,115,22,.04); }

.question-nr {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  text-align: center;
  background: rgba(249,115,22,.15);
  border: 1px solid rgba(249,115,22,.25);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  line-height: 26px;
  flex-shrink: 0;
}
.question-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}
.question-answers {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* ---- Answer Buttons ---- */
.answer-btn {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all .15s;
  white-space: nowrap;
  user-select: none;
}
.answer-btn input[type=radio] { display: none; }

.answer-green:hover, .answer-green.selected {
  background: var(--green-bg);
  color: var(--green-fg);
  border-color: var(--green-border);
}
.answer-yellow:hover, .answer-yellow.selected {
  background: var(--yellow-bg);
  color: var(--yellow-fg);
  border-color: var(--yellow-border);
}
.answer-red:hover, .answer-red.selected {
  background: var(--red-bg);
  color: var(--red-fg);
  border-color: var(--red-border);
}

/* ---- Submit Section ---- */
.submit-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  text-align: center;
}
.submit-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ---- Results ---- */
.result-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.result-box {
  text-align: center;
  border-radius: var(--radius);
  padding: 24px 16px;
  box-shadow: var(--shadow);
}
.result-green { background: var(--green-bg); border: 1px solid var(--green-border); }
.result-yellow { background: var(--yellow-bg); border: 1px solid var(--yellow-border); }
.result-red { background: var(--red-bg); border: 1px solid var(--red-border); }
.result-number { font-size: 52px; font-weight: 800; line-height: 1; }
.result-green .result-number { color: var(--green-fg); }
.result-yellow .result-number { color: var(--yellow-fg); }
.result-red .result-number { color: var(--red-fg); }
.result-label { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

.rating-banner {
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.7;
}
.rating-green { background: var(--green-bg); color: var(--green-fg); border: 1px solid var(--green-border); }
.rating-yellow { background: var(--yellow-bg); color: var(--yellow-fg); border: 1px solid var(--yellow-border); }
.rating-red { background: var(--red-bg); color: var(--red-fg); border: 1px solid var(--red-border); }

.text-center { text-align: center; }

/* ---- Footer ---- */
.site-footer {
  background: rgba(0,0,0,.4);
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 24px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-muted);
}
.footer-inner strong { color: var(--white); }
.footer-inner a { color: var(--orange); }
.footer-inner a:hover { color: var(--orange-light); }
.footer-legal {
  font-size: 11px;
  color: rgba(255,255,255,.3);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ---- Logo Image ---- */
.logo-img {
  height: 44px;
  width: auto;
  display: block;
  filter: brightness(1);
}

/* ---- Betroffenheitsprüfung Widget ---- */
.betroffenheit-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 16px 0;
  background: rgba(255,255,255,.03);
}
.bet-label {
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.bet-result {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}
.bet-result.bet-red {
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  color: var(--red-fg);
}
.bet-result.bet-orange {
  background: var(--yellow-bg);
  border: 1px solid var(--yellow-border);
  color: var(--yellow-fg);
}
.bet-result.bet-grey {
  background: rgba(148,163,184,.1);
  border: 1px solid rgba(148,163,184,.2);
  color: var(--text-muted);
}
.bet-result strong { display: block; margin-bottom: 4px; font-size: 15px; }
.bet-disclaimer {
  font-size: 11px;
  color: rgba(255,255,255,.3);
  margin-top: 8px;
}

/* ---- CTA List ---- */
.cta-list {
  list-style: none;
  margin: 16px 0 24px;
  padding: 0;
}
.cta-list li {
  padding: 6px 0;
  color: var(--text);
  font-size: 14px;
}
.cta-list li::first-letter { color: var(--green-fg); }

/* ---- Responsive ---- */
@media (max-width: 700px) {
  .form-row { grid-template-columns: 1fr; }
  .form-group--half { max-width: 100%; }
  .info-boxes { grid-template-columns: 1fr; }
  .question-row { grid-template-columns: 28px 1fr; }
  .question-answers { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
  .result-summary { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}
