/**
 * BU-Bedarfsrechner — Premium Design System
 * Rombey Capital — Version 2.0
 */

/* ─── Font ──────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Inter';
  src: url('/bu-rechner/fonts/inter-v18-latin-regular.woff2') format('woff2'),
       url('/bu-rechner/fonts/Inter_18pt-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ─── Design Tokens ─────────────────────────────────────────────────── */

:root {
  --color-primary: #14284c;
  --color-primary-hover: #0f1f3a;
  --color-primary-light: #e8ecf2;
  --color-primary-50: #f0f3f8;
  --color-accent: #1d4ed8;
  --color-accent-hover: #1e40af;
  --color-success: #059669;
  --color-success-light: #d1fae5;
  --color-danger: #dc2626;
  --color-danger-light: #fee2e2;
  --color-warning: #d97706;
  --color-warning-light: #fef3c7;
  --color-text: #1e293b;
  --color-text-secondary: #475569;
  --color-text-muted: #94a3b8;
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);

  --transition-fast: 150ms ease;
  --transition: 200ms ease;
  --transition-slow: 300ms ease;
}

/* ─── Reset & Base ──────────────────────────────────────────────────── */

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

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

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

/* Sichtbarer Fokus-Ring nur bei Tastaturbedienung */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Fokus-Ring für visuell versteckte Radios auf dem Label anzeigen */
.radio-option input[type="radio"]:focus-visible + label {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* Skip-Link: erst bei Tastaturfokus sichtbar */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-md) 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Header ────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img {
  height: 36px;
  width: auto;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
}

.header-cta:hover {
  background: var(--color-primary-hover);
  text-decoration: none;
}

/* ─── Hero Section ──────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a3a6b 100%);
  color: #fff;
  padding: 60px 24px 48px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.15);
}

.trust-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ─── Main Container ────────────────────────────────────────────────── */

.main-content {
  max-width: 800px;
  margin: -32px auto 0;
  padding: 0 16px 48px;
  position: relative;
  z-index: 1;
}

/* ─── Card ──────────────────────────────────────────────────────────── */

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  margin-bottom: 24px;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.card-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

/* ─── Form Elements ─────────────────────────────────────────────────── */

.form-group {
  margin-bottom: 20px;
}

.form-group label,
.form-group legend,
.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
  padding: 0;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

input[type="number"],
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(20, 40, 76, 0.1);
}

input::placeholder, textarea::placeholder {
  color: var(--color-text-muted);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%2364748b'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Radio Groups */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.radio-option {
  position: relative;
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-option label {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

.radio-option input[type="radio"]:checked + label {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.radio-option label:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.radio-option input[type="radio"]:checked + label:hover {
  color: #fff;
}

/* Checkbox */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  cursor: pointer;
  margin-bottom: 0;
  font-weight: 400;
}

.checkbox-group a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* ─── Buttons ───────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  width: 100%;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
  width: 100%;
}

.btn-accent:hover {
  background: var(--color-accent-hover);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--color-primary-light);
  color: var(--color-primary);
  width: 100%;
}

.btn-secondary:hover {
  background: #dce3ee;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-secondary);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-group {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn-group .btn {
  flex: 1;
}

/* ─── Results Section ───────────────────────────────────────────────── */

.results-section {
  display: none;
  animation: fadeIn 0.4s ease;
}

.results-section.visible {
  display: block;
}

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

/* Result Summary */
.result-summary {
  text-align: center;
  padding: 24px 0;
}

.result-summary h2 {
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-bottom: 24px;
}

/* Bar Chart */
.result-bars {
  max-width: 100%;
  margin: 0 auto 28px;
}

.result-bar-group {
  margin-bottom: 16px;
}

.result-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.result-bar-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.result-bar-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.result-bar-track {
  height: 28px;
  background: var(--color-primary-50);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.result-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s ease-out;
  width: 0;
}

