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

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --c-bg:           #ffffff;
  --c-surface:      #f8f9fa;
  --c-surface-alt:  #f1f3f5;
  --c-border:       #dee2e6;

  --c-text:         #1a1a1a;
  --c-text-2:       #4a4a4a;
  --c-muted:        #6c757d;

  --c-accent:       #16a34a;
  --c-accent-dark:  #15803d;
  --c-accent-light: #f0fdf4;
  --c-accent-ring:  rgba(22,163,74,.14);

  --c-star:         #f59e0b;
  --c-error:        #dc2626;
  --c-error-bg:     #fef2f2;
  --c-success-bg:   #f0fdf4;
  --c-success-bdr:  #bbf7d0;
  --c-success-txt:  #166534;

  --shadow-sm:      0 1px 3px rgba(0,0,0,.07);
  --shadow-md:      0 4px 16px rgba(0,0,0,.08);
  --shadow-bar:     0 2px 12px rgba(0,0,0,.10), 0 0 0 1px rgba(0,0,0,.04);
  --shadow-bar-hov: 0 4px 24px rgba(0,0,0,.13), 0 0 0 1px rgba(0,0,0,.06);
  --shadow-modal:   0 24px 64px rgba(0,0,0,.22), 0 4px 16px rgba(0,0,0,.10);

  --radius:    6px;
  --radius-lg: 10px;
  --radius-bar: 32px;

  --max-w: 960px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ── BASE ───────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
h1 { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 700; line-height: 1.2; letter-spacing: -.025em; }
h2 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
h3 { font-size: 1.15rem; font-weight: 600; }
.text-muted { color: var(--c-muted); }
a { color: inherit; }
.link { color: var(--c-accent); text-decoration: none; }
.link:hover { text-decoration: underline; }
.section-lead { font-size: .9rem; color: var(--c-muted); margin-top: .35rem; line-height: 1.55; }

/* ── LAYOUT ─────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; gap: 1rem; height: 56px; }
.logo { display: flex; align-items: center; gap: .45rem; text-decoration: none; color: var(--c-text); flex-shrink: 0; }
.logo-icon { color: var(--c-accent); }
.logo-img { height: 34px; width: auto; display: block; border-radius: 6px; flex-shrink: 0; }
.logo-text { font-size: .9rem; font-weight: 400; letter-spacing: -.01em; }
.logo-text strong { font-weight: 700; }
.header-tagline { font-size: .8rem; color: var(--c-muted); padding-left: .75rem; border-left: 1px solid var(--c-border); flex: 1; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  font-family: var(--font); font-weight: 500; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--radius);
  text-decoration: none; transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.btn-primary {
  background: var(--c-accent); color: #fff; border-color: var(--c-accent);
  padding: .5rem 1.2rem; font-size: .9375rem;
}
.btn-primary:hover { background: var(--c-accent-dark); border-color: var(--c-accent-dark); }
.btn-outline {
  background: transparent; color: var(--c-accent); border-color: var(--c-accent);
  padding: .375rem .9rem; font-size: .8125rem;
}
.btn-outline:hover { background: var(--c-accent-light); }
.btn-sm { padding: .3rem .8rem; font-size: .8rem; }
.btn-full { width: 100%; margin-top: .875rem; padding: .65rem 1.2rem; justify-content: center; }
.btn-ghost {
  background: transparent; color: var(--c-muted); border: none;
  padding: .25rem .5rem; font-size: .8rem; font-weight: 500;
}
.btn-ghost:hover { color: var(--c-accent); background: var(--c-accent-light); border-radius: var(--radius); }

/* ── TRUST BAR ──────────────────────────────────────────── */
.trust-bar {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: .5rem 0;
}
.trust-inner {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: .25rem 1.5rem;
}
.trust-item {
  font-size: .8rem; font-weight: 500; color: var(--c-text-2);
  display: flex; align-items: center; gap: .3rem; white-space: nowrap;
}
.trust-check { color: #16a34a; font-weight: 700; }

/* ── SEARCH SECTION ─────────────────────────────────────── */
.search-section {
  padding: 2.25rem 0 1.75rem;
  border-bottom: 1px solid var(--c-border);
}
.search-title { text-align: center; margin-bottom: 1.5rem; }

/* Independent labelled input boxes inside a Google-style pill wrapper */
.search-bar {
  display: flex; align-items: flex-end;
  gap: .625rem; max-width: 740px; margin: 0 auto;
  background: var(--c-bg);
  border-radius: var(--radius-bar);
  box-shadow: var(--shadow-bar);
  padding: .75rem 1rem .75rem 1.5rem;
  transition: box-shadow .2s;
}
.search-bar:hover,
.search-bar:focus-within { box-shadow: var(--shadow-bar-hov); }

/* Each field: small label above, styled input box below */
.search-field {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: .3rem;
  background: transparent; border: none;
  font-family: var(--font); text-align: left; padding: 0; cursor: default;
}
.search-field--dach { flex: 0 0 130px; }
.search-field--wide { flex: 0 0 170px; }
.search-field--plz  { flex: 0 0 92px; }

.search-field-label {
  font-size: .6875rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--c-muted); white-space: nowrap;
}

