/* ==========================================================================
   deutsche-schadstoff-analyse.de — Encyclopedic Elegant
   Ivory · Dunkelgrün · Gold — Serifen-Headings, Sans-Fließtext
   ========================================================================== */

:root {
  --ivory: #f7f4ec;
  --ivory-deep: #efe9da;
  --ivory-card: #fbf9f3;
  --green: #1f4a38;
  --green-deep: #163628;
  --green-soft: #2c5f4a;
  --gold: #b08d3f;
  --gold-soft: #cdb277;
  --gold-pale: #e9ddc2;
  --ink: #2c2b25;
  --muted: #6d6858;
  --line: #ddd5c1;
  --serif: Georgia, "Charter", "Iowan Old Style", "Palatino", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

/* ---------- Skip-Link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: var(--ivory);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Typografie ---------- */
h1, h2, h3, .brand {
  font-family: var(--serif);
  color: var(--green);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(1.75rem, 4.5vw, 2.6rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.17rem; margin: 1.75rem 0 0.5rem; }
p { margin: 0 0 1rem; }

a { color: var(--green); text-decoration-color: var(--gold-soft); text-underline-offset: 3px; }
a:hover, a:focus { color: var(--green-deep); text-decoration-color: var(--gold); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.lead { font-size: 1.15rem; color: var(--ink); }

/* Goldene Zierlinie unter H2 */
.rule::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  background: var(--gold);
  margin-top: 0.5rem;
}

/* Initiale im Lexikon-Stil */
.dropcap::first-letter {
  font-family: var(--serif);
  font-size: 3.1em;
  line-height: 0.85;
  float: left;
  padding: 0.06em 0.12em 0 0;
  color: var(--green);
  font-weight: 700;
}

/* ---------- Header & Navigation ---------- */
.site-header {
  background: var(--green);
  color: var(--ivory);
  border-bottom: 4px solid var(--gold);
}
.header-inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand { display: flex; flex-direction: column; text-decoration: none; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: 0.01em;
}
.brand-sub {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-top: 0.15rem;
}

.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--gold-soft);
  border-radius: 4px;
  color: var(--ivory);
  font-size: 0.9rem;
  user-select: none;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
}
.site-nav a {
  color: var(--ivory);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a:focus, .site-nav a[aria-current="page"] {
  color: var(--gold-soft);
  border-bottom-color: var(--gold);
}

@media (max-width: 800px) {
  .nav-toggle-label { display: inline-block; }
  .site-nav {
    flex-basis: 100%;
    display: none;
  }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 0 0.25rem; }
  .site-nav li { border-top: 1px solid rgba(247, 244, 236, 0.15); }
  .site-nav a { display: block; padding: 0.6rem 0.25rem; }
}

/* ---------- Layout ---------- */
main {
  max-width: 68rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}
.article-narrow { max-width: 50rem; }

.page-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.breadcrumbs li + li::before { content: "›"; margin-right: 0.35rem; color: var(--gold); }
.breadcrumbs a { color: var(--muted); }

/* ---------- Hinweis-/Disclaimer-Boxen ---------- */
.notice {
  font-size: 0.86rem;
  color: var(--muted);
  border-left: 3px solid var(--gold-soft);
  background: var(--ivory-card);
  padding: 0.6rem 0.9rem;
  margin: 0 0 1.75rem;
}

