/* KMU Upgrade CI: Dunkelblau #08193b, Orange #ff8044/#fe9361, Creme #fdf1ec */
:root {
  --navy: #08193b;
  --navy-2: #0e2a5c;
  --orange: #ff8044;
  --orange-2: #fe9361;
  --cream: #fdf1ec;
  --cream-2: #fbe3d9;
  --ink: #1c2434;
  --muted: #64748b;
  --border: #e6e2de;
  --card: #ffffff;
  --green: #1fa06a;
  --yellow: #e6a817;
  --red: #d94f3d;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(8, 25, 59, 0.10);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #faf7f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Kopfbereich ---------- */
.topbar {
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.brand-logo { height: 46px; width: 46px; object-fit: contain; }
.brand-sub { font-size: 15px; letter-spacing: .4px; opacity: .85; border-left: 1px solid rgba(255,255,255,.3); padding-left: 14px; }
.topnav { display: flex; gap: 8px; }
.topnav-link {
  color: #fff; text-decoration: none; font-size: 14px; padding: 8px 14px;
  border-radius: 8px; opacity: .85;
}
.topnav-link:hover { background: rgba(255,255,255,.12); opacity: 1; }

main { flex: 1; width: 100%; max-width: 1060px; margin: 0 auto; padding: 36px 24px 64px; }

.footer {
  background: var(--navy); color: rgba(255,255,255,.75);
  padding: 20px 28px; font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ---------- Allgemein ---------- */
h1 { font-size: 32px; color: var(--navy); line-height: 1.2; }
h2 { font-size: 22px; color: var(--navy); margin-bottom: 8px; }
h3 { font-size: 17px; color: var(--navy); }
p.lead { font-size: 17px; color: var(--muted); margin: 14px 0 6px; max-width: 640px; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.btn {
  display: inline-block; border: none; cursor: pointer; text-decoration: none;
  font-size: 15px; font-weight: 600; padding: 12px 22px; border-radius: 10px;
  transition: transform .06s ease, box-shadow .12s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: linear-gradient(135deg, var(--orange), var(--orange-2)); color: #fff; box-shadow: 0 6px 18px rgba(255,128,68,.35); }
.btn-primary:hover { box-shadow: 0 8px 22px rgba(255,128,68,.5); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.muted { color: var(--muted); font-size: 14px; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 600; }
.pill-free { background: #e7f6ee; color: var(--green); }
.pill-paid { background: var(--cream-2); color: #c05a21; }
input[type="text"], input[type="email"], input[type="number"] {
  width: 100%; padding: 11px 13px; font-size: 15px; border: 1.5px solid var(--border);
  border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus { outline: 2px solid var(--orange-2); border-color: transparent; }
label.field { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); margin: 14px 0 6px; }

/* ---------- Startseite ---------- */
.hero { text-align: center; padding: 24px 0 8px; }
.hero h1 { font-size: 38px; }
.hero .lead { margin-left: auto; margin-right: auto; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 34px; }
.choice { display: flex; flex-direction: column; gap: 12px; text-align: left; position: relative; overflow: hidden; }
.choice::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--orange), var(--orange-2)); }
.choice.navy::before { background: linear-gradient(90deg, var(--navy), var(--navy-2)); }
.choice ul { margin: 4px 0 6px 18px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.choice .btn { align-self: flex-start; margin-top: auto; }
.themen { margin-top: 44px; }
.themen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 14px; margin-top: 16px; }
.thema { background: var(--cream); border-radius: 12px; padding: 16px; font-size: 14px; }
.thema b { display: block; color: var(--navy); margin-bottom: 4px; font-size: 14.5px; }
.stufen { margin-top: 44px; }
.stufen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.stufe { position: relative; padding-top: 30px; }
.stufe .num {
  position: absolute; top: -14px; left: 20px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.stufe p { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.6; }

/* ---------- Umfrage ---------- */
.survey-head { margin-bottom: 20px; }
.progress { height: 8px; background: var(--cream-2); border-radius: 99px; overflow: hidden; margin: 14px 0 4px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--orange), var(--orange-2)); border-radius: 99px; transition: width .25s ease; }
.progress-label { font-size: 13px; color: var(--muted); }
.q-card { margin-bottom: 16px; }
.q-card.missing { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), var(--shadow); }
.q-text { font-size: 17px; font-weight: 600; color: var(--navy); margin-bottom: 14px; line-height: 1.45; }
.q-num { color: var(--orange); font-weight: 700; margin-right: 8px; }
.opt { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; cursor: pointer; margin-bottom: 9px; transition: border-color .12s, background .12s; font-size: 15px; line-height: 1.4; }
.opt:hover { border-color: var(--orange-2); background: var(--cream); }
.opt.selected { border-color: var(--orange); background: var(--cream); box-shadow: 0 0 0 1px var(--orange); }
.opt input { margin-top: 3px; accent-color: var(--orange); }
.survey-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
.anon-note { background: var(--cream); border-left: 4px solid var(--orange); padding: 12px 16px; border-radius: 8px; font-size: 14px; color: var(--ink); margin: 18px 0; }

/* ---------- Auswertung ---------- */
.report-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.total-badge { text-align: center; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 18px 28px; min-width: 150px; }
.total-badge .val { font-size: 40px; font-weight: 800; line-height: 1; }
.total-badge .lbl { font-size: 12.5px; opacity: .8; margin-top: 6px; }
.report-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; margin-bottom: 22px; }
.chart-wrap { display: flex; justify-content: center; }
.bars { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.bar-row .bar-label { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 5px; }
.bar-row .bar-label b { color: var(--navy); }
.bar-track { height: 12px; background: #efeae6; border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; }
.zone-gruen { background: var(--green); }
.zone-gelb { background: var(--yellow); }
.zone-rot { background: var(--red); }
.txt-gruen { color: var(--green); }
.txt-gelb { color: #b8860b; }
.txt-rot { color: var(--red); }
.insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; }
.insight h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.insight-item { padding: 12px 0; border-top: 1px solid var(--border); font-size: 14px; line-height: 1.6; }
.insight-item b { color: var(--navy); display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 14.5px; }
.legend { display: flex; gap: 18px; font-size: 13px; color: var(--muted); margin-top: 10px; justify-content: center; }
.legend span::before { content: "●"; margin-right: 5px; }
.legend .lg-g::before { color: var(--green); } .legend .lg-y::before { color: var(--yellow); } .legend .lg-r::before { color: var(--red); }

/* Umfassende Auswertung: Detail je Frage + Empfehlungen */
.dim-block { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 18px; }
.dim-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.qd { padding: 10px 0 6px; }
.qd-head { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; font-weight: 600; color: var(--ink); }
.qd-head .txt-gruen, .qd-head .txt-gelb, .qd-head .txt-rot { font-weight: 700; flex: none; }
.qd-chosen { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.qd-dist { margin-top: 8px; }
.qd-row { display: grid; grid-template-columns: minmax(180px, 1.2fr) 1fr 30px; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); padding: 2px 0; }
.qd-bar { height: 9px; background: #efeae6; border-radius: 99px; overflow: hidden; display: block; }
.qd-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--navy), var(--navy-2)); border-radius: 99px; }
.qd-count { text-align: right; font-weight: 600; color: var(--navy); }
.qa { padding: 12px 0; }
.qa-frage { font-size: 14.5px; color: var(--ink); line-height: 1.5; }
.qa-antwort { font-size: 14px; color: var(--muted); margin-top: 5px; }
.qa-antwort b { color: var(--navy); }
.emp { border-top: 1px solid var(--border); padding: 18px 0 6px; }
.emp ul { margin: 4px 0 0 18px; font-size: 14px; color: var(--ink); line-height: 1.7; }
.emp ul li { margin-bottom: 6px; }
.emp-block { margin-bottom: 14px; }
.emp-block-titel { font-size: 12.5px; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: .5px; }
.emp-frage { background: var(--cream); border-left: 3px solid var(--orange); padding: 11px 14px; font-size: 14px; line-height: 1.6; margin-top: 6px; border-radius: 0 8px 8px 0; }
.emp-frage b { color: var(--navy); }
.lage-text { font-size: 15px; line-height: 1.75; color: var(--ink); margin-top: 12px; }
.lage-zahlen { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--muted); }
.lage-zahlen b { font-size: 15px; }
.gap-table a { color: var(--navy); }

/* Paketauswahl Team-Analyse */
.pakete { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.paket { display: flex; gap: 11px; align-items: flex-start; padding: 13px 15px; border: 1.5px solid var(--border); border-radius: 10px; cursor: pointer; transition: border-color .12s, background .12s; }
.paket:hover { border-color: var(--orange-2); background: var(--cream); }
.paket.selected { border-color: var(--orange); background: var(--cream); box-shadow: 0 0 0 1px var(--orange); }
.paket input { margin-top: 3px; accent-color: var(--orange); flex: none; }
.paket-body { display: flex; flex-direction: column; gap: 3px; }
.paket-body b { color: var(--navy); font-size: 14.5px; }
.paket-preis { font-weight: 700; color: var(--orange); font-size: 14px; }
.paket-was { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* Gutschein-Formular (Admin) */
.code-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 14px; }
.code-form .field { margin-top: 10px; }

/* Fragenkatalog-Editor (Admin) */
.q-edit summary { font-size: 14px; font-weight: 500; line-height: 1.5; }
.q-edit-body { padding: 4px 4px 14px; }
.qe-opt { display: flex; gap: 10px; align-items: center; margin-bottom: 7px; }
.qe-opt input { flex: 1; padding: 9px 12px; font-size: 14px; border: 1.5px solid var(--border); border-radius: 8px; }
.qe-score { min-width: 34px; text-align: right; font-weight: 700; font-size: 13.5px; }

/* CTA-Stufen unter dem Bericht */
.next-steps { margin-top: 30px; }
.next-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 14px; }
.next-card { display: flex; flex-direction: column; gap: 10px; }
.next-card .price { font-size: 20px; font-weight: 800; color: var(--navy); }
.next-card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.next-card .btn { margin-top: auto; }
.locked-teaser { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-radius: var(--radius); padding: 24px; margin-top: 22px; }
.locked-teaser h3 { color: #fff; margin-bottom: 8px; }
.locked-teaser ul { margin: 10px 0 0 18px; font-size: 14px; line-height: 1.9; opacity: .9; }
.locked-teaser .lock { color: var(--orange-2); margin-right: 6px; }

/* Gap-Tabelle */
.gap-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 10px; }
.gap-table th, .gap-table td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--border); }
.gap-table th { color: var(--navy); font-size: 13px; }
.gap-pos { color: var(--green); font-weight: 700; }
.gap-neg { color: var(--red); font-weight: 700; }