/* Fields that have a unit suffix: styled wrapper acts as the visible box */
.search-field-row {
  display: flex; align-items: center; gap: .35rem;
  height: 2.5rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 0 .75rem;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.search-field:focus-within .search-field-row {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-ring);
  background: var(--c-bg);
}
/* Inputs inside the row wrapper: transparent, border handled by parent */
.search-field-row .search-input {
  background: transparent; border: none; padding: 0; box-shadow: none;
}

/* Standalone input (PLZ — no unit wrapper) */
.search-field > .search-input {
  height: 2.5rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 0 .75rem;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.search-field > .search-input:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-ring);
  background: var(--c-bg);
}

/* All inputs — shared base */
.search-input {
  font-family: var(--font); font-size: .9375rem; font-weight: 500;
  color: var(--c-text); outline: none; width: 100%; min-width: 0;
  -moz-appearance: textfield;
}
.search-input::-webkit-outer-spin-button,
.search-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.search-input::placeholder { color: #bbb; font-weight: 400; }
.search-field-unit { font-size: .8rem; color: var(--c-muted); white-space: nowrap; flex-shrink: 0; }

/* Hide old pill dividers (not used in this layout) */
.search-div { display: none; }

/* E-Auto toggle — looks like a standard input box */
.search-field--toggle { cursor: pointer; flex: 0 0 auto; min-width: 110px; }
.search-toggle-val {
  display: flex; align-items: center;
  height: 2.5rem;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 0 .75rem;
  font-size: .9375rem; font-weight: 500; color: var(--c-muted);
  transition: border-color .15s, background .15s;
}
.search-field--toggle:hover .search-toggle-val { border-color: var(--c-muted); background: var(--c-bg); }
.search-field--toggle.is-active .search-toggle-val {
  color: var(--c-accent); border-color: var(--c-accent); background: var(--c-accent-light);
}
.search-field--toggle:focus-visible .search-toggle-val {
  border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-ring);
}

/* Berechnen button — aligns to bottom via flex-end on parent */
.search-btn {
  display: flex; align-items: center; gap: .4rem; flex-shrink: 0;
  padding: .5rem 1.375rem;
  background: var(--c-accent); color: #fff;
  font-family: var(--font); font-size: .9375rem; font-weight: 600;
  border: 1px solid var(--c-accent); border-radius: var(--radius);
  cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.search-btn:hover { background: var(--c-accent-dark); border-color: var(--c-accent-dark); }
.search-btn:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

.search-hint  { max-width: 920px; margin: .625rem auto 0; font-size: .8rem; color: var(--c-muted); text-align: center; }
.search-error { max-width: 920px; margin: .5rem auto 0; font-size: .8125rem; color: var(--c-error); font-weight: 500; text-align: center; }

/* ── RESULT CARD ────────────────────────────────────────── */
.result-card {
  max-width: 920px; margin: .875rem auto 0;
  display: flex; align-items: center; gap: 1.25rem;
  background: var(--c-accent-light);
  border: 1px solid rgba(37,99,235,.15);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
}

/* PV-Score ring */
.result-score {
  flex: 0 0 auto; display: flex; flex-direction: column;
  align-items: center; gap: .3rem;
}
.score-ring-wrap { position: relative; width: 88px; height: 88px; }
.score-ring      { width: 88px; height: 88px; }
.score-ring-bg   { stroke: #dbeafe; }
.score-ring-fill {
  stroke: var(--c-accent);
  transition: stroke-dasharray .8s ease .1s, stroke .4s;
}
.score-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center; line-height: 1.1; pointer-events: none;
}
.score-number {
  display: block; font-size: 1.5rem; font-weight: 800;
  color: var(--c-text); line-height: 1;
}
.score-sublabel {
  display: block; font-size: .5rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--c-accent); margin-top: .15rem; white-space: nowrap;
}
.score-title {
  font-size: .68rem; font-weight: 600; color: var(--c-muted);
  text-transform: uppercase; letter-spacing: .06em;
}

