/* ── HAUSPVRECHNER — CODEX DESIGN SYSTEM ───────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  --font: 'Inter', system-ui, -apple-system, sans-serif;

  /* Codex color tokens */
  --c-navy:         #0e2a47;
  --c-navy-soft:    #173d63;
  --c-gold:         #c99a2e;
  --c-gold-soft:    #f2dfab;
  --c-cloud:        #f6f8fb;
  --c-line:         #d9e1ea;
  --c-ink:          #20242a;

  /* Semantic tokens */
  --c-accent:       var(--c-navy);
  --c-accent-dark:  var(--c-navy-soft);
  --c-accent-light: #e8f0f9;
  --c-accent-ring:  rgba(14,42,71,.14);

  --c-bg:           #ffffff;
  --c-surface:      var(--c-cloud);
  --c-surface-alt:  #eef1f5;
  --c-border:       var(--c-line);
  --c-text:         var(--c-ink);
  --c-text-2:       #4b5563;
  --c-muted:        #6a7380;

  --c-error:        #dc2626;
  --c-error-bg:     #fef2f2;
  --c-success-txt:  #166534;
  --c-success-bg:   #dcfce7;
  --c-success-bdr:  #86efac;

  --c-star:         var(--c-gold);

  /* Shadows */
  --shadow-sm:      0 1px 3px rgba(14,42,71,.08);
  --shadow-md:      0 4px 16px rgba(14,42,71,.10);
  --shadow-calm:    0 18px 50px rgba(14,42,71,.10);
  --shadow-modal:   0 24px 60px rgba(14,42,71,.22);

  /* Radii */
  --radius:         8px;
  --radius-lg:      12px;
}

/* ── TYPOGRAPHY ─────────────────────────────────────── */
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1 { font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.18; letter-spacing: -.025em; }
h2 { font-size: clamp(1.25rem, 3vw, 1.875rem); font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.35; }
p  { line-height: 1.65; }
a  { color: var(--c-navy); text-decoration: none; }
a:hover { text-decoration: underline; }
.link { color: var(--c-navy); text-decoration: underline; }
strong { font-weight: 700; }