.result-bar-fill.sollwert {
  background: linear-gradient(90deg, var(--color-primary) 0%, #2a4a7f 100%);
}

.result-bar-fill.istwert {
  background: linear-gradient(90deg, var(--color-success) 0%, #34d399 100%);
}

/* Gap Display */
.gap-display {
  text-align: center;
  padding: 24px;
  border-radius: var(--radius-lg);
  margin: 24px 0;
}

.gap-display.has-gap {
  background: var(--color-danger-light);
  border: 1.5px solid #fca5a5;
}

.gap-display.no-gap {
  background: var(--color-success-light);
  border: 1.5px solid #6ee7b7;
}

.gap-label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.gap-display.has-gap .gap-label { color: var(--color-danger); }
.gap-display.no-gap .gap-label { color: var(--color-success); }

.gap-amount {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
}

.gap-display.has-gap .gap-amount { color: var(--color-danger); }
.gap-display.no-gap .gap-amount { color: var(--color-success); }

.gap-suffix {
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 4px;
}

.gap-display.has-gap .gap-suffix { color: #991b1b; }
.gap-display.no-gap .gap-suffix { color: #065f46; }

/* Recommended */
.result-recommended {
  background: var(--color-warning-light);
  border: 1px solid #fbbf24;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 0.9rem;
  color: #92400e;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.result-recommended svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Details Accordion */
.details-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  background: none;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-family);
  margin-top: 16px;
}

.details-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.details-toggle svg {
  transition: transform var(--transition);
}

.details-toggle.open svg {
  transform: rotate(180deg);
}

.details-content {
  display: none;
  padding-top: 20px;
}

.details-content.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

.detail-section {
  margin-bottom: 24px;
}

.detail-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary-light);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  font-size: 0.9rem;
}

.detail-row:not(:last-child) {
  border-bottom: 1px solid var(--color-border-light);
}

.detail-row .detail-label {
  color: var(--color-text-secondary);
  padding-right: 12px;
}

.detail-row .detail-value {
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.detail-row.total {
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 0;
  margin-top: 4px;
  border-top: 2px solid var(--color-primary-light);
}

.detail-row.total .detail-label { color: var(--color-primary); }
.detail-row.total .detail-value { color: var(--color-primary); }

.detail-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 8px;
  font-style: italic;
  line-height: 1.4;
}

/* ─── Form Wizard ───────────────────────────────────────────────────── */

.wizard-section {
  display: none;
}

.wizard-section.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Progress Bar */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  padding: 0 16px;
}

.wizard-step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  border: 2px solid var(--color-border);
  color: var(--color-text-muted);
  background: var(--color-surface);
  transition: all var(--transition-slow);
  flex-shrink: 0;
}

.wizard-step-indicator.active {
  border-color: var(--color-primary);
  color: #fff;
  background: var(--color-primary);
}

.wizard-step-indicator.completed {
  border-color: var(--color-success);
  color: #fff;
  background: var(--color-success);
}

.wizard-step-line {
  flex: 1;
  height: 2px;
  background: var(--color-border);
  margin: 0 6px;
  max-width: 60px;
  transition: background var(--transition-slow);
}

.wizard-step-line.completed {
  background: var(--color-success);
}

/* Wizard Step Content */
.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.wizard-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
}

/* Wizard Confirmation */
.wizard-confirmation {
  text-align: center;
  padding: 32px 0;
}

.wizard-confirmation svg {
  width: 64px;
  height: 64px;
  color: var(--color-success);
  margin-bottom: 16px;
}

.wizard-confirmation h3 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.wizard-confirmation p {
  color: var(--color-text-secondary);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* Error message */
.form-error {
  color: var(--color-danger);
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

/* Error card (Formular-Übermittlung fehlgeschlagen) */
.error-card {
  border-left: 4px solid var(--color-danger);
}

.error-card p {
  color: var(--color-danger);
  font-weight: 600;
}

/* Honeypot: für Menschen unsichtbar (nicht display:none, damit Bots es ausfüllen) */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--color-danger);
}

