/* ==========================================================================
   FörderWatcher — Central design system (fw#112)
   Token-based, B2B-professional palette.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --color-primary:        #17324D;
  --color-primary-hover:  #0f2135;
  --color-accent:         #0F766E; /* teal — status/success icons, logo accent */
  --color-text:           #17212B;
  --color-muted:          #52606D;
  --color-bg:             #F6F8FA;
  --color-surface:        #ffffff;
  --color-border:         #DDE3E9;
  --color-border-light:   #EEF1F4;

  /* Semantic: success */
  --color-success:        #15803d;
  --color-success-bg:     #f0fdf4;
  --color-success-border: #bbf7d0;

  /* Semantic: error */
  --color-error:          #991b1b;
  --color-error-bg:       #fef2f2;
  --color-error-border:   #fecaca;

  /* Shape */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;

  /* Elevation */
  --shadow-card:    0 1px 3px rgba(16,24,40,.08);
  --shadow-section: 0 1px 8px rgba(16,24,40,.07);

  /* Spacing */
  --space-3:  12px;
  --space-4:  16px;
  --space-6:  24px;
}

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

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
body {
  font-family: "Inter", "IBM Plex Sans", system-ui, -apple-system,
               BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
}

/* Narrow-page layout (forms, onboarding, legal pages) */
body.page-narrow { padding: 2rem 1rem; }

a { color: var(--color-primary); }

/* --------------------------------------------------------------------------
   4. Layout containers
   -------------------------------------------------------------------------- */
.container      { max-width: 680px; margin: 0 auto; }
.container-wide { max-width: 880px; margin: 0 auto; }
.container-xl   { max-width: 1100px; margin: 0 auto; }

/* --------------------------------------------------------------------------
   5. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 2.5rem;
  margin-bottom: 1.5rem;
}
.card-sm {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-section);
  padding: 1rem 1.5rem;
}

/* --------------------------------------------------------------------------
   6. Brand
   -------------------------------------------------------------------------- */
.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.2rem;
  text-decoration: none;
  display: inline-block;
}
.logo span { color: var(--color-accent); }
.tagline { color: var(--color-muted); font-size: 0.85rem; margin-bottom: 2rem; }

/* --------------------------------------------------------------------------
   7. Navigation helpers
   -------------------------------------------------------------------------- */
.back {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  display: inline-block;
  text-decoration: none;
}
.back:hover { color: var(--color-primary); }

/* --------------------------------------------------------------------------
   8. Typography
   -------------------------------------------------------------------------- */
h1 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; }
h2 { font-size: 1rem; font-weight: 600; margin: 1.5rem 0 0.75rem; color: #2D3A42; }

/* --------------------------------------------------------------------------
   9. Form elements
   -------------------------------------------------------------------------- */
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2D3A42;
  margin-bottom: 0.35rem;
}

input[type=text],
input[type=email],
input[type=number],
select,
textarea {
  width: 100%;
  padding: 0.6rem 0.875rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
  margin-bottom: 1.1rem;
  background: var(--color-surface);
  color: var(--color-text);
}
input:focus, select:focus, textarea:focus { border-color: var(--color-primary); }
textarea { min-height: 70px; resize: vertical; }

.hint {
  font-size: 0.775rem;
  color: #94a3b8;
  margin-top: -0.85rem;
  margin-bottom: 1.1rem;
}

/* --------------------------------------------------------------------------
   10. Layout helpers
   -------------------------------------------------------------------------- */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.checkgroup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}
