/* ============================================================
   Pfotli — Stylesheet
   Warme, vertrauenswürdige Pet-Palette. Mobile-first.
   ============================================================ */

:root {
  --green:        #2F5D50;
  --green-dark:   #234539;
  --green-light:  #E8F0EC;
  --sand:         #F7F3EC;
  --cream:        #FCFAF6;
  --ink:          #1E2420;
  --muted:        #5C6660;
  --line:         #E3DED4;
  --accent:       #E08A3C;  /* CTA / „Preis prüfen“ */
  --accent-dark:  #C2722B;
  --star:         #E0A93C;
  --radius:       14px;
  --shadow:       0 2px 8px rgba(35, 69, 57, .07);
  --shadow-lg:    0 8px 28px rgba(35, 69, 57, .12);
  --maxw:         1080px;
  --font-head:    "Fraunces", Georgia, serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--green-dark); font-weight: 600; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 1.8em 0 .6em; }
h3 { font-size: 1.25rem; margin: 1.4em 0 .4em; }

p { margin: 0 0 1em; }
a { color: var(--green); text-decoration-color: rgba(47,93,80,.35); text-underline-offset: 2px; }
a:hover { color: var(--green-dark); }

img { max-width: 100%; height: auto; display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--green); color: #fff;
  padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------------- Header / Nav ---------------- */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.site-header__logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--green-dark); text-decoration: none; }
.site-header__logo-icon { font-size: 1.3rem; }

.site-nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; }
.site-nav__icon, .site-nav__icon::before, .site-nav__icon::after {
  display: block; width: 24px; height: 2px; background: var(--green-dark); position: relative; margin-inline: auto; transition: .2s;
}
.site-nav__icon::before, .site-nav__icon::after { content: ""; position: absolute; left: 0; }
.site-nav__icon::before { top: -7px; } .site-nav__icon::after { top: 7px; }

.site-nav__list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav__list a { display: inline-block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .96rem; }
.site-nav__list a:hover { background: var(--green-light); color: var(--green-dark); }
.site-nav__list a[aria-current="page"] { background: var(--green); color: #fff; }

@media (max-width: 860px) {
  .site-nav__toggle { display: block; }
  .site-nav__list {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; box-shadow: var(--shadow);
    display: none;
  }
  .site-nav__list.is-open { display: flex; }
  .site-nav__list a { display: block; padding: 12px 8px; border-radius: 8px; }
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 10px;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; border: 0; transition: .15s; line-height: 1.1;
}
.btn--cta { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn--cta:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--green-dark); border: 1.5px solid var(--green); }
.btn--ghost:hover { background: var(--green-light); }
.btn--block { display: flex; width: 100%; justify-content: center; }

/* ---------------- Hero ---------------- */
.hero { background: linear-gradient(180deg, var(--green-light), var(--cream)); padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.lead { font-size: 1.12rem; color: var(--muted); }

/* ---------------- Cards / grids ---------------- */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 820px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); transition: .15s; display: block; text-decoration: none; color: inherit;
}
a.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--green); }
.card h3 { margin-top: 0; }
.card__meta { color: var(--muted); font-size: .9rem; }

/* ---------------- Verdict / Top-Pick box ---------------- */
.verdict { background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 24px 0; }
.verdict__badge { display: inline-block; background: var(--green); color: #fff; font-size: .8rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; letter-spacing: .02em; }
.stars { color: var(--star); letter-spacing: 1px; }

/* Product / Futter rows */
.product { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 14px 0; box-shadow: var(--shadow); }
.product__rank { font-family: var(--font-head); font-weight: 700; color: var(--green); }
.product__cta { text-align: right; }
@media (max-width: 540px) { .product { grid-template-columns: 1fr; } .product__cta { text-align: left; } }

/* Affiliate hint inline */
.aff-hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }

/* ---------------- Tables ---------------- */
.table-wrap { overflow-x: auto; margin: 18px 0; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; background: #fff; border-radius: var(--radius); overflow: hidden; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--green-light); color: var(--green-dark); font-weight: 600; }

/* ---------------- Content article ---------------- */
.article { padding: 40px 0 56px; }
.article .container { max-width: 760px; }
.prose > * { max-width: 760px; }

/* ---------------- FAQ ---------------- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px 18px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; color: var(--green-dark); }

/* ---------------- Insurance slot ---------------- */
.insurance-slot { background: var(--green-light); border: 1px dashed var(--green); border-radius: var(--radius); padding: 22px; margin: 28px 0; }

/* ---------------- Calculator teaser ---------------- */
.teaser { background: var(--green); color: #fff; border-radius: var(--radius); padding: 26px; margin: 28px 0; }
.teaser h3 { color: #fff; margin-top: 0; }
.teaser a { color: #fff; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--green-dark); color: #d8e3dd; margin-top: 64px; }
.site-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding: 44px 20px 28px; }
@media (max-width: 760px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .site-footer__inner { grid-template-columns: 1fr; } }
.site-footer__brand { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; font-family: var(--font-head); color: #fff; }
.site-footer__heading { color: #fff; font-size: 1rem; margin: 0 0 12px; }
.site-footer__list { list-style: none; margin: 0; padding: 0; }
.site-footer__list li { margin-bottom: 8px; }
.site-footer__list a { color: #c3d2cb; text-decoration: none; font-size: .94rem; }
.site-footer__list a:hover { color: #fff; text-decoration: underline; }
.site-footer__tagline { color: #aebdb6; font-size: .94rem; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 20px 28px; font-size: .85rem; color: #9fb0a8; }
.site-footer__disclosure { font-size: .82rem; line-height: 1.5; margin-bottom: 10px; }

/* ---------------- Cookie-Consent ---------------- */
.cookie-consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(35,69,57,.12);
}
.cookie-consent__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 18px 20px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between;
}
.cookie-consent__text { flex: 1 1 420px; font-size: .92rem; color: var(--ink); line-height: 1.5; }
.cookie-consent__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-consent__actions .btn { padding: 10px 20px; }
@media (max-width: 520px) {
  .cookie-consent__actions { width: 100%; }
  .cookie-consent__actions .btn { flex: 1; justify-content: center; }
}

/* utilities */
.mt-0 { margin-top: 0; } .text-center { text-align: center; }
.section { padding: 40px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 600; color: var(--accent-dark); }