/* ── LAYOUT ─────────────────────────────────────────── */
.container { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.section-lead { color: var(--c-text-2); margin-top: .5rem; font-size: 1.0625rem; line-height: 1.65; }
.eyebrow {
  display: block;
  color: var(--c-muted);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.eyebrow--gold { color: var(--c-gold); }

/* ── BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  border: none; border-radius: var(--radius);
  font-family: var(--font); font-size: .925rem; font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s, opacity .15s;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--c-navy);
  color: #fff;
  padding: .7rem 1.5rem;
}
.btn-primary:hover  { background: var(--c-navy-soft); text-decoration: none; color: #fff; }
.btn-primary:active { opacity: .88; }

.btn-gold {
  background: var(--c-gold);
  color: #fff;
  padding: .7rem 1.5rem;
}
.btn-gold:hover { background: #b5891e; text-decoration: none; color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--c-navy);
  padding: .625rem 1.25rem;
  border: 1.5px solid var(--c-line);
}
.btn-outline:hover { border-color: var(--c-navy); text-decoration: none; }

.btn-sm { font-size: .85rem; padding: .5rem 1rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── HEADER ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--c-line);
  /* needed for absolute-positioned mobile nav dropdown */
  isolation: isolate;
}
.header-inner {
  display: flex; align-items: center;
  height: 64px; gap: 1.25rem;
}
.logo {
  display: flex; align-items: center; gap: .625rem;
  font-size: 1.0625rem; font-weight: 700;
  color: var(--c-ink); text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; color: var(--c-ink); }
.logo-img { height: 34px; width: auto; display: block; border-radius: 6px; flex-shrink: 0; }
.logo-badge {
  width: 36px; height: 36px;
  background: var(--c-navy);
  color: #fff;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem; font-weight: 800;
  flex-shrink: 0;
}
.logo-text { color: var(--c-ink); }
.logo-text strong { color: var(--c-navy); }

.header-nav {
  display: flex; align-items: center; gap: .125rem;
  margin-left: .75rem; flex: 1;
}
.nav-link {
  padding: .4rem .75rem;
  font-size: .9rem; font-weight: 500;
  color: #374151;
  border-radius: 6px;
  transition: background .12s, color .12s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover { background: var(--c-cloud); color: var(--c-navy); text-decoration: none; }
.nav-link.active { color: var(--c-navy); font-weight: 600; }

.header-cta { margin-left: auto; flex-shrink: 0; }
.header-tagline {
  font-size: .8rem; font-weight: 600; color: var(--c-muted);
  letter-spacing: .02em; flex: 1; padding-left: .5rem;
}

/* ── TRUST BAR ───────────────────────────────────────── */
.trust-bar {
  background: var(--c-navy);
  padding: .625rem 0;
}
.trust-inner {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .25rem 2rem;
}
.trust-item {
  font-size: .8rem; font-weight: 500;
  color: rgba(255,255,255,.82);
  display: flex; align-items: center; gap: .35rem;
}
.trust-check { color: var(--c-gold); font-weight: 700; font-size: .875rem; }

/* ── HERO / SEARCH SECTION ───────────────────────────── */
.search-section {
  background: linear-gradient(135deg, #071a2c 0%, #0e2a47 40%, #0d3060 70%, #071a2c 100%);
  padding: clamp(52px, 9vw, 96px) 0 clamp(44px, 7vw, 80px);
  position: relative;
  overflow: hidden;
}
.search-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 72% 40%, rgba(201,154,46,.09) 0%, transparent 58%);
  pointer-events: none;
}

.search-title {
  color: #fff;
  text-align: center;
  margin-bottom: .625rem;
  position: relative;
}
.search-subtitle {
  text-align: center;
  color: rgba(255,255,255,.62);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
  position: relative;
}
.search-hint {
  font-size: .825rem; color: rgba(255,255,255,.45);
  margin-top: .75rem; text-align: center;
  position: relative;
}
.search-error {
  font-size: .85rem; color: #fca5a5;
  margin-top: .5rem; text-align: center;
  font-weight: 500;
  position: relative;
}

/* ── SEARCH BAR ─────────────────────────────────────── */
.search-bar {
  display: flex; align-items: stretch;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-lg);
  padding: .5rem;
  gap: 0;
  margin: 0 auto;
  max-width: 820px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
}
.search-field {
  display: flex; flex-direction: column;
  padding: .5rem .875rem;
  cursor: text; border-radius: 8px;
  transition: background .12s;
  flex: 1;
  min-width: 0;
}
.search-field:hover { background: rgba(255,255,255,.07); }
.search-field--dach { flex: 0 0 130px; }
.search-field--plz  { flex: 0 0 100px; }
.search-field--wide { flex: 1; }
.search-field--toggle {
  cursor: pointer; background: none; border: none;
  font-family: var(--font); text-align: left;
  flex: 0 0 110px;
}
.search-field--toggle:hover { background: rgba(255,255,255,.08); }

