/*
Theme Name: Warenprüfung Retail
Theme URI: https://warenprüfung-test.de/
Author: Best Commerce GmbH
Author URI: https://warenprüfung-test.de/
Description: Conversion-Retail-Design für warenprüfung-test.de — Preisvergleichs- und Testberichte-Theme mit produkt-CPT (/home/{slug}/), Kategorien, Vergleichs-Ranking, SEO-/JSON-LD-Layer und Selbst-Seeding der Kernseiten. Ersetzt das Liquid-Glass-Theme visuell; die Logik-Schicht ist identisch.
Version: 3.0.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: warenpruefung-retail
*/

/* ==========================================================================
   Font — self-hosted Inter (variable 100–900), no CDN in production
   ========================================================================== */
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;
  src:url('assets/fonts/inter.woff2') format('woff2');}

/* ==========================================================================
   Design tokens (verbatim from the approved Conversion-Retail mockup)
   ========================================================================== */
:root{
  --bg:#f2f4f7; --surface:#fff; --surface-2:#fafbfc;
  --ink:#1c2833; --muted:#5b6b7c; --line:#e3e8ee; --line-2:#cbd5e0;
  --blue:#0a5cc4; --blue-dark:#084a9e; --blue-tint:#eef4fc;
  --cta:#c94a00; --cta-hover:#a83e00; --cta-bright:#ff6a00;
  --green:#0a7a35; --green-tint:#e8f6ed; --green-line:#bfe3cc;
  --red:#c0392b; --gold-tint:#fff5e6; --gold-ink:#8a5a00; --gold-line:#f0d9a8;
  --r:6px; --r-lg:8px;
  --shadow:0 1px 2px rgba(28,40,51,.06);
  --shadow-lift:0 4px 14px rgba(28,40,51,.10);
}

/* ==========================================================================
   Base
   ========================================================================== */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
/* horizontal drag guard: clip (does not create a scroll container, so
   position:sticky keeps working) with a hidden fallback for old engines */
html,body{overflow-x:hidden}
@supports (overflow:clip){html,body{overflow-x:clip}}
body{margin:0;background:var(--bg);color:var(--ink);
  font:400 15px/1.5 'Inter',-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased}

img{max-width:100%;height:auto;display:block}
figure{margin:0}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,h4{margin:0;line-height:1.25;letter-spacing:-.015em}
p{margin:0}
ul{margin:0;padding:0;list-style:none}
blockquote{margin:0}

:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:3px}

.wrap{max-width:1200px;margin:0 auto;padding:0 16px}
.screen-reader-text{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:-9999px;top:0;z-index:100;background:var(--blue);color:#fff;
  padding:10px 16px;font-weight:700}
.skip-link:focus{left:0}

/* ==========================================================================
   Masthead (sticky) — .site-header alias kept for the WP admin bar offset
   ========================================================================== */
.masthead{background:var(--surface);border-bottom:1px solid var(--line);
  position:sticky;top:0;z-index:40}
body.admin-bar .site-header{top:32px}
@media (max-width:782px){body.admin-bar .site-header{top:46px}}
.masthead .wrap{display:flex;align-items:center;gap:16px;min-height:64px}

/* never wrap the_custom_logo() in another <a>; hard-cap the logo box */
.logo{flex:none;display:block}
.logo:hover{text-decoration:none}
.logo img{max-width:150px;max-height:34px;width:auto;height:auto}