/* Score colour variants */
.score-excellent .score-ring-fill { stroke: #16a34a; }
.score-excellent .score-sublabel  { color: #16a34a; }
.score-good .score-ring-fill      { stroke: var(--c-accent); }
.score-good .score-sublabel       { color: var(--c-accent); }
.score-ok .score-ring-fill        { stroke: #d97706; }
.score-ok .score-sublabel         { color: #d97706; }
.score-low .score-ring-fill       { stroke: var(--c-muted); }
.score-low .score-sublabel        { color: var(--c-muted); }

/* Result info */
.result-info { flex: 1; min-width: 0; }
.result-row-1 {
  font-size: .875rem; color: var(--c-text-2);
  display: flex; align-items: center; flex-wrap: wrap; gap: .3rem;
  margin-bottom: .625rem; line-height: 1.4;
}
.result-row-1 strong { color: var(--c-accent); font-weight: 700; }
.sum-label { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); margin-right: .1rem; }
.sum-sep   { color: var(--c-border); margin: 0 .1rem; }

/* Extended metrics 4-cell grid */
.result-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(37,99,235,.15); border-radius: var(--radius);
  background: rgba(255,255,255,.65); overflow: hidden;
}
.result-metric {
  display: flex; flex-direction: column; align-items: center;
  padding: .45rem .375rem; text-align: center;
  border-right: 1px solid rgba(37,99,235,.12);
}
.result-metric:last-child { border-right: none; }
.metric-value {
  font-size: .9375rem; font-weight: 700; color: var(--c-text);
  line-height: 1.2; white-space: nowrap;
}
.metric-label {
  font-size: .63rem; color: var(--c-muted); margin-top: .12rem;
  font-weight: 500; line-height: 1.3; text-align: center;
}

/* ── LOADER ──────────────────────────────────────────────── */
.loader-section {
  padding: 4rem 0;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}
.loader-wrap {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}
.loader-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--c-text-2);
  margin-bottom: 1.5rem;
  min-height: 1.5em;
  transition: opacity .25s ease;
}
.loader-bar-track {
  height: 6px;
  background: var(--c-border);
  border-radius: 3px;
  overflow: hidden;
}
.loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--c-accent) 0%, #60a5fa 100%);
  border-radius: 3px;
  transition: width .08s linear;
}
.loader-done {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin-top: 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #16a34a;
  animation: fadeInUp .3s ease;
}
.loader-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #16a34a;
  color: #fff;
  border-radius: 50%;
  font-size: .8125rem;
  font-weight: 700;
  flex-shrink: 0;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── PROVIDERS ───────────────────────────────────────────── */
.providers-section { padding: 2.25rem 0; background: var(--c-surface); border-bottom: 1px solid var(--c-border); }
.providers-hdr { margin-bottom: 1.25rem; }

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

/* Google rating in provider row */
.provider-meta { display: flex; align-items: center; gap: .4rem; margin-top: .25rem; flex-wrap: wrap; }
.google-rating {
  font-size: .7rem; font-weight: 600; color: var(--c-muted);
  background: var(--c-surface-alt); padding: .08rem .35rem; border-radius: 3px;
  white-space: nowrap;
}

