/* ==========================================================================
   Locedo 2026 – Frontend-Stylesheet (mobile-first, ohne Build-Step)
   Shop-Themefarben (--c-primary/--c-accent …) werden in base.html.twig
   pro Shop injiziert und überschreiben die Defaults hier.
   ========================================================================== */
:root {
    /* Markenfarben (per Shop im Backend überschreibbar – /admin/shops) */
    --c-primary: #00A6D2;        /* Marke, große Flächen, Icons */
    --c-primary-dark: #007A9C;   /* Links, Hover, kleiner Text */
    --c-primary-deep: #0B3C4D;   /* Header, Footer, Überschriften */
    --c-primary-tint: #E0F5FB;   /* Info-Boxen, aktive Filter, Hover-BG */

    /* Akzent */
    --c-accent: #FF7A3D;         /* CTAs, Preise, Sale-Badges */
    --c-accent-dark: #D65A1F;    /* CTA-Hover */
    --c-accent-tint: #FFEDE0;    /* Rabatt-Badge-Hintergrund */
    --c-accent-text: #7A2E0E;    /* Text auf accent-tint */

    /* Neutrale Palette */
    --c-text: #17262B;
    --c-muted: #5A6B72;
    --c-text-secondary: #5A6B72; /* Alias zu --c-muted (Palette-Name) */
    --c-border: #DCE6EA;
    --c-bg: #F4F8FA;             /* Seitenhintergrund */
    --c-surface: #FFFFFF;        /* Karten/Header */
    --c-soft: #EAF1F4;           /* Bildflächen (leicht getönt) */

    /* Form */
    --radius: 14px;
    --radius-sm: 9px;
    --radius-pill: 999px;
    --shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.05);
    --shadow: 0 6px 20px rgba(16,24,40,.08);
    --shadow-lg: 0 16px 40px rgba(16,24,40,.14);
    --maxw: 1240px;
    --ring: 0 0 0 3px color-mix(in srgb, var(--c-primary) 30%, transparent);

    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: var(--c-primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--c-primary-dark); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.012em; }
h1 { font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.4rem); font-weight: 800; }
h2 { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); font-weight: 750; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.1rem; }
.muted { color: var(--c-muted); }
.empty { padding: 3rem 1rem; color: var(--c-muted); text-align: center; background: var(--c-surface);
    border: 1px dashed var(--c-border); border-radius: var(--radius); }

/* ---------------- Header ---------------- */
.site-header {
    background: var(--c-primary-deep); /* Fallback */
    background: color-mix(in srgb, var(--c-primary-deep) 92%, transparent);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; gap: 1.2rem; padding: .85rem 1.1rem; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; }
.logo img { max-height: 42px; width: auto; display: block; }
.logo-text {
    font-weight: 850; font-size: 1.5rem; letter-spacing: -.03em;
    background: linear-gradient(90deg, #fff, var(--c-accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.searchbar { display: flex; flex: 1 1 320px; box-shadow: var(--shadow-sm); border-radius: var(--radius-pill); }
.searchbar input {
    flex: 1 1 0; min-width: 0; padding: .7rem 1.1rem; border: 1px solid var(--c-border); border-right: 0;
    border-radius: var(--radius-pill) 0 0 var(--radius-pill); font-size: 1rem; background: var(--c-surface);
}
.searchbar input:focus { outline: none; box-shadow: none; }
.searchbar:focus-within { box-shadow: var(--ring); }
.searchbar button {
    padding: .7rem 1.4rem; border: 0; background: var(--c-primary); color: #fff; font-weight: 650;
    border-radius: 0 var(--radius-pill) var(--radius-pill) 0; cursor: pointer; transition: background .15s;
}
.searchbar button:hover { background: var(--c-primary-dark); }
.main-nav { display: flex; gap: 1rem; }
.main-nav a { font-weight: 650; color: rgba(255, 255, 255, .88); }
.main-nav a:hover { color: #fff; }
.main-nav__deals { color: var(--c-accent); }
.main-nav__deals:hover { color: var(--c-accent); filter: brightness(1.12); }

/* Autosuggest-Dropdown */
.searchbar, .hero-search { position: relative; }
.search-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; background: var(--c-surface);
    border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    max-height: 72vh; overflow-y: auto; }
.search-suggest[hidden] { display: none; }
.ss-group { padding: .3rem 0; }
.ss-group + .ss-group { border-top: 1px solid var(--c-border); }
.ss-head { padding: .55rem .9rem .25rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); }
.ss-item { display: flex; align-items: center; gap: .7rem; padding: .55rem .9rem; color: var(--c-text); }
.ss-item:hover, .ss-item.is-active { background: var(--c-soft); text-decoration: none; }
.ss-cat-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; flex: 0 0 auto;
    background: color-mix(in srgb, var(--c-primary) 12%, transparent); color: var(--c-primary); font-weight: 800; font-size: .85rem; }
.ss-cat { font-weight: 600; }
.ss-prod img { width: 40px; height: 40px; object-fit: contain; background: var(--c-soft); border-radius: 7px; flex: 0 0 auto; }
.ss-prod-title { flex: 1; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-prod-price { font-weight: 800; white-space: nowrap; font-size: .9rem; }
.search-suggest mark { background: color-mix(in srgb, var(--c-primary) 16%, transparent); color: inherit;
    font-weight: 700; border-radius: 3px; padding: 0 1px; }
.ss-all { justify-content: space-between; border-top: 1px solid var(--c-border); color: var(--c-primary);
    font-weight: 650; font-size: .9rem; position: sticky; bottom: 0; background: var(--c-surface); }
.ss-all:hover, .ss-all.is-active { background: color-mix(in srgb, var(--c-primary) 8%, var(--c-surface)); }
.ss-all strong { font-weight: 800; }
.ss-all-arrow { margin-left: auto; font-weight: 800; }

/* Burger-Button (auf allen Viewports, mit Label) */
.nav-burger { display: inline-flex; align-items: center; gap: .55rem; padding: .55rem .9rem; flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius-pill); background: rgba(255, 255, 255, .1);
    cursor: pointer; font: inherit; font-weight: 650; color: #fff; transition: .14s; }
.nav-burger:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .18); }
.nav-burger__icon { display: flex; flex-direction: column; gap: 3px; width: 18px; }
.nav-burger__icon span { display: block; height: 2px; background: currentColor; border-radius: 2px; }