/* Link-Box (Umfrage teilen) */
.linkbox { background: var(--cream); border-radius: 10px; padding: 12px 14px; font-family: Consolas, monospace; font-size: 13.5px; word-break: break-all; margin: 8px 0; border: 1px dashed var(--orange-2); }
.copy-hint { font-size: 12.5px; color: var(--green); font-weight: 600; visibility: hidden; }
.copy-hint.show { visibility: visible; }

/* Gesperrte Team-Auswertung */
.locked-box { text-align: center; padding: 48px 24px; }
.locked-box .big { font-size: 46px; margin-bottom: 12px; }

.form-row { display: flex; gap: 10px; margin-top: 10px; }
.form-row input { flex: 1; }
.success-note { background: #e7f6ee; color: var(--green); border-radius: 8px; padding: 10px 14px; font-size: 14px; font-weight: 600; margin-top: 10px; }
.error-note { background: #fdecea; color: var(--red); border-radius: 8px; padding: 10px 14px; font-size: 14px; font-weight: 600; margin-top: 10px; }

/* ---------- Landingpage-Sektionen ---------- */
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 22px; justify-content: center; margin-top: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.hero-trust span { white-space: nowrap; }

.how { margin-top: 48px; }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.how-step { position: relative; padding-top: 28px; }
.how-step .num {
  position: absolute; top: -14px; left: 20px; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-2)); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.how-step h3 { font-size: 15.5px; }
.how-step p { font-size: 13.5px; color: var(--muted); margin-top: 6px; line-height: 1.6; }

.sample { margin-top: 48px; }
.sample-card { position: relative; }
.sample-badge {
  position: absolute; top: 14px; right: 14px; background: var(--cream-2); color: #c05a21;
  font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 99px;
}

.trust { margin-top: 48px; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.trust-card p { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.7; }
.logo-band {
  background: var(--navy); border-radius: var(--radius); margin-top: 16px;
  display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap;
  padding: 22px 28px;
}
.logo-band-label { flex-basis: 100%; text-align: center; color: rgba(255,255,255,.75); font-size: 14px; letter-spacing: .5px; }
.logo-band img { height: 42px; max-width: 130px; object-fit: contain; opacity: .92; }

.faq { margin-top: 48px; max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer; padding: 15px 4px; font-size: 15.5px; font-weight: 600; color: var(--navy);
  list-style: none; position: relative; padding-right: 34px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 8px; top: 12px; font-size: 20px; color: var(--orange); font-weight: 400; transition: transform .15s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 4px 16px; font-size: 14.5px; color: var(--muted); line-height: 1.7; max-width: 680px; }

.final-cta {
  margin-top: 48px; background: linear-gradient(135deg, var(--navy), var(--navy-2));
  border-radius: var(--radius); padding: 44px 32px; text-align: center; color: #fff;
}
.final-cta h2 { color: #fff; }
.final-cta p { margin: 10px auto 22px; opacity: .85; font-size: 15.5px; max-width: 520px; }

@media (max-width: 860px) {
  .how-grid { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .trust-grid { grid-template-columns: 1fr; }
  .logo-band { gap: 24px; }

  .choice-grid, .report-grid, .insight-grid, .next-grid { grid-template-columns: 1fr; }
  .themen-grid, .stufen-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 30px; }
  .brand-sub { display: none; }
}
.footer-link { color: rgba(255,255,255,.85); }

/* Rechtliche Seiten & AGB-Bestätigung */
.legal { max-width: 760px; }
.legal h2 { margin-top: 26px; font-size: 18px; }
.legal p { font-size: 14.5px; color: var(--ink); line-height: 1.75; margin-top: 8px; }
.legal a { color: var(--navy); }
.agb-check { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 10px 0 4px; line-height: 1.55; cursor: pointer; }
.agb-check input { margin-top: 2px; accent-color: var(--orange); flex: none; }
.agb-check a { color: var(--navy); }

/* Zahlung */
.price-note { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 7px; }
.pay-hint { font-size: 12px; color: var(--muted); margin-top: 8px; text-align: center; }

@media print {
  .topbar, .footer, .next-steps, .locked-teaser, .survey-nav, .topnav,
  .btn, .next-card, .hero-cta, .anon-note { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ddd; break-inside: avoid; }
  .report-grid, .insight-grid { break-inside: avoid; }
}
