/* ═══════════════════════════════════════════════════════
   Mietprüfung – Shared Stylesheet
═══════════════════════════════════════════════════════ */

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

:root {
  --white:        #ffffff;
  --slate-50:     #f8fafc;
  --slate-100:    #f1f5f9;
  --slate-200:    #e2e8f0;
  --slate-300:    #cbd5e1;
  --slate-400:    #94a3b8;
  --slate-500:    #64748b;
  --slate-600:    #475569;
  --slate-700:    #334155;
  --slate-800:    #1e293b;
  --slate-900:    #0f172a;
  --slate-950:    #020617;
  --brand-50:     #eff6ff;
  --brand-100:    #dbeafe;
  --brand-200:    #bfdbfe;
  --brand-400:    #60a5fa;
  --brand-500:    #3b82f6;
  --brand-600:    #2563eb;
  --brand-700:    #1d4ed8;
  --brand-800:    #1e40af;
  --brand-900:    #1e3a8a;
  --emerald-50:   #ecfdf5;
  --emerald-100:  #d1fae5;
  --emerald-200:  #a7f3d0;
  --emerald-500:  #10b981;
  --emerald-600:  #059669;
  --emerald-700:  #047857;
  --emerald-800:  #065f46;
  --amber-50:     #fffbeb;
  --amber-100:    #fef3c7;
  --amber-200:    #fde68a;
  --amber-500:    #f59e0b;
  --amber-700:    #b45309;
  --amber-800:    #92400e;
  --red-50:       #fef2f2;
  --red-100:      #fee2e2;
  --red-200:      #fecaca;
  --red-500:      #ef4444;
  --red-700:      #b91c1c;
  --sky-50:       #f0f9ff;
  --sky-200:      #bae6fd;
  --sky-500:      #0ea5e9;
  --sky-700:      #0369a1;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--slate-900);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

input::placeholder,
textarea::placeholder {
  color: var(--slate-400);
}

select.is-placeholder {
  color: var(--slate-400);
}

select.is-placeholder option {
  color: var(--slate-900);
}

/* ── Typography ── */
h1 { font-size: clamp(1.9rem, 5vw, 3.25rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; }
h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.3; }

.text-muted  { color: var(--slate-500); }
.text-small  { font-size: 0.875rem; }
.text-xs     { font-size: 0.75rem; }
.text-lead   { font-size: 1.05rem; line-height: 1.7; color: var(--slate-500); }

.label-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--brand-700); background: var(--brand-50);
  border: 1px solid var(--brand-100); padding: 5px 12px; border-radius: 100px;
}
.label-chip-dark {
  color: var(--brand-400);
  background: rgba(37,99,235,0.12);
  border-color: rgba(37,99,235,0.25);
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 0.875rem; border-radius: 14px;
  padding: 0 22px; height: 46px; cursor: pointer; border: none;
  transition: all 0.18s ease; text-decoration: none; white-space: nowrap; font-family: inherit;
}
.btn-primary  {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  color: var(--white);
  box-shadow: 0 12px 28px rgba(37,99,235,0.24);
}
.btn-primary:hover  {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-800));
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(29,78,216,0.28);
}
.btn-secondary {
  background: var(--slate-900);
  color: var(--white);
}
.btn-secondary:hover {
  background: var(--slate-700);
  transform: translateY(-1px);
}
.btn-outline  { background: var(--white); color: var(--slate-800); border: 1.5px solid var(--slate-200); }
.btn-outline:hover  { border-color: var(--slate-300); background: var(--slate-50); }
.btn-ghost    { background: transparent; color: var(--slate-300); }
.btn-ghost:hover    { background: rgba(255,255,255,0.1); color: var(--white); }
.btn-sm   { height: 36px; padding: 0 16px; font-size: 0.8rem; border-radius: 10px; }
.btn-lg   { height: 52px; padding: 0 32px; font-size: 0.95rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Badge ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.7rem; font-weight: 600; border-radius: 100px;
  padding: 3px 10px; border: 1px solid transparent;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.badge-success { background: var(--emerald-50);  color: var(--emerald-700); border-color: var(--emerald-200); }
.badge-success .badge-dot { background: var(--emerald-500); }
.badge-warning { background: var(--amber-50);   color: var(--amber-700);   border-color: var(--amber-200); }
.badge-warning .badge-dot { background: var(--amber-500); }
.badge-danger  { background: var(--red-50);     color: var(--red-700);     border-color: var(--red-200); }
.badge-danger .badge-dot  { background: var(--red-500); }
.badge-info    { background: var(--brand-50);   color: var(--brand-700);   border-color: var(--brand-200); }
.badge-info .badge-dot    { background: var(--brand-500); }
.badge-neutral { background: var(--sky-50);     color: var(--sky-700);     border-color: var(--sky-200); }
.badge-neutral .badge-dot { background: var(--sky-500); }

/* ── Cards ── */
.card {
  background: var(--white); border: 1px solid var(--slate-200); border-radius: 20px;
  padding: 24px; transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.08); border-color: var(--slate-300); }