.search-field-label {
  font-size: .7rem; font-weight: 600;
  color: rgba(255,255,255,.55);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: .25rem;
}
.search-field-row { display: flex; align-items: center; gap: .25rem; }
.search-input {
  background: none; border: none; outline: none;
  font-family: var(--font); font-size: .975rem; font-weight: 600;
  color: #fff;
  width: 100%; min-width: 0;
}
.search-input::placeholder { color: rgba(255,255,255,.32); font-weight: 400; }
.search-input::-webkit-outer-spin-button,
.search-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.search-input[type=number] { -moz-appearance: textfield; }
.search-field-unit { font-size: .8rem; color: rgba(255,255,255,.42); font-weight: 500; flex-shrink: 0; }
.search-toggle-val { font-size: .975rem; font-weight: 600; color: #fff; }

.search-div {
  width: 1px; background: rgba(255,255,255,.15);
  align-self: stretch; margin: .25rem 0; flex-shrink: 0;
}
.search-btn {
  display: flex; align-items: center; justify-content: center;
  gap: .5rem;
  background: var(--c-gold);
  color: #fff;
  border: none; border-radius: 8px;
  font-family: var(--font); font-size: .925rem; font-weight: 700;
  padding: 0 1.5rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, opacity .15s;
  min-height: 44px;
}
.search-btn:hover { background: #b5891e; }
.search-btn:active { opacity: .88; }

/* ── RESULT CARD ─────────────────────────────────────── */
.result-card {
  display: flex; align-items: center; gap: 1.75rem;
  max-width: 820px; margin: 1.5rem auto 0;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-calm);
  position: relative;
}
.result-info { flex: 1; min-width: 0; }
.result-row-1 {
  font-size: .875rem; color: var(--c-text-2);
  margin-bottom: .875rem; line-height: 1.6;
}
.result-row-1 strong { color: var(--c-ink); font-weight: 700; }
.sum-label { font-weight: 600; color: var(--c-navy); margin-right: .25rem; }
.sum-sep { margin: 0 .25rem; opacity: .4; }

.result-metrics {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 0;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.result-metric {
  display: flex; flex-direction: column; align-items: center;
  padding: .625rem .75rem;
  text-align: center;
  border-right: 1px solid var(--c-line);
}
.result-metric:last-child { border-right: none; }
.metric-value { font-size: 1.0625rem; font-weight: 800; color: var(--c-navy); }
.metric-label { font-size: .7rem; color: var(--c-muted); margin-top: .125rem; text-transform: uppercase; letter-spacing: .04em; }

/* ── PV SCORE ───────────────────────────────────────── */
.result-score {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  flex-shrink: 0;
}
.score-ring-wrap {
  position: relative;
  width: 88px; height: 88px;
}
.score-ring { width: 88px; height: 88px; }
.score-ring-bg   { stroke: var(--c-line); }
.score-ring-fill { stroke: var(--c-gold); transition: stroke-dasharray .6s ease; }
.score-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.score-number  { font-size: 1.375rem; font-weight: 800; line-height: 1; color: var(--c-navy); }
.score-sublabel { font-size: .55rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--c-muted); }
.score-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); }