/* Off-Canvas-Seitenmenü */
.menu-overlay { position: fixed; inset: 0; background: rgba(16,24,40,.45); opacity: 0; visibility: hidden;
    transition: .2s; z-index: 90; }
.side-menu { position: fixed; top: 0; left: 0; height: 100%; width: min(420px, 92vw); background: var(--c-surface);
    z-index: 95; transform: translateX(-100%); transition: transform .28s cubic-bezier(.4,0,.2,1); box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column; }
body.menu-open .menu-overlay { opacity: 1; visibility: visible; }
body.menu-open .side-menu { transform: translateX(0); }
body.menu-open { overflow: hidden; }
.side-menu__head { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.4rem;
    border-bottom: 1px solid var(--c-border); font-weight: 800; font-size: 1.15rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--c-primary) 10%, var(--c-surface)), var(--c-surface)); }
.side-menu__close { background: var(--c-soft); border: 0; width: 34px; height: 34px; border-radius: 50%;
    font-size: 1.1rem; cursor: pointer; color: var(--c-muted); transition: .14s; }
.side-menu__close:hover { background: var(--c-border); color: var(--c-text); }
.side-menu__body { overflow-y: auto; padding: .6rem .7rem 2.5rem; }

.catmenu { list-style: none; margin: 0; padding: 0; }
.catmenu .catmenu { display: none; margin: .1rem 0 .3rem .35rem; padding-left: .65rem; border-left: 2px solid var(--c-border); }
.catmenu__item.is-open > .catmenu { display: block; }
.catmenu__row { display: flex; align-items: center; gap: .3rem; }
.catmenu__row > a { flex: 1 1 auto; display: block; padding: .7rem .9rem; border-radius: var(--radius-sm);
    color: var(--c-text); font-weight: 600; }
.catmenu__row > a:hover { background: var(--c-soft); color: var(--c-primary); }
/* Unterebenen etwas kleiner/leichter */
.catmenu .catmenu .catmenu__row > a { font-weight: 500; font-size: .92rem; padding-top: .5rem; padding-bottom: .5rem; }
.catmenu__toggle { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px;
    border: 1px solid var(--c-border); background: var(--c-surface); font-size: 1.3rem; color: var(--c-muted);
    cursor: pointer; line-height: 1; border-radius: var(--radius-sm); transition: border-color .18s, color .18s; }
.catmenu__toggle:hover { border-color: var(--c-primary); color: var(--c-primary); }
/* Nur das +-Zeichen dreht sich zu × – nicht der ganze Button */
.catmenu__toggle span { display: block; line-height: 1; transition: transform .18s ease; }
.catmenu__item.is-open > .catmenu__row > .catmenu__toggle { color: var(--c-primary); border-color: var(--c-primary); }
.catmenu__item.is-open > .catmenu__row > .catmenu__toggle span { transform: rotate(45deg); }

/* Service-Links unten im Menü */
.side-menu__links { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--c-border);
    display: flex; flex-direction: column; }
.side-menu__links a { padding: .7rem .9rem; border-radius: var(--radius-sm); color: var(--c-text); font-weight: 600; }
.side-menu__links a:hover { background: var(--c-soft); color: var(--c-primary); }

/* Kategorie-Kacheln (Startseite) */
.cat-tiles-section { margin: 2.4rem 0; }
.cat-tiles-section > h2 { margin: 0 0 1rem; }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: .7rem; padding: 1.2rem .8rem;
    background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); text-align: center;
    color: var(--c-text); transition: .14s; }
.cat-tile:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: var(--c-primary); }
.cat-tile__media { width: 70px; height: 70px; border-radius: 50%; background: var(--c-soft); display: grid;
    place-items: center; overflow: hidden; }
.cat-tile__media img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile__initial { font-size: 1.7rem; font-weight: 800; color: var(--c-primary); }
.cat-tile__title { font-size: .9rem; font-weight: 600; }

/* Section-Kopf mit „mehr"-Link */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; }
.section-head h2 { margin: 0; }
.section-more { font-weight: 650; font-size: .9rem; white-space: nowrap; }
.section-more:hover { text-decoration: underline; }

/* Vorteile / Trust */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin: 3rem 0; }
.benefit { display: flex; gap: .9rem; align-items: flex-start; padding: 1.3rem; background: var(--c-surface);
    border: 1px solid var(--c-border); border-radius: var(--radius); transition: .14s; }
.benefit:hover { box-shadow: var(--shadow); }
.benefit__icon { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
    color: var(--c-primary); background: color-mix(in srgb, var(--c-primary) 12%, transparent); }
.benefit h3 { margin: 0 0 .25rem; font-size: 1.02rem; }
.benefit p { margin: 0; color: var(--c-muted); font-size: .9rem; line-height: 1.5; }

/* Ratgeber-Teaser */
.ratgeber-teaser { margin: 3rem 0; }

/* Hero-Suche */
.hero-search { display: flex; gap: .5rem; margin: 1.4rem 0 .2rem; max-width: 540px; width: 100%; }
.hero-search input { flex: 1 1 0; min-width: 0; padding: .8rem 1.1rem; border: 1px solid var(--c-border);
    border-radius: var(--radius-pill); font-size: 1rem; background: var(--c-surface); }
