/* ============================================================
   bestetierprodukte.de – MVP Stylesheet
   Farben abgeleitet vom Logo (Grün/Orange), Look: seriös & modern
   ============================================================ */

/* Inter lokal gehostet (siehe content/README-legal.md, Punkt 5): keine
   Verbindung zu fonts.googleapis.com beim Seitenaufruf, DSGVO-konform.
   Lizenz: SIL Open Font License 1.1, siehe assets/fonts/LICENSE-inter.txt. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/inter-latin-800-normal.woff2") format("woff2");
}

:root {
  --green-900: #1e4d2b;
  --green-700: #2e7d32;
  --green-500: #4c9a53;
  --green-100: #e9f4ea;
  --green-50:  #f4faf4;
  --orange:    #f28c1e;
  --orange-dark: #d97a10;
  --orange-50: #fef4e8;
  --ink:   #212a30;
  --muted: #64707a;
  --line:  #e4e8ea;
  --bg:    #f7f9f8;
  --white: #ffffff;
  --star:  #f5a623;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(20, 40, 30, .08), 0 4px 16px rgba(20, 40, 30, .06);
  --shadow-lg: 0 6px 28px rgba(20, 40, 30, .13);
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Topbar ---------- */
.topbar {
  background: var(--green-900);
  color: #d7e6da;
  font-size: 13px;
  padding: 6px 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar span { white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 52px; width: auto; }

.main-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.main-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--green-100);
  color: var(--green-900);
  text-decoration: none;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding: 14px 0 0;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--green-700); }