/* Score variants */
.score--excellent .score-ring-fill { stroke: #16a34a; }
.score--excellent .score-number     { color: #15803d; }
.score--good      .score-ring-fill { stroke: var(--c-gold); }
.score--good      .score-number     { color: var(--c-gold); }
.score--check     .score-ring-fill { stroke: #d97706; }
.score--check     .score-number     { color: #d97706; }
.score--low       .score-ring-fill { stroke: #9ca3af; }
.score--low       .score-number     { color: #6b7280; }

/* ── LOADER ─────────────────────────────────────────── */
.loader-section { background: var(--c-cloud); padding: 2rem 0; border-bottom: 1px solid var(--c-line); }
.loader-wrap { max-width: 480px; margin: 0 auto; text-align: center; }
.loader-text { font-size: .9rem; color: var(--c-navy); font-weight: 600; margin-bottom: .875rem; }
.loader-bar-track {
  height: 5px; background: var(--c-line);
  border-radius: 99px; overflow: hidden;
}
.loader-bar {
  height: 100%; width: 0%; border-radius: 99px;
  background: linear-gradient(90deg, var(--c-navy), var(--c-gold));
  transition: width .3s ease;
}
.loader-done { margin-top: .875rem; font-size: .9rem; font-weight: 600; color: #166534; }
.loader-check { margin-right: .35rem; }

/* ── PROVIDERS SECTION ───────────────────────────────── */
.providers-section { background: var(--c-bg); padding: clamp(48px, 7vw, 88px) 0; }
.providers-hdr { margin-bottom: 1.5rem; }
.providers-hdr h2 { font-size: 1.5rem; }
.providers-hdr .section-lead { margin-top: .375rem; }

/* Sort chips */
.providers-sort { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.sort-label { font-size: .8rem; font-weight: 600; color: var(--c-muted); white-space: nowrap; }
.sort-chips { display: flex; flex-wrap: wrap; gap: .375rem; }
.sort-chip {
  padding: .375rem .875rem;
  border: 1px solid var(--c-line);
  border-radius: 20px;
  background: var(--c-bg);
  font-family: var(--font); font-size: .8rem; font-weight: 500;
  color: var(--c-text-2);
  cursor: pointer;
  transition: border-color .12s, background .12s, color .12s;
}
.sort-chip:hover { border-color: var(--c-navy); color: var(--c-navy); }
.sort-chip--active { background: var(--c-navy); color: #fff; border-color: var(--c-navy); font-weight: 600; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--radius-lg); }
.provider-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.provider-table thead { background: var(--c-cloud); }
.provider-table th {
  padding: .75rem 1rem; text-align: left;
  font-size: .775rem; font-weight: 700; color: var(--c-muted);
  text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 1px solid var(--c-line);
}
.provider-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-text-2);
  vertical-align: middle;
}
.provider-table tr:last-child td { border-bottom: none; }
.provider-table tr:hover td { background: var(--c-cloud); }

.provider-name  { font-weight: 700; color: var(--c-ink); font-size: .95rem; }
.provider-loc   { font-size: .775rem; color: var(--c-muted); margin-top: .1rem; }
.provider-stars { color: var(--c-gold); font-size: .85rem; letter-spacing: .05em; }
.provider-rating-count { font-size: .75rem; color: var(--c-muted); }
.quality-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .75rem; font-weight: 600; padding: .25rem .625rem;
  border-radius: 20px;
}
.quality-premium  { background: var(--c-gold-soft); color: #7a5b0a; border: 1px solid rgba(201,154,46,.3); }
.quality-standard { background: var(--c-cloud); color: var(--c-text-2); border: 1px solid var(--c-line); }
.price-kwp   { font-weight: 700; color: var(--c-ink); }
.price-total { font-weight: 800; color: var(--c-navy); font-size: 1rem; }
.amort-val   { font-weight: 700; color: var(--c-ink); }
.amort-best  { color: #166634; }

.action-btns { display: flex; flex-direction: column; gap: .5rem; }
.btn-get-offer {
  padding: .45rem .875rem; font-size: .8rem; font-weight: 700;
  background: var(--c-navy); color: #fff;
  border: none; border-radius: 6px; cursor: pointer;
  font-family: var(--font); transition: background .12s;
}
.btn-get-offer:hover { background: var(--c-navy-soft); }
.btn-more-info {
  padding: .45rem .875rem; font-size: .8rem; font-weight: 600;
  background: none; color: var(--c-navy);
  border: 1.5px solid var(--c-line); border-radius: 6px;
  cursor: pointer; font-family: var(--font); transition: border-color .12s;
}
.btn-more-info:hover { border-color: var(--c-navy); }

.rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  font-size: .6875rem; font-weight: 700;
}
.rank-1 { background: var(--c-gold-soft); color: #7a5b0a; }
.rank-2 { background: #e5e7eb; color: #374151; }
.rank-3 { background: #fde8cc; color: #7c3d0f; }

.table-footnote { font-size: .775rem; color: var(--c-muted); margin-top: .75rem; line-height: 1.5; }

/* ── ADVISOR BADGE ───────────────────────────────────── */
.advisor-badge {
  display: flex; align-items: center; gap: 1rem;
  background: var(--c-accent-light);
  border: 1px solid rgba(14,42,71,.15);
  border-radius: var(--radius-lg);
  padding: .875rem 1.125rem;
  margin-bottom: 1.5rem;
}
.advisor-photo {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover; object-position: center top;
  border: 2px solid rgba(14,42,71,.2);
  flex-shrink: 0;
}
.advisor-info { display: flex; flex-direction: column; gap: .1rem; }
.advisor-name  { font-weight: 700; font-size: 1rem; color: var(--c-text); }
.advisor-title { font-size: .8rem; color: var(--c-muted); }
.advisor-available {
  display: flex; align-items: center; gap: .35rem;
  font-size: .775rem; font-weight: 600; color: #16a34a; margin-top: .25rem;
}
.advisor-dot {
  display: inline-block; width: 7px; height: 7px;
  background: #16a34a; border-radius: 50%;
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.75); }
}

/* ── CONTACT ─────────────────────────────────────────── */
.contact-section { padding: clamp(64px, 9vw, 104px) 0; background: var(--c-cloud); }
.contact-card {
  max-width: 680px; margin: 0 auto;
  background: var(--c-bg); border: 1px solid var(--c-line);
  border-radius: var(--radius-lg); padding: 1.75rem 2rem;
  box-shadow: var(--shadow-calm);
}
.contact-card h2 { margin-bottom: .25rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .875rem; margin: 1.25rem 0 1rem; }

/* ── FIELDS ─────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: .275rem; margin-bottom: .875rem; }
.field:last-of-type { margin-bottom: 0; }
.form-row-3 .field { margin-bottom: 0; }
.field-label { font-size: .8rem; font-weight: 600; color: var(--c-text); display: flex; align-items: center; gap: .35rem; }
.optional { font-size: .7rem; font-weight: 400; color: var(--c-muted); background: var(--c-surface-alt); padding: .08rem .35rem; border-radius: 3px; }
.req { color: var(--c-error); font-weight: 600; }
.field-input {
  border: 1px solid var(--c-border); border-radius: var(--radius);
  font-family: var(--font); font-size: .9rem; color: var(--c-text);
  background: var(--c-bg); padding: .5rem .75rem; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field-input:focus { border-color: var(--c-navy); box-shadow: 0 0 0 3px var(--c-accent-ring); }
.field-input.has-error { border-color: var(--c-error); box-shadow: 0 0 0 3px rgba(220,38,38,.1); }
.field-error { font-size: .775rem; color: var(--c-error); font-weight: 500; }
.field-checkbox { margin-top: .25rem; }
.checkbox-label { display: flex; align-items: flex-start; gap: .55rem; cursor: pointer; font-size: .85rem; line-height: 1.5; color: var(--c-text-2); }
.checkbox-label input[type="checkbox"] { flex-shrink: 0; width: 15px; height: 15px; margin-top: .18rem; accent-color: var(--c-navy); cursor: pointer; }

.form-success { text-align: center; padding: 2.25rem 1rem; }
.success-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--c-success-bg); border: 2px solid var(--c-success-bdr);
  color: var(--c-success-txt); font-size: 1.375rem; font-weight: 700; margin-bottom: .875rem;
}
.form-success h3 { margin-bottom: .4rem; }
.form-success p  { color: var(--c-muted); font-size: .9rem; }
.form-error-msg { margin-top: .875rem; padding: .75rem 1rem; background: var(--c-error-bg); border: 1px solid #fecaca; border-radius: var(--radius); color: var(--c-error); font-size: .85rem; }

/* ── MODAL ───────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  animation: fadeIn .15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  background: var(--c-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  padding: 2rem;
  max-width: 420px; width: 100%;
  position: relative;
  max-height: 90vh; overflow-y: auto;
  animation: slideUp .18s ease;
}
@keyframes slideUp { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none;
  font-size: 1.375rem; line-height: 1;
  color: var(--c-muted); cursor: pointer;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background .15s, color .15s;
}
.modal-close:hover { background: var(--c-surface); color: var(--c-text); }
.modal-close:focus-visible { outline: 2px solid var(--c-navy); outline-offset: 2px; }

.modal-eyebrow {
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--c-gold); margin-bottom: .25rem;
}
.modal-title { margin-bottom: .75rem; }

.modal-provider-badge {
  display: inline-flex; align-items: center;
  background: var(--c-accent-light); color: var(--c-navy);
  font-weight: 700; font-size: .875rem;
  padding: .35rem .875rem; border-radius: 20px;
  margin-bottom: .75rem;
  border: 1px solid rgba(14,42,71,.2);
}

.modal-sub { font-size: .875rem; color: var(--c-muted); margin-bottom: 1.5rem; line-height: 1.5; }

.modal-success { text-align: center; padding: 1.5rem 0 .5rem; }
.modal-success .success-icon { margin-bottom: .75rem; }
.modal-success h3 { margin-bottom: .375rem; }
.modal-success p  { color: var(--c-muted); font-size: .9rem; }

/* ── HOW IT WORKS ───────────────────────────────────── */
.howto-section {
  padding: clamp(48px, 7vw, 88px) 0;
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
}
.howto-hdr { text-align: center; margin-bottom: 2.5rem; }
.howto-title { text-align: center; margin-bottom: 2rem; }
.howto-steps {
  display: flex; align-items: flex-start; gap: 0;
  max-width: 820px; margin: 0 auto;
}
.howto-step { flex: 1; text-align: center; padding: 0 1.25rem; }
.howto-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-gold-soft);
  color: var(--c-navy);
  font-size: 1.125rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .875rem;
}
.howto-step-title { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; color: var(--c-ink); }
.howto-step-text  { font-size: .875rem; color: var(--c-muted); line-height: 1.55; }
.howto-connector {
  flex: 0 0 40px; height: 2px; background: var(--c-line);
  margin-top: 22px; flex-shrink: 0;
}

/* ── FAQ ────────────────────────────────────────────── */
.faq-section {
  padding: clamp(48px, 7vw, 88px) 0;
  background: var(--c-cloud);
}
.faq-hdr { text-align: center; margin-bottom: 2rem; }
.faq-title { text-align: center; margin-bottom: 1.5rem; }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: .5rem; }

.faq-item {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .15s;
}
.faq-item[open] { border-color: var(--c-navy); }

.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem;
  padding: .875rem 1.125rem;
  font-size: .9375rem; font-weight: 600; color: var(--c-text);
  cursor: pointer; list-style: none; user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  font-size: 1.25rem; font-weight: 400; color: var(--c-navy);
  flex-shrink: 0; line-height: 1;
  transition: transform .2s;
}
.faq-item[open] .faq-question::after { transform: rotate(45deg); }
.faq-question:hover { color: var(--c-navy); }

.faq-answer {
  padding: 0 1.125rem .875rem;
  font-size: .9rem; color: var(--c-text-2); line-height: 1.65;
  border-top: 1px solid var(--c-border);
}
.faq-answer p { margin: .75rem 0 0; }
.faq-answer p:first-child { margin-top: .5rem; }

/* ── HAMBURGER NAV ───────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none; border: none;
  cursor: pointer; padding: .5rem;
  border-radius: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--c-ink); border-radius: 2px;
  transition: transform .2s ease, opacity .15s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── TESTIMONIALS ────────────────────────────────────── */
.testimonials-section {
  padding: clamp(48px, 7vw, 88px) 0;
  background: var(--c-bg);
}
.testimonials-hdr { text-align: center; margin-bottom: 2.5rem; }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.testimonial-card {
  background: var(--c-cloud);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex; flex-direction: column;
}
.testimonial-stars {
  color: var(--c-gold);
  font-size: 1rem; letter-spacing: .05em;
  margin-bottom: .875rem;
}
.testimonial-text {
  font-size: .9rem; color: var(--c-text-2);
  line-height: 1.65; font-style: italic;
  margin-bottom: 1.125rem; flex: 1;
}
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.testimonial-initial {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--c-navy); color: #fff;
  font-size: .875rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.testimonial-name { font-size: .85rem; font-weight: 700; color: var(--c-text); }
.testimonial-location { font-size: .775rem; color: var(--c-muted); margin-top: .1rem; }

/* ── KEY FACTS BOX (Ratgeber-Artikel) ────────────────── */
.key-facts {
  background: var(--c-accent-light);
  border: 1px solid rgba(14,42,71,.15);
  border-radius: var(--radius-lg);
  padding: 1.125rem 1.375rem;
  margin-bottom: 1.75rem;
}
.key-facts-title {
  font-size: .72rem; font-weight: 750;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--c-navy); margin-bottom: .625rem;
}
.key-facts ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .375rem; }
.key-facts li {
  font-size: .875rem; color: var(--c-text-2);
  padding-left: 1.25rem; position: relative; line-height: 1.5;
}
.key-facts li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--c-navy); font-weight: 700; font-size: .8rem;
}
.key-facts strong { color: var(--c-text); }

