/* ============================================================
   rechner.css – Styles für Homepage + Rechner-Seiten
   Setzt app.css (CSS Custom Properties) voraus
   ============================================================ */

/* ---- Hero ---- */
.fordify-hero {
  padding: 5rem 0 3.5rem;
  background: linear-gradient(135deg, #0f1d5c 0%, #1e3a8a 60%, #1c439a 100%);
  color: #fff;
  text-align: center;
}
.fordify-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.04em;
}
.fordify-hero .lead {
  font-size: 1.05rem;
  opacity: 0.75;
  max-width: 600px;
  line-height: 1.65;
  margin-left: auto;
  margin-right: auto;
}

/* Hero – Text links, Mockup rechts */
.hero-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3.5rem;
}
@media (max-width: 767px) {
  .hero-inner { flex-direction: column; gap: 2rem; }
}
.hero-text { flex: 1; text-align: left; }
.hero-text .lead { margin-left: 0; margin-right: 0; }
.hero-text .btn { align-self: flex-start; }
.hero-visual {
  flex: 0 0 300px;
  display: flex;
  justify-content: center;
}
@media (max-width: 767px) {
  .hero-visual { display: none; }
}

/* Trust-Items im Hero (über der Headline) */
.hero-trust {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}
.hero-trust__item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.hero-trust__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
  flex-shrink: 0;
}

/* Gradient-Text in Hero-Headline */
.hero-gradient-text {
  background: linear-gradient(90deg, #60a5fa 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Mockup Card */
.hero-mockup__card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  min-width: 300px;
  max-width: 340px;
  backdrop-filter: blur(8px);
}
.hero-mockup__titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.875rem;
}
.hero-mockup__header {
  font-weight: 700;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero-mockup__export-pill {
  font-size: 0.6rem;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  padding: 0.2rem 0.55rem;
  border-radius: 0.375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.hero-mockup__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.775rem;
  color: rgba(255,255,255,0.82);
  gap: 1rem;
}
.hero-mockup__row:last-of-type {
  border-bottom: none;
}
.hero-mockup__auto-badge {
  font-size: 0.55rem;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.65);
  padding: 0.1rem 0.3rem;
  border-radius: 999px;
  margin-left: 0.25rem;
  vertical-align: middle;
  white-space: nowrap;
}
.hero-mockup__row--payment {
  color: rgba(253, 186, 116, 0.9);
}
.hero-mockup__verrechnung {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.38);
  padding: 0.1rem 0 0.3rem 0.25rem;
}
.hero-mockup__divider {
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 0.3rem 0;
}
.hero-mockup__row--total {
  font-weight: 700;
  font-size: 0.8125rem;
  color: #fff;
  border-bottom: none;
  padding-top: 0.5rem;
}
.hero-mockup__row--rest {
  font-weight: 700;
  font-size: 0.8125rem;
  color: #fff;
  border-bottom: none;
  padding-top: 0.35rem;
}
.hero-mockup__footer {
  margin-top: 0.875rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero-mockup__pdf-btn {
  font-size: 0.65rem;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  padding: 0.3rem 0.65rem;
  border-radius: 0.375rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.hero-mockup__badge {
  font-size: 0.6rem;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ---- Trust-Bar ---- */
.trust-bar {
  background: #0f1d5c;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0.5rem 0;
}
.trust-bar__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  letter-spacing: 0.03em;
}
.trust-bar__icon {
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
  color: #34d399;
}
.trust-bar__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
  flex-shrink: 0;
}

/* ---- Tool-Grid (Spotlight-Layout) ---- */
.tool-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2.5rem 0;
}
/* Primary spotlight card */
.tool-card.tool-card--primary {
  background: linear-gradient(135deg, #0f1d5c 0%, #1e3a8a 100%);
  border-radius: 14px;
  padding: 2rem;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.tool-card--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(15,29,92,0.3);
  color: #fff;
}
.tool-card--primary .tool-card__body { flex: 1; }
.tool-card--primary .tool-card__tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}
.tool-card--primary .tool-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.tool-card--primary .tool-card__desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 0;
}
.tool-card--primary .tool-card__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
  background: #fff;
  color: #0f1d5c;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.tool-card--primary .tool-card__cta-btn:hover { opacity: 0.9; color: #0f1d5c; }
