/* ==========================================================================
   balkenrasenmaeher.de - Ratgeber-Magazin mit Produktboxen
   Fonts lokal (DSGVO): Bricolage Grotesque (Display) + DM Sans (Text)
   ========================================================================== */

@font-face { font-family:'Bricolage'; src:url(/fonts/bricolage-800.woff2) format('woff2'); font-weight:800; font-display:swap; }
@font-face { font-family:'Bricolage'; src:url(/fonts/bricolage-700.woff2) format('woff2'); font-weight:700; font-display:swap; }
@font-face { font-family:'DM Sans'; src:url(/fonts/dm-sans-400.woff2) format('woff2'); font-weight:400; font-display:swap; }
@font-face { font-family:'DM Sans'; src:url(/fonts/dm-sans-500.woff2) format('woff2'); font-weight:500; font-display:swap; }
@font-face { font-family:'DM Sans'; src:url(/fonts/dm-sans-700.woff2) format('woff2'); font-weight:700; font-display:swap; }

:root {
  --bg:        #fbfaf7;
  --bg-soft:   #f2f1e8;
  --ink:       #1b1e17;
  --muted:     #5c6154;
  --accent:    #2f7d32;   /* Wiesengrün */
  --accent-dark:#245f27;
  --accent-soft:#e6efe2;
  --cta:       #dd7b18;   /* Amazon-CTA, warm */
  --cta-dark:  #c26910;
  --border:    #e4e2d6;
  --star:      #e6a52c;
  --shadow:    18px 30px 60px -30px rgba(36,60,30,.35);
  --r:  14px;
  --r-sm: 9px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-underline-offset: 2px; }