/* ---------- Hero (Startseite) ---------- */
.hero {
  background: linear-gradient(140deg, var(--green-900) 0%, var(--green-700) 70%, var(--green-500) 100%);
  color: var(--white);
  padding: 72px 0 80px;
}
.hero h1 {
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.15;
  font-weight: 800;
  max-width: 720px;
  letter-spacing: -.5px;
}
.hero h1 em { font-style: normal; color: #ffd9a8; }
.hero p {
  margin-top: 18px;
  font-size: 18px;
  max-width: 640px;
  color: #e4efe6;
}
.hero .cta-row { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: background .15s ease, transform .1s ease;
  cursor: pointer;
  border: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn-green { background: var(--green-700); color: #fff; }
.btn-green:hover { background: var(--green-900); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* Trust-Leiste */
.trustbar { background: var(--white); border-bottom: 1px solid var(--line); }
.trustbar .container {
  display: flex;
  justify-content: center;
  gap: 42px;
  padding: 16px 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.trustbar b { color: var(--green-900); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--white); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head .kicker {
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 13px;
}
.section-head h2 { font-size: clamp(24px, 3.2vw, 34px); margin-top: 8px; letter-spacing: -.4px; }
.section-head p { color: var(--muted); margin-top: 12px; }

/* Kategorien-Grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
}
.cat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink);
}
a.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.cat-card .icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--green-100);
  font-size: 26px;
}
.cat-card h3 { font-size: 18px; }
.cat-card p { font-size: 14px; color: var(--muted); flex: 1; }
.cat-card .link { color: var(--green-700); font-weight: 600; font-size: 14px; }
.cat-card.soon { opacity: .62; }
.badge-soon {
  align-self: flex-start;
  background: var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.badge-new {
  align-self: flex-start;
  background: var(--orange-50);
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: .6px;
}

/* Steps / So vergleichen wir */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px; }
.step { text-align: center; padding: 0 8px; }
.step .num {
  width: 46px; height: 46px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  font-weight: 800;
  font-size: 19px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* Teaser aktueller Vergleich */
.teaser {
  display: flex;
  gap: 36px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  flex-wrap: wrap;
}
.teaser .badge-winner-sm { margin-bottom: 10px; }
.teaser h3 { font-size: 24px; margin-bottom: 8px; }
.teaser p { color: var(--muted); max-width: 560px; }
.teaser .meta { display: flex; gap: 18px; margin: 14px 0 20px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
/* Sieger-Produktbild auf Kategorie-Karten (Reihenfolge: Bild links, Text rechts). */
.teaser-media { flex: 0 0 auto; order: -1; }
.teaser-media .p-img { width: 150px; height: 150px; margin: 0; font-size: 34px; }

/* ---------- Stars ---------- */
.stars { color: var(--star); letter-spacing: 2px; font-size: 15px; white-space: nowrap; }
.stars .dim { color: #d8dcde; }

/* ============================================================
   VERGLEICHSSEITE
   ============================================================ */

.page-title { padding: 26px 0 6px; }
.page-title h1 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.4px; line-height: 1.2; }
.page-title .sub { color: var(--muted); margin-top: 10px; max-width: 860px; font-size: 15.5px; }
.page-title .updated {
  display: inline-block;
  margin-top: 12px;
  background: var(--green-100);
  color: var(--green-900);
  font-size: 13px;
  font-weight: 600;
  border-radius: 99px;
  padding: 4px 12px;
}

/* Autorenzeile */
.byline { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.byline .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green-700); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}

/* ---------- Vergleichstabelle ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  margin: 26px 0 10px;
}
table.compare {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 1080px;
  font-size: 14px;
}
table.compare th, table.compare td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: center;
}
table.compare tr:last-child th, table.compare tr:last-child td { border-bottom: none; }

table.compare td.rowlabel, table.compare th.rowlabel {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  background: var(--green-50);
  position: sticky;
  left: 0;
  min-width: 168px;
  max-width: 190px;
  z-index: 2;
  border-right: 1px solid var(--line);
  font-size: 13.5px;
}

table.compare col.winner-col { background: var(--orange-50); }
table.compare col.value-col  { background: var(--green-50); }

.p-name { font-weight: 700; font-size: 14.5px; line-height: 1.35; }
.p-brand { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }

.badge-winner, .badge-value {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-radius: 4px;
  padding: 4px 8px;
  margin-bottom: 8px;
}
.badge-winner { background: var(--orange); color: #fff; }
.badge-value  { background: var(--green-700); color: #fff; }
.badge-winner-sm, .badge-value-sm {
  display: inline-block;
  font-size: 11px; font-weight: 800;
  border-radius: 4px; padding: 3px 8px;
  text-transform: uppercase; letter-spacing: .5px;
}
.badge-winner-sm { background: var(--orange); color: #fff; }
.badge-value-sm  { background: var(--green-700); color: #fff; }

.p-img {
  width: 92px; height: 92px;
  margin: 0 auto 10px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px;
  color: #fff;
}
.p-img.c1 { background: linear-gradient(135deg, var(--green-700), var(--green-500)); }
.p-img.c2 { background: linear-gradient(135deg, #4b6fae, #7c9fd4); }
.p-img.c3 { background: linear-gradient(135deg, #8e6cae, #b494d4); }
.p-img.c4 { background: linear-gradient(135deg, #b0873a, #d4b06a); }
.p-img.c5 { background: linear-gradient(135deg, #4e8f8b, #7cb8b4); }
.p-img.c6 { background: linear-gradient(135deg, #a05b52, #c98a80); }

/* Echtes Produktbild (products.image gesetzt) statt Farb-Platzhalter. */
.p-img.has-photo { background: #fff; border: 1px solid var(--line, #e6e6e6); padding: 6px; }
.p-img.has-photo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }

.grade { font-weight: 800; font-size: 18px; color: var(--green-900); }
.grade small { display: block; font-weight: 600; color: var(--muted); font-size: 11.5px; }
.grade .label {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-900);
  border-radius: 4px;
  font-size: 12px;
  padding: 2px 8px;
  margin-top: 4px;
  font-weight: 700;
}

.check { color: var(--green-700); font-weight: 700; }
.cross { color: #c0392b; font-weight: 700; }
.neutral { color: var(--muted); }

.ing-list { list-style: none; text-align: left; display: inline-block; font-size: 13px; }
.ing-list li::before { content: "• "; color: var(--green-700); font-weight: 700; }

td .price { font-weight: 800; font-size: 16px; }
td .price small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }

.table-note { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }

/* ---------- Inhaltsverzeichnis ---------- */
.toc {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green-700);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 34px 0;
}
.toc h2 { font-size: 17px; margin-bottom: 10px; }
.toc ol { margin-left: 20px; font-size: 15px; }
.toc li { margin: 5px 0; }

/* ---------- Bestenliste / Produktkarten ---------- */
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 130px 1fr 240px;
  gap: 28px;
  align-items: start;
}
.product-card.winner { border: 2px solid var(--orange); }
.product-card.value  { border: 2px solid var(--green-700); }

.product-card .p-img { width: 120px; height: 120px; margin: 0; font-size: 28px; }

.pc-body h3 { font-size: 20px; margin: 4px 0 6px; }
.pc-body .rank { font-size: 13px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
.pc-rating { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.pc-body .fazit { font-size: 15px; color: var(--ink); margin-bottom: 14px; }
.pc-body .fazit b { color: var(--green-900); }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; font-size: 14px; }
.pros-cons ul { list-style: none; }
.pros-cons li { padding-left: 22px; position: relative; margin: 4px 0; }
.pros-cons .pros li::before { content: "✓"; position: absolute; left: 0; color: var(--green-700); font-weight: 800; }
.pros-cons .cons li::before { content: "✕"; position: absolute; left: 0; color: #c0392b; font-weight: 800; }

.pc-aside { text-align: center; border-left: 1px solid var(--line); padding-left: 26px; }
.pc-aside .grade { font-size: 30px; }
.pc-aside .grade .label { font-size: 13px; }
.pc-aside .price-big { font-size: 22px; font-weight: 800; margin: 12px 0 2px; }
.pc-aside .price-big small { font-size: 12px; color: var(--muted); font-weight: 500; display: block; }
.pc-aside .btn { width: 100%; margin-top: 12px; }
.pc-aside .shipping { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ---------- Kaufberatung (Prose) ---------- */
.prose { max-width: 860px; }
.prose h2 { font-size: 26px; margin: 44px 0 14px; letter-spacing: -.3px; scroll-margin-top: 90px; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; scroll-margin-top: 90px; }
.prose p { margin: 12px 0; color: #37424a; }
.prose ul, .prose ol { margin: 12px 0 12px 22px; color: #37424a; }
.prose li { margin: 5px 0; }
.prose .infobox {
  background: var(--green-100);
  border-left: 4px solid var(--green-700);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 20px 0;
  font-size: 15px;
}
.prose .infobox b { color: var(--green-900); }
.prose table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 14.5px; }
.prose table th, .prose table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose table th { background: var(--green-50); }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 20px;
  list-style: none;
  position: relative;
  padding-right: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--green-700);
  font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 16px; color: #37424a; font-size: 15px; }

/* ---------- CTA-Banner ---------- */
.cta-banner {
  background: linear-gradient(140deg, var(--green-900), var(--green-700));
  border-radius: var(--radius);
  color: #fff;
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin: 48px 0;
}
.cta-banner h3 { font-size: 22px; }
.cta-banner p { color: #dcebde; font-size: 15px; margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: #b9cfbe;
  padding: 52px 0 24px;
  margin-top: 72px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.site-footer a { color: #b9cfbe; display: block; margin: 6px 0; }
.site-footer a:hover { color: #fff; }
.footer-brand img { height: 48px; margin-bottom: 12px; background: #fff; border-radius: 8px; padding: 4px 10px; }
.footer-note {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 20px;
  font-size: 12.5px;
  color: #8fae95;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .product-card { grid-template-columns: 100px 1fr; }
  .pc-aside {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 18px 0 0;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-header .container { height: auto; padding: 12px 20px; flex-wrap: wrap; gap: 10px; }
  .main-nav { margin-left: 0; }
  .product-card { grid-template-columns: 1fr; padding: 22px; }
  .pros-cons { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 56px; }
  .footer-grid { grid-template-columns: 1fr; }
}