.tool-card--primary .tool-card__mockup {
  flex: 0 0 140px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}
.tool-card--primary .tool-card__mockup-line {
  height: 7px;
  border-radius: 3px;
  background: rgba(255,255,255,0.18);
  margin-bottom: 0.5rem;
}
.tool-card--primary .tool-card__mockup-line--short { width: 60%; }
.tool-card--primary .tool-card__mockup-line--medium { width: 80%; }
.tool-card--primary .tool-card__mockup-val {
  text-align: right;
  font-size: 0.72rem;
  font-weight: 900;
  color: #34d399;
  font-family: var(--font-mono);
  margin-top: 0.75rem;
}
@media (max-width: 575px) { .tool-card--primary .tool-card__mockup { display: none; } }

/* Secondary cards row */
.tool-grid-secondary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 575px) { .tool-grid-secondary { grid-template-columns: 1fr; } }
@media (min-width: 576px) and (max-width: 991px) { .tool-grid-secondary { grid-template-columns: repeat(2, 1fr); } }

.tool-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
}
.tool-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(30,58,138,.1);
  transform: translateY(-2px);
  color: inherit;
}
.tool-card__icon {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ede9fe;
  border-radius: 7px;
  flex-shrink: 0;
  margin-bottom: 0.75rem;
}
.tool-card__icon svg {
  width: 1rem;
  height: 1rem;
  fill: #6d28d9;
}
.tool-card__title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: #0f172a;
}
.tool-card__desc {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  flex-grow: 1;
  margin-bottom: 0.85rem;
  line-height: 1.55;
}
.tool-card__cta {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6d28d9;
  display: inline-block;
  transition: transform 0.15s ease;
}
.tool-card:hover .tool-card__cta {
  transform: translateX(3px);
}
.tool-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ---- Vorteile (Dark numbered) ---- */
.vorteil-section {
  background: #0f172a;
  margin: 0;
  padding: 3.5rem 0;
}
.section-overline {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #34d399;
}
.vorteil-section .section-overline { color: #34d399; }
.vorteil-section-title {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.04em;
  margin-bottom: 0;
}
.vorteil-section-title span { color: #60a5fa; }
.vorteil-feats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 2.5rem;
}
@media (max-width: 767px) { .vorteil-feats { grid-template-columns: 1fr; } }
.vorteil-item {
  background: rgba(15,23,42,0.95);
  padding: 2rem 1.75rem;
  text-align: left;
}
.vorteil-item__num {
  font-size: 2.5rem;
  font-weight: 900;
  color: #1e3a8a;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0.6;
}
.vorteil-item__icon { display: none; }
.vorteil-item__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}
.vorteil-item p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  margin: 0;
}

/* ---- SEO-Textblock (Two-column) ---- */
.seo-text-block {
  background: #fff;
  padding: 3rem 0;
}
.seo-text-block .seo-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 820px;
  margin: 0 auto;
}
@media (max-width: 767px) { .seo-text-block .seo-cols { grid-template-columns: 1fr; } }
.seo-text-block h2 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.4rem;
  margin-top: 1.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #e0e7ff;
  letter-spacing: -0.01em;
}
.seo-text-block h2:first-child { margin-top: 0; }
.seo-text-block p { color: #64748b; font-size: 0.78rem; line-height: 1.8; margin-top: 0.5rem; margin-bottom: 0; }

/* ---- Breadcrumb ---- */
.fordify-breadcrumb {
  padding-bottom: 0.875rem;
  font-size: 0.72rem;
  margin-bottom: 1.375rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.fordify-breadcrumb .breadcrumb { margin-bottom: 0; background: none; padding: 0; }
.fordify-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.3);
}
.fordify-breadcrumb .breadcrumb-item a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s;
}
.fordify-breadcrumb .breadcrumb-item a:hover { color: rgba(255,255,255,0.9); text-decoration: none; }
.fordify-breadcrumb .breadcrumb-item.active { color: rgba(255,255,255,0.35); }