.searchbar{flex:1 1 auto;max-width:520px;display:flex;min-width:0}
.searchbar input{flex:1;min-width:0;height:40px;border:1px solid var(--line-2);border-right:0;
  border-radius:var(--r) 0 0 var(--r);padding:0 12px;font:inherit;font-size:14px;color:var(--ink);background:#fff}
.searchbar input::placeholder{color:#8d9aa8}
.searchbar input:focus{outline:none;border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue)}
.searchbar button{flex:none;height:40px;padding:0 16px;border:0;border-radius:0 var(--r) var(--r) 0;
  background:var(--blue);color:#fff;font:inherit;font-weight:700;font-size:14px;cursor:pointer}
.searchbar button:hover{background:var(--blue-dark)}

.nav{margin-left:auto}
.nav > ul{display:flex;align-items:center;gap:4px;margin:0;padding:0;list-style:none}
.nav > ul > li{position:relative}
.nav a{display:flex;align-items:center;gap:5px;padding:10px 12px;border-radius:var(--r);
  color:var(--ink);font-weight:600;font-size:14px;white-space:nowrap}
.nav a:hover{background:var(--blue-tint);color:var(--blue);text-decoration:none}
.nav .is-active > a,
.nav .current-menu-item > a,
.nav .current-menu-ancestor > a,
.nav .current_page_item > a{color:var(--blue);box-shadow:inset 0 -3px var(--blue);border-radius:var(--r) var(--r) 0 0}
.nav .caret{transition:transform .15s}
.nav .sub-menu{position:absolute;top:calc(100% + 4px);left:0;min-width:220px;background:#fff;
  border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow-lift);
  padding:6px;margin:0;list-style:none;opacity:0;visibility:hidden;transform:translateY(-4px);transition:.14s;z-index:50}
.has-sub:hover > .sub-menu,.has-sub:focus-within > .sub-menu,
.menu-item-has-children:hover > .sub-menu,.menu-item-has-children:focus-within > .sub-menu{opacity:1;visibility:visible;transform:none}
.has-sub:hover .caret,.has-sub:focus-within .caret,
.menu-item-has-children:hover .caret,.menu-item-has-children:focus-within .caret{transform:rotate(180deg)}
.nav .sub-menu li{position:static}
.nav .sub-menu a{font-weight:500}
.nav .sub-menu li+li{border-top:1px solid var(--line)}
.nav .sub-menu .sub-menu-all a{font-weight:700;color:var(--blue)}
.nav-toggle{display:none;margin-left:auto;height:40px;padding:0 12px;gap:8px;align-items:center;
  background:#fff;border:1px solid var(--line-2);border-radius:var(--r);
  font:inherit;font-weight:700;font-size:14px;color:var(--ink);cursor:pointer}

@media (max-width:960px){
  .masthead .wrap{flex-wrap:wrap;padding-top:10px;padding-bottom:10px;gap:10px}
  .nav-toggle{display:flex}
  .searchbar{order:3;flex-basis:100%;max-width:none}
  .nav{order:4;flex-basis:100%;margin-left:0;display:none}
  .nav.is-open{display:block}
  .nav > ul{flex-direction:column;align-items:stretch;gap:0;
    border-top:1px solid var(--line);padding-top:6px}
  .nav > ul > li + li{border-top:1px solid var(--line)}
  .nav a{padding:12px 4px;border-radius:0}
  .nav .is-active > a,
  .nav .current-menu-item > a,
  .nav .current-menu-ancestor > a,
  .nav .current_page_item > a{box-shadow:none;background:var(--blue-tint)}
  .nav .sub-menu{position:static;opacity:1;visibility:visible;transform:none;border:0;box-shadow:none;
    padding:0 0 8px 12px;min-width:0}
  .nav .sub-menu li+li{border-top:0}
  .nav .sub-menu a{padding:8px 4px;font-size:13px;color:var(--muted)}
  .nav .caret{display:none}
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.crumbs{font-size:12px;color:var(--muted);padding:10px 0}
.crumbs ol{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0;padding:0;list-style:none}
.crumbs a{color:var(--muted)}
.crumbs a:hover{color:var(--blue)}
.crumbs li+li::before{content:'›';margin-right:6px;color:var(--line-2)}
.crumbs [aria-current]{color:var(--ink);font-weight:600}

/* ==========================================================================
   Generic blocks
   ========================================================================== */
.section{padding:28px 0}
.section-head{margin-bottom:14px}
.section-head h2,.section-head h3{font-size:20px;font-weight:800}
.section-head .sub{color:var(--muted);font-size:14px;margin-top:3px}
.section-head--row{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap}
.page-head{margin-bottom:16px}
.page-head h1{font-size:26px;font-weight:800}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg)}
.eyebrow{font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--blue)}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border:1px solid transparent;border-radius:var(--r);padding:11px 18px;
  font:inherit;font-weight:700;font-size:15px;cursor:pointer;text-align:center;white-space:nowrap}
