/* ==========================================================================
   kfzsteuer-rechner.online — shared stylesheet
   ========================================================================== */

:root {
  /* Colors */
  --color-primary: #17284A;
  --color-primary-dark: #0D1830;
  --color-secondary: #1E6B5C;
  --color-accent: #FFC933;
  --color-accent-dark: #E6A200;

  --color-bg: #FFFFFF;
  --color-bg-alt: #FFF9EA;
  --color-surface: #FFFFFF;
  --color-border: #E7E1CE;

  --color-text: #1A2433;
  --color-text-muted: #5B6B7F;
  --color-text-inverse: #FFFFFF;

  --color-success: #1E6B5C;
  --color-warning: #B8842A;
  --color-error: #B3261E;
  --footer-bg: #000000;
  --footer-text: #ffffff;
  --bg-dark: #0B1A2A;
  --bg-alt-dark: #111D31;
  --surface-dark: #15263F;
  --border-dark: rgba(255, 209, 51, 0.18);
  --text-dark: #EDF2F7;
  --text-muted-dark: #B8C4DC;

  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: 3rem;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  --lh-tight: 1.2;
  --lh-normal: 1.5;
  --lh-relaxed: 1.7;

  --ls-tight: -0.01em;
  --ls-normal: 0;

  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-32: 32px;
  --sp-48: 48px;
  --sp-64: 64px;
  --sp-96: 96px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(26,36,51,0.08);
  --shadow-md: 0 4px 16px rgba(26,36,51,0.10);
  --shadow-lg: 0 12px 32px rgba(26,36,51,0.14);

  --container-max: 1180px;
  --bp-tablet: 768px;

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
img, svg, video, canvas, iframe { max-width: 100%; height: auto; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .nav-bar {
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand-text {
    font-size: clamp(1.05rem, 5vw, 1.5rem);
    white-space: nowrap;
  }

  .mobile-panel {
    padding: 12px 14px 20px;
    max-width: 100vw;
  }

  .feature-image {
    min-height: 180px;
  }

  /* ---- Typography ---- */
  h1 { font-size: clamp(1.6rem, 7vw, 2.4rem); line-height: 1.25; }
  h2 { font-size: clamp(1.25rem, 5.5vw, 1.75rem); margin-top: var(--sp-32); }
  h3 { font-size: clamp(1.05rem, 4.5vw, 1.375rem); margin-top: var(--sp-24); }

  /* ---- Hero ---- */
  .hero { padding-top: var(--sp-48); }
  .hero-subhead { font-size: var(--fs-base); }

  /* ---- Article / Blog pages ---- */
  .article-body { padding: 0; }
  .article-body h2 { font-size: clamp(1.2rem, 5vw, 1.6rem); }
  .article-body h3 { font-size: clamp(1rem, 4vw, 1.25rem); margin-top: var(--sp-16); }
  .article-body ul, .article-body ol { padding-left: 1.1em; }
  .article-body li { font-size: var(--fs-sm); margin-bottom: 6px; }
  .article-body p { font-size: var(--fs-sm); }
  .page-hero-image {
    width: 100%;
    margin-top: var(--sp-16);
    border-radius: var(--radius-sm);
  }

  /* ---- Info Tables — scroll on mobile ---- */
  .info-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
  }
  .info-table thead,
  .info-table tbody,
  .info-table tr { display: table; width: 100%; table-layout: fixed; }
  /* Override: use scroll block wrapper approach for wide tables */
  .article-body .info-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .article-body .info-table thead,
  .article-body .info-table tbody,
  .article-body .info-table tr { display: revert; }

  /* ---- Calculator ---- */
  .calc-panel { padding: var(--sp-24) var(--sp-16); }
  .result-breakdown div { gap: var(--sp-12); align-items: flex-start; }
  .result-breakdown div span:last-child { text-align: right; }

  /* ---- CTA band ---- */
  .cta-band {
    padding: var(--sp-24);
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .cta-band h3 { font-size: var(--fs-md); }
  .cta-band .btn { width: 100%; justify-content: center; }

  /* ---- Footer ---- */
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* ---- Breadcrumb ---- */
  .breadcrumb {
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .breadcrumb::-webkit-scrollbar { display: none; }

  /* ---- Blog grid cards ---- */
  .grid-2 .card img { height: 180px; object-fit: cover; }

  /* ---- Section padding ---- */
  section { padding: var(--sp-32) 0; }
}

body[data-theme="dark"] {
  background: var(--bg-dark);
  color: var(--text-dark);
}
body[data-theme="dark"] .site-header,
body[data-theme="dark"] .card,
body[data-theme="dark"] .calc-panel,
body[data-theme="dark"] .mobile-panel,
body[data-theme="dark"] .dropdown-menu,
body[data-theme="dark"] .article-body,
body[data-theme="dark"] .breadcrumb,
body[data-theme="dark"] .data-table th,
body[data-theme="dark"] .data-table td,
body[data-theme="dark"] .callout {
  background: var(--surface-dark);
  border-color: var(--border-dark);
}
body[data-theme="dark"] .site-header {
  background: #0A1628;
  border-color: rgba(255, 209, 51, 0.12);
  box-shadow: 0 3px 0 rgba(255, 209, 51, 0.12);
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--color-primary-dark);
  margin: 0 0 var(--sp-16);
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); margin-top: var(--sp-48); }
h3 { font-size: var(--fs-lg); margin-top: var(--sp-32); }
p { margin: 0 0 var(--sp-16); color: var(--color-text); }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent-dark); text-decoration: underline; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: var(--sp-8); }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-16);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 4px solid #f3ba29;
  box-shadow: none;
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-16);
  padding: var(--sp-16) 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-primary-dark);
  white-space: nowrap;
  text-decoration: none;
}
.brand-mark {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #112644;
  position: relative;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.08);
  overflow: hidden;
}
.brand-mark::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 10px;
  bottom: 14px;
  border-radius: 12px;
  background: #f4ba2b;
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 11px;
  height: 12px;
  border: 4px solid #112644;
  border-top: none;
  border-radius: 0 0 16px 16px;
  background: transparent;
}
.brand-mark-letter {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f4ba2b;
  color: #112644;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 1.05rem;
  line-height: 1;
  box-shadow: inset 0 0 0 2px rgba(17,38,68,0.12);
}
.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(1.5rem, 2vw, 2.3rem);
  letter-spacing: -0.06em;
  line-height: 1;
  color: #111827;
}
.brand-name {
  color: #111827;
}
.brand-divider {
  color: #111827;
}
.brand-name-accent {
  color: #111827;
}
.brand:hover, .brand:focus-visible { text-decoration: none; }