/* ---- Rechner-Hero-Band (Gradient + Stats) ---- */
.rechner-hero-band {
  background: linear-gradient(135deg, #0f1d5c 0%, #1e3a8a 60%, #1c439a 100%);
  padding: 1.75rem 0 2rem;
  margin-bottom: 2.5rem;
  color: #fff;
}
.rechner-hero-band .rechner-header {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.rechner-hero-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}
@media (max-width: 767px) { .rechner-hero-inner { flex-direction: column; } }
.rechner-hero-left { flex: 1; min-width: 0; }
.rechner-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.65rem;
}
.rechner-hero-tag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
}
.rechner-hero-band h1 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.rechner-hero-band .intro {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 0;
}
.rechner-hero-stats {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-end;
  padding-top: 0.25rem;
}
@media (max-width: 767px) { .rechner-hero-stats { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 1rem; } }
.rechner-hero-stat__val {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  text-align: right;
  line-height: 1.1;
}
.rechner-hero-stat__label {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.38);
  text-align: right;
  margin-top: 0.05rem;
}
@media (max-width: 767px) {
  .rechner-hero-stat__val, .rechner-hero-stat__label { text-align: left; }
}

/* Gradient-Button im Form-Card (laut Spec #1e3a8a → #2563eb) */
.rechner-form-card .btn-primary {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  border-color: transparent;
}
.rechner-form-card .btn-primary:hover,
.rechner-form-card .btn-primary:focus {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
  border-color: transparent;
}

/* Ergebnis-Card: Tabellen-Styling */
.rechner-result__body .table thead th {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
}
.rechner-result__body .table td {
  font-size: 0.8rem;
  vertical-align: middle;
  color: #0f172a;
}
.rechner-result__subtotal-row td {
  font-size: 0.75rem;
  color: #64748b;
  background: #f8fafc !important;
}

/* ---- Fact-Chips ---- */
.rechner-fact-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.rechner-fact-chip {
  font-size: var(--text-xs);
  font-weight: 600;
  background: var(--color-primary-light);
  color: var(--color-primary);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  white-space: nowrap;
}