.hero-search input:focus { outline: none; box-shadow: var(--ring); }
.hero-search .btn { flex: 0 0 auto; padding-inline: 1.4rem; }

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .62rem 1.15rem; border-radius: var(--radius-pill); font-weight: 650;
    cursor: pointer; border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-text);
    transition: transform .08s, box-shadow .15s, background .15s; white-space: nowrap;
}
.btn:hover { box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-primary); color: #fff; border-color: transparent; }
.btn--primary:hover { background: var(--c-primary-dark); color: #fff; box-shadow: var(--shadow); }

/* ---------------- Hero ---------------- */
.hero {
    margin: 1.4rem 0 1.8rem; padding: clamp(2rem, 5vw, 3.4rem) clamp(1.2rem, 4vw, 3rem);
    border-radius: calc(var(--radius) + 6px);
    background: var(--c-surface); /* Fallback */
    background:
        radial-gradient(1200px 300px at 100% -20%, color-mix(in srgb, var(--c-accent) 18%, transparent), transparent),
        linear-gradient(135deg, color-mix(in srgb, var(--c-primary) 12%, var(--c-surface)), var(--c-surface));
    border: 1px solid var(--c-border);
}
.hero h1 { margin: 0 0 .5rem; max-width: 18ch; }
.hero p { color: var(--c-muted); font-size: clamp(1rem, .9rem + .4vw, 1.18rem); margin: 0; max-width: 52ch; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 1.4rem 0 0; padding: 0;
    font-size: .92rem; font-weight: 600; color: var(--c-text); }
.hero-points li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-points li::before { content: "✓"; display: grid; place-items: center; width: 22px; height: 22px;
    border-radius: 50%; background: color-mix(in srgb, var(--c-accent) 18%, transparent); color: var(--c-accent-dark);
    font-size: .8rem; font-weight: 800; }

/* ---------------- Breadcrumb ---------------- */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 1rem 0 .4rem; margin: 0; font-size: .88rem; color: var(--c-muted); }
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: .45rem; color: var(--c-border); }
.breadcrumb [aria-current="page"] { color: var(--c-text); font-weight: 600; }

