/*
Theme Name: Fliegengatter Codex
Theme URI: https://fliegengatter.de
Author: Codex
Description: Affiliate-orientiertes Ratgeber-Theme fuer Fliegengitter, Pollenschutz und frische Luft.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: fliegengatter-codex
*/

:root {
  --ink: #17211c;
  --muted: #5c6a62;
  --leaf: #2f6b4f;
  --leaf-dark: #1d4936;
  --mint: #dff2e7;
  --sky: #dceff3;
  --pollen: #f4c95d;
  --paper: #fffdf8;
  --line: #d9e2dc;
  --shadow: 0 20px 45px rgba(23, 33, 28, .13);
  --radius: 8px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.58;
  overflow-x: hidden;
}

a { color: var(--leaf-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
img { max-width: 100%; display: block; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
}
.brand strong { font-size: 1.22rem; letter-spacing: 0; }
.brand span { color: var(--muted); font-size: .88rem; }
.menu { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.menu a {
  color: var(--ink);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
}
.menu a:hover { color: var(--leaf); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--leaf-dark);
  border-radius: var(--radius);
  background: var(--leaf-dark);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(29, 73, 54, .18);
}
.btn.secondary {
  background: #fff;
  color: var(--leaf-dark);
  box-shadow: none;
}

.hero {
  min-height: clamp(640px, 82vh, 860px);
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/hero-fliegengitter.webp") center right / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255,253,248,.96) 0%, rgba(255,253,248,.82) 38%, rgba(255,253,248,.18) 76%);
}
.hero-content {
  width: min(720px, 100%);
  padding: 110px 0 90px;
}
.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--leaf-dark);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}
h1, h2, h3 { line-height: 1.08; letter-spacing: 0; margin: 0; }
h1 { font-size: clamp(2.55rem, 5vw, 5.4rem); max-width: 780px; }
h1 span { display: block; }
h2 { font-size: clamp(2rem, 3.5vw, 3.35rem); }
h3 { font-size: 1.28rem; }
.lead { font-size: clamp(1.08rem, 1.8vw, 1.32rem); color: #334039; max-width: 670px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.trustbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trustbar div { background: #fff; padding: 22px; }
.trustbar strong { display: block; }
.trustbar span { color: var(--muted); font-size: .95rem; }

section { padding: 78px 0; }
.section-head { display: grid; gap: 14px; max-width: 780px; margin-bottom: 34px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 26px rgba(23, 33, 28, .06);
}
.card p { color: var(--muted); margin-bottom: 0; }
.card.compact { padding: 18px; }
.card.link-card { color: var(--ink); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.card.link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.metric { font-size: 2.15rem; line-height: 1; font-weight: 950; color: var(--leaf-dark); display: block; margin-bottom: 8px; }
.badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--leaf-dark);
  font-size: .78rem;
  font-weight: 900;
}
.product {
  display: grid;
  gap: 16px;
  min-height: 100%;
}
.product ul { margin: 0; padding-left: 19px; color: var(--muted); }
.price-note { color: var(--muted); font-size: .9rem; margin: 0; }
.affiliate-note {
  background: #1f2a24;
  color: #f8fff9;
  padding: 18px 0;
  font-size: .95rem;
}
.affiliate-note a { color: #dff2e7; }
.band {
  background: linear-gradient(135deg, var(--mint), var(--sky));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.content-band {
  background: #f7fbf8;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.expert-panel {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 32px;
  align-items: start;
}
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.checklist li {
  position: relative;
  padding: 14px 16px 14px 44px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 19px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--pollen) 0 35%, var(--leaf) 38% 100%);
}
.toc {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.toc a { font-weight: 800; text-decoration: none; }
.content-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
  align-items: start;
}
.prose {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 44px);
}
.prose h2 { margin-top: 34px; font-size: clamp(1.55rem, 2.6vw, 2.25rem); }
.prose h3 { margin-top: 24px; }
.prose p, .prose li { color: #39473f; }
.prose table { margin: 24px 0; }
.note {
  padding: 18px;
  border-left: 5px solid var(--pollen);
  background: #fff8df;
  border-radius: var(--radius);
}
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 900; }
.steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
}
.step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(47,107,79,.18);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--leaf-dark);
  color: #fff;
  font-weight: 900;
}
.compare { width: 100%; border-collapse: collapse; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.compare th, .compare td { padding: 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { background: #eef7f2; }
.article-list a {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 900;
  text-decoration: none;
}
.site-footer {
  padding: 42px 0;
  background: #132018;
  color: #eaf6ee;
}
.site-footer a { color: #eaf6ee; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; }

@media (max-width: 860px) {
  .nav { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .menu {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, max-content);
    gap: 8px 12px;
    overflow-x: visible;
    padding-bottom: 0;
  }
  .menu a { flex: 0 0 auto; font-size: .88rem; }
  .menu .btn.secondary { min-height: 36px; padding: 7px 11px; }
  .btn { white-space: nowrap; }
  .hero { min-height: auto; }
  .hero::after { background: linear-gradient(180deg, rgba(255,253,248,.96), rgba(255,253,248,.76)); }
  .hero-content { padding: 72px 0 58px; }
  h1 { font-size: clamp(1.82rem, 7.4vw, 2.15rem); line-height: 1.12; overflow-wrap: anywhere; }
  .lead { font-size: 1.02rem; overflow-wrap: anywhere; }
  .trustbar, .grid.three, .grid.two, .grid.four, .footer-grid, .expert-panel, .content-page, .pros-cons { grid-template-columns: 1fr; }
  section { padding: 54px 0; }
  .compare { font-size: .92rem; }
  .cmplz-cookiebanner {
    max-width: calc(100vw - 20px) !important;
    left: 10px !important;
    right: 10px !important;
  }
}