/* ---- Rechner-Seiten ---- */
.rechner-header {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2.5rem;
}
.rechner-header h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.875rem;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
  hyphens: auto;
}
/* H1 direkt in rechner-hero-band (kein .rechner-header Wrapper) */
.rechner-hero-left h1 {
  overflow-wrap: break-word;
  hyphens: auto;
}
.rechner-header .intro {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 900px;
}
.rechner-form-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem;
}
.rechner-form-card .form-control:focus,
.rechner-form-card .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}
/* Result card with navy header */
.rechner-result {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
}
.rechner-result__header {
  background: #0f1d5c;
  padding: 0.875rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rechner-result__header-title {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}
.rechner-result__total-badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
  padding: 0.2rem 0.7rem;
  border-radius: 6px;
  font-family: var(--font-mono);
}
.rechner-result__body {
  padding: 1.25rem;
}
.rechner-result__footer {
  border-top: 2px solid #e2e8f0;
  margin: 0 1.25rem;
  padding: 0.75rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rechner-result__footer-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
}
.rechner-result__footer-val {
  font-size: 1.05rem;
  font-weight: 900;
  color: #1e3a8a;
  font-family: var(--font-mono);
}
.rechner-cta-box {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.rechner-cta-box__title {
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
}
.rechner-cta-box__sub {
  font-size: 0.72rem;
  color: #3b82f6;
  line-height: 1.5;
  margin-bottom: 0;
}
.rechner-cta-box .btn { flex-shrink: 0; }
.rechner-cta-box { transition: box-shadow 0.2s ease, transform 0.15s ease; }
.rechner-cta-box:hover { box-shadow: 0 6px 24px rgba(30,58,138,0.15); transform: translateY(-1px); }

/* CTA-Box als Link (vollständig anklickbar) */
a.rechner-cta-box {
  display: flex;
  text-decoration: none;
  color: inherit;
}
a.rechner-cta-box:hover { text-decoration: none; color: inherit; }
a.rechner-cta-box .rechner-cta-box__title { color: #1e3a8a; }

/* ---- FAQ ---- */
.faq-section { margin-top: 3rem; margin-bottom: 3rem; }
.faq-section h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.faq-section details {
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.75rem 1rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.faq-section details[open] {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}
.faq-section summary {
  font-weight: 600;
  cursor: pointer;
  font-size: var(--text-sm);
  list-style: none;
}
.faq-section summary::before { content: '+ '; color: var(--color-primary); }
.faq-section details[open] summary::before { content: '− '; }
.faq-section details p {
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.7;
}

/* ---- Nav-Links (Farben für SEO-Seiten ohne inline-style) ---- */
.navbar-fa .nav-link { color: var(--color-nav-text-muted); }
.navbar-fa .nav-link:hover,
.navbar-fa .nav-link.fw-semibold { color: var(--color-nav-text); }

/* ---- Focus-visible ---- */
.tool-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.faq-section summary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 2px;
}
.rechner-cta-box .btn:focus-visible,
.fordify-footer a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---- Utility ---- */
.font-mono { font-family: var(--font-mono); }

/* ---- Pill Badge (NEU) ---- */
.pill-badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  letter-spacing: .04em;
  vertical-align: middle;
  line-height: 1.4;
}

/* ---- Tilgungsrechner: Modus-Tabs ---- */
.tilgung-tabs {
  display: flex;
  gap: 0.35rem;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 0.3rem;
}
.tilgung-tab {
  flex: 1;
  border: none;
  background: transparent;
  border-radius: 7px;
  padding: 0.45rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.tilgung-tab:hover { background: #e2e8f0; color: #0f172a; }
.tilgung-tab.active { background: #fff; color: #1e3a8a; box-shadow: 0 1px 4px rgba(0,0,0,0.1); }

/* ---- Mobile Responsivität (< 576px) ---- */
@media (max-width: 575px) {
  /* Hero: mehr Atemraum vom Bildschirmrand */
  .fordify-hero .container,
  .rechner-hero-band .container {
    --bs-gutter-x: 2.5rem;
  }
  /* Hero: Padding auf Mobile kompakter */
  .fordify-hero { padding: 2.5rem 0 2rem; }
  .fordify-hero h1 { overflow-wrap: break-word; hyphens: auto; }
  /* Rechner Hero Band: kompakteres Padding auf Mobile */
  .rechner-hero-band { padding: 1.25rem 0 1.5rem; }
  /* Rechner-Hero-Left: Breite auf Container beschränken (align-items:flex-start verhindert sonst stretch) */
  .rechner-hero-left {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .rechner-hero-left h1 {
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }
  /* Trust-Badges: engerer Gap auf kleinen Screens */
  .hero-trust { gap: 0.5rem; }
  /* Rechner-Hero: Statistiken etwas kleiner */
  .rechner-hero-stat__val { font-size: 1rem; }
  /* Fact-Chips: Umbruch erlauben */
  .rechner-fact-chip { white-space: normal; }
  /* Tilgung-Tabs: Wrap auf kleinen Screens (3 Buttons sonst Overflow) */
  .tilgung-tabs {
    flex-wrap: wrap;
  }
  .tilgung-tab {
    white-space: normal;
    flex: 1 0 auto;
  }
}