/* ── Layout ── */
.container    { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px;  margin: 0 auto; padding: 0 24px; }
.section      { padding: 80px 24px; }
.section-sm   { padding: 56px 24px; }
.section-dark { background: var(--white); color: var(--slate-900); }
.section-light{ background: var(--white); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

/* ── Section Header ── */
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 { margin-top: 14px; }
.section-header p  { max-width: 500px; margin: 12px auto 0; font-size: 1rem; color: var(--slate-500); line-height: 1.65; }

/* ── Page Hero (Subpages) ── */
.page-hero {
  padding: 144px 24px 72px; text-align: center;
  background: var(--white); position: relative; overflow: hidden;
}
.page-hero .inner { position: relative; max-width: 640px; margin: 0 auto; }
.page-hero h1 { margin: 18px 0 16px; font-size: clamp(1.8rem,4vw,2.8rem); }
.page-hero p  { font-size: 1.05rem; color: var(--slate-500); max-width: 480px; margin: 0 auto; line-height: 1.65; }

/* ── Header ── */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: transform 0.28s ease, opacity 0.28s ease; padding: 14px 24px 0;
}
.header-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0,1.2fr) auto minmax(0,0.9fr);
  align-items: center; min-height: 76px; gap: 18px;
  padding: 12px 18px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(226,232,240,0.9);
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(15,23,42,0.08);
  transition: background 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
#header.scrolled .header-inner {
  background: rgba(255,255,255,0.98);
  border-color: rgba(203,213,225,0.95);
  box-shadow: 0 18px 42px rgba(15,23,42,0.12);
}
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-decoration: none;
  justify-self: start;
  min-width: 0;
  line-height: 0;
}
.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}
.logo-image {
  display: block;
  height: 40px;
  width: auto;
}
.logo-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
nav {
  display: inline-flex; align-items: center; gap: 6px; justify-self: center;
  background: rgba(248,250,252,0.96);
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  padding: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
nav a {
  padding: 9px 14px; font-size: 0.865rem; font-weight: 600; color: var(--slate-600);
  text-decoration: none; border-radius: 999px; transition: all 0.15s;
}
nav a:hover, nav a.active {
  color: var(--brand-800);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(15,23,42,0.08);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}
.header-actions .btn { min-width: max-content; }
.burger {
  display: none; background: var(--white); border: 1px solid var(--slate-200);
  cursor: pointer; padding: 10px; border-radius: 14px; justify-self: end;
  color: var(--slate-700); box-shadow: 0 10px 24px rgba(15,23,42,0.08);
}
.burger:hover { background: var(--slate-50); }
.burger svg { display: block; }
#mobile-nav {
  display: none; max-width: 1100px; margin: 10px auto 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(226,232,240,0.9);
  border-radius: 22px; padding: 12px;
  box-shadow: 0 18px 42px rgba(15,23,42,0.12);
}
#mobile-nav.open { display: block; }
#mobile-nav a {
  display: block; padding: 12px 14px; font-size: 0.92rem; font-weight: 600;
  color: var(--slate-700); text-decoration: none; border-radius: 14px;
}
#mobile-nav a:hover { background: var(--slate-50); }
#mobile-nav .btn { margin-top: 12px; width: 100%; }
#mobile-nav a.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  color: var(--white);
}
#mobile-nav a.btn:hover {
  background: var(--brand-700);
}