.btn:hover{text-decoration:none}
.btn-cta{background:var(--cta);color:#fff;box-shadow:var(--shadow)}
.btn-cta:hover{background:var(--cta-hover);color:#fff}
.btn-cta .arw{font-size:13px}
.btn-out{background:#fff;color:var(--blue);border-color:#c3d4ea}
.btn-out:hover{background:var(--blue-tint);border-color:var(--blue)}
.btn-sm{padding:8px 12px;font-size:13px}
.btn-block{display:flex;width:100%}

/* ==========================================================================
   Flags / chips / score / price
   ========================================================================== */
.flag{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:800;
  letter-spacing:.04em;text-transform:uppercase;padding:3px 7px;border-radius:3px;white-space:nowrap}
.flag-best{background:var(--green-tint);color:var(--green);border:1px solid var(--green-line)}
.flag-award{background:var(--gold-tint);color:var(--gold-ink);border:1px solid var(--gold-line)}
.flag-neutral{background:var(--blue-tint);color:var(--blue-dark);border:1px solid #c3d4ea}
.chip{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--muted);
  background:var(--surface-2);border:1px solid var(--line);border-radius:99px;padding:4px 10px;white-space:nowrap}
.chip b{color:var(--ink);font-weight:700}

.score{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:24px;
  padding:0 7px;border-radius:4px;background:var(--blue);color:#fff;font-weight:800;font-size:14px;
  font-variant-numeric:tabular-nums}
.score--gold{background:var(--gold-ink)}
.score-row{display:flex;align-items:center;gap:10px;min-width:0}
.scorebar{flex:1;min-width:60px;height:6px;background:#e3e8ee;border-radius:3px;overflow:hidden}
.scorebar i{display:block;height:100%;background:var(--blue);border-radius:3px}
.scorebar--gold i{background:var(--gold-ink)}
.score-cap{font-size:12px;color:var(--muted);white-space:nowrap}
.stars{color:var(--cta-bright);font-size:14px;letter-spacing:1px}

.price{font-weight:800;font-size:24px;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.price--sm{font-size:18px}
.price-from{font-size:12px;color:var(--muted);font-weight:600}

/* ==========================================================================
   Footer
   ========================================================================== */
.foot{background:var(--ink);color:#a9b8c5;margin-top:36px;font-size:14px}
.foot .wrap{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;padding-top:36px;padding-bottom:28px}
.foot h4{color:#fff;font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;margin-bottom:12px}
.foot a{color:#a9b8c5}
.foot a:hover{color:#fff}
.foot li+li{margin-top:8px}
.foot address{font-style:normal;line-height:1.9}
.foot-bottom{border-top:1px solid rgba(255,255,255,.1)}
.foot-bottom .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding-top:14px;padding-bottom:14px;font-size:13px;grid-template-columns:none}
.foot-bottom ul{display:flex;gap:16px;flex-wrap:wrap}
.foot-bottom li+li{margin-top:0}
.to-top{color:#a9b8c5;background:none;border:0;font:inherit;cursor:pointer;padding:0}
.to-top:hover{color:#fff;text-decoration:underline}
@media (max-width:760px){
  .foot .wrap{grid-template-columns:1fr;gap:24px}
  .foot-bottom .wrap{flex-direction:column;align-items:flex-start;gap:10px}
}

/* ==========================================================================
   Trust strip
   ========================================================================== */
.trust{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.trust-card{display:flex;align-items:center;gap:12px;padding:16px;background:var(--surface);
  border:1px solid var(--line);border-radius:var(--r-lg)}
.trust-icon{flex:none;width:44px;height:44px;border-radius:50%;background:var(--blue);
  display:flex;align-items:center;justify-content:center}
.trust-icon img{width:24px;height:24px;object-fit:contain}
/* both are spans — without display:block they run together as "27Geprüfte…" */
.trust-val{display:block;font-size:22px;font-weight:800;line-height:1.1;font-variant-numeric:tabular-nums}
.trust-lab{display:block;font-size:13px;color:var(--muted)}
@media (max-width:640px){.trust{grid-template-columns:1fr}}

/* ==========================================================================
   Product cards (related / home)
   ========================================================================== */
.tile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.pcard{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-lg);padding:14px;color:var(--ink);transition:box-shadow .14s,border-color .14s}
.pcard:hover{text-decoration:none;border-color:var(--line-2);box-shadow:var(--shadow-lift)}
.pcard-media{height:150px;display:flex;align-items:center;justify-content:center;margin-bottom:10px}
.pcard-media img{max-height:100%;width:auto;object-fit:contain}
.pcard-title{font-weight:600;font-size:14px;line-height:1.35;flex:1}
.pcard-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px}
.pcard-price{font-weight:800;font-size:16px}
.pcard .btn{pointer-events:none}
/* mobile: horizontal swipe rail. Bleed to the viewport edges with negative
   margins + width:auto (width:100% would SHIFT the box, not stretch it);
   internal side padding keeps cards aligned to .wrap and gives the hover
   shadow room (overflow clips box-shadows); scroll-padding-left must match
   the inset padding or snap swallows it. */
@media (max-width:760px){
  .tile-grid{display:flex;width:auto;margin:0 -16px;padding:10px 16px 20px;
    overflow-x:auto;-webkit-overflow-scrolling:touch;
    scroll-snap-type:x mandatory;scroll-padding-left:16px}
  .tile-grid > *{flex:0 0 260px;scroll-snap-align:start}
}

/* ==========================================================================
   HOME
   ========================================================================== */
.hero{background:linear-gradient(180deg,#fff,var(--bg));border-bottom:1px solid var(--line)}
.hero .wrap{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:32px;
  padding-top:28px;padding-bottom:28px;align-items:start}
.hero h1{font-size:32px;font-weight:800;letter-spacing:-.025em;margin:8px 0 14px}
.hero-lead{font-size:16px;color:var(--ink);line-height:1.6}
.hero-block{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.hero-block h2{font-size:14px;font-weight:800;margin-bottom:3px}
.hero-block p{font-size:14px;color:var(--muted);line-height:1.6}
.hero-kicker{margin-top:16px;font-weight:800;font-size:15px;color:var(--cta);
  display:inline-flex;align-items:center;gap:8px}
.hero-kicker::before{content:'';width:3px;height:16px;background:var(--cta-bright);border-radius:2px}

/* winner teaser */
.teaser{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  box-shadow:var(--shadow-lift);overflow:hidden}
.teaser-head{display:flex;align-items:center;gap:8px;padding:10px 14px;background:var(--gold-tint);
  border-bottom:1px solid var(--gold-line);font-size:12px;font-weight:800;color:var(--gold-ink);
  letter-spacing:.04em;text-transform:uppercase}
.teaser-body{padding:14px;display:grid;grid-template-columns:96px minmax(0,1fr);gap:14px;align-items:center}
.teaser-media{height:112px;display:flex;align-items:center;justify-content:center}
.teaser-media img{max-height:100%;width:auto;object-fit:contain}
.teaser-name{font-size:15px;font-weight:700;line-height:1.35;margin-bottom:8px}
.teaser-foot{padding:0 14px 14px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.teaser-foot .btn{flex:1}
@media (max-width:960px){.hero .wrap{grid-template-columns:1fr;gap:24px}.hero h1{font-size:26px}}

.help-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.help-card{padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg)}
.help-num{width:28px;height:28px;border-radius:50%;background:var(--blue-tint);color:var(--blue);
  display:flex;align-items:center;justify-content:center;font-weight:800;font-size:13px;margin-bottom:10px}
.help-card h3{font-size:15px;font-weight:700;margin-bottom:6px}
.help-card p{font-size:14px;color:var(--muted);line-height:1.6}
@media (max-width:760px){.help-grid{grid-template-columns:1fr}}

.quote-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.quote-card{padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg)}
.quote-card p{font-size:14px;color:var(--ink);line-height:1.6;margin:8px 0 12px}
.quote-name{font-size:13px;font-weight:700;color:var(--muted)}
@media (max-width:760px){.quote-grid{grid-template-columns:1fr}}

/* home top-3 rail */
.rank-rail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.rail-card{display:flex;gap:12px;align-items:center;padding:12px;background:var(--surface);
  border:1px solid var(--line);border-radius:var(--r-lg)}
.rail-pos{flex:none;width:26px;height:26px;border-radius:4px;background:var(--ink);color:#fff;
  display:flex;align-items:center;justify-content:center;font-weight:800;font-size:13px}
.rail-card:first-child .rail-pos{background:var(--gold-ink)}
.rail-media{flex:none;width:52px;height:52px;display:flex;align-items:center;justify-content:center}
.rail-media img{max-height:100%;width:auto;object-fit:contain}
.rail-body{min-width:0;flex:1}
.rail-name{font-size:13px;font-weight:600;line-height:1.3;overflow:hidden;text-overflow:ellipsis;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.rail-price{font-size:14px;font-weight:800;margin-top:3px;display:block}
@media (max-width:860px){.rank-rail{grid-template-columns:1fr}}

/* ==========================================================================
   PRODUCT PAGE
   ========================================================================== */
.pdp-head{padding-bottom:16px}
.pdp-head h1{font-size:26px;font-weight:800;margin:8px 0 10px}
.pdp-meta{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.pdp-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;
  grid-template-areas:"media side" "content side";gap:24px;align-items:start}
.pdp-media{grid-area:media}
.pdp-side{grid-area:side;position:sticky;top:80px}
.pdp-content{grid-area:content;min-width:0}
@media (max-width:1023px){
  .pdp-grid{grid-template-columns:1fr;grid-template-areas:"media" "side" "content";gap:20px}
  .pdp-side{position:static}
}

/* gallery */
.gallery{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:16px}
.gal-main{position:relative;height:360px;display:flex;align-items:center;justify-content:center}
.gal-main img{max-height:100%;width:auto;object-fit:contain}
/* the seal is a 1000x1000 PNG — must out-specify .gal-main img, or max-height
   blows it up to 360px and it swallows the product shot */
.gal-main img.gal-badge{position:absolute;right:0;top:0;width:88px;height:auto;max-height:none}
.gal-thumbs{display:flex;gap:8px;margin-top:12px}
.gal-thumb{width:72px;height:72px;border:1px solid var(--line);border-radius:var(--r);background:#fff;
  padding:4px;cursor:pointer;display:flex;align-items:center;justify-content:center}
.gal-thumb img{max-height:100%;width:auto;object-fit:contain}
.gal-thumb[aria-current="true"]{border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue)}
@media (max-width:520px){.gal-main{height:260px}.gal-main img.gal-badge{width:64px}}

/* price box */
.pricebox{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden}
.pb-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;
  background:var(--surface-2);border-bottom:1px solid var(--line)}
.pb-head h2{font-size:14px;font-weight:800}
.pb-count{font-size:12px;color:var(--muted);font-weight:600}
.pb-row{display:grid;grid-template-columns:90px minmax(0,1fr);gap:10px 12px;align-items:center;
  padding:12px 14px;border-bottom:1px solid var(--line)}
.pb-row.is-best{background:var(--green-tint);border-left:3px solid var(--green);padding-left:11px}
/* Bestelectronic is white-on-solid-blue — below ~30px tall it reads as a blue
   smudge, so the logo cell gets real room */
.pb-logo{height:30px;display:flex;align-items:center}
.pb-logo img{max-height:30px;max-width:100%;width:auto;object-fit:contain}
.pb-logo strong{font-size:12px}
.pb-price-cell{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.pb-cta{grid-column:1/-1}
.pb-note{padding:12px 14px;font-size:12px;color:var(--muted);line-height:1.55;background:var(--surface-2)}
/* Prüfsiegel sits with the trust list, directly under the CTA */
.pb-foot{padding:14px;border-top:1px solid var(--line);display:flex;align-items:center;gap:14px}
.pb-seal{width:78px;flex:none}
.pb-trustlist{display:flex;flex-direction:column;gap:7px;min-width:0}
.pb-trust{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}
.pb-trust::before{content:'✓';color:var(--green);font-weight:800;flex:none}

/* demand panel */
.demand{margin-top:12px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:14px}
.demand h2{font-size:13px;font-weight:800;margin-bottom:10px}

/* features */
.features{display:grid;gap:8px;margin-top:16px}
.features li{display:flex;gap:9px;align-items:flex-start;font-size:14px;line-height:1.55}
.features li::before{content:'✓';flex:none;width:18px;height:18px;border-radius:50%;
  background:var(--green-tint);color:var(--green);font-size:11px;font-weight:800;
  display:flex;align-items:center;justify-content:center;margin-top:1px}

/* intro */
.intro p{font-size:15px;line-height:1.7;color:var(--ink)}
.intro p+p{margin-top:12px}

/* spec table */
.spectable{width:100%;border-collapse:collapse;font-size:14px;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden}
.spectable th{text-align:left;font-weight:500;color:var(--muted);padding:10px 14px;width:45%}
.spectable td{padding:10px 14px;font-weight:700;font-variant-numeric:tabular-nums}
.spectable tr:nth-child(odd){background:var(--surface-2)}

/* experts */
.expert-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.expert-card{padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg)}
.expert-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.expert-head img{width:44px;height:44px;border-radius:50%;object-fit:cover;flex:none}
.expert-name{font-weight:700;font-size:14px}
.expert-card p{font-size:13px;line-height:1.6;color:var(--muted)}
@media (max-width:860px){.expert-grid{grid-template-columns:1fr}}

/* customer reviews */
.review-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.review-card{padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg)}
.review-title{display:block;font-weight:700;font-size:14px;margin:6px 0 6px}
.review-card p{font-size:13px;line-height:1.6;color:var(--muted)}
.review-name{display:block;margin-top:10px;font-size:12px;font-weight:700;color:var(--ink)}
.review-name::before{content:'';display:inline-block;width:14px;height:14px;border-radius:50%;
  background:var(--blue-tint);margin-right:6px;vertical-align:-2px}
@media (max-width:860px){.review-grid{grid-template-columns:1fr}}

/* sticky mobile buy bar */
.buybar{position:fixed;left:0;right:0;bottom:0;z-index:45;display:none;align-items:center;gap:12px;
  padding:8px 12px;background:#fff;border-top:1px solid var(--line);box-shadow:0 -2px 12px rgba(28,40,51,.12)}
.buybar-info{min-width:0;flex:1}
.buybar-name{font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.buybar .price{font-size:18px}
@media (max-width:1023px){.buybar{display:flex}body.has-buybar{padding-bottom:68px}}

/* ==========================================================================
   LISTING (kategorie / archive)
   ========================================================================== */
.listing{display:grid;grid-template-columns:220px minmax(0,1fr);gap:20px;align-items:start}
/* listings currently run without the filter sidebar (wpl_listing_filters_enabled) */
.listing--full{grid-template-columns:minmax(0,1fr)}
.filters{position:sticky;top:80px;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-lg);overflow:hidden}
.filters-head{margin:0;border-bottom:1px solid var(--line)}
.filters-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;
  padding:12px 14px;background:var(--surface-2);border:0;font:inherit;font-size:13px;font-weight:800;
  color:var(--ink);cursor:default;text-align:left}
.filters-icon{display:none;width:20px;height:20px;border-radius:4px;background:var(--blue-tint);
  color:var(--blue);align-items:center;justify-content:center;font-weight:800;font-size:14px;line-height:1}
.filters-body[hidden]{display:none}
@media (max-width:860px){
  .filters-toggle{cursor:pointer}
  .filters-toggle:hover{color:var(--blue)}
  .filters-icon{display:flex}
}
.fgroup{padding:12px 14px;border-bottom:1px solid var(--line)}
.fgroup:last-child{border-bottom:0}
.fgroup legend,.fgroup .flabel{font-size:12px;font-weight:800;color:var(--ink);
  letter-spacing:.04em;text-transform:uppercase;margin-bottom:8px;padding:0}
.fgroup fieldset{border:0;padding:0;margin:0}
.fopt{display:flex;align-items:center;gap:8px;padding:5px 0;font-size:13px;color:var(--muted);cursor:pointer}
.fopt input{accent-color:var(--blue);width:15px;height:15px;flex:none}
.fopt:hover{color:var(--ink)}
.fopt .cnt{margin-left:auto;font-size:11px;color:#8d9aa8}

.toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:10px 14px}
.toolbar-count{font-size:13px;color:var(--muted)}
.toolbar-count b{color:var(--ink);font-weight:800}
.sorts{margin-left:auto;display:flex;align-items:center;gap:6px}
.sorts .lab{font-size:12px;color:var(--muted)}
.sortbtn{display:inline-flex;align-items:center;gap:5px;height:32px;padding:0 10px;background:#fff;
  border:1px solid var(--line-2);border-radius:var(--r);font:inherit;font-size:13px;font-weight:600;
  color:var(--ink);cursor:pointer}
.sortbtn:hover{border-color:var(--blue);color:var(--blue)}
.sortbtn[aria-pressed="true"]{background:var(--blue);border-color:var(--blue);color:#fff}
.sortbtn .dir{font-size:10px;opacity:.85}

.prow{display:grid;grid-template-columns:130px minmax(0,1fr) 190px;gap:16px;padding:14px;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);align-items:center}
.prow+.prow{margin-top:10px}
.prow:hover{border-color:var(--line-2);box-shadow:var(--shadow)}
.prow-media{height:110px;display:flex;align-items:center;justify-content:center}
.prow-media img{max-height:100%;width:auto;object-fit:contain}
.prow-body{min-width:0}
.prow-name{font-size:16px;font-weight:700;line-height:1.3;margin-bottom:8px}
.prow-name a{color:var(--ink)}
.prow-name a:hover{color:var(--blue)}
.prow-specs{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.prow-buy{display:flex;flex-direction:column;align-items:stretch;gap:8px;text-align:right}
.prow-buy .price{text-align:right}
/* retailer names make this label long — let it wrap instead of bleeding out */
.prow-buy .btn{white-space:normal}
.prow[hidden]{display:none}
@media (max-width:860px){
  .listing{grid-template-columns:1fr}
  .filters{position:static}
  .prow{grid-template-columns:88px minmax(0,1fr);gap:12px}
  .prow-buy{grid-column:1/-1;flex-direction:row;flex-wrap:wrap;align-items:center;gap:10px;
    border-top:1px solid var(--line);padding-top:12px;text-align:left}
  .prow-buy .price{text-align:left}
  .prow-buy .btn-cta{flex:1;min-width:150px}
  .prow-buy .btn-out{flex-basis:100%;white-space:normal}
  .prow-media{height:88px}
}

.cat-pills{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.cat-pill{padding:8px 14px;background:var(--surface);border:1px solid var(--line);border-radius:99px;
  font-size:13px;font-weight:600;color:var(--ink)}
.cat-pill:hover{border-color:var(--blue);color:var(--blue);text-decoration:none}
.cat-pill.is-active{background:var(--blue);border-color:var(--blue);color:#fff}

/* ==========================================================================
   VERGLEICH
   ========================================================================== */
.rank-hero{background:linear-gradient(180deg,#fff,var(--bg));border-bottom:1px solid var(--line);
  padding:26px 0}
.rank-hero h1{font-size:32px;font-weight:800;margin:8px 0 8px}
.rank-hero .sub{color:var(--muted);font-size:15px}
.rank-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
@media (max-width:640px){.rank-hero h1{font-size:24px}}

.winner{background:var(--surface);border:1px solid var(--gold-line);border-radius:var(--r-lg);
  overflow:hidden;box-shadow:var(--shadow-lift)}
.winner-ribbon{display:flex;align-items:center;gap:8px;padding:10px 16px;background:var(--gold-tint);
  border-bottom:1px solid var(--gold-line);color:var(--gold-ink);font-weight:800;font-size:13px;
  letter-spacing:.04em;text-transform:uppercase}
.winner-ribbon .medal{width:22px;height:22px;border-radius:50%;background:var(--gold-ink);color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:12px}
.winner-grid{display:grid;grid-template-columns:200px minmax(0,1fr) 260px;gap:20px;padding:18px;align-items:center}
.winner-media{height:200px;display:flex;align-items:center;justify-content:center}
.winner-media img{max-height:100%;width:auto;object-fit:contain}
.winner-name{font-size:20px;font-weight:800;line-height:1.3;margin-bottom:12px}
.winner-buy{display:flex;flex-direction:column;gap:8px}
.pricepill{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;
  border:1px solid var(--line);border-radius:var(--r);background:var(--surface-2)}
.pricepill img{max-height:28px;width:auto;max-width:96px;object-fit:contain}
.pricepill .pp-price{font-weight:800;font-size:17px}
.winner-quote{margin:0;padding:16px 18px;border-top:1px solid var(--line);background:var(--surface-2);
  display:grid;grid-template-columns:56px minmax(0,1fr);gap:14px;align-items:start}
.winner-quote img{width:56px;height:56px;border-radius:50%;object-fit:cover}
.winner-quote blockquote{margin:0;font-size:14px;line-height:1.65;color:var(--ink)}
.winner-quote figcaption{margin-top:8px;font-size:12px;font-weight:700;color:var(--muted)}
@media (max-width:960px){
  .winner-grid{grid-template-columns:1fr;gap:16px}
  .winner-media{height:170px}
}

.rank-row{display:grid;grid-template-columns:44px 92px minmax(0,1fr) 230px;gap:16px;align-items:center;
  padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg)}
.rank-row+.rank-row{margin-top:10px}
.rank-row:hover{border-color:var(--line-2);box-shadow:var(--shadow)}
.rank-pos{width:36px;height:36px;border-radius:50%;background:var(--surface-2);border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;font-weight:800;font-size:15px;color:var(--muted)}
.rank-media{height:92px;display:flex;align-items:center;justify-content:center}
.rank-media img{max-height:100%;width:auto;object-fit:contain}
.rank-name{font-size:15px;font-weight:700;line-height:1.3;margin:6px 0 8px}
.rank-report{display:inline-block;margin-top:8px}
.rank-buy{display:flex;flex-direction:column;gap:8px}
@media (max-width:860px){
  .rank-row{grid-template-columns:44px minmax(0,1fr);gap:10px 12px}
  .rank-media{grid-row:2;height:80px}
  .rank-body{grid-row:2;grid-column:2}
  .rank-buy{grid-column:1/-1;border-top:1px solid var(--line);padding-top:12px}
}

/* ==========================================================================
   KONTAKT
   ========================================================================== */
.kontakt-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;align-items:start}
@media (max-width:960px){.kontakt-grid{grid-template-columns:1fr}}
.formcard{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:20px}
.form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.field{margin-bottom:14px}
.field label{display:block;font-size:13px;font-weight:700;margin-bottom:6px}
.field input,.field textarea{width:100%;border:1px solid var(--line-2);border-radius:var(--r);
  padding:10px 12px;font:inherit;font-size:14px;color:var(--ink);background:#fff}
.field textarea{min-height:120px;resize:vertical}
.field input:focus,.field textarea:focus{outline:none;border-color:var(--blue);
  box-shadow:0 0 0 3px rgba(10,92,196,.12)}
@media (max-width:560px){.form-row{grid-template-columns:1fr}}
.formmsg{display:none;padding:11px 13px;border-radius:var(--r);font-size:13px;font-weight:600;margin-bottom:14px}
.formmsg.is-shown{display:block}
.formmsg--ok{background:var(--green-tint);color:var(--green);border:1px solid var(--green-line)}
.formmsg--err{background:#fdeceb;color:var(--red);border:1px solid #f5c6c2}

.infocard{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:20px}
.infocard h2{font-size:16px;font-weight:800;margin-bottom:12px}
.infocard address{font-style:normal;line-height:1.7;font-size:14px}
.info-row+.info-row{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.info-lab{font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;
  color:var(--muted);margin-bottom:4px}

.faq{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden}
.faq-item+.faq-item{border-top:1px solid var(--line)}
.faq-item h3{margin:0}
.faq-q{width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:15px 16px;background:none;border:0;font:inherit;font-weight:700;font-size:15px;
  color:var(--ink);text-align:left;cursor:pointer}
.faq-q:hover{background:var(--surface-2);color:var(--blue)}
.faq-icon{flex:none;width:20px;height:20px;border-radius:4px;background:var(--blue-tint);color:var(--blue);
  display:flex;align-items:center;justify-content:center;font-weight:800;font-size:14px;line-height:1}
.faq-q[aria-expanded="true"] .faq-icon{background:var(--blue);color:#fff}
.faq-a{padding:0 16px 16px;font-size:14px;line-height:1.65;color:var(--muted);max-width:76ch}
.faq-a[hidden]{display:none}

/* ==========================================================================
   SERVICES (no dedicated mockup — retail card rows in the same system)
   ========================================================================== */
.service-row{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:12px;align-items:stretch}
.service-row+.service-row{margin-top:12px}
.service-row:nth-child(even){grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)}
.service-row:nth-child(even) .service-body{order:2}
.service-row:nth-child(even) .service-media{order:1}
.service-body{padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg)}
.service-body h4{font-size:16px;font-weight:800;margin-bottom:8px}
.service-body p{font-size:14px;color:var(--muted);line-height:1.65}
.service-media{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  overflow:hidden;display:flex;align-items:center;justify-content:center;min-height:180px}
.service-media img{width:100%;height:100%;object-fit:cover}
@media (max-width:760px){
  .service-row,.service-row:nth-child(even){grid-template-columns:1fr}
  .service-row:nth-child(even) .service-body{order:0}
  .service-row:nth-child(even) .service-media{order:0}
  .service-media{min-height:150px;max-height:220px}
}

/* ==========================================================================
   KATEGORIEN overview
   ========================================================================== */
.cat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.cat-card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-lg);padding:16px;color:var(--ink);transition:box-shadow .14s,border-color .14s}
.cat-card:hover{text-decoration:none;border-color:var(--line-2);box-shadow:var(--shadow-lift)}
.cat-card-media{height:130px;display:flex;align-items:center;justify-content:center;margin-bottom:12px}
.cat-card-media img{max-height:100%;width:auto;object-fit:contain}
.cat-card-name{font-size:15px;font-weight:700}
.cat-card-count{font-size:13px;color:var(--muted);margin-top:2px}
.cat-card-cta{margin-top:10px;font-size:13px;font-weight:700;color:var(--blue);
  display:inline-flex;align-items:center;gap:6px}
@media (max-width:860px){.cat-grid{grid-template-columns:1fr}}

/* ==========================================================================
   TOP PRODUKTE (Bestenlisten)
   ========================================================================== */
.toplist-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.toplist-card{display:grid;grid-template-columns:150px minmax(0,1fr);gap:16px;align-items:center;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:16px;
  color:var(--ink);transition:box-shadow .14s,border-color .14s}
.toplist-card:hover{text-decoration:none;border-color:var(--line-2);box-shadow:var(--shadow-lift)}
.toplist-media{height:150px;display:flex;align-items:center;justify-content:center}
.toplist-media img{max-height:100%;width:auto;object-fit:contain}
.toplist-eyebrow{display:block;font-size:12px;font-weight:800;letter-spacing:.06em;
  text-transform:uppercase;color:var(--gold-ink);margin-bottom:4px}
.toplist-title{display:block;font-size:17px;font-weight:800;line-height:1.3}
.toplist-desc{display:block;font-size:13px;color:var(--muted);line-height:1.55;margin-top:6px}
.toplist-cta{margin-top:10px;font-size:13px;font-weight:700;color:var(--blue);
  display:inline-flex;align-items:center;gap:6px}
.toplist-hint{margin-top:14px;font-size:13px;color:var(--muted)}
@media (max-width:860px){.toplist-grid{grid-template-columns:1fr}}
@media (max-width:520px){.toplist-card{grid-template-columns:1fr}.toplist-media{height:120px}}

/* ==========================================================================
   SITEMAP
   ========================================================================== */
.sitemap-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.sitemap-col{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:18px}
.sitemap-h{font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;
  color:var(--blue);margin-bottom:10px}
.sitemap-list+.sitemap-h{margin-top:18px}
.sitemap-sub{font-size:14px;font-weight:700;margin:14px 0 8px}
.sitemap-list li+li{margin-top:7px}
.sitemap-list a{font-size:14px}
.sitemap-note{margin-top:16px;font-size:12px;color:var(--muted)}
@media (max-width:760px){.sitemap-grid{grid-template-columns:1fr}}

/* ==========================================================================
   Generic page panel (Impressum / Datenschutz) + legal typography
   ========================================================================== */
.page-panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:24px;max-width:860px}
.page-panel > h1{font-size:26px;font-weight:800;margin-bottom:16px}
.legal-body{font-size:14px;line-height:1.7;color:var(--ink)}
.legal-body p{margin:0 0 12px}
.legal-body h1,.legal-body h2{font-size:20px;font-weight:800;margin:24px 0 10px}
.legal-body h3{font-size:16px;font-weight:700;margin:20px 0 8px}
.legal-body h4{font-size:14px;font-weight:700;margin:16px 0 6px}
.legal-body ul{list-style:disc;padding-left:22px;margin:0 0 12px}
.legal-body ol{padding-left:22px;margin:0 0 12px}
.legal-body li{margin:4px 0}
.legal-body a{word-break:break-word}
.legal-body table{width:100%;border-collapse:collapse;font-size:13px;margin:0 0 12px}
.legal-body th,.legal-body td{border:1px solid var(--line);padding:8px 10px;text-align:left}

/* ==========================================================================
   Search results / blog index / 404
   ========================================================================== */
.list-entry{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:18px;margin-bottom:12px}
.list-entry h2{font-size:17px;font-weight:700;margin-bottom:6px}
.list-entry h2 a{color:var(--ink)}
.list-entry h2 a:hover{color:var(--blue)}
.list-entry p{font-size:14px;color:var(--muted);line-height:1.6}

.error-panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:32px;max-width:560px;margin:0 auto;text-align:center}
.error-panel .code{font-size:56px;font-weight:800;color:var(--blue);letter-spacing:-.03em}
.error-panel h1,.error-panel h2{font-size:22px;font-weight:800;margin:8px 0}
.error-panel p{color:var(--muted);margin:8px 0 14px}
.error-panel .searchbar{margin:16px auto 0;max-width:380px}

/* pagination (rarely shown — listings render all products) */
.pagination,.nav-links{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;margin-top:20px}
.nav-links .page-numbers{display:inline-flex;align-items:center;min-height:34px;padding:4px 12px;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r);
  font-size:14px;font-weight:600;color:var(--ink)}
.nav-links a.page-numbers:hover{border-color:var(--blue);color:var(--blue);text-decoration:none}
.nav-links .page-numbers.current{background:var(--blue);border-color:var(--blue);color:#fff}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;transition-duration:.01ms !important}
  html{scroll-behavior:auto}
}