.checkgroup label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  font-size: 0.875rem;
  color: #2D3A42;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .1s;
}
.checkgroup input[type=checkbox] { width: auto; margin: 0; padding: 0; }
.checkgroup label:has(input:checked) {
  background: #e8eef4;
  border-color: #93b4d4;
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   11. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: block;
  width: 100%;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-success { background: var(--color-accent); color: #fff; }
.btn-success:hover { background: #0a5c55; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-outline {
  background: var(--color-surface);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  margin-top: 0.75rem;
}
.btn-outline:hover { background: #e8eef4; }

/* CTA button (landing / inline) */
.btn-cta {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.9rem 2.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background .15s;
}
.btn-cta:hover { background: var(--color-primary-hover); }
.btn-cta-sub {
  display: block;
  font-size: 0.8rem;
  color: #b0c9db;
  margin-top: 0.6rem;
}

/* Plan buttons */
.btn-plan {
  display: block;
  text-align: center;
  background: var(--color-primary);
  color: #fff;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}
.btn-plan:hover { background: var(--color-primary-hover); }
.btn-plan.outline {
  background: var(--color-surface);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-plan.outline:hover { background: #e8eef4; }

/* --------------------------------------------------------------------------
   12. Alerts
   -------------------------------------------------------------------------- */
.alert {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  background: #F0F3F6;
  color: #445058;
  border: 1px solid var(--color-border);
}
.alert-error {
  background: var(--color-error-bg);
  color: var(--color-error);
  border: 1px solid var(--color-error-border);
}
.alert-success {
  background: var(--color-success-bg);
  color: #166534;
  border: 1px solid var(--color-success-border);
}

/* --------------------------------------------------------------------------
   13. Badges and tags
   -------------------------------------------------------------------------- */
.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
}
.badge-free     { background: #f1f5f9; color: #445058; }
.badge-pro      { background: #e8eef4; color: var(--color-primary); }
.badge-done     { background: var(--color-success-bg); color: #166534; }
.badge-failed   { background: var(--color-error-bg); color: var(--color-error); }
.badge-pending  { background: #fefce8; color: #854d0e; }
.badge-approval { background: #fdf4ff; color: #7e22ce; }

.source-badge {
  display: inline-block;
  background: #e8eef4;
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid #c9d8e6;
  margin-bottom: 1rem;
}

.tag {
  background: #f1f5f9;
  color: #445058;
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   14. Utilities
   -------------------------------------------------------------------------- */
.section-divider { border: none; border-top: 1px solid var(--color-border-light); margin: 1.5rem 0; }

/* Content helpers (onboarding / confirmation pages) */
.center-block { text-align: center; padding: 1rem 0; }
.lead { color: var(--color-muted); line-height: 1.75; margin-bottom: 1.5rem; }
.muted-note { color: #94a3b8; font-size: 0.8rem; }
.form-note { font-size: 0.75rem; color: #94a3b8; margin-top: 1rem; text-align: center; }

.hero-icon { color: var(--color-primary); margin-bottom: 1rem; display: flex; justify-content: center; }

.info-box {
  background: #F0F3F6;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: left;
  margin-bottom: 1.5rem;
}
.info-box .info-title { font-weight: 600; margin-bottom: 0.75rem; }
.info-box ol, .info-box ul { padding-left: 1.25rem; line-height: 2; color: #2D3A42; font-size: 0.875rem; }
.info-box p { color: #2D3A42; font-size: 0.9rem; }

.consent-row { margin: 1rem 0 1.25rem; }
.consent-label { display: flex; align-items: flex-start; gap: 0.6rem; font-weight: 400; cursor: pointer; line-height: 1.5; }
.consent-label input[type=checkbox] { margin-top: 3px; width: auto; flex-shrink: 0; }
.consent-label span { font-size: 0.84rem; color: #2D3A42; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Inset panel (profile tarif box etc.) */
.panel {
  background: #F0F3F6;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.panel h2 { margin-top: 0; }
.panel p { color: #445058; margin-bottom: 0.75rem; }

/* Toolbar row of buttons (export etc.) */
.btn-row { display: flex; gap: 0.75rem; margin: 1rem 0; flex-wrap: wrap; }
.btn-row .btn { width: auto; margin-top: 0; }

/* Result list (pro dashboard) */
.result-item { border-top: 1px solid var(--color-border-light); padding: 1.25rem 0; }
.result-meta { font-size: 0.78rem; color: var(--color-muted); margin-bottom: 0.35rem; }
.result-item h2 { margin: 0 0 0.5rem; }
.result-item p { color: #445058; line-height: 1.6; }
.section-title { font-size: 1.4rem; font-weight: 800; text-align: center; margin-bottom: 0.5rem; color: var(--color-text); }
.section-sub { font-size: 0.95rem; color: var(--color-muted); text-align: center; margin-bottom: 2rem; }

/* --------------------------------------------------------------------------
   15. Footer (narrow pages using base.html)
   -------------------------------------------------------------------------- */
.page-footer {
  text-align: center;
  font-size: 0.78rem;
  color: #94a3b8;
  padding: 1.5rem 1rem 2rem;
}
.page-footer a { color: var(--color-muted); text-decoration: none; margin: 0 0.5rem; }
.page-footer button {
  background: none;
  border: 0;
  color: var(--color-muted);
  cursor: pointer;
  font: inherit;
  margin: 0 0.5rem;
  padding: 0;
}

/* --------------------------------------------------------------------------
   15b. Page hero header (contact etc.)
   -------------------------------------------------------------------------- */
.page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0f2135 100%);
  color: #fff;
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.page-header h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.5rem; }
.page-header p { color: #b0c9db; font-size: 0.95rem; }
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  margin-right: 6px;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   16. Legal page prose
   -------------------------------------------------------------------------- */
.stand { font-size: 0.82rem; color: #94a3b8; margin-bottom: 1.75rem; }

.prose h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 2rem 0 0.6rem;
  color: var(--color-text);
  border-top: 1px solid var(--color-border-light);
  padding-top: 1.5rem;
}
.prose h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.prose p { font-size: 0.875rem; line-height: 1.7; color: #445058; margin-bottom: 0.75rem; }
.prose ol,
.prose ul { font-size: 0.875rem; line-height: 1.7; color: #445058; margin: 0.5rem 0 0.75rem 1.5rem; }
.prose li { margin-bottom: 0.3rem; }
.prose a { color: var(--color-primary); }
.prose .highlight {
  background: #fefce8;
  border-left: 3px solid #ca8a04;
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1rem 0;
  font-size: 0.875rem;
}
.prose .highlight ol { margin: 0.5rem 0 0 1.25rem; color: #78350f; }

/* --------------------------------------------------------------------------
   17. Landing: Sticky header + skip link (fw#113)
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-sm);
  z-index: 300;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.7rem 1.5rem;
}
.site-header .logo { font-size: 1.15rem; margin-bottom: 0; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  display: inline-block;
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.3rem 0.1rem;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--color-primary); }
.site-nav a:focus-visible,
.header-cta:focus-visible,
.skip-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}
.header-cta {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.header-cta:hover { background: var(--color-primary-hover); }

/* --------------------------------------------------------------------------
   17b. Landing: Hero (two-column, fw#113)
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0f2135 100%);
  color: #fff;
  padding: 4rem 1.5rem;
}
.hero-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-copy { text-align: left; }
.hero .tagline    { color: #b0c9db; margin-bottom: 1.5rem; }
.hero-copy h1 {
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 1.25rem;
}
.hero-copy p { font-size: 1.02rem; color: #b0c9db; margin: 0 0 2rem; line-height: 1.6; max-width: 520px; }
.hero .btn-cta    { background: #fff; color: var(--color-primary); }
.hero .btn-cta:hover { background: #e8eef4; }

/* Product mockup — CSS-only preview, no real screenshot/testimonial (fw#113) */
.product-mock {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px rgba(6, 14, 24, .35);
  overflow: hidden;
}
.product-mock-bar {
  display: flex;
  gap: 6px;
  padding: 0.65rem 0.9rem;
  background: #EEF1F4;
  border-bottom: 1px solid var(--color-border-light);
}
.product-mock-dot { width: 9px; height: 9px; border-radius: 50%; background: #c9d3db; }
.product-mock-body { padding: 1.35rem 1.25rem; }
.product-mock-heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-muted);
  margin-bottom: 0.85rem;
}
.product-mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border-light);
}
.product-mock-row:last-child { border-bottom: none; }
.product-mock-title { font-size: 0.82rem; font-weight: 600; color: var(--color-text); }
.product-mock-track {
  flex: 1;
  max-width: 90px;
  height: 6px;
  border-radius: 3px;
  background: var(--color-border-light);
  overflow: hidden;
}
.product-mock-track span { display: block; height: 100%; background: var(--color-accent); border-radius: 3px; }
.product-mock-score {
  font-size: 0.7rem;
  font-weight: 700;
  color: #166534;
  background: var(--color-success-bg);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.product-mock-caption { text-align: center; font-size: 0.75rem; color: #b0c9db; margin-top: 0.9rem; }

/* --------------------------------------------------------------------------
   17c. Landing: Trust bar (fw#113)
   -------------------------------------------------------------------------- */
.trust-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0.9rem 1.5rem;
}
.trust-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.6rem;
  font-size: 0.82rem;
  color: var(--color-muted);
  text-align: center;
}
.trust-bar-sep { color: var(--color-border); }
.trust-bar-stand { color: #94a3b8; }

/* --------------------------------------------------------------------------
   17d. Landing: Use cases / Förderthemen (fw#113)
   -------------------------------------------------------------------------- */
.usecases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.usecase-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-card);
  text-align: left;
}
.usecase-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e8eef4;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}
.usecase-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--color-text); }
.usecase-card p  { font-size: 0.82rem; color: #445058; line-height: 1.55; }

/* --------------------------------------------------------------------------
   17e. Landing: Für Unternehmen — branch personalization, not exclusivity (fw#113)
   -------------------------------------------------------------------------- */
.sector-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin: 1.75rem 0 1.5rem;
}
.sector-chip {
  background: #fff;
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  font-family: inherit;
}
.sector-chip:hover { border-color: var(--color-primary); }
.sector-chip[aria-pressed="true"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.sector-example {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.5rem;
  max-width: 640px;
  margin: 0 auto;
  font-size: 0.88rem;
  color: #2D3A42;
  line-height: 1.65;
  text-align: left;
}
.sector-example strong { color: var(--color-primary); }

/* --------------------------------------------------------------------------
   17f. Landing: Sicherheit (fw#113)
   -------------------------------------------------------------------------- */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem 2rem;
  margin-top: 2rem;
  text-align: left;
}
.security-item { display: flex; gap: 0.85rem; align-items: flex-start; }
.security-item .icon { color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.security-item h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.3rem; color: var(--color-text); }
.security-item p { font-size: 0.82rem; color: var(--color-muted); line-height: 1.55; }
.security-links { margin-top: 2rem; text-align: center; font-size: 0.85rem; }
.security-links a { margin: 0 0.6rem; }

/* --------------------------------------------------------------------------
   18. Landing: Feature section
   -------------------------------------------------------------------------- */
.section { padding: 3.5rem 1.5rem; }
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}
.feature-icon {
  margin-bottom: 0.75rem;
  color: var(--color-primary);
  line-height: 1;
}
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--color-text); }
.feature-card p  { font-size: 0.875rem; color: #445058; line-height: 1.55; }

/* --------------------------------------------------------------------------
   19. Landing: Sources
   -------------------------------------------------------------------------- */
.sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.source-pill {
  background: #e8eef4;
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid #c9d8e6;
}

/* --------------------------------------------------------------------------
   20. Landing: How it works
   -------------------------------------------------------------------------- */
.how-section { background: var(--color-surface); }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.step { text-align: center; }
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}
.step h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.4rem; }
.step p  { font-size: 0.85rem; color: var(--color-muted); }

/* --------------------------------------------------------------------------
   21. Landing: CTA section
   -------------------------------------------------------------------------- */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0f2135 100%);
  color: #fff;
  text-align: center;
  padding: 4rem 1.5rem;
}
.cta-section h2  { font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; }
.cta-section p   { color: #b0c9db; font-size: 0.95rem; margin-bottom: 2rem; }
.cta-section .btn-cta       { background: #fff; color: var(--color-primary); }
.cta-section .btn-cta:hover { background: #e8eef4; }

/* --------------------------------------------------------------------------
   22. Landing: Dark footer
   -------------------------------------------------------------------------- */
.footer-dark {
  background: var(--color-text);
  color: #94a3b8;
  text-align: center;
  font-size: 0.8rem;
  padding: 1.5rem;
}
.footer-dark a { color: var(--color-muted); text-decoration: none; margin: 0 0.5rem; }
.footer-dark button {
  background: none;
  border: 0;
  color: var(--color-muted);
  cursor: pointer;
  font: inherit;
}

/* --------------------------------------------------------------------------
   23. Landing: Pricing cards (landing strip)
   -------------------------------------------------------------------------- */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem auto 0;
  max-width: 600px;
}
.pricing-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-card);
  position: relative;
}
.pricing-card.featured { border: 2px solid var(--color-primary); }
.pricing-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.9rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.pricing-name   { font-size: 1rem; font-weight: 800; margin-bottom: 0.5rem; }
.pricing-price  { font-size: 2rem; font-weight: 900; color: var(--color-primary); }
.pricing-price.free { color: var(--color-accent); }
.pricing-period { font-size: 0.8rem; color: var(--color-muted); margin-bottom: 1.25rem; }
.pricing-features { list-style: none; font-size: 0.85rem; color: #2D3A42; margin-bottom: 1.5rem; }
.pricing-features li { padding: 0.35rem 0; border-bottom: 1px solid var(--color-border-light); }
.pricing-features li:last-child { border-bottom: none; }

/* --------------------------------------------------------------------------
   24. Pricing page (preise.html)
   -------------------------------------------------------------------------- */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.plan { background: var(--color-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 2rem; position: relative; }
.plan-pro  { border: 2px solid var(--color-primary); }
.plan-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.plan-name        { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.5rem; }
.plan-price       { font-size: 2.2rem; font-weight: 900; color: var(--color-primary); line-height: 1; margin-bottom: 0.25rem; }
.plan-price-free  { color: var(--color-accent); }
.plan-period      { font-size: 0.82rem; color: var(--color-muted); margin-bottom: 1.25rem; }
.plan-features    { list-style: none; font-size: 0.875rem; color: #2D3A42; margin-bottom: 1.5rem; }
.plan-features li { padding: 0.4rem 0; border-bottom: 1px solid var(--color-border-light); display: flex; gap: 0.5rem; }
.plan-features li:last-child { border-bottom: none; }
.plan-features li { align-items: flex-start; }
.check { color: var(--color-accent); font-weight: 700; flex-shrink: 0; }
.cross { color: #94a3b8; font-weight: 700; flex-shrink: 0; }
.plan-note { font-size: 0.82rem; color: var(--color-muted); line-height: 1.6; margin-top: 1.5rem; }

/* Pricing page: subtitle, tax note, FAQ */
.subtitle { color: var(--color-muted); font-size: 0.95rem; margin-bottom: 2.5rem; }
.tax-note { font-size: 0.78rem; color: #94a3b8; text-align: center; margin-bottom: 2rem; }
.faq { background: var(--color-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 2rem; }
.faq h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; }
.faq-item { margin-bottom: 1.25rem; }
.faq-item strong { font-size: 0.9rem; color: var(--color-text); display: block; margin-bottom: 0.35rem; }
.faq-item p { font-size: 0.85rem; color: #445058; line-height: 1.6; }

/* --------------------------------------------------------------------------
   25. Program detail page
   -------------------------------------------------------------------------- */
.detail-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.3; }
.teaser   { color: #445058; font-size: 1rem; line-height: 1.6; margin-bottom: 1.5rem; }
.meta     { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; font-size: 0.85rem; color: var(--color-muted); margin-bottom: 1.5rem; }
.meta strong { color: var(--color-text); }
.tags     { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }
.description { color: #2D3A42; line-height: 1.7; font-size: 0.9375rem; }
.cta      { background: var(--color-primary); color: #fff; display: block; text-align: center; padding: 0.9rem 1.5rem; border-radius: var(--radius-sm); font-size: 1rem; font-weight: 700; text-decoration: none; margin-top: 1.5rem; }
.cta:hover { background: var(--color-primary-hover); }
.cta-secondary { display: block; text-align: center; padding: 0.75rem; margin-top: 0.75rem; font-size: 0.875rem; color: var(--color-muted); }
.cta-secondary a { color: var(--color-primary); }
.card-note { text-align: center; }
.card-note p { font-size: 0.9rem; color: var(--color-muted); margin-bottom: 1rem; }

/* --------------------------------------------------------------------------
   26. Admin page
   -------------------------------------------------------------------------- */
.admin-title { font-size: 1.3rem; font-weight: 800; color: var(--color-primary); margin-bottom: 0.25rem; }
.admin-subtitle { font-size: 0.8rem; color: var(--color-muted); margin-bottom: 1.5rem; }
.stats-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.stat-card { background: var(--color-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-section); padding: 1rem 1.5rem; min-width: 140px; }
.stat-card .val { font-size: 1.8rem; font-weight: 800; color: var(--color-primary); }
.stat-card .lbl { font-size: 0.75rem; color: var(--color-muted); margin-top: 0.15rem; }
.admin-section { background: var(--color-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-section); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.admin-section h2 { font-size: 0.95rem; font-weight: 700; color: #2D3A42; margin-bottom: 1rem; margin-top: 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
th { text-align: left; font-weight: 600; color: var(--color-muted); border-bottom: 1px solid var(--color-border); padding: 0.4rem 0.6rem; }
td { padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--color-border-light); vertical-align: top; }
tr:last-child td { border-bottom: none; }
.programs-by-source td:first-child { font-weight: 600; }
.empty { color: #94a3b8; font-style: italic; font-size: 0.85rem; }
.cell-sub { color: var(--color-muted); font-size: 0.78rem; }
.text-muted { color: var(--color-muted); }

/* --------------------------------------------------------------------------
   27. Responsive breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy p { margin-left: auto; margin-right: auto; }
  .product-mock { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .site-header-inner { flex-wrap: wrap; }
  .site-nav { order: 3; width: 100%; justify-content: flex-start; padding-top: 0.35rem; border-top: 1px solid var(--color-border-light); }
}
@media (max-width: 540px) {
  .hero { padding: 3rem 1rem 2rem; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .row, .checkgroup { grid-template-columns: 1fr; }
  .meta { flex-direction: column; gap: 0.5rem; }
}

/* --------------------------------------------------------------------------
   28. Accessibility utilities (fw#114)
   -------------------------------------------------------------------------- */

/* Visually hidden but still announced by screen readers (step legends,
   the aria-live step-status region, etc.) — standard "sr-only" pattern. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

fieldset { border: none; padding: 0; margin: 0; }
legend { padding: 0; }

/* Keyboard-focus indicator (WCAG 2.2 AA, 2.4.11/2.4.13). Mouse/touch clicks
   don't get this ring — :focus-visible already limits it to keyboard/AT
   focus. The extra rule with element selectors is needed because form
   controls set `outline: none` at rest (see section 9) with equal
   specificity to a bare `:focus-visible`; declaring it again here, later in
   the cascade, on the same selectors is what actually makes it win. */
:focus-visible {
  outline: 3px solid #7DD3FC;
  outline-offset: 2px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible,
.btn:focus-visible,
.step-jump:focus-visible {
  outline: 3px solid #7DD3FC;
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   29. Onboarding wizard (fw#114) — progressive 3-step form + review step
   -------------------------------------------------------------------------- */

/* Inline field errors — server-rendered, tied to the field via
   aria-describedby + aria-invalid so screen readers announce them. */
.field-error {
  color: var(--color-error);
  font-size: 0.8rem;
  margin-top: -0.85rem;
  margin-bottom: 1.1rem;
  font-weight: 600;
}
input[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--color-error);
}
.required-marker { color: var(--color-error); }

/* fw#114 hint/error text needs to hit 4.5:1 against a white card — the
   sitewide .hint color (#94a3b8) does not, so the onboarding form uses the
   darker --color-muted token instead without touching .hint elsewhere. */
.onboard-form .hint { color: var(--color-muted); }

/* Progress indicator — hidden until JS confirms the stepped UI is actually
   active; without JS all fields are on one page and a step tracker showing
   "step 1 of 4" would be meaningless (and its jump-buttons inert). */
.step-nav { display: none; margin-bottom: 1.75rem; }
body.js-onboard-steps .step-nav { display: block; }

.step-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  list-style: none;
}
.step-item { text-align: center; }
.step-jump {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 44px;
  background: none;
  border: none;
  padding: 0.25rem;
  font: inherit;
  cursor: pointer;
}
.step-jump:disabled { cursor: default; }
.step-jump .step-num {
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
  margin: 0;
}
.step-jump .step-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-muted);
}
.step-item.is-current .step-jump .step-num { background: var(--color-primary); box-shadow: 0 0 0 3px #e8eef4; }
.step-item.is-current .step-jump .step-label { color: var(--color-primary); }
.step-item.is-done .step-jump .step-num { background: var(--color-accent); }
.step-item.is-done .step-jump .step-label { color: var(--color-text); }

/* Steps 1-3 (fieldsets) and step 4 (review/consent) — all visible at once
   until JS switches on the stepped mode; then only `.is-active` shows. */
body.js-onboard-steps .form-step:not(.is-active) { display: none; }
.form-step h2:focus { outline: none; } /* programmatic focus target only, no visual ring needed on the heading itself */

.step-actions { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.step-actions .btn { width: auto; flex: 1; margin-top: 0; min-height: 44px; }

.summary-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1rem;
  background: #F0F3F6;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.summary-list dt { font-weight: 600; color: var(--color-muted); font-size: 0.82rem; }
.summary-list dd { color: var(--color-text); font-size: 0.9rem; }

/* Touch targets: checkbox rows must be at least 44px tall (fw#114), not
   just the ~16px checkbox itself — the whole label row is the tap target. */
.checkgroup label,
.consent-label {
  min-height: 44px;
}
.checkgroup label { align-items: center; }