/* ── Features Page ── */
.how-step {
  display: flex; gap: 20px; align-items: flex-start;
}
.step-num {
  width: 36px; height: 36px; background: var(--brand-50); border: 1px solid var(--brand-100);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800; color: var(--brand-700); flex-shrink: 0;
}
.feature-icon {
  width: 40px; height: 40px; background: var(--brand-50); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
  transition: background 0.15s;
}
.card:hover .feature-icon { background: var(--brand-100); }

/* ── Target Groups ── */
.tg-icon {
  width: 44px; height: 44px; background: var(--slate-100); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background 0.15s;
}
.card:hover .tg-icon { background: var(--brand-50); }
.card:hover .tg-icon svg { stroke: var(--brand-600); }
.tg-sub { font-size: 0.75rem; color: var(--brand-600); font-weight: 500; margin-top: 2px; }
.tg-desc { font-size: 0.875rem; color: var(--slate-500); line-height: 1.65; margin-top: 12px; }
.link-card,
.hub-card {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}
.link-card .card,
.hub-card .card {
  height: 100%;
}
.card-link-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-700);
}
.cluster-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.cluster-links a,
.inline-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--slate-200);
  background: var(--white);
  color: var(--slate-700);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.15s ease;
}
.cluster-links a:hover,
.inline-links a:hover {
  color: var(--brand-800);
  border-color: var(--brand-200);
  background: var(--brand-50);
}
.inline-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.section-split {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 20px;
  align-items: start;
}
.panel {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 4px 24px rgba(15,23,42,0.04);
}
.panel h3 {
  font-size: 1.08rem;
  margin-bottom: 12px;
}
.panel p {
  font-size: 0.92rem;
  color: var(--slate-500);
  line-height: 1.72;
}
.bullet-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.bullet-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.65;
}
.bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-600);
  box-shadow: inset 0 0 0 4px var(--brand-50);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}
.stat-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  padding: 16px;
}
.stat-card span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-400);
  margin-bottom: 6px;
}
.stat-card strong {
  display: block;
  font-size: 0.94rem;
  color: var(--slate-900);
  line-height: 1.35;
}
.stat-card p {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--slate-500);
  line-height: 1.6;
}
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.mini-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  padding: 22px;
}
.mini-card h3 {
  margin-bottom: 10px;
}
.mini-card p {
  font-size: 0.88rem;
  color: var(--slate-500);
  line-height: 1.68;
}
.hub-intro {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}
.hub-intro h2 {
  margin-top: 14px;
}
.hub-intro p {
  margin-top: 12px;
  color: var(--slate-500);
  line-height: 1.72;
}
.text-link {
  color: var(--brand-700);
  text-decoration: none;
  font-weight: 700;
}
.text-link:hover {
  color: var(--brand-800);
}

