/* erpfix.de — "Werkbank" design system (design doc 2026-07-23-erpfix-homepage-copy.md)
   Concept: a well-organized toolbox — everything there, nothing around it.
   Precision aesthetics: hard edges, 2px radii, number-led typography, one signal color. */

:root {
  /* Stage / surfaces */
  --anthracite: #1A1D21;   /* hero, pricing, form/footer stage */
  --anthracite-2: #26292E; /* nav / bars / secondary dark */
  --white: #FFFFFF;

  /* Single brand color */
  --orange: #FF5A1F;        /* UI fills (buttons/badges bg) + orange text on DARK */
  --orange-hover: #E64A12;
  --orange-text: #C2410C;   /* orange TEXT/links on LIGHT surfaces — 5.2:1 on white (AA) */

  /* Warm grays */
  --gray-1: #B4B2A9;
  --gray-2: #888780;
  --gray-3: #444441;
  --ink: #1A1D21;
  /* Body text on dark surfaces (#1A1D21/#26292E) — ~13:1 (BCD-1615 contrast rule).
     The muted grays above are ONLY for fine print on dark, or on white surfaces. */
  --text-dark: #E7E5E4;

  /* Status green — verified/done only, never decorative */
  --green: #16A34A;

  --radius: 2px;
  --wrap: 1080px;
  --wrap-narrow: 760px;
  --space: 4px;

  --font-head: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: var(--wrap-narrow); }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0 0 24px; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 0 0 20px; }
h3 { font-size: 1.3rem; margin: 0 0 10px; }
h4 { font-size: 1.05rem; margin: 0 0 8px; }
p { margin: 0 0 16px; }
a { color: var(--orange-text); text-decoration: none; }
/* Footer links keep the gray fine-print exception (dark surface, passes ~8:1). */
.site-footer a { color: var(--gray-1); }
a:hover { text-decoration: underline; }

.num { font-family: var(--font-head); color: var(--orange); font-weight: 700; white-space: nowrap; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--orange); color: #fff;
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* --- Nav --- */
.site-nav { background: var(--anthracite-2); position: sticky; top: 0; z-index: 50; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: #fff; }
.logo:hover { text-decoration: none; }
.dot { color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-dark); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links .btn-primary { color: var(--anthracite); }
.nav-links .btn-ghost, .nav-links .btn-ghost-dark { color: #fff; }

/* --- Buttons --- */
.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s; text-align: center;
}
.btn:hover { text-decoration: none; }
/* Button system (BCD-1615 R3): primary = orange + dark text; secondary is
   surface-aware — default (light surface) dark text/border, .btn-ghost-dark
   (dark surface) white text + #5F5E5A border. Never white text on light.
   Visible default state + a visible keyboard focus ring on any surface. */
.btn-primary { background: var(--orange); color: var(--anthracite); }
.btn-primary:hover { background: var(--orange-hover); color: var(--anthracite); }
.btn-ghost { background: transparent; color: var(--anthracite); border-color: var(--anthracite); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-hover); }
.btn-ghost-dark { background: transparent; color: #fff; border-color: #5F5E5A; }
.btn-ghost-dark:hover { border-color: var(--orange); color: var(--orange); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--orange); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-lg { padding: 16px 34px; font-size: 1.1rem; }
.btn-block { display: block; width: 100%; }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }

/* --- Stages (dark sections) --- */
.stage { background: var(--anthracite); color: var(--white); }
.stage-deep { background: #141619; color: var(--white); }
.stage h2, .stage-deep h2, .stage h1 { color: #fff; }
.stage .lead, .stage-deep .lead { color: var(--text-dark); }
.stage p, .stage-deep p { color: var(--text-dark); }

/* --- Section rhythm --- */
.section { padding: 72px 0; }
.section-alt { background: #F7F7F6; }
.hero { padding: 84px 0 40px; }
.lead { font-size: 1.25rem; line-height: 1.55; color: var(--gray-3); max-width: 40em; }
.narrow p { color: var(--gray-3); }
.tagline { font-size: 1.2rem; }
.emphasis { font-weight: 600; }

.hero-fineprint { margin-top: 8px; color: var(--text-dark); font-size: 0.98rem; }
.hero-fineprint strong { color: var(--orange); }

/* --- Status strip (brand motif) --- */
.status-strip {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px;
  background: var(--white); color: var(--anthracite); border-radius: var(--radius);
  padding: 16px 22px; font-family: var(--font-head); font-size: 0.95rem;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.status-item { display: inline-flex; align-items: center; gap: 8px; }
.status-item.done .check { color: var(--green); font-weight: 700; }
.status-item.open .dotmark { color: var(--orange); font-weight: 700; font-size: 1.3rem; line-height: 0; }
.status-item strong { font-weight: 700; }

/* --- Module list --- */
.module-list { list-style: none; padding: 0; margin: 0 0 24px; }
.module-list li {
  padding: 16px 0 16px 20px; border-left: 2px solid var(--orange);
  margin-bottom: 12px; background: #fff;
}
.section-alt .module-list li { background: transparent; }
.mod-name { font-family: var(--font-head); font-weight: 700; }

.callout {
  border: 2px solid var(--anthracite); border-radius: var(--radius);
  padding: 20px 22px; margin: 24px 0;
}
.callout p { margin: 0; }

/* --- Steps --- */
.steps { list-style: none; counter-reset: none; padding: 0; margin: 0; display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); }
.steps li { border-top: 2px solid var(--anthracite); padding-top: 18px; }
.step-num {
  font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; color: var(--orange);
  display: block; line-height: 1; margin-bottom: 12px;
}

/* --- Feature list (assistant) --- */
.feature-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 14px; }
.feature-list li { padding-left: 4px; }
.feature-list .check { color: var(--green); font-weight: 700; margin-right: 8px; }
.feature-list strong { color: #fff; }

/* --- Pricing --- */
.pilot-banner {
  border-left: 2px solid var(--orange); padding: 12px 18px; margin-bottom: 36px;
  color: var(--text-dark); font-size: 1rem;
}
.pilot-banner strong { color: var(--orange); }
.price-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.price-card {
  background: #1F2226; border: 2px solid #2E3238; border-radius: var(--radius);
  padding: 30px 26px;
}
.price-card-featured { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange), 0 12px 40px rgba(255,90,31,.15); }
.price-card h3 { color: #fff; }
.price { margin: 8px 0 2px; display: flex; align-items: baseline; gap: 10px; }
.price .num { font-size: 2.6rem; }
.price-pilot { font-family: var(--font-head); font-size: 0.8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--orange); }
.price-list { color: var(--text-dark); text-decoration: line-through; margin: 0 0 14px; font-size: 0.95rem; }
.price-card .btn-block { margin-top: 18px; }
.price-terms { color: var(--text-dark); font-size: 0.98rem; margin-bottom: 40px; }

.price-secondary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-block { border-top: 2px solid #2E3238; padding-top: 16px; }
.price-block h4 { color: #fff; }
.price-block p { color: var(--text-dark); font-size: 0.98rem; }

/* --- FAQ --- */
.faq details { border-bottom: 1px solid #E2E1DE; padding: 6px 0; }
.faq summary {
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; cursor: pointer;
  padding: 14px 0; list-style: none; position: relative; padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; color: var(--orange); font-size: 1.4rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--gray-3); margin: 0 0 16px; }

/* --- Form --- */
.lead-form { margin-top: 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-form label { display: block; margin-bottom: 16px; font-size: 0.95rem; color: var(--text-dark); font-weight: 500; }
.lead-form input[type=text], .lead-form input[type=email], .lead-form input[type=tel], .lead-form select {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font-size: 1rem; font-family: var(--font-body);
  background: #23262B; border: 1px solid #34383E; border-radius: var(--radius); color: #fff;
}
.lead-form input:focus, .lead-form select:focus { outline: 2px solid var(--orange); border-color: var(--orange); }
.fieldset { border: 1px solid #34383E; border-radius: var(--radius); padding: 14px 16px; margin: 0 0 16px; }
.fieldset legend { color: var(--text-dark); font-size: 0.9rem; padding: 0 6px; }
.check-inline, .radio-inline { display: inline-flex; align-items: center; gap: 8px; margin: 6px 18px 6px 0; color: #E9E8E4; font-weight: 400; }
.check-inline input, .radio-inline input { width: auto; margin: 0; }
.form-subline { color: var(--gray-3); font-size: 0.9rem; margin-top: 14px; }
.form-status { margin-top: 12px; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--orange); }

/* --- Footer --- */
.site-footer { padding: 48px 0; background: #141619; }
.footer-brand { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: #fff; margin-bottom: 6px; }
.site-footer p { color: var(--gray-1); }
.footer-links { display: flex; gap: 20px; margin-top: 12px; }
.footer-links a { color: var(--gray-1); font-size: 0.95rem; }
.footer-links a:hover { color: var(--orange); }

/* --- Legal pages --- */
.legal { padding: 56px 0; }
.legal .wrap { max-width: var(--wrap-narrow); }
.legal h1 { color: var(--ink); }
.legal h2 { font-size: 1.3rem; margin-top: 32px; }
.legal .placeholder { background: #FFF3E9; border-left: 2px solid var(--orange); padding: 14px 18px; color: var(--gray-3); }

/* --- Responsive --- */
@media (max-width: 820px) {
  .steps, .price-cards, .price-secondary, .grid-2 { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn) { display: none; }
}

/* Honeypot field — off-screen (not display:none, which some bots skip) */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* --- Booking widget (/termin — BCD-1606) — vanilla port of the trustfort
       BookingWidget: white card on the dark stage, month calendar + slots + form. --- */
.booking-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px; margin-top: 8px; box-shadow: 0 12px 40px rgba(0,0,0,.28); }
.booking-card h2, .booking-card h3 { color: var(--anthracite); }
.booking-card h3 { font-size: 1.1rem; margin: 0 0 12px; }
.booking-main { display: grid; grid-template-columns: 1fr; gap: 28px; }
.booking-main.has-form { grid-template-columns: 1fr 1fr; }
.booking-status { min-height: 1.3em; font-weight: 500; color: var(--gray-3); font-size: 0.92rem; }
.booking-status.err { color: var(--orange-hover); }

/* Calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-month { font-family: var(--font-head); font-weight: 700; color: var(--anthracite); text-transform: capitalize; }
.cal-nav { width: 40px; height: 40px; border: 1px solid #D8D9DB; background: #fff; border-radius: var(--radius); font-size: 1.2rem; line-height: 1; color: var(--anthracite); cursor: pointer; }
.cal-nav:hover:not(:disabled) { border-color: var(--orange); color: var(--orange); }
.cal-nav:disabled { opacity: .3; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-weekdays { margin-bottom: 6px; }
.cal-wd { text-align: center; font-size: 0.78rem; font-weight: 600; color: var(--gray-3); padding: 4px 0; }
.cal-empty { aspect-ratio: 1; }
.cal-day { aspect-ratio: 1; border: 0; background: transparent; border-radius: var(--radius); font-family: var(--font-head); font-size: 0.95rem; color: var(--ink); cursor: pointer; transition: background .12s, color .12s; }
.cal-day:hover:not(:disabled):not(.selected) { background: rgba(255,90,31,.1); color: var(--orange-hover); }
.cal-day.today:not(.selected) { box-shadow: inset 0 0 0 1px var(--orange); }
.cal-day.selected { background: var(--orange); color: #fff; font-weight: 700; }
.cal-day:disabled { color: #C9CACC; cursor: not-allowed; }
.cal-tz { font-size: 0.8rem; color: var(--gray-3); text-align: center; margin: 14px 0 0; }

/* Slots */
.slots-wrap { margin-top: 22px; border-top: 1px solid #E6E7E8; padding-top: 18px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 10px; margin-bottom: 8px; min-height: 44px; }
.slot { font-family: var(--font-head); font-weight: 500; padding: 11px 8px; background: #fff; color: var(--ink); border: 1px solid #C9CACC; border-radius: var(--radius); cursor: pointer; transition: border-color .12s, color .12s, background .12s; }
.slot:hover { border-color: var(--orange); color: var(--orange-hover); }
.slot.selected { background: var(--orange); border-color: var(--orange); color: #fff; }
.spinner { width: 24px; height: 24px; border: 2px solid var(--orange); border-top-color: transparent; border-radius: 50%; animation: ec-spin .7s linear infinite; margin: 8px auto; }
@keyframes ec-spin { to { transform: rotate(360deg); } }

/* Contact form (white card) */
.chosen { font-family: var(--font-head); color: var(--orange-hover); font-weight: 500; margin: 0 0 14px; }
#booking-form label { display: block; margin-bottom: 14px; font-size: 0.9rem; color: var(--gray-3); font-weight: 500; }
#booking-form input, #booking-form textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 13px; font-family: var(--font-body); font-size: 1rem; background: #fff; border: 1px solid #C9CACC; border-radius: var(--radius); color: var(--ink); resize: vertical; }
#booking-form input:focus, #booking-form textarea:focus { outline: 2px solid var(--orange); border-color: var(--orange); }
.form-consent { font-size: 0.82rem; color: var(--gray-3); margin: 0 0 14px; }
.form-consent a { color: var(--orange-text); text-decoration: underline; }
.form-hint { font-size: 0.85rem; color: var(--gray-3); margin: 0 0 12px; }
.booking-card .btn-block { margin-top: 4px; }

/* Confirmation */
#confirmation { text-align: center; padding: 12px 0; }
.conf-check { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; background: rgba(22,163,74,.12); color: var(--green); font-size: 1.8rem; line-height: 60px; font-weight: 700; }
.conf-when { font-family: var(--font-head); font-weight: 500; color: var(--anthracite); font-size: 1.1rem; margin: 0 0 4px; }
.conf-msg { color: var(--gray-3); font-size: 0.92rem; }
.conf-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 20px 0 8px; }
.conf-actions .btn-ghost { color: var(--anthracite); border-color: var(--anthracite); }
.conf-actions .btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.conf-back { background: none; border: 0; color: var(--gray-3); font-size: 0.9rem; cursor: pointer; margin-top: 8px; }
.conf-back:hover { color: var(--orange); }

@media (max-width: 640px) { .booking-main.has-form { grid-template-columns: 1fr; } }

/* --- Module cards (section 3, expandable — BCD-1607 v2) --- */
.mod-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 24px; }
.mod-card { background: #fff; border: 1px solid #E2E1DE; border-left: 2px solid var(--orange); border-radius: var(--radius); }
.section-alt .mod-card { background: #fff; }
.mod-card > summary { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--anthracite); padding: 16px 18px; cursor: pointer; list-style: none; position: relative; padding-right: 40px; }
.mod-card > summary::-webkit-details-marker { display: none; }
.mod-card > summary::after { content: "+"; position: absolute; right: 16px; top: 14px; color: var(--orange); font-size: 1.3rem; line-height: 1; }
.mod-card[open] > summary::after { content: "–"; }
.mod-card > p { margin: 0; padding: 0 18px 18px; color: var(--gray-3); }

.callout-excl { border-color: var(--gray-2); }
.callout-excl strong { color: var(--gray-3); }
.callout-excl a { color: var(--orange-text); }

.cta-final { text-align: center; }
.cta-final .lead { margin: 0 auto 24px; }
.cta-final .cta-row { justify-content: center; }

@media (max-width: 640px) { .mod-cards { grid-template-columns: 1fr; } }

/* --- Checkout (/checkout — BCD-1608) --- */
.co-wrap { max-width: 1080px; }
.co-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 8px 0 24px; flex-wrap: wrap; }
.co-steps li { font-family: var(--font-head); font-size: 0.85rem; color: var(--text-dark); padding: 6px 14px; border: 1px solid #34383E; border-radius: 999px; }
.co-steps li.active { background: var(--orange); border-color: var(--orange); color: var(--anthracite); font-weight: 600; }
.co-steps li.done { color: var(--green); border-color: var(--green); }
.co-error { margin-bottom: 16px; }
.co-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.co-main { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px; }
.co-main h2 { color: var(--anthracite); }
.co-sub { color: var(--anthracite); font-size: 1.05rem; margin: 22px 0 12px; }
.co-hint { color: var(--gray-3); font-size: 0.95rem; }
.co-hint a { text-decoration: underline; }

.preset-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.preset { text-align: left; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--anthracite); background: #fff; border: 2px solid #D8D9DB; border-radius: var(--radius); padding: 16px 18px; cursor: pointer; }
.preset span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.85rem; color: var(--gray-3); margin-top: 4px; }
.preset:hover { border-color: var(--orange); }
.preset.active { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }

.mod-picker { display: grid; gap: 8px; }
.mod-opt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #E2E1DE; border-radius: var(--radius); cursor: pointer; }
.mod-opt.fixed { background: #F7F7F6; cursor: default; }
.mod-opt-name { font-weight: 500; color: var(--ink); }
.mod-opt-price { font-family: var(--font-head); color: var(--gray-3); }
.addon-picker { display: grid; gap: 14px; }
.addon-group { border: 1px solid #E2E1DE; border-radius: var(--radius); padding: 12px 14px; }
.addon-title { font-weight: 600; margin-bottom: 8px; }
.addon-opt { display: inline-flex; align-items: center; gap: 6px; margin: 4px 16px 4px 0; color: var(--gray-3); }

.co-step form label { display: block; margin-bottom: 14px; font-size: 0.9rem; color: var(--gray-3); font-weight: 500; }
.co-step input[type=text], .co-step input[type=email], .co-step input[type=tel], .co-step select {
  display: block; width: 100%; margin-top: 6px; padding: 11px 13px; font-size: 1rem; font-family: var(--font-body);
  background: #fff; border: 1px solid #C9CACC; border-radius: var(--radius); color: var(--ink);
}
.co-step input:focus, .co-step select:focus { outline: 2px solid var(--orange); border-color: var(--orange); }
/* Fixed (non-editable) form value — BCD-1616: V1 is Germany-only, and the
   restriction stays VISIBLE rather than being a silently removed field. */
.co-fixed-field { margin-bottom: 14px; }
.co-fixed-label { display: block; font-size: 0.9rem; color: var(--gray-3); font-weight: 500; }
.co-fixed-value {
  margin: 6px 0 0; padding: 11px 13px; font-size: 1rem; background: #F2F2F1;
  border: 1px solid #C9CACC; border-radius: var(--radius); color: var(--ink);
}
.co-fixed-note { margin: 6px 0 0; font-size: 0.85rem; color: var(--gray-3); }

.co-check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; color: var(--gray-3); margin: 8px 0 16px; }
.co-check input { width: auto; margin-top: 3px; }
.co-nav { display: flex; gap: 12px; margin-top: 20px; }
.co-contract { background: #F7F7F6; border-radius: var(--radius); padding: 16px 18px; }
.co-contract h3 { color: var(--anthracite); }
.co-contract p { color: var(--gray-3); font-size: 0.95rem; }
.co-legal { font-size: 0.85rem; color: var(--gray-3); }
.co-legal a { color: var(--orange-text); }

.co-summary { background: #1F2226; color: #fff; border: 2px solid var(--orange); border-radius: var(--radius); padding: 22px; position: sticky; top: 80px; }
.co-summary h3 { color: #fff; }
.sum-lines { list-style: none; padding: 0; margin: 0 0 14px; }
.sum-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid #2E3238; font-size: 0.92rem; color: var(--text-dark); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; }
.sum-total strong { font-family: var(--font-head); font-size: 1.8rem; color: var(--orange); }
.sum-vat { font-size: 0.8rem; color: var(--text-dark); margin: 2px 0 6px; }
.sum-pilot { font-family: var(--font-head); font-size: 0.8rem; color: var(--orange); text-transform: uppercase; letter-spacing: .06em; }
.sum-tranche { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid #2E3238; padding-top: 12px; margin-top: 8px; }
.sum-tranche strong { font-family: var(--font-head); color: #fff; }
.sum-note { font-size: 0.8rem; color: var(--text-dark); margin-top: 10px; }

#co-confirmation { text-align: center; }

@media (max-width: 820px) {
  .co-grid { grid-template-columns: 1fr; }
  .co-summary { position: static; order: -1; }
  .preset-row { grid-template-columns: 1fr; }
  .mod-opt { grid-template-columns: auto 1fr; }
  .mod-opt-price { grid-column: 2; text-align: right; }
}

/* --- v2.1: E-Rechnung recommended module card + badges + detailed price blocks (BCD-1615) --- */
.mod-card-rec { border-left-color: var(--orange); box-shadow: inset 0 0 0 1px rgba(255,90,31,.25); }
.mod-badge { display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: 0.7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--anthracite); background: var(--orange); padding: 3px 9px; border-radius: 999px; margin-left: 8px; vertical-align: middle; white-space: nowrap; }
.mod-card > summary .mod-badge { white-space: normal; }

.price-details { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.price-detail { border-top: 2px solid #2E3238; padding-top: 16px; }
.price-detail h4 { color: #fff; }
.price-detail p { color: var(--text-dark); font-size: 0.95rem; }
.price-detail em { color: #fff; font-style: normal; font-weight: 600; }
.price-detail-rec { border-top-color: var(--orange); }
.price-tiers { font-family: var(--font-head); color: #fff !important; font-size: 1rem; }
.save-badge { display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: 0.72rem; color: var(--green); background: rgba(22,163,74,.14); padding: 2px 8px; border-radius: 999px; }
.price-licenses { border-top: 2px solid #2E3238; padding-top: 16px; }
.price-licenses h4 { color: #fff; }
.price-licenses p { color: var(--text-dark); font-size: 0.98rem; }

@media (max-width: 640px) { .price-details { grid-template-columns: 1fr; } }

/* --- v2.1 checkout: recommended module + add-on highlights (BCD-1615) --- */
.mod-opt.rec { border-color: var(--orange); }
.mod-opt .mod-badge { font-size: 0.62rem; padding: 2px 7px; margin-left: 6px; }
.addon-group.addon-rec { border-color: var(--orange); box-shadow: inset 0 0 0 1px rgba(255,90,31,.25); }
.addon-desc { margin: 8px 0 0; font-size: 0.85rem; color: var(--gray-3); }
.addon-opt .save-badge { margin-left: 4px; }

/* --- v2.1 review: Stundenpaket tier cards + add-on note (BCD-1615) --- */
.tier-cards { display: grid; gap: 10px; margin-top: 4px; }
.tier-card { display: block; border: 1px solid #C9CACC; border-radius: var(--radius); padding: 12px 14px; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.tier-card:hover { border-color: var(--orange); }
.tier-card.selected { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.tier-head { display: flex; align-items: center; gap: 10px; }
.tier-head input { width: auto; margin: 0; }
.tier-title { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.tier-price { margin-left: auto; font-family: var(--font-head); color: var(--gray-3); }
.tier-sub { margin: 6px 0 0 26px; font-size: 0.88rem; color: var(--gray-3); }
.tier-save { display: inline-block; margin: 8px 0 0 26px; }
.addon-note { margin: 10px 0 0; font-size: 0.85rem; color: var(--gray-3); }

/* ---- BCD-1615 rounds 2-9 ---------------------------------------------- */

/* R2 no-wrap: price/label pairs never break mid-amount. */
.nowrap { white-space: nowrap; }

/* R7 net-price notice: one per price block, replaces per-price suffixes. */
.vat-notice { font-size: 0.85rem; color: var(--gray-3); margin: 10px 0 0; }
.stage .vat-notice, .stage-deep .vat-notice { color: var(--text-dark); }

/* R5 detailed order summary lines (dark co-summary #1F2226). */
.sum-lines li.sum-incl { color: var(--text-dark); font-size: 0.82rem; border-bottom: 0; padding: 2px 0 7px; opacity: .92; }
.sum-lines li.sum-incl span:first-child { padding-left: 12px; }
.sum-group-title { font-family: var(--font-head); font-size: 0.82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dark); margin: 12px 0 2px; }
.sum-plan { list-style: none; padding: 0; margin: 10px 0 0; border-top: 1px solid #2E3238; }
.sum-plan li { display: flex; justify-content: space-between; gap: 10px; font-size: 0.86rem; color: var(--text-dark); padding: 6px 0; }
.sum-plan li.due-now { color: #fff; font-weight: 600; }
.sum-plan li.due-now strong { color: var(--orange); font-family: var(--font-head); }

/* R8 gross VAT breakdown on charged amounts (net + USt + gross).
   Base = LIGHT surface (dark text, e.g. step-3 contract); dark override follows. */
.vat-breakdown { list-style: none; padding: 0; margin: 6px 0 0; }
.vat-breakdown li { display: flex; justify-content: space-between; gap: 10px; font-size: 0.88rem; padding: 3px 0; color: var(--gray-3); }
.vat-breakdown li.vat-gross { border-top: 1px solid #E2E1DE; margin-top: 4px; padding-top: 7px; color: var(--anthracite); font-weight: 600; }
.vat-breakdown li.vat-gross strong { color: var(--orange-text); font-family: var(--font-head); }
.co-summary .vat-breakdown li { color: var(--text-dark); }
.co-summary .vat-breakdown li.vat-gross { border-top-color: #2E3238; color: #fff; }
.co-summary .vat-breakdown li.vat-gross strong { color: var(--orange); }

/* R5 step-3 detailed order overview (co-contract, light #F7F7F6). */
.co-price-head { color: var(--gray-3); }
.co-mods { list-style: none; padding: 0; margin: 6px 0 14px; }
.co-mods > li { padding: 8px 0; border-bottom: 1px solid #E7E6E2; color: var(--anthracite); font-size: 0.95rem; }
.co-mod-desc { color: var(--gray-3); font-size: 0.88rem; line-height: 1.5; }
.co-incl { color: var(--gray-3); font-size: 0.9rem; font-style: italic; margin: 0 0 14px; }
.co-plan { list-style: none; padding: 0; margin: 6px 0 14px; }
.co-plan li { display: flex; justify-content: space-between; gap: 10px; font-size: 0.9rem; color: var(--gray-3); padding: 4px 0; }
.co-due { background: #fff; border: 1px solid #E2E1DE; border-left: 2px solid var(--orange); border-radius: var(--radius); padding: 12px 16px; margin-top: 10px; }
.co-due > p { margin: 0 0 4px; color: var(--anthracite); }

/* R9 legal modal (AGB / Datenschutz / Leistungsbeschreibung, in-checkout). */
.legal-modal[hidden] { display: none; }
.legal-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.legal-modal-backdrop { position: absolute; inset: 0; background: rgba(10,11,13,.7); }
.legal-modal-panel { position: relative; background: #fff; color: var(--ink); border-radius: var(--radius); max-width: 820px; width: 100%; max-height: 86vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.legal-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid #E2E1DE; }
.legal-modal-head h2 { margin: 0; font-size: 1.15rem; color: var(--anthracite); }
.legal-modal-actions { display: flex; align-items: center; gap: 12px; }
.legal-modal-close { background: none; border: 1px solid var(--anthracite); color: var(--anthracite); border-radius: var(--radius); width: 36px; height: 36px; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.legal-modal-close:hover { border-color: var(--orange); color: var(--orange-hover); }
.legal-modal-close:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--orange); }
.legal-modal-body { overflow-y: auto; padding: 22px 24px; }
.legal-modal-body :is(h2,h3,h4) { color: var(--anthracite); }
.legal-modal-body p, .legal-modal-body li { color: var(--gray-3); line-height: 1.6; font-size: 0.95rem; }

/* R4 step-3 legal as body text (not fine print). */
.co-legal { font-size: 0.95rem; line-height: 1.55; color: var(--gray-3); }
.co-legal a { color: var(--orange-text); text-decoration: underline; }
.co-legal a:hover { color: var(--orange-text); }

/* BCD-1615 R2 fix: white cards nested inside a dark .stage must not inherit the
   light `.stage p` / `.stage .vat-notice` body color. Reset to dark-on-white.
   (≥2-class specificity to beat `.stage .vat-notice`.) */
.co-main p { color: var(--gray-3); }
.co-main .vat-notice { color: var(--gray-3); }
.legal-modal-body :is(p, li) { color: var(--gray-3); }
.booking-card :is(p, li) { color: var(--gray-3); }
/* Savings badge on the light tier cards (checkout) — dark green passes on #def2e6. */
.tier-card .save-badge { color: #0B5D28; }

/* Plain links directly on the dark checkout stage (not in a white card) — bright
   orange passes on #1A1D21; white-card links keep --orange-text. */
.co-wrap > p a { color: var(--orange); }

/* BCD-1615 R11/R12: Care pre-selected (opt-out) — distinct "Vorausgewählt" badge
   (neutral, not another orange "Empfohlen") + billing-start note. */
.mod-badge-pre { background: #F1F2F2; color: var(--anthracite); font-weight: 600; }
.addon-care-start { border-left: 2px solid var(--orange); padding-left: 10px; margin-top: 8px; }

/* Print stylesheet — clean legal-page PDFs (BCD-1615 R9 PDF download).
   Hide chrome so agb.pdf / datenschutz.pdf render as plain documents. */
@media print {
  .site-nav, .site-footer, .ec-banner, .ec-overlay, .legal-modal, .skip-link,
  [data-consent-settings] { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section, .legal { padding: 0 !important; }
  .wrap { max-width: none; padding: 0; }
  a { color: #000; text-decoration: underline; }
  h1, h2, h3, h4 { color: #000; }
}

/* --- BCD-1616 §3 licence step: stacked rows + billing cards (07.08 UI review) --- */
.lic-row { margin: 0 0 14px; }
.lic-row > label { display: block; font-weight: 600; margin-bottom: 4px; color: var(--ink); }
.lic-row input { width: 120px; }
.lic-help { font-size: 0.85rem; color: var(--gray-3); margin: 4px 0 0; }
.lic-faustregel { font-size: 0.85rem; color: var(--gray-3); margin: 4px 0 16px; }
.lic-billing-cards { grid-template-columns: 1fr; }
@media (min-width: 640px) { .lic-billing-cards { grid-template-columns: 1fr 1fr; } }
.lic-card-price { font-family: var(--font-head); color: var(--ink); margin: 8px 0 0 26px; }
.lic-card-bullets { margin: 8px 0 0 26px; padding-left: 16px; font-size: 0.88rem; color: var(--gray-3); }
.lic-card-bullets li { margin: 2px 0; }
.lic-summary { margin: 12px 0 0; font-weight: 600; color: var(--ink); }

