/* ==========================================================================
   KI Managed Service - Design System
   Basiert auf AI Officer Mittelstand CI (Version 1.0.0)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Lokale Schriftarten (DSGVO-konform, kein Google-Server-Kontakt)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  --color-primary: #0D5E6D;
  --color-primary-light: #E8F4F7;
  --color-primary-dark: #0A4B57;

  --color-accent: #E8942A;
  --color-accent-dark: #C07B1A;
  --color-accent-light: #FFF7ED;

  --color-bg-light: #F8F9FA;
  --color-bg-white: #FFFFFF;

  --color-text-dark: #1A2332;
  --color-text-secondary: #6B7280;
  --color-text-light: #94A3B8;

  --color-success: #16A34A;
  --color-warning: #EAB308;
  --color-error: #DC2626;

  --color-footer-bg: #1A2332;
  --color-border: #E5E7EB;
  --color-border-dark: #334155;

  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  --fs-h1: 48px;
  --fs-h2: 36px;
  --fs-h3: 24px;
  --fs-h4: 20px;
  --fs-body: 18px;
  --fs-body-sm: 16px;
  --fs-caption: 14px;
  --fs-subline: 20px;

  --lh-h1: 1.17;
  --lh-h2: 1.22;
  --lh-h3: 1.33;
  --lh-h4: 1.4;
  --lh-body: 1.56;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  --container-max: 1200px;
  --content-narrow: 720px;
  --header-height: 80px;

  --radius: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-header: 0 2px 8px rgba(0, 0, 0, 0.08);

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text-dark);
  background-color: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-primary-dark); }

ul, ol { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, .h1 {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: var(--lh-h1);
  color: var(--color-text-dark);
}
h2, .h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: var(--lh-h2);
  color: var(--color-text-dark);
}
h3, .h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: var(--lh-h3);
  color: var(--color-text-dark);
}
h4, .h4 {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: var(--lh-h4);
  color: var(--color-text-dark);
}

p { margin-bottom: var(--space-sm); }

.subline {
  font-size: var(--fs-subline);
  color: var(--color-text-secondary);
  line-height: var(--lh-body);
}

strong, b { font-weight: 600; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.content-narrow {
  max-width: var(--content-narrow);
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: 600;
  padding: 16px 32px;
  border-radius: var(--radius);
  min-width: 200px;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast),
              box-shadow var(--transition-fast);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-bg-white);
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-bg-white);
}
.btn-primary:active { transform: translateY(1px); }

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
}

.btn-white {
  background-color: var(--color-bg-white);
  color: var(--color-primary);
  border-color: var(--color-bg-white);
}
.btn-white:hover {
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.btn-sm {
  padding: 12px 24px;
  font-size: var(--fs-caption);
  min-width: auto;
}

.btn-group {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.btn:disabled, .btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-ghost {
  background: none;
  color: var(--color-primary);
  border: none;
  min-width: auto;
  padding: 8px 0;
}
.btn-ghost:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background-color: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}
.header.scrolled { box-shadow: var(--shadow-header); }

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }

.logo-icon { width: 40px; height: 34px; flex-shrink: 0; }

.logo-text {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  display: flex;
  flex-direction: column;
}
.logo-text span {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-secondary);
  letter-spacing: 0.5px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.header-nav a {
  font-size: var(--fs-body-sm);
  color: var(--color-text-dark);
  font-weight: 500;
}
.header-nav a:hover { color: var(--color-primary); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--color-footer-bg);
  padding: var(--space-xl) 0 var(--space-lg);
  color: var(--color-text-light);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-sm);
  font-size: var(--fs-caption);
}

.footer-inner a {
  color: var(--color-text-light);
}
.footer-inner a:hover { color: var(--color-bg-white); }

.footer-legal {
  display: flex;
  gap: var(--space-md);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
  padding: var(--space-2xl) 0;
}
.section-light {
  background-color: var(--color-bg-light);
}
.section-petrol {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
}
.section-petrol h2, .section-petrol h3, .section-petrol h4 {
  color: var(--color-bg-white);
}
.section-petrol p {
  color: rgba(255, 255, 255, 0.85);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-xl);
}
.section-header h2 { margin-bottom: var(--space-sm); }

/* --------------------------------------------------------------------------
   Hero (Landing Page)
   -------------------------------------------------------------------------- */