/* ── Pricing ── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 980px; margin: 0 auto; align-items: stretch;
}
.pricing-card {
  border-radius: 24px; padding: 28px; display: flex; flex-direction: column;
  border: 1px solid var(--slate-200); background: var(--white);
}
.pricing-card.featured {
  background: var(--white); border-color: var(--brand-400);
  box-shadow: 0 8px 40px rgba(37,99,235,0.12); position: relative;
}
.plan-name { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--brand-600); margin-bottom: 12px; }
.plan-price { display: flex; align-items: flex-end; gap: 4px; margin-bottom: 6px; }
.plan-price .amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; color: var(--slate-950); line-height: 1; }
.plan-price .per { font-size: 0.875rem; color: var(--slate-500); padding-bottom: 3px; }
.plan-tagline { font-size: 0.85rem; color: var(--slate-500); margin-bottom: 24px; }
.plan-features { list-style: none; margin-bottom: 28px; flex: 1; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; color: var(--slate-600); padding: 5px 0; }
.plan-features li::before {
  content: ''; display: block; width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px;
  background: var(--brand-600); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 9px;
}
.popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap; }

/* ── FAQ ── */
.faq-list { max-width: 740px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1px solid var(--slate-200); border-radius: 16px; overflow: hidden; background: var(--white); transition: border-color 0.15s; }
.faq-item.open { border-color: var(--brand-200); }
.faq-q { width: 100%; display: flex; align-items: flex-start; gap: 14px; padding: 18px 22px; background: none; border: none; cursor: pointer; text-align: left; font-family: inherit; }
.faq-q-text { flex: 1; font-weight: 600; color: var(--slate-900); font-size: 0.9rem; line-height: 1.45; }
.faq-icon { width: 24px; height: 24px; border-radius: 50%; background: var(--slate-100); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; transition: background 0.15s, transform 0.2s; font-size: 15px; color: var(--slate-500); line-height: 1; }
.faq-item.open .faq-icon { background: var(--brand-100); color: var(--brand-700); transform: rotate(45deg); }
.faq-a { display: none; padding: 0 22px 18px; border-top: 1px solid var(--slate-100); }
.faq-item.open .faq-a { display: block; }
.faq-a p { font-size: 0.875rem; color: var(--slate-600); line-height: 1.7; padding-top: 14px; }

/* ── CTA Box ── */
.cta-box {
  background: var(--white); border: 1px solid var(--slate-200); border-radius: 28px; padding: 64px 48px;
  text-align: center; position: relative; overflow: hidden; max-width: 860px; margin: 0 auto;
  box-shadow: 0 4px 24px rgba(15,23,42,0.06);
}
.cta-box::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.05), transparent 70%); pointer-events: none;
}
.cta-inner { position: relative; }
.cta-box h2 { color: var(--slate-900); margin: 18px 0 14px; font-size: clamp(1.4rem,3vw,2rem); }
.cta-box p  { color: var(--slate-500); max-width: 480px; margin: 0 auto 32px; font-size: 0.95rem; line-height: 1.7; }
.cta-btns { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cta-note { font-size: 0.75rem; color: var(--slate-500); margin-top: 20px; }

/* ── Sample Analysis ── */
.sample-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.sample-obj { background: var(--white); border: 1px solid var(--slate-200); border-radius: 24px; padding: 28px; }
.sample-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--slate-100); }
.sample-row:last-child { border: none; }
.sample-row .key { font-size: 0.8rem; color: var(--slate-500); flex-shrink: 0; }
.sample-row .val { font-size: 0.875rem; font-weight: 600; color: var(--slate-900); text-align: right; }
.sample-reco { background: var(--emerald-50); border: 1px solid var(--emerald-100); border-radius: 16px; padding: 14px; margin-top: 14px; display: flex; gap: 10px; }
.sample-reco p { font-size: 0.85rem; color: var(--emerald-800); line-height: 1.55; }
.sample-result-card { background: var(--white); border-radius: 24px; overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,0.2); }
.sample-result-head { background: var(--emerald-50); border-bottom: 1px solid var(--emerald-100); padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.sample-status { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 0.875rem; color: var(--emerald-700); }
.sample-body { padding: 24px; }
.sample-price-center { text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--slate-100); margin-bottom: 20px; }
.sample-price-center .pl { font-size: 0.65rem; font-weight: 700; color: var(--slate-500); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.sample-price-center .pv { font-size: 1.8rem; font-weight: 800; color: var(--slate-950); letter-spacing: -0.025em; }
.sample-price-center .ps { font-size: 0.875rem; color: var(--slate-500); margin-top: 4px; }
.sample-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 20px; }
.kpi-card { background: var(--slate-50); border-radius: 14px; padding: 12px; text-align: center; }
.kpi-card .kl { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; color: var(--slate-500); margin-bottom: 5px; }
.scores-section { }
.scores-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--slate-500); margin-bottom: 12px; }
.score-bar-row { margin-bottom: 10px; }
.score-bar-header { display: flex; justify-content: space-between; margin-bottom: 5px; }
.score-bar-header span:first-child { font-size: 0.75rem; font-weight: 500; color: var(--slate-600); }
.score-bar-header span:last-child  { font-size: 0.75rem; font-weight: 700; color: var(--slate-800); }
.score-bar-track { height: 5px; background: var(--slate-100); border-radius: 3px; overflow: hidden; }
.score-bar-fill  { height: 100%; border-radius: 3px; transition: width 0.8s ease; width: 0; }
.sample-infobox { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 14px; padding: 12px 14px; display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; }
.sample-infobox p { font-size: 0.8rem; color: var(--brand-900); font-weight: 500; line-height: 1.5; }