.nav-main { display: flex; align-items: center; gap: var(--sp-24); }
.nav-links > li > a, .nav-links > li > button {
  color: var(--color-text);
}
.nav-links > li > a[aria-current="page"],
.nav-links > li.has-active > button {
  color: var(--color-primary-dark);
}
.nav-links > li > a[aria-current="page"]::after,
.nav-links > li.has-active > button::after {
  background: var(--color-accent);
}
.dropdown-menu {
  background: var(--color-surface);
  border-color: var(--color-border);
}
.dropdown-menu a {
  color: var(--color-text);
}
.dropdown-menu a:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
}
.lang-switch a {
  border-color: var(--color-border);
  color: var(--color-text-muted);
  background: transparent;
}
.lang-switch a[aria-current="true"] {
  background: var(--color-accent);
  color: #111827;
  border-color: var(--color-accent);
}

.nav-main { display: flex; align-items: center; gap: var(--sp-24); }
.nav-links { display: flex; align-items: center; gap: var(--sp-24); list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; margin: 0; }
.nav-links > li > a, .nav-links > li > button {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--fs-sm);
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-8) 0;
  position: relative;
}
.nav-links > li > a[aria-current="page"],
.nav-links > li.has-active > button {
  color: var(--color-primary-dark);
}
.nav-links > li > a[aria-current="page"]::after,
.nav-links > li.has-active > button::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-accent);
}
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--sp-8);
  list-style: none;
  margin: var(--sp-8) 0 0;
}
.dropdown.open .dropdown-menu,
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li { margin: 0; }
.dropdown-menu a {
  display: block;
  padding: var(--sp-8) var(--sp-12);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: var(--fs-sm);
}
.dropdown-menu a:hover { background: var(--color-bg-alt); text-decoration: none; color: var(--color-primary-dark); }