.hero {
  padding: var(--space-3xl) 0 var(--space-2xl);
  overflow: hidden;
}

.hero h1 { margin-bottom: var(--space-md); }
.hero .subline { margin-bottom: var(--space-lg); }

.hero-content {
  max-width: 700px;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}

.card h3 { margin-bottom: var(--space-xs); }
.card p {
  color: var(--color-text-secondary);
  font-size: var(--fs-body-sm);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

/* --------------------------------------------------------------------------
   Process Steps (Landing Page)
   -------------------------------------------------------------------------- */
.steps-horizontal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  counter-reset: step;
}

.step-item {
  text-align: center;
  position: relative;
  padding: var(--space-md);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 700;
  margin: 0 auto var(--space-sm);
}

.step-item h4 { margin-bottom: var(--space-xs); }
.step-item p {
  font-size: var(--fs-body-sm);
  color: var(--color-text-secondary);
}

/* --------------------------------------------------------------------------
   Price Box (Landing Page)
   -------------------------------------------------------------------------- */
.price-box {
  background-color: var(--color-primary-light);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.price-big {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.price-box .price-label {
  font-size: var(--fs-body-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
}
.price-box .price-note {
  font-size: var(--fs-caption);
  color: var(--color-text-light);
  margin-top: var(--space-xs);
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
  background-color: var(--color-primary);
  text-align: center;
  padding: var(--space-3xl) 0;
  color: var(--color-bg-white);
}
.cta-section h2 {
  color: var(--color-bg-white);
  margin-bottom: var(--space-sm);
}
.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: var(--fs-body-sm);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-text-dark);
}
.form-group label .required { color: var(--color-error); }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: var(--fs-body-sm);
  color: var(--color-text-dark);
  background-color: var(--color-bg-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13, 94, 109, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-light);
}

.form-group input.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-error {
  font-size: 13px;
  color: var(--color-error);
  margin-top: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
}
.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  accent-color: var(--color-primary);
  cursor: pointer;
}
.checkbox-group label {
  font-size: var(--fs-body-sm);
  font-weight: 400;
  color: var(--color-text-secondary);
  cursor: pointer;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Wizard (Analyse-Seite)
   -------------------------------------------------------------------------- */
.wizard-container {
  max-width: 680px;
  margin: 0 auto;
  min-height: 400px;
}

.wizard-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}

/* Progress Bar */
.wizard-progress {
  margin-bottom: var(--space-lg);
}

.wizard-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xs);
}

.wizard-progress-label {
  font-size: var(--fs-caption);
  color: var(--color-text-light);
}

.wizard-progress-bar {
  height: 6px;
  background-color: var(--color-border);
  border-radius: 3px;
  overflow: hidden;
}

.wizard-progress-fill {
  height: 100%;
  background-color: var(--color-primary);
  border-radius: 3px;
  transition: width var(--transition-base);
  width: 0%;
}

/* Block Indicator */
.wizard-block-indicator {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.block-dot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-caption);
  color: var(--color-text-light);
  padding: 4px 12px;
  border-radius: 20px;
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.block-dot.active {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  border-color: var(--color-primary);
}