/* ── Result Transparency ── */
.result-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 0 20px 16px;
}
.result-action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.result-action-note {
  font-size: 0.75rem;
  color: var(--slate-500);
  line-height: 1.55;
}
.transparency-section,
.quality-section {
  margin: 0 20px 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--slate-200);
  background: var(--white);
}
.section-kicker {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
}
.section-copy {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--slate-600);
  line-height: 1.6;
}
.driver-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.driver-highlight-card {
  border-radius: 16px;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  padding: 14px;
}
.driver-highlight-card strong {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--slate-900);
}
.driver-highlight-card p {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--slate-600);
  line-height: 1.55;
}
.impact-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid transparent;
}
.impact-pill.up {
  background: var(--emerald-50);
  border-color: var(--emerald-200);
  color: var(--emerald-700);
}
.impact-pill.down {
  background: var(--red-50);
  border-color: var(--red-200);
  color: var(--red-700);
}
.impact-pill.neutral {
  background: var(--slate-100);
  border-color: var(--slate-200);
  color: var(--slate-600);
}
.driver-table {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.driver-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--slate-100);
  background: var(--slate-50);
}
.driver-copy {
  min-width: 0;
}
.driver-title {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--slate-900);
}
.driver-detail {
  margin-top: 4px;
  font-size: 0.76rem;
  color: var(--slate-600);
  line-height: 1.55;
}
.driver-meta {
  margin-top: 5px;
  font-size: 0.72rem;
  color: var(--slate-400);
}
.quality-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.quality-card {
  border-radius: 16px;
  border: 1px solid var(--slate-100);
  background: var(--slate-50);
  padding: 14px;
}
.quality-card h4 {
  font-size: 0.83rem;
  color: var(--slate-900);
  margin-bottom: 10px;
}
.quality-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.quality-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.77rem;
  color: var(--slate-600);
  line-height: 1.55;
}
.quality-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-600);
}
.quality-list.missing li::before {
  background: var(--amber-500);
}
.quality-empty {
  font-size: 0.77rem;
  color: var(--slate-500);
  line-height: 1.55;
}

/* ── SEO Topic Cards ── */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.topic-card-copy p {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--slate-500);
  line-height: 1.68;
}
.topic-card-copy .label-chip {
  margin-bottom: 10px;
}