/* ── ARTIKEL HERO-BILD ───────────────────────────────── */
.article-hero-img {
  width: 100%; max-height: 380px;
  object-fit: cover; object-position: center 35%;
  border-radius: var(--radius-lg);
  display: block; margin: 1.25rem 0 1.75rem;
}

/* ── AUTOR-BOX (Ratgeber-Artikel) ────────────────────── */
.author-box {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--c-cloud); border: 1px solid var(--c-line);
  border-radius: var(--radius-lg); padding: 1.125rem 1.375rem;
  margin-top: 2rem;
}
.author-box .author-photo {
  width: 52px; height: 52px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  border: 2px solid var(--c-line); flex-shrink: 0;
}
.author-box .author-name { font-weight: 700; font-size: .9rem; color: var(--c-text); margin-bottom: .2rem; }
.author-box .author-bio { font-size: .8rem; color: var(--c-muted); line-height: 1.55; }

/* ── FOOTER ─────────────────────────────────────────── */
.site-footer {
  background: #0f172a;
  padding: clamp(48px, 7vw, 72px) 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 2rem 4rem;
  margin-bottom: 2.5rem;
}
.footer-logo {
  display: flex; align-items: center; gap: .625rem;
  margin-bottom: 1rem;
  text-decoration: none;
}
.footer-logo:hover { text-decoration: none; }
.footer-logo-badge {
  width: 36px; height: 36px;
  background: #fff; color: var(--c-navy);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem; font-weight: 800;
  flex-shrink: 0;
}
.footer-logo-text { font-size: 1rem; font-weight: 700; color: #fff; }
.footer-desc { font-size: .875rem; color: #94a3b8; line-height: 1.65; max-width: 340px; }

.footer-col-title {
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #475569;
  margin-bottom: .875rem;
}
.footer-links { display: flex; flex-direction: column; gap: .5rem; list-style: none; }
.footer-links a { font-size: .875rem; color: #94a3b8; text-decoration: none; transition: color .12s; }
.footer-links a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  display: flex; align-items: center; flex-wrap: wrap; gap: .5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: .775rem; color: #475569;
}
.footer-bottom a { color: #64748b; }
.footer-bottom a:hover { color: #94a3b8; }
.footer-sep { opacity: .45; }

/* Simplified footer for article/partner pages */
.footer-inner {
  display: flex; align-items: center; flex-wrap: wrap; gap: .375rem .75rem;
  padding: 1.25rem 0;
  font-size: .85rem; color: #64748b;
}
.footer-inner a.link { color: #94a3b8; text-decoration: none; }
.footer-inner a.link:hover { color: #fff; }
.footer-inner .footer-sep { opacity: .35; }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .header-nav.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 64px; left: 0; right: 0; z-index: 99;
    background: #fff; border-bottom: 1px solid var(--c-line);
    padding: .375rem 0; box-shadow: var(--shadow-md);
  }
  .header-nav.is-open .nav-link { padding: .75rem 1.25rem; border-radius: 0; font-size: .95rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .header-nav { display: none; }
  .search-bar { flex-wrap: wrap; border-radius: 12px; padding: .5rem; }
  .search-field { flex: 1 1 calc(50% - .375rem); }
  .search-field--dach { flex: 1 1 calc(50% - .375rem); }
  .search-field--wide { flex: 1 1 100%; }
  .search-field--toggle { flex: 1 1 calc(50% - .375rem); }
  .search-btn { flex: 1 1 100%; justify-content: center; padding: .875rem; }
  .form-row-3 { grid-template-columns: 1fr; }
  .contact-card { padding: 1.25rem; }
  .result-card { padding: .875rem 1rem; gap: .875rem; }
  .result-metrics { grid-template-columns: repeat(2, 1fr); }
  .result-metric:nth-child(2) { border-right: none; }
  .result-metric:nth-child(3),
  .result-metric:nth-child(4) { border-top: 1px solid var(--c-line); }
  .result-metric:nth-child(4) { border-right: none; }
  .modal-card { padding: 1.5rem; }
  .action-btns { flex-direction: row; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .search-section { padding: 2.5rem 0 2rem; }
  h1 { font-size: 1.375rem; }
  .search-subtitle { font-size: .9rem; }
  .provider-table th,
  .provider-table td { padding: .7rem .75rem; }
  .trust-inner { gap: .2rem .875rem; }
  .trust-item { font-size: .75rem; }
  .result-card { flex-direction: column; align-items: stretch; }
  .result-score { flex-direction: row; gap: .875rem; align-items: center; }
  .score-ring-wrap { width: 72px; height: 72px; }
  .score-ring { width: 72px; height: 72px; }
  .howto-steps { flex-direction: column; align-items: center; gap: 1.25rem; }
  .howto-connector { width: 2px; height: 24px; margin: 0 auto; }
  .howto-step { padding: 0; max-width: 280px; }
}