/* ---------------- Product grid & cards ---------------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 1.1rem; }
.product-grid--embed { margin: 1.5rem 0; }
.product-card {
    position: relative;
    border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-surface);
    overflow: hidden; transition: transform .14s ease, box-shadow .18s ease, border-color .18s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-card__inner { display: flex; flex-direction: column; height: 100%; padding: .9rem; }
/* Titel-Link deckt die ganze Karte ab (stretched link) */
.product-card__title a { color: inherit; }
.product-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.product-card:hover .product-card__title a { color: var(--c-primary); }
.product-card__media {
    position: relative;
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    background: var(--c-soft); border-radius: var(--radius-sm); margin-bottom: .75rem; padding: .8rem; overflow: hidden;
}
.product-card__media img { max-height: 100%; max-width: 100%; object-fit: contain; transition: transform .25s; }
.product-card__best, .product-card__drop { position: absolute; top: .4rem; left: .4rem; z-index: 3; pointer-events: none;
    color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .01em;
    padding: .18rem .45rem; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.product-card__best { background: #157347; }
.product-card__drop { background: #d9480f; }
.product-card:hover .product-card__media img { transform: scale(1.045); }
.product-card__title { font-size: .94rem; font-weight: 600; margin: .1rem 0 .35rem; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.product-card__brand { position: relative; z-index: 2; display: inline-block; align-self: flex-start;
    font-size: .78rem; color: var(--c-muted); margin: 0 0 .5rem; text-transform: uppercase; letter-spacing: .03em; }
.product-card__brand:hover { color: var(--c-muted); text-decoration: underline; }
.product-card__price { font-size: 1.18rem; font-weight: 820; color: var(--c-accent); margin: auto 0 0; letter-spacing: -.02em; }

/* ---- Deal-/Schnäppchen-Karten ---- */
.deal-badge { position: absolute; top: .4rem; left: .4rem; z-index: 3; pointer-events: none;
    background: var(--c-accent); color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: -.01em;
    padding: .2rem .5rem; border-radius: var(--radius-pill); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.deal-price { display: flex; align-items: baseline; gap: .5rem; margin: auto 0 0; flex-wrap: wrap; }
.deal-price__old { color: var(--c-muted); text-decoration: line-through; font-size: .95rem; }
.deal-price__new { color: var(--c-accent); font-weight: 820; font-size: 1.18rem; letter-spacing: -.02em; }
.deal-save { color: var(--c-primary-dark); font-size: .78rem; font-weight: 650; margin: .25rem 0 0; }
.deal-intro { margin: .2rem 0 1.4rem; max-width: 70ch; color: var(--c-text); }
.deal-outro { margin-top: 2.2rem; }
.product-card__compare {
    display: inline-block; margin: .5rem 0 0; padding: .2rem .55rem; font-size: .76rem; font-weight: 650;
    color: var(--c-accent-dark); background: color-mix(in srgb, var(--c-accent) 14%, transparent);
    border-radius: var(--radius-pill);
}
.product-card__from { font-size: .82rem; font-weight: 600; color: var(--c-muted); letter-spacing: 0; }
.product-card__variants {
    display: inline-block; margin: .5rem 0 0; padding: .2rem .55rem; font-size: .76rem; font-weight: 650;
    color: var(--c-muted); background: color-mix(in srgb, var(--c-muted) 12%, transparent);
    border-radius: var(--radius-pill);
}

/* ---------------- Listing ---------------- */
.listing-header { padding: .6rem 0 .2rem; }
.listing-header__count { color: var(--c-muted); margin: .2rem 0 0; }
.listing-header--image { padding: 2.2rem 1.6rem; border-radius: var(--radius); background-size: cover;
    background-position: center; color: #fff; margin-bottom: .4rem; }
.listing-header--image h1 { color: #fff; }
.listing-header--image .listing-header__count { color: rgba(255,255,255,.85); }
.listing-toolbar { display: flex; justify-content: flex-end; align-items: center; padding: .2rem 0 1.1rem; }
.sort-form { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--c-muted); }
.sort-form select, .facets__toggle, select {
    padding: .5rem .7rem; border: 1px solid var(--c-border); border-radius: var(--radius-sm);
    background: var(--c-surface); font: inherit; color: var(--c-text);
}

/* Listing-Layout mit Facetten */
.listing-layout { display: grid; grid-template-columns: 1fr; gap: 1.6rem; }
.listing-main { min-width: 0; }

.active-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .4rem 0 1.1rem; }
.filter-chip { display: inline-flex; gap: .45rem; align-items: center; padding: .4rem .8rem; background: var(--c-primary-tint);
    color: var(--c-primary-dark); border: 1px solid transparent; border-radius: var(--radius-pill); font-size: .85rem; box-shadow: var(--shadow-sm); }
.filter-chip:hover { border-color: var(--c-primary); }
.filter-chip span { color: var(--c-primary-dark); font-weight: 800; }
.filter-reset { font-size: .85rem; color: var(--c-muted); }

.facets { position: relative; }
.facets__toggle { display: none; width: 100%; font-weight: 650; cursor: pointer; }
.facets__panel { display: flex; flex-direction: column; gap: .7rem; }
.facet { border: 1px solid var(--c-border); border-radius: var(--radius); padding: .5rem 1rem; background: var(--c-surface); box-shadow: var(--shadow-sm); }
.facet__title { font-weight: 700; cursor: pointer; padding: .5rem 0; list-style: none; font-size: .95rem; }
.facet__title::-webkit-details-marker { display: none; }
.facet__title::after { content: "–"; float: right; color: var(--c-muted); }
.facet:not([open]) .facet__title::after { content: "+"; }
.facet__list { list-style: none; margin: 0 0 .5rem; padding: 0; max-height: 240px; overflow-y: auto; }
.price-filter { padding: .3rem 0 .5rem; }
.price-filter__row { display: flex; align-items: center; gap: .4rem; margin-bottom: .5rem; }
.price-filter__row input { width: 100%; padding: .4rem .5rem; border: 1px solid var(--c-border); border-radius: 8px; font: inherit; }
.price-filter__sep { color: var(--c-muted); }
.price-filter__apply { width: 100%; }

/* ---- Preis-Slider (Dual-Range, touch-freundlich) – Wert · Regler · Wert auf einer Linie ---- */
.price-slider { display: flex; align-items: center; gap: .5rem; margin: .35rem 0 .7rem; }
.price-slider__value { flex: 0 0 auto; font-weight: 700; font-size: .8rem; color: var(--c-text); white-space: nowrap;
    min-width: 2.8em; text-align: center; background: var(--c-bg); border: 1px solid var(--c-border);
    border-radius: 7px; padding: .2rem .35rem; }
.price-slider__rail { position: relative; flex: 1 1 auto; min-width: 0; height: 26px; }
.price-slider__track { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
    height: 5px; background: var(--c-border); border-radius: 999px; }
.price-slider__fill { position: absolute; top: 0; bottom: 0; left: 0; right: 0; background: var(--c-primary); border-radius: 999px; }
.price-slider__range { -webkit-appearance: none; appearance: none; position: absolute; left: 0; top: 0;
    width: 100%; height: 100%; margin: 0; padding: 0; background: transparent; pointer-events: none; }
.price-slider__range:focus { outline: none; }
.price-slider__range::-webkit-slider-runnable-track { background: transparent; border: 0; height: 100%; }
.price-slider__range::-moz-range-track { background: transparent; border: 0; height: 100%; }
/* Thumbs: nur diese sind klickbar, damit beide Regler unabhängig ziehbar sind. */
.price-slider__range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto;
    width: 22px; height: 22px; margin-top: 0; border-radius: 50%; background: #fff; border: 2px solid var(--c-primary);
    box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: grab; transition: transform .08s; }
.price-slider__range::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.12); }
.price-slider__range::-moz-range-thumb { pointer-events: auto; width: 22px; height: 22px; border-radius: 50%;
    background: #fff; border: 2px solid var(--c-primary); box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: grab; }
.price-slider__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 35%, transparent); }
.btn--sm { padding: .35rem .8rem; font-size: .85rem; }
.facet__value { display: flex; align-items: center; gap: .55rem; padding: .32rem 0; color: var(--c-text); font-size: .9rem; }
.facet__value:hover { color: var(--c-primary); }
.facet__check { width: 18px; height: 18px; border: 1.5px solid var(--c-border); border-radius: 5px; flex: 0 0 auto; transition: .12s; }
.facet__value.is-active .facet__check { background: var(--c-primary); border-color: var(--c-primary); box-shadow: inset 0 0 0 2.5px #fff; }
.facet__value.is-active { font-weight: 650; }
.facet__label { flex: 1; text-transform: capitalize; }
.facet__count { color: var(--c-muted); font-size: .8rem; }

@media (min-width: 900px) {
    .listing-layout { grid-template-columns: 270px 1fr; align-items: start; }
}
@media (max-width: 899px) {
    .facets__toggle { display: block; }
    .facets__panel { display: none; margin-top: .6rem; }
    .facets.is-open .facets__panel { display: flex; }
}

/* ---------------- Pagination ---------------- */
.pagination { display: flex; gap: .8rem; align-items: center; justify-content: center; padding: 2.2rem 0; }
.pagination a { padding: .55rem 1.1rem; border: 1px solid var(--c-border); border-radius: var(--radius-pill); background: var(--c-surface); font-weight: 600; }
.pagination a:hover { border-color: var(--c-primary); box-shadow: var(--shadow-sm); }
.pagination__status { color: var(--c-muted); font-size: .9rem; }

/* ---------------- Product detail ---------------- */
.product-detail { display: grid; grid-template-columns: 1fr; gap: 1.8rem; padding: 1rem 0 .5rem; }
.product-detail__media { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center; padding: 1.5rem; overflow: hidden; position: relative;
    cursor: zoom-in; }
.product-detail__media img { max-height: 440px; width: auto; max-width: 100%; object-fit: contain;
    transition: transform .12s ease; }
.product-detail__info h1 { margin: 0 0 .5rem; }
.product-detail__brand { color: var(--c-muted); margin: 0 0 1rem; }
.product-detail__price { font-size: 1.1rem; padding: 1rem 1.2rem; background: var(--c-surface);
    border: 1px solid var(--c-border); border-radius: var(--radius); display: inline-block; }
.product-detail__price strong { font-size: 1.9rem; color: var(--c-accent); letter-spacing: -.02em; }
.product-detail__desc { color: #3a4150; margin-top: 1.2rem; }

/* Dynamische Produkteigenschaften (Größe/Farbe/Material/…) */
.product-attrs { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 1.1rem 0 0;
    font-size: .92rem; }
.product-attrs dt { font-weight: 650; color: var(--c-muted); }
.product-attrs dd { margin: 0; }

/* Varianten-Auswahl (Größen/Ausführungen) auf der Detailseite */
.product-variants { margin: 1.1rem 0 0; }
.product-variants__label { font-weight: 650; margin: 0 0 .5rem; color: var(--c-text); }
.product-variants__list { display: flex; flex-wrap: wrap; gap: .55rem; }
.product-variants__item {
    display: inline-flex; flex-direction: column; align-items: center; gap: .25rem; padding: .45rem .55rem .5rem;
    border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-surface);
    text-decoration: none; color: var(--c-text); transition: .14s; line-height: 1.2; text-align: center; min-width: 60px;
}
.product-variants__item:hover { border-color: var(--c-primary); box-shadow: var(--shadow-sm); }
.product-variants__item.is-active { border-color: var(--c-primary); background: color-mix(in srgb, var(--c-primary) 12%, transparent); font-weight: 650; }
/* Thumbnail gerahmt + leicht getönter Grund, damit Produktfotos mit weißem Hintergrund
   nicht als „weißes Kästchen" mit der weißen Karte verschmelzen. */
.product-variants__thumb { width: 52px; height: 52px; object-fit: contain; border-radius: 8px;
    background: var(--c-bg); border: 1px solid var(--c-border); padding: 2px; }
.product-variants__item:hover .product-variants__thumb { border-color: color-mix(in srgb, var(--c-primary) 40%, var(--c-border)); }
.product-variants__name { font-weight: 600; font-size: .85rem; max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-variants__price { font-size: .82rem; color: var(--c-muted); }

/* ---------------- Offers (Preisvergleich) ---------------- */
.offers { margin: 2.4rem 0; }
.offers-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--c-surface);
    border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; }
.offers-table th { padding: .85rem 1rem; text-align: left; font-size: .78rem; text-transform: uppercase;
    letter-spacing: .04em; color: var(--c-muted); background: var(--c-soft); }
.offers-table td { padding: .9rem 1rem; border-top: 1px solid var(--c-border); vertical-align: middle; }
.offers-table tbody tr:hover { background: color-mix(in srgb, var(--c-primary) 4%, transparent); }
.offers-table tbody tr:first-child td { border-top: 0; }
.offers-table tbody tr:first-child { background: color-mix(in srgb, var(--c-accent) 7%, transparent); }
.offers-table tbody tr:first-child td:first-child::before {
    content: "Bester Preis"; display: inline-block; margin-right: .5rem; padding: .12rem .5rem;
    font-size: .68rem; font-weight: 700; color: #fff; background: var(--c-accent-dark); border-radius: var(--radius-pill);
    vertical-align: middle;
}
.offers-table__price { font-weight: 820; white-space: nowrap; font-size: 1.05rem; }
.offers-table__shop { display: block; font-weight: 650; }
a.offers-table__shop { color: var(--c-text); }
a.offers-table__shop:hover { color: var(--c-primary); }
.offers-table__brand { display: block; font-size: .8rem; color: var(--c-muted); }
a.offers-table__brand:hover { color: var(--c-primary); }

/* Mobil: Angebote gestapelt statt breiter Tabelle (kein horizontales Scrollen) */
@media (max-width: 640px) {
    .offers-table, .offers-table tbody, .offers-table tr, .offers-table td { display: block; width: 100%; }
    .offers-table thead { display: none; }
    .offers-table tr { padding: .9rem 1rem; border-top: 1px solid var(--c-border); }
    .offers-table tbody tr:first-child td { border-top: 0; }
    .offers-table td { padding: .15rem 0; border-top: 0; }
    .offers-table__price { font-size: 1.25rem; }
    .offers-table td .btn { display: block; width: 100%; text-align: center; margin-top: .5rem; }
}

/* Amazon-Alternative */
.alt-amazon { display: flex; align-items: center; gap: .8rem; margin: 1.4rem 0; color: var(--c-muted); }
.btn--amazon { background: #ff9900; color: #111; border-color: transparent; }
.btn--amazon:hover { background: #f08804; color: #111; }
.btn--ebay { background: #0064d2; color: #fff; border-color: transparent; }
.btn--ebay:hover { background: #0053ad; color: #fff; }

/* Preisverlauf */
.price-history { margin: 2.4rem 0; }
.price-history__chart { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.price-history__loading { display: block; padding: 1rem 0; }
.ph-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem; margin-bottom: .5rem; }
.ph-current { font-size: 1rem; }
.ph-current strong { color: var(--c-primary); font-size: 1.15rem; }
.ph-minmax { color: var(--c-muted); font-size: .88rem; }
.ph-svg { width: 100%; height: auto; display: block; }
.ph-area { fill: color-mix(in srgb, var(--c-primary) 12%, transparent); stroke: none; }
.ph-line { fill: none; stroke: var(--c-primary); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.ph-dot { fill: var(--c-primary); stroke: #fff; stroke-width: 2; }
.ph-dates { display: flex; justify-content: space-between; color: var(--c-muted); font-size: .8rem; margin-top: .35rem; }
.ph-plot { position: relative; }
.ph-svg, .ph-hit { cursor: crosshair; }
.ph-guide { stroke: var(--c-muted); stroke-width: 1; stroke-dasharray: 4 3; opacity: 0; }
.ph-marker { fill: var(--c-primary); stroke: #fff; stroke-width: 2; }
.ph-tip { position: absolute; transform: translate(-50%, calc(-100% - 12px)); background: var(--c-text); color: #fff;
    padding: .32rem .6rem; border-radius: 8px; font-size: .78rem; white-space: nowrap; pointer-events: none;
    display: flex; flex-direction: column; align-items: center; line-height: 1.25; z-index: 5; transition: opacity .1s;
    box-shadow: var(--shadow); }
.ph-tip::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    border: 5px solid transparent; border-top-color: var(--c-text); }
.ph-tip strong { font-size: .92rem; }
.ph-tip span { opacity: .8; }

/* ---------------- Slider ---------------- */
.product-slider { margin: 2.8rem 0; }
.product-slider > h2 { margin: 0 0 1rem; }
.slider { position: relative; }
.slider__track { display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding: .3rem .2rem 1rem; scrollbar-width: thin; }
.slider__track::-webkit-scrollbar { height: 7px; }
.slider__track::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 4px; }
.slider__item { flex: 0 0 auto; width: 200px; scroll-snap-align: start; display: flex; }
.slider__item > .product-card { width: 100%; }
.slider__btn { position: absolute; top: 38%; z-index: 2; width: 42px; height: 42px; display: grid; place-items: center;
    border-radius: 50%; border: 1px solid var(--c-border); background: var(--c-surface); cursor: pointer;
    box-shadow: var(--shadow); color: var(--c-text); transition: .12s; }
.slider__btn:hover { background: var(--c-primary); color: #fff; border-color: transparent; }
.slider__btn--prev { left: -10px; }
.slider__btn--next { right: -10px; }

/* ---------------- Partner ---------------- */
.partner-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.partner-box { display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border: 1px solid var(--c-border);
    border-radius: var(--radius); background: var(--c-surface); box-shadow: var(--shadow-sm); transition: .14s; }
.partner-box:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.partner-box img { max-height: 40px; width: auto; }

/* Händler-Header */
.owner-header { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin: .6rem 0 1.8rem;
    padding: 1.4rem 1.6rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); }
.owner-header__banner { max-height: 80px; width: auto; border-radius: var(--radius-sm); }
.owner-header__info { flex: 1 1 260px; }
.owner-header__info h1 { margin: 0 0 .3rem; }
.owner-header__meta { color: var(--c-muted); margin: 0 0 1rem; }

/* Gutscheine */
.vouchers { margin: 2rem 0; }
/* Ein Gutschein pro Zeile (volle Breite) – Platz für lange Texte/Codes */
.voucher-list { display: flex; flex-direction: column; gap: 1rem; }
.voucher-card { display: flex; align-items: center; gap: 1.3rem; padding: 1.2rem 1.4rem; background: var(--c-surface);
    border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.voucher-card__badge { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
    font-size: 1.5rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--c-accent), var(--c-accent-dark)); }
.voucher-card__body { flex: 1 1 auto; min-width: 0; }
.voucher-card__note { font-weight: 650; margin: 0; line-height: 1.45; overflow-wrap: anywhere; }
.voucher-card__nocode { font-size: .85rem; color: var(--c-muted); margin: .4rem 0 0; }
.voucher-card__valid { font-size: .78rem; color: var(--c-muted); margin: .4rem 0 0; }
.voucher-card__cta, .voucher-reveal { flex: 0 0 auto; }

.voucher-code { display: inline-flex; align-items: stretch; max-width: 100%; border: 1.5px dashed var(--c-accent-dark);
    border-radius: 8px; overflow: hidden; }
.voucher-code__value { padding: .4rem .8rem; font-weight: 800; letter-spacing: .05em; font-family: ui-monospace, monospace;
    color: var(--c-accent-dark); background: color-mix(in srgb, var(--c-accent) 12%, transparent);
    word-break: break-all; overflow-wrap: anywhere; }
.voucher-code__copy { border: 0; border-left: 1.5px dashed var(--c-accent-dark); background: var(--c-surface); color: var(--c-text);
    padding: 0 .8rem; cursor: pointer; font-size: .78rem; font-weight: 650; white-space: nowrap; }
.voucher-code__copy:hover { background: var(--c-soft); color: var(--c-primary); }

/* Auf schmalen Screens: Aktion unter den Text stapeln, Button/Code voll breit */
@media (max-width: 640px) {
    .voucher-card { flex-wrap: wrap; }
    .voucher-card__body { flex-basis: calc(100% - 48px - 1.3rem); }
    .voucher-card__cta, .voucher-reveal { flex-basis: 100%; }
    .voucher-reveal .btn, .voucher-card__cta { width: 100%; }
    .voucher-code { width: 100%; }
    .voucher-code__value { flex: 1; }
}

.owner-seo { margin: 2.5rem 0 1rem; padding: 1.5rem 1.7rem; background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: var(--radius); color: #3a4150; }
.owner-seo h3 { margin-top: 0; }

/* FAQ-Akkordeon */
.faq { margin: 2.5rem 0 1rem; }
.faq > h2 { margin-bottom: 1rem; }
.faq-list { display: flex; flex-direction: column; gap: .6rem; }
.faq-item { border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-surface); overflow: hidden; }
.faq-item__q { cursor: pointer; padding: 1rem 2.6rem 1rem 1.2rem; font-weight: 650; list-style: none; position: relative; }
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
    font-size: 1.4rem; line-height: 1; color: var(--c-muted); }
.faq-item[open] .faq-item__q::after { content: "\2212"; }
.faq-item__a { padding: 0 1.2rem 1.2rem; color: #3a4150; line-height: 1.6; }
.faq-item__a > :first-child { margin-top: 0; }
.faq-item__a > :last-child { margin-bottom: 0; }

/* Partner-Übersicht */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.partner-card { display: flex; flex-direction: column; align-items: center; gap: .7rem; padding: 1.3rem 1rem; text-align: center;
    background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); color: var(--c-text); transition: .14s; }
.partner-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); text-decoration: none; }
.partner-card__logo { height: 56px; display: grid; place-items: center; }
.partner-card__logo img { max-height: 56px; max-width: 100%; width: auto; object-fit: contain; }
.partner-card__initial { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
    background: var(--c-soft); color: var(--c-primary); font-size: 1.5rem; font-weight: 800; }
.partner-card__title { font-weight: 650; }
.partner-card__badge { font-size: .78rem; font-weight: 700; color: var(--c-accent-dark);
    background: color-mix(in srgb, var(--c-accent) 14%, transparent); padding: .2rem .6rem; border-radius: 999px; }
.partner-card__link { font-size: .82rem; color: var(--c-primary); }

/* Marken-Übersicht A–Z */
.az-nav { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 1.6rem; position: sticky; top: 0;
    background: var(--c-bg); padding: .5rem 0; z-index: 5; }
.az-nav a { display: grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 .3rem;
    border: 1px solid var(--c-border); border-radius: 6px; font-weight: 650; color: var(--c-text); background: var(--c-surface); }
.az-nav a:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); text-decoration: none; }
.az-group { margin-bottom: 2rem; scroll-margin-top: 4rem; }
.az-group__letter { border-bottom: 2px solid var(--c-border); padding-bottom: .3rem; margin-bottom: .8rem; }
.brand-index { list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .2rem .9rem; }
.brand-index a { display: flex; justify-content: space-between; gap: .5rem; padding: .4rem .3rem;
    color: var(--c-text); border-bottom: 1px solid transparent; }
