/* BeamDeals FörderCheck – schlichter Arbeitsstand, kein finales Design. */
:root {
  --bd-red: #c8102e;
  --bd-red-dark: #9e0c24;
  --bd-anthracite: #2b2f33;
  --bd-graphite: #5a6068;
  --bd-line: #d9dcdf;
  --bd-bg: #f5f6f7;
  --bd-ok: #1e7b45;
  --bd-warn: #9a6200;
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body { margin: 0; font-family: "Helvetica Neue", Arial, sans-serif; color: var(--bd-anthracite); background: var(--bd-bg); line-height: 1.5; }
a { color: var(--bd-red); }
h1 { font-size: 1.75rem; margin: 0.2em 0 0.6em; letter-spacing: -0.01em; }
h2 { font-size: 1.2rem; margin: 0 0 0.6em; }
.testbanner { background: #fff3cd; color: #5c4400; text-align: center; font-size: 0.85rem; padding: 4px 8px; }
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-bottom: 4px solid var(--bd-red); padding: 12px 20px; }
.brand-mark { font-weight: 800; font-size: 1.25rem; color: var(--bd-red); }
.brand-sub { font-weight: 600; color: var(--bd-anthracite); }
.nav { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.nav a { color: var(--bd-anthracite); text-decoration: none; font-weight: 600; }
.page { max-width: 980px; margin: 0 auto; padding: 20px 16px 40px; }
.footer { text-align: center; color: var(--bd-graphite); font-size: 0.8rem; padding: 20px; }
.card { background: #fff; border: 1px solid var(--bd-line); border-radius: 6px; padding: 20px; margin: 0 0 18px; }
.card.narrow { max-width: 460px; margin: 20px auto; }
.card.highlight { border-left: 5px solid var(--bd-red); }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.lead { font-size: 1.1rem; font-weight: 600; }
.muted { color: var(--bd-graphite); font-size: 0.9rem; }
.notice { background: #e8f4ec; border-left: 5px solid var(--bd-ok); padding: 10px 14px; }
.alert { background: #fdecee; border-left: 5px solid var(--bd-red); padding: 10px 14px; }
.form { display: flex; flex-direction: column; gap: 6px; }
.form label { font-weight: 600; margin-top: 8px; }
.form input, .form select, .form textarea { font: inherit; padding: 10px 12px; border: 1px solid #b9bdc2; border-radius: 4px; width: 100%; background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--bd-red); outline-offset: 2px; border-color: var(--bd-red); }
fieldset { border: 1px solid var(--bd-line); border-radius: 4px; padding: 12px 14px; margin: 8px 0; }
legend { font-weight: 700; padding: 0 6px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 400 !important; }
.check input { width: auto; }
button, .button { font: inherit; font-weight: 700; border: 2px solid var(--bd-anthracite); background: #fff; color: var(--bd-anthracite); padding: 10px 18px; border-radius: 4px; cursor: pointer; text-decoration: none; display: inline-block; }
button.primary, .button.primary { background: var(--bd-red); border-color: var(--bd-red); color: #fff; }
button.primary:hover, .button.primary:hover { background: var(--bd-red-dark); }
button.big { font-size: 1.1rem; padding: 14px 24px; }
button.danger { border-color: var(--bd-red); color: var(--bd-red); }
button:disabled { opacity: 0.45; cursor: not-allowed; }
button.link { border: none; background: none; color: var(--bd-red); padding: 0; font-weight: 600; text-decoration: underline; }
form.inline { display: inline; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; align-items: flex-end; }
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--bd-line); vertical-align: top; }
.table th { font-size: 0.85rem; color: var(--bd-graphite); text-transform: uppercase; letter-spacing: 0.03em; }
.row-actions form { margin-right: 10px; }
.badge { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 2px 8px; border-radius: 3px; background: #e7e9eb; }
.badge.ok { background: #e3f3e9; color: var(--bd-ok); }
.badge.warn { background: #fff1d6; color: var(--bd-warn); }
.badge.bad { background: #fbe4e4; color: #9b1c1c; }
.badge.muted { color: var(--bd-graphite); }
.facts { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 6px 16px; margin: 0; }
.facts dt { color: var(--bd-graphite); }
.facts dd { margin: 0; }
.pre { white-space: pre-wrap; }
.choices { display: flex; flex-direction: column; gap: 6px; }
.choice-group { font-size: 1rem; margin: 14px 0 4px; }
.choice { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; border: 1px solid var(--bd-line); border-radius: 4px; padding: 10px; font-weight: 400 !important; }
.choice input { width: auto; }
.choice-title { font-weight: 600; }
.choice-meta { color: var(--bd-graphite); }
.machine { display: flex; gap: 16px; align-items: flex-start; }
.machine-img { width: 120px; height: auto; border: 1px solid var(--bd-line); border-radius: 4px; background: #fff; }
.secret { font-family: ui-monospace, Menlo, monospace; word-break: break-all; background: var(--bd-bg); padding: 10px; border: 1px dashed var(--bd-graphite); }
pre.mail { white-space: pre-wrap; background: var(--bd-bg); padding: 12px; }
@media (max-width: 640px) {
  html { font-size: 16px; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { font-weight: 700; margin-top: 6px; }
  .machine { flex-direction: column; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border-bottom: 2px solid var(--bd-line); padding: 6px 0; }
  .table td { border: none; padding: 4px 0; }
  button.big { width: 100%; }
}

/* Fragebogen */
.question { margin: 0 0 22px; }
.question fieldset { border: 0; padding: 0; margin: 0; }
.question legend { font-weight: 700; margin-bottom: 8px; }
.check.option { padding: 10px 12px; border: 1px solid #d9dcdf; border-radius: 4px; margin: 6px 0; }
.check.small { font-size: .9rem; margin-top: 6px; }
.number-row { display: flex; gap: 10px; align-items: center; }
.number-row input { max-width: 14rem; }
.unit { color: #5b6166; white-space: nowrap; }
.has-error input, .has-error textarea { border-color: var(--bd-red); }
.field-error { color: var(--bd-red); font-weight: 700; margin: 6px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.progress { width: 100%; height: 10px; margin: 8px 0 16px; accent-color: var(--bd-red); appearance: none; border: 0; background: #e9ebed; border-radius: 5px; overflow: hidden; }
.progress::-webkit-progress-bar { background: #e9ebed; }
.progress::-webkit-progress-value { background: var(--bd-red); }
.progress::-moz-progress-bar { background: var(--bd-red); }
.steps { padding-left: 20px; }
.steps li { margin: 8px 0; display: flex; justify-content: space-between; gap: 12px; }
.calc summary { cursor: pointer; color: var(--bd-red); font-size: .85rem; }
.calc p, .calc ul { font-size: .85rem; color: #5b6166; margin: 4px 0; }
td.num { white-space: nowrap; text-align: right; }

/* Compact seven-stage customer guide; existing forms and other navigation stay unchanged. */
.wizard-progress { padding: 12px 14px; }
.wizard-stages { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.wizard-stages li { min-width: 0; border-bottom: 2px solid var(--bd-line); padding-bottom: 6px; }
.wizard-stages a { display: block; font-size: .8rem; line-height: 1.35; overflow-wrap: break-word; text-decoration: none; }
.wizard-stages a[aria-current="step"] { font-weight: 700; }
.wizard-stages li:has([aria-current="step"]) { border-bottom-color: var(--bd-red); }
.wizard-stages .badge { margin-top: 4px; font-size: .7rem; }
@media (max-width: 640px) {
  .wizard-stages { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px 10px; }
  .wizard-stages a { font-size: .75rem; }
  .wizard-stages .badge { display: none; }
}

/* Visible keyboard focus also covers help disclosures, links, and action buttons. */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--bd-red); outline-offset: 3px; }
.prewrap { white-space: pre-wrap; }

/* Optional AI choice: a scoped, equal-weight decision within the existing design. */
.ai-choice-entry { display: flex; flex-direction: column; gap: 2px; margin-left: auto; }
.ai-choice-entry a { color: var(--bd-anthracite); font-weight: 700; }
.ai-choice-entry-status { color: var(--bd-graphite); font-size: .75rem; }
.ai-choice-dialog { width: min(720px, calc(100% - 28px)); max-width: none; max-height: calc(100vh - 36px); max-height: calc(100dvh - 36px); overflow: hidden; padding: 0; border: 1px solid var(--bd-line); border-top: 4px solid var(--bd-red); border-radius: 12px; color: var(--bd-anthracite); background: #fff; box-shadow: 0 24px 80px #18212b40; }
.ai-choice-dialog[open] { display: flex; flex-direction: column; }
.ai-choice-dialog::backdrop { background: #1e242cb8; }
.ai-choice-dialog:not([open]) { display: none; }
.ai-choice-dialog-bar { display: flex; flex-shrink: 0; justify-content: flex-end; padding: 8px 14px 0; }
.ai-choice-close { min-height: 44px; padding: 6px 10px; border: 0; background: transparent; color: var(--bd-graphite); font-size: .85rem; }
.ai-choice-close span { font-size: 1.4rem; line-height: 1; margin-left: 6px; }
.ai-choice-panel { padding: 8px 28px 22px; overflow-wrap: anywhere; }
.ai-choice-dialog .ai-choice-panel { display: flex; flex-direction: column; min-height: 0; overflow: hidden; padding-bottom: 0; }
.ai-choice-dialog .ai-choice-copy { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 3px 4px 0; }
.ai-choice-dialog .ai-choice-form { flex-shrink: 0; padding: 16px 4px 20px; border-top: 1px solid var(--bd-line); background: #fff; }
.ai-choice-kicker { color: var(--bd-red); font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin: 0 0 10px; }
.ai-choice-panel h2 { font-size: clamp(1.3rem, 3.8vw, 1.65rem); line-height: 1.18; letter-spacing: -.015em; margin-bottom: 12px; }
.ai-choice-panel p { font-size: .88rem; margin: 0 0 14px; }
.ai-choice-panel .ai-choice-intro { font-size: 1rem; line-height: 1.45; }
.ai-choice-data { margin: 14px 0; border-block: 1px solid var(--bd-line); }
.ai-choice-data > div { padding: 10px 0; }
.ai-choice-data > div + div { border-top: 1px solid var(--bd-line); }
.ai-choice-data dt { font-size: .85rem; font-weight: 700; margin-bottom: 4px; }
.ai-choice-data dd { margin: 0; color: var(--bd-graphite); font-size: .85rem; }
.ai-choice-availability, .ai-choice-renewal { padding: 12px 14px; border-radius: 6px; background: var(--bd-bg); border-left: 3px solid var(--bd-graphite); }
.ai-choice-link-note { font-size: .78rem; }
.ai-choice-panel .ai-choice-detail { color: var(--bd-graphite); font-size: .8rem; }
.ai-choice-details { margin: 0 0 14px; font-size: .85rem; }
.ai-choice-details summary { cursor: pointer; padding: 8px 0; font-weight: 600; }
.ai-choice-details p { margin-top: 8px; color: var(--bd-graphite); font-size: .8rem; }
.ai-choice-panel .ai-choice-form-hint { margin: 0 0 10px; font-size: .8rem; }
.ai-choice-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ai-choice-actions button, .ai-choice-revoke { min-height: 50px; padding: 12px 14px; font-size: .9rem; border: 1.5px solid var(--bd-anthracite); border-radius: 6px; color: var(--bd-anthracite); background: #fff; }
.ai-choice-actions button:hover, .ai-choice-revoke:hover { background: #f0f1f3; }
.ai-choice-revoke { width: 100%; }
.ai-choice-panel .ai-choice-progress:empty { display: none; }
.ai-choice-panel .ai-choice-progress { margin: 12px 0 0; color: var(--bd-graphite); }
.ai-choice-panel .ai-choice-error { margin: 12px 0 0; padding: 10px; border-left: 3px solid var(--bd-red); background: #fdecee; color: #7f1727; }
.ai-choice-panel .ai-choice-version { font-size: .7rem; color: var(--bd-graphite); margin: 14px 0 0; }
.ai-choice-panel [hidden] { display: none !important; }
.ai-choice-open { overflow: hidden; }
.ai-choice-settings { max-width: 720px; margin: 0 auto 18px; padding: 24px 0 0; border-top: 4px solid var(--bd-red); border-radius: 10px; }
.ai-choice-page-title { max-width: 720px; margin: 0 auto 20px; }
.ai-choice-announcement { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 480px) {
  .ai-choice-dialog { width: calc(100% - 16px); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); border-radius: 8px; }
  .ai-choice-panel { padding: 8px 18px 18px; }
  .ai-choice-actions { grid-template-columns: 1fr; gap: 10px; }
  .ai-choice-entry { margin-left: 0; }
}
@media (forced-colors: active) {
  .ai-choice-dialog { border: 2px solid CanvasText; }
  .ai-choice-actions button, .ai-choice-revoke { border: 2px solid ButtonText; }
}

/* Vertriebsstatus (§7) und Kundenampel (§31): Farbe plus Text, nie Farbe allein. */
.badge.status-new { background: #fff7d1; color: #6b5300; }
.badge.status-sent, .badge.status-opened { background: #e6eef8; color: #1f4f8a; }
.badge.status-review { background: #eee8f7; color: #4d2f80; }
.badge.status-warn { background: #fff1d6; color: var(--bd-warn); }
.badge.status-ok { background: #e3f3e9; color: var(--bd-ok); }
.badge.status-muted { color: var(--bd-graphite); }
.status-banner { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.case-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.traffic-light { border-left: 6px solid var(--bd-line); padding: 10px 14px; background: #fff; }
.traffic-light.light-gruen { border-left-color: var(--bd-ok); }
.traffic-light.light-gelb { border-left-color: #d9a400; }
.traffic-light.light-rot { border-left-color: #b3261e; }
.review-history li { margin-bottom: 6px; }

/* Unsichtbares Feld gegen automatisierte Formularsendungen (Anfrageformular). */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