.table-wrap { overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.provider-table { width: 100%; border-collapse: collapse; font-size: .875rem; background: var(--c-bg); }
.provider-table thead { background: var(--c-surface); }
.provider-table th {
  text-align: left; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: var(--c-muted);
  padding: .75rem 1rem; border-bottom: 1px solid var(--c-border); white-space: nowrap;
}
.provider-table td { padding: .875rem 1rem; border-bottom: 1px solid var(--c-border); vertical-align: middle; }
.provider-table tbody tr:last-child td { border-bottom: none; }
.provider-table tbody tr:hover td { background: var(--c-surface); }
.provider-row--recommended td { background: var(--c-accent-light); }
.provider-row--recommended:hover td { background: #e2ecff; }

.provider-name    { font-weight: 600; font-size: .9375rem; color: var(--c-text); }
.provider-tagline { font-size: .8rem; color: var(--c-muted); margin-top: .1rem; }
.provider-badge {
  display: inline-block; font-size: .65rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  padding: .12rem .45rem; border-radius: 3px; margin-top: .25rem;
}
.badge-accent { background: var(--c-accent); color: #fff; }
.badge-gray   { background: var(--c-surface-alt); color: var(--c-muted); }

.stars { color: var(--c-star); font-size: .9375rem; letter-spacing: .06em; white-space: nowrap; }
.price-total { font-weight: 700; font-size: .9375rem; color: var(--c-text); }
.price-unit  { font-size: .8rem; color: var(--c-muted); }

.amort-value { font-weight: 600; font-size: .9rem; color: var(--c-text); white-space: nowrap; }
.amort-value.amort-fast { color: #16a34a; }
.amort-value.amort-mid  { color: var(--c-text); }
.amort-value.amort-slow { color: var(--c-muted); }

/* Row slide-in animation (triggered by removing .row-entering class) */
#providerTableBody tr {
  transition: opacity .45s ease, transform .45s ease;
}
#providerTableBody tr.row-entering {
  opacity: 0;
  transform: translateY(16px);
}

.action-btns { display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }

.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(37,99,235,.18);
  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(37,99,235,.25);
  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: 2.25rem 0; }
.contact-card {
  max-width: 680px; margin: 0 auto;
  background: var(--c-bg); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); padding: 1.75rem 2rem;
  box-shadow: var(--shadow-md);
}
.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-accent); 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-accent); 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,.45);
  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-accent); outline-offset: 2px; }

.modal-eyebrow {
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--c-accent); 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-accent);
  font-weight: 700; font-size: .875rem;
  padding: .35rem .875rem; border-radius: 20px;
  margin-bottom: .75rem;
  border: 1px solid rgba(37,99,235,.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: 2.5rem 0;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}
.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: 42px; height: 42px; border-radius: 50%;
  background: var(--c-accent); color: #fff;
  font-size: 1.125rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .875rem;
}
.howto-step-title { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.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-border);
  margin-top: 21px; /* align with centre of .howto-num */
}

/* ── FAQ ────────────────────────────────────────────────── */
.faq-section {
  padding: 2.5rem 0;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
}
.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-accent); }

.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-accent);
  flex-shrink: 0; line-height: 1;
  transition: transform .2s;
}
.faq-item[open] .faq-question::after { transform: rotate(45deg); }
.faq-question:hover { color: var(--c-accent); }

.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; }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--c-border); background: var(--c-surface); padding: 1.125rem 0; }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: .775rem; color: var(--c-muted); }
.footer-sep { opacity: .35; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 720px) {
  .header-tagline { display: none; }
  .search-bar { flex-wrap: wrap; border-radius: 16px; padding: .625rem .625rem .625rem .875rem; }
  .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; }
  .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 rgba(37,99,235,.12); }
  .result-metric:nth-child(4) { border-right: none; }
  .modal-card { padding: 1.5rem; }
  .action-btns { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .search-section { padding: 1.5rem 0 1.25rem; }
  h1 { font-size: 1.375rem; }
  .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; }
}

/* ── HERO STRIP ─────────────────────────────────────────── */
.hero-strip {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--c-border);
  line-height: 0;
}
.hero-strip-img {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center 62%;
}
@media (max-width: 720px) { .hero-strip-img { height: 220px; } }
@media (max-width: 480px) { .hero-strip-img { height: 180px; } }

/* ── ARTICLE HERO IMAGE ─────────────────────────────────── */
.article-hero-img {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}
@media (max-width: 480px) { .article-hero-img { height: 200px; border-radius: var(--radius); } }

/* ── RATGEBER CARD THUMBNAIL ────────────────────────────── */
.card-thumb {
  display: block;
  width: calc(100% + 3rem);
  margin: -1.5rem -1.5rem 1rem;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
@media (max-width: 480px) { .card-thumb { height: 130px; } }

/* ── PARTNER BOX ─────────────────────────────────────────── */
.partner-box {
  margin-top: 1.5rem;
  padding: .875rem 1.125rem;
  background: var(--c-accent-light);
  border: 1px solid rgba(22,163,74,.2);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--radius);
  font-size: .875rem;
  color: var(--c-text-2);
  line-height: 1.65;
}
.partner-box strong { color: var(--c-text); font-weight: 600; }