.lang-switch { display: none !important; }
.lang-switch a {
  display: none !important;
}
.lang-switch a[aria-current="true"] { display: none !important; }
.lang-switch a:hover { text-decoration: none; }

.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  width: 40px; height: 40px;
  cursor: pointer;
}
.hamburger span { display: block; width: 18px; height: 2px; background: var(--color-primary-dark); margin: 4px auto; }

.mobile-panel {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 200;
  padding: var(--sp-16);
  overflow-y: auto;
}
.mobile-panel.open { display: block; }
.mobile-panel .panel-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-24); }
.mobile-panel ul { list-style: none; padding: 0; margin: 0; }
.mobile-panel > ul > li { border-bottom: 1px solid var(--color-border); }
.mobile-panel a, .mobile-panel button {
  display: block; width: 100%; text-align: left;
  padding: var(--sp-12) 0; font-size: var(--fs-md);
  background: none; border: none; color: var(--color-text); font-family: var(--font-body); cursor: pointer;
}
.mobile-panel .sub-list { padding-left: var(--sp-16); display: none; }
.mobile-panel .sub-list.open { display: block; }
.mobile-panel .close-btn { background: none; border: none; font-size: var(--fs-xl); cursor: pointer; color: var(--color-primary-dark); }
body.scroll-lock { overflow: hidden; }

@media (max-width: 768px) {
  .nav-main { display: none; }
  .hamburger { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #FFF6DC 0%, var(--color-bg) 100%);
  padding: var(--sp-64) 0 var(--sp-48);
}
.hero .eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: var(--color-accent);
  padding: var(--sp-4) var(--sp-12);
  border-radius: var(--radius-sm);
  margin-bottom: var(--sp-16);
}
.hero-subhead { font-size: var(--fs-md); color: var(--color-text-muted); max-width: 640px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-48); align-items: start; }
@media (max-width: 768px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  padding: var(--sp-12) var(--sp-24);
  border-radius: var(--radius-md);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition-base), border-color var(--transition-base), color var(--transition-base);
  text-decoration: none;
}
.btn-primary { background: var(--color-accent); color: var(--color-primary-dark); }
.btn-primary:hover { background: var(--color-accent-dark); color: var(--color-primary-dark); text-decoration: none; }
.btn-secondary { background: transparent; border-color: var(--color-accent); color: var(--color-accent); }
.btn-secondary:hover { background: var(--color-accent); color: var(--color-primary-dark); text-decoration: none; }
.btn-block { width: 100%; }