.form-group.has-error .form-error {
  display: block;
}

/* ─── Info Section ──────────────────────────────────────────────────── */

.info-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

.info-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  margin-bottom: 24px;
}

.info-card h2 {
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.info-card p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.info-card p:last-child {
  margin-bottom: 0;
}

.info-card ul {
  color: var(--color-text-secondary);
  line-height: 1.7;
  padding-left: 20px;
  margin-bottom: 12px;
}

.info-card li {
  margin-bottom: 4px;
}

/* ─── FAQ Section ───────────────────────────────────────────────────── */

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 0;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-family);
  gap: 16px;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-question svg {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--color-text-muted);
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding-bottom: 18px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

.faq-item.open .faq-answer {
  display: block;
  animation: fadeIn 0.25s ease;
}

/* ─── Footer ────────────────────────────────────────────────────────── */

.site-footer {
  text-align: center;
  padding: 24px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--color-border);
  max-width: 800px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.footer-links .sep {
  color: var(--color-text-muted);
}

.footer-version {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ─── Utility ───────────────────────────────────────────────────────── */

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

.hidden { display: none !important; }

.text-center { text-align: center; }

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ─── Responsive ────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .hero {
    padding: 40px 16px 36px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .card {
    padding: 20px;
    border-radius: var(--radius-md);
  }

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

  .trust-badges {
    gap: 8px;
  }

  .trust-badge {
    font-size: 0.78rem;
    padding: 6px 12px;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    width: 100%;
  }

  .wizard-step-indicator {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }

  .wizard-step-line {
    max-width: 40px;
  }

  .header-cta {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .gap-amount {
    font-size: 2rem;
  }

  .info-card {
    padding: 20px;
  }
}

@media (max-width: 380px) {
  .trust-badge {
    font-size: 0.72rem;
    padding: 5px 10px;
  }

  .header-cta span {
    display: none;
  }
}


/* ── rombey.capital-Integration (via tools/import-apps.mjs angehängt) ──
   Mobile-Härtung: lange deutsche Komposita („Berufsunfähigkeitsversicherung")
   nie abschneiden – umbrechen bzw. mit Trennstrich trennen. */
h1, h2, h3, h4, p, li, a, button, summary, td, th, label, legend {
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
/* Breadcrumbs sind flex-nowrap – lange Seitennamen ("Anschlussfinanzierung")
   liefen bei 320px über den Viewport hinaus. Umbruch erlauben. */
.breadcrumb-list { flex-wrap: wrap; }
.breadcrumb-list li { min-width: 0; }
/* .hero-inner ist ein Grid mit implizitem auto-Track: der wächst an
   min-content langer Inhalte über den Container hinaus (320px-Overflow).
   min-width:0 auf den Items lässt den Track im Container bleiben. */
.hero-inner > * { min-width: 0; }
/* .calc-form-Tracks sind 1fr (auto-Minimum = min-content): lange
   <select>-Optionen trieben die form-group über Karte und Viewport
   hinaus. min-width:0 lässt den Track im Formular bleiben. */
.calc-form .form-group { min-width: 0; }
/* FAQ-Buttons (bu-App): lange deutsche Fragen drückten das Chevron-SVG
   aus dem Viewport (Flex-min-content; hyphens senken den nicht).
   anywhere lässt den Fragetext im Flex-Item schrumpfen und umbrechen. */
.faq-question { overflow-wrap: anywhere; }
.faq-question svg { flex-shrink: 0; }
@media (max-width: 599px) {
  /* Der Gold-Unterstrich-Span ist nowrap – zweiwortige Überschriften
     ("mortgage financing") liefen bei 320px aus dem Hero. */
  .hero--split h1 .gold-underline { white-space: normal; }
  /* .usp-item reiht Icon/H3/P per Flex nebeneinander – bei 320px
     überlappte der Text den Viewport. Mobil stapeln. */
  .usp-item { display: block; }
  .usp-item .usp-icon { margin-bottom: 8px; }
}