/* ── Footer ── */
footer {
  background:
    radial-gradient(circle at top right, rgba(37,99,235,0.16), transparent 28%),
    radial-gradient(circle at bottom left, rgba(59,130,246,0.12), transparent 30%),
    linear-gradient(180deg, #0b1425 0%, #08101d 100%);
  color: var(--slate-400);
  padding: 72px 24px 40px;
}
.footer-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,0.78fr) minmax(0,0.78fr) minmax(0,0.78fr) minmax(0,0.95fr);
  gap: 34px;
}
.footer-brand .logo {
  align-items: center;
}
.footer-brand .logo-badge {
  filter: drop-shadow(0 12px 24px rgba(15,23,42,0.26));
}
.footer-brand .logo-image { height: 44px; }
.footer-brand p {
  font-size: 0.92rem; color: rgba(226,232,240,0.72); margin-top: 16px;
  line-height: 1.72; max-width: 32ch;
}
.footer-badges {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px;
}
.footer-badges span {
  display: inline-flex; align-items: center;
  font-size: 0.73rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--white); background: rgba(148,163,184,0.12);
  border: 1px solid rgba(148,163,184,0.22); border-radius: 999px; padding: 8px 12px;
}
.footer-col h4 {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--brand-100); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a {
  font-size: 0.92rem; color: rgba(226,232,240,0.74); text-decoration: none;
  transition: color 0.15s, transform 0.15s;
}
.footer-col a:hover { color: var(--white); transform: translateX(2px); }
.footer-note {
  font-size: 0.84rem; color: rgba(203,213,225,0.7); line-height: 1.65;
}
.footer-card {
  background: rgba(15,23,42,0.34);
  border: 1px solid rgba(148,163,184,0.16);
  border-radius: 22px;
  padding: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.footer-card .btn { margin-top: 16px; width: 100%; }
.footer-contact {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600;
}
.footer-bottom {
  max-width: 1100px; margin: 38px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08); display: flex;
  justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(148,163,184,0.78); max-width: 70ch; line-height: 1.6; }
.footer-bottom p a {
  color: rgba(226,232,240,0.88);
  font-weight: 600;
  text-decoration: none;
}
.footer-bottom p a:hover { color: var(--white); }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { font-size: 0.78rem; color: rgba(148,163,184,0.8); text-decoration: none; }
.footer-legal a:hover { color: var(--white); }

/* ── Form Autocomplete ── */
#f-address::-webkit-contacts-auto-fill-button,
#f-address::-webkit-credentials-auto-fill-button {
  visibility: hidden;
  pointer-events: none;
  width: 0;
  height: 0;
  margin: 0;
}

.ac-wrap { position: relative; }
.ac-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(15,23,42,0.12);
  overflow: hidden;
  display: none;
}
.ac-dropdown.open { display: block; }
.ac-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.1s;
  border-bottom: 1px solid var(--slate-100);
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover,
.ac-item.ac-active { background: var(--slate-50); }
.ac-street {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-900);
}
.ac-city-hint {
  font-size: 0.75rem;
  color: var(--slate-400);
  white-space: nowrap;
}
.ac-spinner,
.ac-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--slate-400);
}

/* ── Fade in on scroll ── */
.fade-in { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }
.js-ready .fade-in { opacity: 0; transform: translateY(20px); }
.js-ready .fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .header-inner { gap: 14px; }
  nav a { padding: 8px 12px; font-size: 0.83rem; }
  .section-split,
  .mini-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .footer-grid  { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  #header { padding: 12px 16px 0; }
  .header-inner { grid-template-columns: 1fr auto; min-height: 72px; padding: 12px 14px; }
  nav { display: none; }
  .header-actions .btn { display: none; }
  .burger { display: block; }
  .grid-2, .grid-3, .sample-grid { grid-template-columns: 1fr; }
  .section-split,
  .stat-grid,
  .mini-grid,
  .topic-grid,
  .driver-highlight-grid,
  .quality-grid-2 { grid-template-columns: 1fr; }
  .result-actions,
  .driver-row { flex-direction: column; align-items: stretch; }
  .cta-box { padding: 44px 24px; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  .pricing-grid { max-width: 100%; }
  #mobile-nav { margin-top: 8px; }
  .section, .page-hero { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 480px) {
  .logo-badge { width: 44px; height: 44px; }
  .logo-image { height: 36px; }
  .footer-brand .logo-image { height: 40px; }
  .footer-grid  { grid-template-columns: 1fr; }
  .footer-bottom{ flex-direction: column; text-align: center; }
  .cta-btns     { flex-direction: column; }
}