.kurzantwort {
  background: var(--ivory-card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 1.1rem 1.3rem;
  margin: 1.25rem 0 1.75rem;
}
.kurzantwort p:last-child { margin-bottom: 0; }
.kurzantwort .eyebrow { margin-bottom: 0.35rem; }

.safety {
  background: var(--ivory-card);
  border: 2px solid var(--gold);
  padding: 1.25rem 1.4rem;
  margin: 1.75rem 0;
}
.safety h3 { margin-top: 0; }
.safety ol, .safety ul { margin: 0.5rem 0 0.75rem; padding-left: 1.3rem; }
.safety li { margin-bottom: 0.4rem; }
.safety p:last-child { margin-bottom: 0; font-weight: 600; }

/* ---------- CTA ---------- */
.cta-box {
  background: var(--green);
  color: var(--ivory);
  padding: 1.4rem 1.5rem;
  margin: 2.25rem 0;
  border-left: 5px solid var(--gold);
}
.cta-box h3, .cta-box h2 { color: var(--ivory); margin-top: 0; }
.cta-box p { color: var(--ivory); }
.cta-box a.cta-link {
  display: inline-block;
  background: var(--gold);
  color: var(--green-deep);
  font-weight: 700;
  text-decoration: none;
  padding: 0.65rem 1.25rem;
  border-radius: 3px;
  margin-top: 0.25rem;
}
.cta-box a.cta-link:hover, .cta-box a.cta-link:focus { background: var(--gold-soft); color: var(--green-deep); }
.cta-box .cta-small { font-size: 0.82rem; color: var(--gold-pale); margin: 0.75rem 0 0; }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); background: var(--ivory-card); }
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
  font-size: 0.92rem;
}
caption {
  caption-side: top;
  text-align: left;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--green);
  padding: 0.75rem 0.9rem 0.4rem;
  font-size: 1.02rem;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.9rem;
  border-top: 1px solid var(--line);
}
thead th {
  background: var(--green);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: none;
}
tbody tr:nth-child(even) { background: var(--ivory-deep); }
tbody th { font-family: var(--serif); color: var(--green); font-size: 1rem; }

/* Kurzprofil-Tabelle (Steckbrief-Kopf) */
.profile-table table { min-width: 0; }
.profile-table th { width: 34%; background: none; color: var(--green); font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Kachel-Grid (Steckbriefe) ---------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 1.1rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}
.tile {
  background: var(--ivory-card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  padding: 1.1rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
}
.tile h3 { margin: 0.1rem 0 0.4rem; }
.tile h3 a { text-decoration: none; }
.tile h3 a:hover, .tile h3 a:focus { text-decoration: underline; text-decoration-color: var(--gold); }
.tile p { font-size: 0.9rem; color: var(--muted); margin: 0 0 0.75rem; }
.tile .tile-num {
  font-family: var(--serif);
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tile .tile-more { margin-top: auto; font-size: 0.88rem; font-weight: 600; }

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
.badge-yes { background: var(--green); color: var(--ivory); }
.badge-soon { background: var(--gold-pale); color: var(--green-deep); }
.badge-info { background: var(--ivory-deep); color: var(--muted); border: 1px solid var(--line); }

/* ---------- FAQ ---------- */
.faq { margin-top: 1rem; }
.faq h3 {
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  margin-top: 1.1rem;
}
.faq h3:first-of-type { border-top: none; margin-top: 0.5rem; }

/* ---------- Listen ---------- */
main ul, main ol { padding-left: 1.4rem; margin: 0 0 1.25rem; }
main li { margin-bottom: 0.45rem; }
ol.steps { counter-reset: step; list-style: none; padding-left: 0; }
ol.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 2.6rem;
  margin-bottom: 0.9rem;
}
ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--ivory);
  font-family: var(--serif);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* ---------- Definition Lists ---------- */
dl.deflist dt { font-family: var(--serif); font-weight: 700; color: var(--green); margin-top: 0.9rem; }
dl.deflist dd { margin: 0.15rem 0 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-deep);
  color: var(--ivory);
  border-top: 4px solid var(--gold);
  margin-top: 2rem;
}
.footer-inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 2.25rem;
  font-size: 0.88rem;
}
.footer-cols { display: flex; flex-wrap: wrap; gap: 2rem 3.5rem; margin-bottom: 1.5rem; }
.footer-cols h2 {
  font-size: 0.78rem;
  font-family: var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 0.6rem;
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 0.35rem; }
.footer-cols a { color: var(--ivory); text-decoration: none; }
.footer-cols a:hover, .footer-cols a:focus { color: var(--gold-soft); text-decoration: underline; }
.footer-byline {
  border-top: 1px solid rgba(247, 244, 236, 0.2);
  padding-top: 1.1rem;
  color: var(--gold-pale);
}
.footer-byline p { margin: 0 0 0.3rem; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 4rem 1rem; }
.error-page .big {
  font-family: var(--serif);
  font-size: 5rem;
  color: var(--gold);
  margin: 0;
  line-height: 1;
}

/* ---------- Kleinigkeiten ---------- */
hr { border: none; border-top: 1px solid var(--line); margin: 2.25rem 0; }
.small { font-size: 0.86rem; color: var(--muted); }
strong { color: var(--green-deep); }

@media (max-width: 480px) {
  body { font-size: 1rem; }
  main { padding: 1.5rem 1rem 2.5rem; }
}