h1, h2, h3, .brand {
  font-family: 'Bricolage', 'DM Sans', sans-serif;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { max-width: 68ch; }

.wrap { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 20px; }

.skip { position: absolute; left: 16px; top: -60px; background: var(--accent-dark); color: #fff; padding: 8px 16px; border-radius: 0 0 8px 8px; z-index: 1000; text-decoration: none; transition: top .2s; }
.skip:focus { top: 0; }

/* ---------- Header / Nav ---------- */
.site-head { position: sticky; top: 0; z-index: 100; background: rgba(251,250,247,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.brand { font-size: 1.35rem; text-decoration: none; color: var(--ink); letter-spacing: -0.03em; }
.brand span { color: var(--accent); }
.brand em { font-style: normal; color: var(--muted); font-weight: 700; }
.mainnav { display: flex; gap: 6px; flex-wrap: wrap; }
.mainnav a { font-family:'DM Sans'; font-weight: 500; font-size: .95rem; color: var(--ink); text-decoration: none; padding: 7px 12px; border-radius: 8px; transition: background .18s, color .18s; }
.mainnav a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.nav-cb { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nav-burger { display: none; align-items: center; justify-content: center; width: 46px; height: 40px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg); cursor: pointer; }
.nav-burger span { position: relative; display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-burger span::before, .nav-burger span::after { content: ''; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-burger span::before { top: -7px; }
.nav-burger span::after { top: 7px; }

/* ---------- Affiliate-Hinweis ---------- */
.affiliate-hint { margin: 14px 0 0; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--bg-soft); font-size: .9rem; }
.affiliate-hint summary { cursor: pointer; padding: 10px 14px; font-weight: 500; color: var(--muted); list-style: none; }
.affiliate-hint summary::-webkit-details-marker { display: none; }
.affiliate-hint summary::before { content: 'i'; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 9px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; font-style: italic; }
.affiliate-hint-body { padding: 0 14px 12px 41px; color: var(--muted); }
.affiliate-hint-body p { max-width: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family:'DM Sans'; font-weight: 700; font-size: 1rem; text-decoration: none; padding: 13px 22px; border-radius: 10px; border: 0; cursor: pointer; transition: transform .18s var(--ease), background .18s, box-shadow .18s; text-align: center; }
.btn-cta { background: var(--cta); color: #fff; box-shadow: 0 8px 20px -10px var(--cta); }
.btn-cta:hover { background: var(--cta-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--accent-dark); border: 1.5px solid var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-small { padding: 8px 14px; font-size: .9rem; border-radius: 8px; }
.btn-disabled { background: #e7e5da; color: var(--muted); cursor: not-allowed; box-shadow: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 40px; }
.hero::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 100%; background: radial-gradient(80% 120% at 12% 0%, var(--accent-soft) 0%, transparent 60%); z-index: -1; }
.hero .wrap { display: grid; gap: 22px; }
.hero-kicker { font-weight: 700; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.9rem); max-width: 16ch; }
.hero h1 mark { background: linear-gradient(180deg, transparent 62%, var(--accent-soft) 62%); color: inherit; padding: 0 .05em; }
.hero-lead { font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: var(--muted); max-width: 60ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.hero-trust { display: flex; gap: 8px 20px; flex-wrap: wrap; margin-top: 8px; color: var(--muted); font-size: .92rem; font-weight: 500; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Page-Load-Fade */
.hero-kicker, .hero h1, .hero-lead, .hero-actions, .hero-trust { animation: rise .7s var(--ease) both; }
.hero h1 { animation-delay: .05s; }
.hero-lead { animation-delay: .1s; }
.hero-actions { animation-delay: .15s; }
.hero-trust { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto; } }

/* ---------- Sektionen ---------- */
section { padding-block: 46px; }
.section-head { margin-bottom: 26px; max-width: 62ch; }
.section-head .kicker { color: var(--accent-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; }
.section-head p { color: var(--muted); margin-top: 8px; }
.bg-soft { background: var(--bg-soft); border-block: 1px solid var(--border); }

/* ---------- Kaufkriterien (keine Card-Suppe: Linien-Liste) ---------- */
.kriterien { display: grid; gap: 2px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.kriterium { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; background: var(--bg); padding: 18px 20px; }
.kriterium .num { font-family:'Bricolage'; font-weight: 800; font-size: 1.15rem; color: var(--accent); }
.kriterium h3 { margin-bottom: 3px; }
.kriterium p { color: var(--muted); font-size: .97rem; max-width: none; }

/* ---------- Produktboxen ---------- */
.pliste { display: grid; gap: 20px; }
.pbox { position: relative; display: grid; grid-template-columns: 200px 1fr 230px; gap: 22px; align-items: center; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; transition: transform .2s var(--ease), border-color .2s, box-shadow .3s var(--ease); }
.pbox:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.pbox-rank { padding-left: 26px; }
.pbox-rank-badge { position: absolute; top: 16px; left: -14px; width: 40px; height: 40px; display: grid; place-items: center; background: var(--accent); color: #fff; font-family:'Bricolage'; font-weight: 800; font-size: 1.15rem; border-radius: 50%; box-shadow: 0 6px 16px -6px var(--accent-dark); }
.pbox-media img, .pbox-media-ph { width: 100%; aspect-ratio: 1; border-radius: var(--r-sm); }
.pbox-media img { object-fit: contain; background: #fff; border: 1px solid var(--border); }
.pbox-media-ph { display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--bg-soft) 0 12px, #eceadf 12px 24px); color: var(--muted); font-size: .82rem; border: 1px dashed var(--border); }
.pbox-badge { display: inline-block; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; font-size: .78rem; padding: 4px 10px; border-radius: 999px; margin-bottom: 8px; }
.pbox-marke { color: var(--muted); font-size: .85rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.pbox-name { font-size: 1.22rem; margin: 2px 0 8px; }
.pbox-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: .92rem; }
.pbox-rating-wert { font-weight: 700; }
.pbox-rating-anzahl { color: var(--muted); }
.pbox-highlights { list-style: none; padding: 0; display: grid; gap: 5px; }
.pbox-highlights li { position: relative; padding-left: 24px; font-size: .96rem; color: #33372c; }
.pbox-highlights li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.pbox-cta { display: grid; gap: 8px; justify-items: stretch; text-align: center; }
.pbox-tag, .pbox-preis { display: inline-block; font-size: .85rem; color: var(--muted); font-weight: 500; }
.pbox-preis { font-family:'Bricolage'; font-weight: 700; color: var(--ink); font-size: 1.05rem; letter-spacing: .05em; }

.sterne { color: var(--star); letter-spacing: 1px; }
.stern.leer { color: #d9d6c8; }

/* ---------- Amazon-Produktbox (Modul, BEM-Klassen) ---------- */
.ab-product { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: start; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; margin-bottom: 4px; transition: border-color .2s, box-shadow .3s var(--ease), transform .2s var(--ease); }
.ab-product:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-3px); }
.ab-product__image img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: var(--r-sm); }
.ab-product__body { display: grid; gap: 9px; }
.ab-product__brand { color: var(--muted); font-size: .85rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; order: -1; }
.ab-product__title { font-size: 1.2rem; margin: 0; }
.ab-product__title a { color: var(--ink); text-decoration: none; }
.ab-product__title a:hover { color: var(--accent-dark); }
.ab-product__price { font-family: 'Bricolage', serif; font-weight: 700; font-size: 1.35rem; color: var(--ink); }
.ab-product__desc { color: #33372c; font-size: .97rem; margin: 0; }
.ab-product__proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 2px; }
.ab-product__pros-label, .ab-product__cons-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.ab-product__pros-label { color: var(--accent-dark); }
.ab-product__cons-label { color: #9a5b2a; }
.ab-product__proscons ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: .93rem; }
.ab-product__pros li, .ab-product__cons li { position: relative; padding-left: 20px; }
.ab-product__pros li::before { content: '+'; position: absolute; left: 2px; color: var(--accent); font-weight: 800; }
.ab-product__cons li::before { content: '\2013'; position: absolute; left: 2px; color: #b0763a; font-weight: 800; }
.ab-product__feedback { font-size: .93rem; color: var(--muted); background: var(--bg-soft); border-radius: var(--r-sm); padding: 10px 12px; margin: 0; }
.ab-product__verdict { font-size: .97rem; background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 10px 14px; }
.ab-product__cta { display: inline-flex; justify-content: center; background: var(--cta); color: #fff; font-weight: 700; text-decoration: none; padding: 12px 22px; border-radius: 10px; margin-top: 2px; justify-self: start; transition: background .18s, transform .18s var(--ease); box-shadow: 0 8px 20px -10px var(--cta); }
.ab-product__cta:hover { background: var(--cta-dark); transform: translateY(-2px); }
.ab-product__disclaimer { color: var(--muted); margin: 0 0 18px; padding: 0 4px; }
@media (max-width: 640px) {
  .ab-product { grid-template-columns: 96px 1fr; gap: 14px; padding: 16px; }
  .ab-product__proscons { grid-template-columns: 1fr; }
  .ab-product__cta { width: 100%; }
}

/* ---------- Vergleichstabelle ---------- */
.vergleich-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r); }
.vergleich { width: 100%; border-collapse: collapse; background: var(--bg); min-width: 640px; }
.vergleich th { background: var(--ink); color: #fff; font-family:'DM Sans'; font-weight: 700; text-align: left; padding: 13px 16px; font-size: .9rem; }
.vergleich td { padding: 14px 16px; border-top: 1px solid var(--border); vertical-align: middle; font-size: .95rem; }
.vergleich tbody tr:hover { background: var(--accent-soft); }
.vergleich-badge { color: var(--accent-dark); font-weight: 600; font-size: .82rem; }
.vg-modell { display: flex; align-items: center; gap: 12px; }
.vg-thumb { width: 46px; height: 46px; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: 6px; flex: 0 0 auto; }
.vg-text { display: flex; flex-direction: column; line-height: 1.25; }
.vg-marke { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }

/* ---------- Fließtext / Ratgeber ---------- */
.prose { max-width: 720px; }
.prose h2 { margin-top: 40px; }
.prose h3 { margin-top: 26px; }
.prose p, .prose ul, .prose ol { margin-top: 12px; color: #2a2e23; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-top: 5px; }
.prose a { font-weight: 500; }
.toc { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r); padding: 18px 22px; margin-bottom: 26px; }
.toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toc ol { margin: 10px 0 0; padding-left: 20px; columns: 2; gap: 24px; }
.toc a { color: var(--accent-dark); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--bg); }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; font-family:'Bricolage'; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-weight: 800; }
.faq details[open] summary::after { content: '\2013'; }
.faq details > div { padding: 0 18px 16px; color: var(--muted); }

/* ---------- Themen-Cluster ---------- */
.themen { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.thema { display: block; padding: 20px; border: 1px solid var(--border); border-radius: var(--r); background: var(--bg); text-decoration: none; color: var(--ink); transition: transform .18s var(--ease), border-color .18s; }
.thema:hover { transform: translateY(-3px); border-color: var(--accent); }
.thema h3 { color: var(--accent-dark); }
.thema p { color: var(--muted); font-size: .92rem; margin-top: 5px; max-width: none; }
.thema .arrow { color: var(--accent); font-weight: 700; }

/* ---------- Artikel-Seiten ---------- */
.artikel-hero { position: relative; padding: 40px 0 26px; }
.artikel-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 120% at 10% 0%, var(--accent-soft) 0%, transparent 60%); z-index: -1; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--accent-dark); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.artikel-hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); max-width: 20ch; animation: rise .6s var(--ease) both; }
.lead { font-size: clamp(1.05rem, 2.1vw, 1.22rem); color: var(--muted); max-width: 62ch; margin-top: 14px; }
.hero-bild, .artikel-bild { width: 100%; height: auto; border-radius: var(--r); margin-top: 26px; border: 1px solid var(--border); box-shadow: var(--shadow); animation: rise .7s var(--ease) both; animation-delay: .18s; }
.beispiel-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 22px 0 10px; }
.hinweisbox { background: var(--accent-soft); border: 1px solid var(--softline, #cfe0c4); border-left: 4px solid var(--accent); border-radius: var(--r-sm); padding: 16px 20px; margin: 22px 0; }
.hinweisbox strong { color: var(--accent-dark); }
.checkliste { list-style: none; padding: 0; display: grid; gap: 8px; margin-top: 14px; }
.checkliste li { position: relative; padding-left: 30px; }
.checkliste li::before { content: ''; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

/* ---------- Anzeige-Slot ---------- */
.ad-slot { margin: 30px auto; max-width: 970px; min-height: 100px; display: grid; place-items: center; background: var(--bg-soft); border: 1px dashed var(--border); border-radius: var(--r-sm); color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: #cfd2c6; margin-top: 40px; padding-block: 44px 26px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.foot-logo { color: #fff; font-size: 1.25rem; }
.foot-logo span { color: #7bc07e; }
.foot-logo em { color: #9aa08e; font-style: normal; }
.foot-brand p { color: #a7ab9d; margin-top: 10px; max-width: 42ch; }
.foot-col h2 { color: #fff; font-family:'DM Sans'; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.foot-col a { display: block; color: #cfd2c6; text-decoration: none; padding: 4px 0; }
.foot-col a:hover { color: #fff; }
.foot-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); color: #9aa08e; font-size: .85rem; }
.foot-bottom p { max-width: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .pbox { grid-template-columns: 120px 1fr; }
  .pbox-cta { grid-column: 1 / -1; grid-auto-flow: column; align-items: center; justify-content: start; gap: 14px; text-align: left; }
  .pbox-cta .btn { margin-left: auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-burger { display: inline-flex; }
  .mainnav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); flex-direction: column; gap: 2px; padding: 10px 14px; box-shadow: var(--shadow); }
  .nav-cb:checked ~ .mainnav { display: flex; }
  .mainnav a { padding: 12px; font-size: 1rem; }
  .toc ol { columns: 1; }
  .pbox { grid-template-columns: 84px 1fr; gap: 14px; padding: 16px; }
  .pbox-rank-badge { left: auto; right: 12px; top: 12px; width: 32px; height: 32px; font-size: .95rem; }
  .pbox-rank { padding-left: 16px; }
  .pbox-cta { flex-wrap: wrap; }
  .pbox-cta .btn { width: 100%; margin-left: 0; }
  /* Vergleichstabelle gestapelt */
  .vergleich, .vergleich thead, .vergleich tbody, .vergleich th, .vergleich td, .vergleich tr { display: block; }
  .vergleich { min-width: 0; }
  .vergleich thead { display: none; }
  .vergleich tr { border-top: 1px solid var(--border); padding: 8px 0; }
  .vergleich td { border: 0; padding: 6px 16px; display: flex; justify-content: space-between; gap: 16px; }
  .vergleich td::before { content: attr(data-label); font-weight: 700; color: var(--muted); }
  .foot-grid { grid-template-columns: 1fr; }
}