/* ---------- Cards ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-24);
  transition: box-shadow var(--transition-base);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-icon { color: var(--color-primary); margin-bottom: var(--sp-12); }
.card h3 { margin-top: 0; font-size: var(--fs-md); }
.card p { color: var(--color-text-muted); margin-bottom: 0; font-size: var(--fs-sm); }

.feature-card {
  overflow: hidden;
  padding: 0;
  content-visibility: auto;
  contain-intrinsic-size: 640px 420px;
}
.feature-image {
  width: 100%;
  height: auto;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  background: #eef2f6;
}
.feature-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.page-hero-image {
  width: min(100%, 520px);
  margin: 24px 0 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #eef2f6;
}
.page-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.feature-copy {
  padding: 24px 28px 28px;
}
.feature-copy h3 {
  margin-top: 0;
  margin-bottom: 10px;
}
.feature-copy p {
  margin-bottom: 12px;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.feature-copy ul {
  padding-left: 18px;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
}
.feature-copy li {
  margin-bottom: 10px;
}

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-24); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-24); }
.section-alt .grid-2 { justify-items: center; text-align: center; }
.section-alt .grid-2 li { width: 100%; }
.section-alt .grid-2 li a { display: inline-flex; justify-content: center; width: auto; }
@media (max-width: 768px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

section {
  padding: var(--sp-48) 0;
  content-visibility: auto;
  contain-intrinsic-size: 900px 440px;
}
.section-alt { background: var(--color-bg-alt); }
.section-intro { max-width: 720px; margin: 0 auto var(--sp-32); text-align: center; }
.section-intro h2 { margin-top: 0; }
.section-intro p { color: var(--color-text-muted); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: var(--sp-16) 0 0; font-size: var(--fs-xs); color: var(--color-text-muted); }
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb .sep { margin: 0 var(--sp-8); }
.breadcrumb .current { color: var(--color-text); font-weight: var(--fw-medium); }

/* ---------- Calculator form ---------- */
.calc-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--sp-32);
}
.field { margin-bottom: var(--sp-16); }
.field label { display: block; font-size: var(--fs-sm); font-weight: var(--fw-semibold); margin-bottom: var(--sp-8); color: var(--color-primary-dark); }
.field input[type="number"],
.field select {
  width: 100%;
  padding: var(--sp-12);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-base);
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
}
.field input:focus, .field select:focus { border-color: var(--color-primary); }
.radio-group { display: flex; flex-wrap: wrap; gap: var(--sp-8); }
.radio-pill {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: var(--sp-8) var(--sp-16);
  font-size: var(--fs-sm);
  cursor: pointer;
  user-select: none;
}
.radio-pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-pill:has(input:checked) { background: var(--color-primary); color: var(--color-text-inverse); border-color: var(--color-primary); }

.result-panel {
  margin-top: var(--sp-24);
  background: rgba(255,201,51,0.16);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: var(--sp-24);
  display: none;
}
.result-panel.show { display: block; }
.result-amount { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: var(--fw-bold); color: var(--color-primary-dark); margin: 0 0 var(--sp-8); }
.result-breakdown { font-size: var(--fs-sm); color: var(--color-text-muted); border-top: 1px dashed var(--color-border); margin-top: var(--sp-16); padding-top: var(--sp-16); }
.result-breakdown div { display: flex; justify-content: space-between; padding: var(--sp-4) 0; }
.result-disclaimer { font-size: var(--fs-xs); color: var(--color-text-muted); margin-top: var(--sp-16); margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: var(--sp-16) 0;
  font-weight: var(--fw-semibold);
  color: var(--color-primary-dark);
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: var(--fs-lg); color: var(--color-accent-dark); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding-bottom: var(--sp-16); color: var(--color-text-muted); }

/* ---------- CTA ---------- */
.cta-band {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-lg);
  padding: var(--sp-32);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-24); flex-wrap: wrap;
}
.cta-band h3 { color: var(--color-text-inverse); margin: 0; }
.cta-band .btn-secondary { border-color: var(--color-text-inverse); color: var(--color-text-inverse); }
.cta-band .btn-secondary:hover { background: var(--color-text-inverse); color: var(--color-primary); }

/* ---------- Tables ---------- */
.data-table { width: 100%; border-collapse: collapse; margin: var(--sp-24) 0; font-size: var(--fs-sm); }
.data-table th, .data-table td { text-align: left; padding: var(--sp-12); border-bottom: 1px solid var(--color-border); }
.data-table th { background: var(--color-bg-alt); color: var(--color-primary-dark); font-weight: var(--fw-semibold); }
.data-table tr:hover td { background: var(--color-bg-alt); }
.table-scroll { overflow-x: auto; }
.table-scroll .data-table { min-width: 480px; }

/* ---------- Article ---------- */
.article-body { max-width: 760px; margin: 0 auto; }
.article-body h2 { font-size: var(--fs-xl); }
.callout {
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-secondary);
  border-radius: var(--radius-sm);
  padding: var(--sp-16) var(--sp-24);
  margin: var(--sp-24) 0;
}
.callout p:last-child { margin-bottom: 0; }
.placeholder { color: var(--color-error); font-weight: var(--fw-semibold); }