.brand-index a:hover { color: var(--c-primary); border-bottom-color: var(--c-border); text-decoration: none; }
.brand-index__count { color: var(--c-muted); font-size: .8rem; flex: 0 0 auto; }
.az-nav a.is-active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.az-hint { color: var(--c-muted); margin-top: 1.2rem; }

/* Ratgeber: Autor/Datum, Quellen, Autorenbox (E-E-A-T-Signale) */
.article-meta { display: flex; flex-wrap: wrap; gap: .1rem .6rem; color: var(--c-text-secondary, var(--c-muted));
    font-size: .92rem; margin: -.4rem 0 1.4rem; }
.article-meta a { color: inherit; text-decoration: underline; }
.article-sources { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--c-border); }
.article-sources h2 { font-size: 1.1rem; margin: 0 0 .6rem; }
.article-sources ul { margin: 0; padding-left: 1.2rem; color: var(--c-muted); font-size: .92rem; }
.article-sources li { margin-bottom: .3rem; overflow-wrap: anywhere; }
.author-box { display: flex; gap: 1.1rem; align-items: flex-start; margin-top: 2rem;
    padding: 1.2rem 1.4rem; background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: var(--radius); }
.author-box__img { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.author-box h2 { font-size: 1.05rem; margin: 0 0 .4rem; }
.author-box p { margin: 0 0 .4rem; color: var(--c-muted); }
.author-box__role { font-weight: 600; color: var(--c-text) !important; }

/* Autoren-Profilseite (/autor/{slug}) */
.author-profile { display: flex; gap: 1.6rem; align-items: flex-start; margin: 1rem 0 2.4rem; }
.author-profile__img { flex: 0 0 auto; width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
    border: 1px solid var(--c-border); }
.author-profile h1 { margin: 0 0 .3rem; }
.author-profile__role { font-weight: 600; margin: 0 0 .6rem; }
.author-profile__bio { color: var(--c-muted); margin: 0 0 .8rem; max-width: 60ch; }
.author-profile__links { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 0; }
.author-profile__links a { font-size: .88rem; color: var(--c-primary); }
.blog-card__meta, .blog-card__date { font-size: .85rem; color: var(--c-muted); margin: 0 0 .4rem; }
@media (max-width: 560px) {
    .author-profile, .author-box { flex-direction: column; }
}

/* Preisalarm */
.price-alert { margin: 2.5rem 0; }
.price-alert__inner { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem 1.7rem;
    background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.price-alert__intro h2 { margin: 0 0 .3rem; }
.price-alert__intro p { margin: 0; color: var(--c-muted); }
/* Alles in einer Reihe (E-Mail | Wunschpreis | Button); umbricht erst auf schmalen Screens */
.price-alert__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .7rem; }
.price-alert__field { display: flex; flex-direction: column; gap: .25rem;
    font-size: .82rem; font-weight: 600; color: var(--c-muted); }
.price-alert__field:first-of-type { flex: 1 1 220px; }        /* E-Mail wächst */
.price-alert__field--price { flex: 0 0 160px; }               /* Wunschpreis fest */
.price-alert__field input { padding: .55rem .7rem; border: 1px solid var(--c-border); border-radius: 8px; font: inherit; color: var(--c-text); }
/* Eingabe + €-Suffix nebeneinander */
.price-input { display: flex; align-items: center; gap: .35rem; }
.price-input input { flex: 1 1 auto; min-width: 0; width: 100%; }
.price-input__suffix { color: var(--c-muted); font-weight: 700; }
.price-alert__form .btn { flex: 0 0 auto; }
.price-alert__note { flex-basis: 100%; margin: .2rem 0 0; font-size: .74rem; color: var(--c-muted); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert-result { max-width: 560px; margin: 3rem auto; padding: 2.5rem 2rem; text-align: center; background: var(--c-surface);
    border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.alert-result h1 { margin-top: 0; }
.alert-result p { color: #3a4150; margin-bottom: 1.5rem; }
.alert-result--error h1 { color: #b42318; }

/* Preis-Einordnung / Bestpreis-Badge */
.price-rating { display: inline-flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 0 0 1rem;
    padding: .5rem .85rem; border-radius: 10px; font-size: .9rem; }
.price-rating__badge { font-weight: 750; }
.price-rating__note { color: #4a515c; font-size: .82rem; }
.price-rating--best, .price-rating--guenstig { background: #e7f7ed; }
.price-rating--best .price-rating__badge, .price-rating--guenstig .price-rating__badge { color: #157347; }
.price-rating--mittel { background: #fff4e5; }
.price-rating--mittel .price-rating__badge { color: #b25e00; }
.price-rating--teuer { background: #fdecea; }
.price-rating--teuer .price-rating__badge { color: #b42318; }

/* 404 mit Alternativen */
.notfound { text-align: center; padding: 2.5rem 1rem 1.5rem; }
.notfound h1 { margin: 0 0 .6rem; }
.notfound p { color: var(--c-muted); max-width: 560px; margin: 0 auto 1.4rem; }
.notfound__search { display: flex; gap: .5rem; max-width: 460px; margin: 0 auto; }
.notfound__search input { flex: 1 1 auto; min-width: 0; padding: .6rem .8rem;
    border: 1px solid var(--c-border); border-radius: 10px; font: inherit; }

/* Cookie-Consent (Overlay-Popup mit Kategorien) */
.cookie-consent { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center;
    background: rgba(15, 23, 42, .55); padding: 1rem; }
.cookie-consent[hidden] { display: none; }
.cookie-consent__box { background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; padding: 1.6rem 1.7rem; }
.cookie-consent__title { margin: 0 0 .6rem; }
.cookie-consent__text { margin: 0 0 1rem; font-size: .9rem; color: #3a4150; }
.cookie-consent__cats { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.cookie-cat__row { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; cursor: pointer; }
.cookie-cat__row input { margin-top: .2rem; flex: 0 0 auto; }
.cookie-consent__actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; }
.btn--ghost { background: transparent; border: 1px solid var(--c-border); color: var(--c-text); }
.btn--ghost:hover { background: var(--c-soft); }
.footer-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.footer-linkbtn:hover { text-decoration: underline; }

/* Unterkategorien-Chips (Crosslinking) */
.subcats { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.2rem; }
.subcats__link { display: inline-block; padding: .35rem .8rem; background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--c-text); }
.subcats__link:hover { border-color: var(--c-primary); color: var(--c-primary); text-decoration: none; }

/* Marken-Crosslinks */
.crosslinks { margin: 2rem 0; }
.crosslinks h2 { margin-bottom: .8rem; }
.crosslinks__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem .8rem; }
.crosslinks__list a { display: inline-block; padding: .3rem .7rem; background: var(--c-soft); border-radius: 8px;
    font-size: .85rem; color: var(--c-text); }
.crosslinks__list a:hover { color: var(--c-primary); text-decoration: none; }

/* ---------------- Category SEO text ---------------- */
.category-text { margin: 2.5rem 0 1rem; padding: 1.6rem 1.8rem; background: var(--c-surface);
    border: 1px solid var(--c-border); border-radius: var(--radius); color: #3a4150; }
.category-text h2, .category-text h3 { margin-top: 1.2rem; }

/* ---------------- CMS / Blog ---------------- */
.cms-page, .blog { padding: 1.4rem 0; }
.page-container, .blog-container { background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2.4rem); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.blog-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
    padding: 1.3rem; transition: .14s; overflow: hidden; }
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.blog-card h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
.blog-card__img { display: block; margin: -1.3rem -1.3rem 1rem; }
.blog-card__img img { display: block; width: 100%; height: 180px; object-fit: cover; }
/* Begrenzter Hero: volle Breite + feste responsive Höhe reserviert den Platz (kein CLS).
   WICHTIG: aspect-ratio + max-height ließ die Box (beide Maße auto) in der BREITE schrumpfen
   → sie füllte den Container nicht mehr und „klebte" mit Leerraum an einer Seite. Feste Höhe
   (clamp) + width:100% hält die Box formatfüllend; das Bild deckt zentriert (cover). */
.blog-hero { width: 100%; margin: 0 0 1.5rem; height: clamp(220px, 42vw, 460px);
    overflow: hidden; border-radius: var(--radius); background: var(--c-soft); }
.blog-hero img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* ---------------- Footer ---------------- */
.site-footer { margin-top: 4rem; background: var(--c-primary-deep); border-top: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .72); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 2rem; padding: 3rem 1.1rem 2.2rem; }
.footer-brand p { margin: .9rem 0 0; max-width: 36ch; line-height: 1.6; font-size: .92rem; }
.footer-logo { display: inline-block; }
.footer-logo .logo-text { font-size: 1.3rem; }
.footer-trust { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: .45rem; }
.footer-trust li { position: relative; padding-left: 1.5rem; font-size: .88rem; }
.footer-trust li::before { content: "✓"; position: absolute; left: 0; color: var(--c-accent); font-weight: 800; }
.footer-col h3 { color: #fff; font-size: .95rem; margin: 0 0 1rem; letter-spacing: .01em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-col a { color: rgba(255, 255, 255, .72); font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .18); }
.footer-bottom .container { padding: 1.2rem 1.1rem; }
.footer-bottom p { margin: .15rem 0; font-size: .82rem; }
.footer-note { opacity: .8; }

@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------------- Error ---------------- */
.error-page { text-align: center; padding: 5rem 1rem; }
.error-page h1 { font-size: 5rem; margin: 0; background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
    -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (min-width: 768px) {
    .product-detail { grid-template-columns: 420px 1fr; }
}
/* Kompakter Header auf Handys: nur Burger-Icon, Suche in einer Zeile */
@media (max-width: 700px) {
    .header-inner { gap: .55rem; padding: .55rem .8rem; }
    .nav-burger { padding: .5rem; }
    .nav-burger__label { display: none; }
    .main-nav { display: none; }             /* Ratgeber bleibt im Footer & Menü erreichbar */
    .searchbar { flex: 1 1 auto; box-shadow: none; }
    .logo img { max-height: 32px; }
    .logo-text { font-size: 1.2rem; }
    .searchbar input { padding: .55rem .9rem; }
    .searchbar button { padding: .55rem 1rem; }
}
@media (max-width: 560px) {
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
}

/* --- AdSense-Block (Ratgeber) --- */
.ad--article { margin: 2rem 0; text-align: center; min-height: 90px; }
.ad__label {
    display: block;
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #9aa1ab;
    margin-bottom: .35rem;
}
.ad .adsbygoogle { display: block; }