.block-dot.completed {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* Question */
.wizard-question {
  display: none;
  animation: fadeIn 0.3s ease;
}
.wizard-question.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.wizard-question h3 {
  margin-bottom: var(--space-sm);
}

.wizard-question .help-text {
  color: var(--color-text-secondary);
  font-size: var(--fs-body-sm);
  margin-bottom: var(--space-md);
  padding: var(--space-sm);
  background-color: var(--color-bg-light);
  border-radius: var(--radius);
  border-left: 3px solid var(--color-primary);
}

.wizard-question .help-text strong {
  color: var(--color-primary);
}

/* Answer Options */
.wizard-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.wizard-option {
  display: block;
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  font-size: var(--fs-body-sm);
  font-weight: 500;
  color: var(--color-text-dark);
  text-align: left;
  background-color: var(--color-bg-white);
  cursor: pointer;
  transition: border-color var(--transition-fast),
              background-color var(--transition-fast),
              color var(--transition-fast);
  line-height: 1.4;
}

.wizard-option:hover {
  border-color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.wizard-option.selected {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  color: var(--color-bg-white);
}

/* Multi-Select Options */
.wizard-options.multi-select .wizard-option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.wizard-options.multi-select .wizard-option::before {
  content: '';
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.wizard-options.multi-select .wizard-option.selected::before {
  background-color: var(--color-bg-white);
  border-color: var(--color-bg-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D5E6D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Navigation Buttons */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.wizard-nav .btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-body-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  background: none;
  border: none;
  padding: 8px 0;
  cursor: pointer;
  transition: color var(--transition-fast);
}
.wizard-nav .btn-back:hover { color: var(--color-primary); }
.wizard-nav .btn-back:disabled { opacity: 0.3; cursor: not-allowed; }

.wizard-nav .btn-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius);
  background-color: var(--color-accent);
  color: var(--color-bg-white);
  border: 2px solid var(--color-accent);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 160px;
}
.wizard-nav .btn-next:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}
.wizard-nav .btn-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   Registration Form (Step 1)
   -------------------------------------------------------------------------- */
.registration-form {
  max-width: 480px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Result Page (Ergebnis)
   -------------------------------------------------------------------------- */
.result-container {
  max-width: 800px;
  margin: 0 auto;
}

/* Overall Status */
.result-hero {
  text-align: center;
  padding: var(--space-xl) 0;
}

.result-hero h2 { margin-bottom: var(--space-sm); }
.result-hero .subline { margin-bottom: var(--space-lg); }

/* Ampel Cards (Ergebnis) */
.ampel-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.ampel-card {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.ampel-card.gruen { border-top: 4px solid var(--color-success); }
.ampel-card.gelb { border-top: 4px solid var(--color-warning); }
.ampel-card.rot { border-top: 4px solid var(--color-error); }
.ampel-card.nicht-relevant { border-top: 4px solid var(--color-border); }

.ampel-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto var(--space-sm);
  font-size: 28px;
}

.ampel-card.gruen .ampel-dot {
  background-color: rgba(22, 163, 74, 0.12);
  color: var(--color-success);
}
.ampel-card.gelb .ampel-dot {
  background-color: rgba(234, 179, 8, 0.12);
  color: var(--color-warning);
}
.ampel-card.rot .ampel-dot {
  background-color: rgba(220, 38, 38, 0.12);
  color: var(--color-error);
}
.ampel-card.nicht-relevant .ampel-dot {
  background-color: var(--color-bg-light);
  color: var(--color-text-light);
}

.ampel-card h3 {
  margin-bottom: var(--space-xs);
  font-size: var(--fs-h4);
}

.ampel-card .ampel-status {
  font-size: var(--fs-body-sm);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}
.ampel-card.gruen .ampel-status { color: var(--color-success); }
.ampel-card.gelb .ampel-status { color: #B8860B; }
.ampel-card.rot .ampel-status { color: var(--color-error); }
.ampel-card.nicht-relevant .ampel-status { color: var(--color-text-light); }

.ampel-card .ampel-summary {
  font-size: var(--fs-body-sm);
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* Detail Sections */
.result-details {
  margin-bottom: var(--space-xl);
}

.detail-section {
  margin-bottom: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.detail-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background-color: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
}

.detail-section-header .status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-badge.gruen {
  background-color: rgba(22, 163, 74, 0.12);
  color: var(--color-success);
}
.status-badge.gelb {
  background-color: rgba(234, 179, 8, 0.12);
  color: #B8860B;
}
.status-badge.rot {
  background-color: rgba(220, 38, 38, 0.12);
  color: var(--color-error);
}

.detail-section-header h3 {
  margin-bottom: 0;
  font-size: var(--fs-h4);
}

.detail-section-body {
  padding: var(--space-lg);
}

/* Finding Items */
.finding-item {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}
.finding-item:last-child { border-bottom: none; }

.finding-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.finding-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-top: 2px;
}
.finding-icon.rot { background-color: rgba(220, 38, 38, 0.12); color: var(--color-error); }
.finding-icon.gelb { background-color: rgba(234, 179, 8, 0.12); color: #B8860B; }
.finding-icon.gruen { background-color: rgba(22, 163, 74, 0.12); color: var(--color-success); }

.finding-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-body);
  color: var(--color-text-dark);
}

.finding-explanation {
  font-size: var(--fs-body-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.finding-law {
  font-size: var(--fs-caption);
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}

.finding-next-step {
  background-color: var(--color-bg-light);
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-md);
  border-left: 3px solid var(--color-primary);
}

.finding-next-step strong {
  display: block;
  font-size: var(--fs-body-sm);
  color: var(--color-primary);
  margin-bottom: 4px;
}

.finding-next-step p {
  font-size: var(--fs-body-sm);
  color: var(--color-text-secondary);
  margin-bottom: 0;
  line-height: 1.5;
}

/* Result Actions */
.result-actions {
  text-align: center;
  padding: var(--space-xl) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.result-actions .btn-group {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Disclaimer
   -------------------------------------------------------------------------- */
.disclaimer {
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
  font-size: var(--fs-caption);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-top: var(--space-lg);
}

.disclaimer strong {
  color: var(--color-text-dark);
}

/* --------------------------------------------------------------------------
   Banner / Notice
   -------------------------------------------------------------------------- */
.banner {
  background-color: var(--color-accent-light);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.banner p { margin-bottom: 0; font-size: var(--fs-body-sm); }
.banner strong { color: var(--color-accent-dark); }

/* --------------------------------------------------------------------------
   Feature Icons
   -------------------------------------------------------------------------- */
.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 24px;
  margin-bottom: var(--space-sm);
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-secondary { color: var(--color-text-secondary); }
.text-small { font-size: var(--fs-body-sm); }
.text-caption { font-size: var(--fs-caption); color: var(--color-text-secondary); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mx-auto { margin-left: auto; margin-right: auto; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

.hidden { display: none !important; }

/* --------------------------------------------------------------------------
   Loading / Spinner
   -------------------------------------------------------------------------- */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: var(--space-xl) auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  z-index: 10000;
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-primary);
  color: #FFFFFF;
  font-weight: 600;
  font-size: var(--fs-body-sm);
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  transition: top var(--transition-fast);
}
.skip-link:focus { top: 0; color: #FFFFFF; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   Responsive: Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --fs-h1: 38px;
    --fs-h2: 30px;
    --fs-h3: 22px;
  }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps-horizontal { grid-template-columns: repeat(2, 1fr); }
  .ampel-overview { grid-template-columns: repeat(2, 1fr); }

  .header-nav { display: none; }

  .banner { flex-direction: column; text-align: center; }
}

/* --------------------------------------------------------------------------
   Responsive: Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --fs-h1: 32px;
    --fs-h2: 26px;
    --fs-h3: 20px;
    --fs-h4: 18px;
    --fs-body: 16px;
    --fs-body-sm: 14px;
    --fs-caption: 12px;
    --fs-subline: 18px;
  }

  .container { padding-left: var(--space-sm); padding-right: var(--space-sm); }
  .section { padding: var(--space-xl) 0; }
  .cta-section { padding: var(--space-2xl) 0; }
  .hero { padding: var(--space-xl) 0; }

  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps-horizontal { grid-template-columns: 1fr; }
  .ampel-overview { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .btn { width: 100%; min-width: auto; }
  .btn-group { flex-direction: column; }
  .btn-ghost { width: auto; }

  .wizard-card { padding: var(--space-md); }
  .wizard-nav { flex-direction: column-reverse; gap: var(--space-sm); }
  .wizard-nav .btn-next { width: 100%; }

  .price-big { font-size: 36px; }

  .detail-section-header { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
  .header, .footer, .wizard-nav, .result-actions, .skip-link { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .container { max-width: 100%; }
  .ampel-overview { grid-template-columns: repeat(3, 1fr); }
  .wizard-card { box-shadow: none; border: 1px solid #ccc; }
}