/* ---------- Info Table (blog pages) ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-24) 0;
  font-size: var(--fs-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.info-table th,
.info-table td {
  text-align: left;
  padding: var(--sp-12) var(--sp-16);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  line-height: 1.5;
}
.info-table th {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.info-table tr:last-child td { border-bottom: none; }
.info-table tr:nth-child(even) td { background: var(--color-bg-alt); }
.info-table tr:hover td { background: #FFF3CC; }

/* Table scroll wrapper – auto-applied on mobile */
.info-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--sp-24) 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.info-table-wrap .info-table {
  margin: 0;
  border: none;
  border-radius: 0;
  min-width: 480px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--color-primary-dark); color: rgba(255,255,255,0.82); padding: var(--sp-64) 0 var(--sp-32); margin-top: var(--sp-64); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-32); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: var(--color-text-inverse); font-family: var(--font-body); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--sp-16); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--sp-8); }
.site-footer a { color: rgba(255,255,255,0.75); font-size: var(--fs-sm); }
.site-footer a:hover { color: var(--color-text-inverse); }
.footer-brand { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-md); color: var(--color-text-inverse); margin-bottom: var(--sp-8); }
.footer-tagline { font-size: var(--fs-sm); color: rgba(255,255,255,0.65); max-width: 260px; }
.footer-contact { margin-top: var(--sp-16); font-size: var(--fs-sm); color: rgba(255,255,255,0.9); }
.footer-contact a { color: rgba(255,255,255,0.95); text-decoration: underline; }
.footer-contact a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: var(--sp-48);
  padding-top: var(--sp-24);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.55);
  display: flex; justify-content: space-between; gap: var(--sp-16); flex-wrap: wrap;
}

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: var(--sp-96) 0; }
.error-code { font-family: var(--font-display); font-size: 6rem; color: var(--color-accent); margin: 0; line-height: 1; }

/* ---------- field-hint ---------- */
.field-hint {
  display: block;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-top: var(--sp-4);
  line-height: 1.5;
}

/* ---------- Checkbox label (traktor exempt) ---------- */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--color-primary);
  cursor: pointer;
  flex-shrink: 0;
}
.checkbox-label input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.checkbox-label span { flex: 1; }

/* ---------- Select mobile fix ---------- */
.field select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

@media (max-width: 768px) {
  .calc-panel { padding: var(--sp-20) var(--sp-16); }
  .field select { font-size: 16px; } /* prevents iOS zoom on focus */
  .field input[type="number"] { font-size: 16px; } /* prevents iOS zoom */
}

@media (max-width: 480px) {
  .container { padding-left: 12px; padding-right: 12px; }
  .nav-bar { padding-top: 12px; padding-bottom: 12px; }
  .brand-mark { width: 44px; height: 44px; border-radius: 12px; }
  .brand-mark::before { left: 7px; right: 7px; top: 8px; bottom: 12px; }
  .brand-mark::after { left: 13px; right: 13px; bottom: 9px; }
  .brand-mark-letter { width: 22px; height: 22px; }
  .brand-text { font-size: 1.12rem; }
  .btn { width: 100%; }
  .radio-group { display: grid; grid-template-columns: 1fr 1fr; }
  .radio-pill { text-align: center; padding-left: var(--sp-8); padding-right: var(--sp-8); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-24); }
  .result-breakdown div { flex-direction: column; gap: 2px; }
  .result-breakdown div span:last-child,
  .result-breakdown div strong:last-child { font-weight: var(--fw-semibold); color: var(--color-primary-dark); }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .checkbox-label { gap: 8px; }

  /* Article on very small screens */
  h1 { font-size: clamp(1.4rem, 7.5vw, 2rem); }
  h2 { font-size: clamp(1.15rem, 5.5vw, 1.5rem); }
  h3 { font-size: clamp(1rem, 4.5vw, 1.2rem); }
  .article-body { padding: 0; }
  .section-intro { font-size: var(--fs-sm); }

  /* Info table tiny screens */
  .info-table { font-size: 0.72rem; }
  .info-table th,
  .info-table td { padding: 8px 10px; }

  /* Callout padding */
  .callout { padding: var(--sp-12) var(--sp-16); }

  /* Blog cards */
  .card { padding: var(--sp-16); }
  .grid-2 .card h3 { font-size: var(--fs-base); }
  .grid-2 .card p { font-size: var(--fs-sm); }
}
