/* =====================================================================
   ökostromhelden.de – Theme (Relaunch 2026-12)
   Gemeinsames Design-System für alle Standalone-Templates (custom-*.php)

   Reihenfolge der Stylesheets im Header:
     1. css/theme.css       (diese Datei: Tokens, Grundlayout, Header, Footer, Seiten)
     2. style.css           (Produktseite: Galerie, Lightbox, Varianten)
     3. css/components.css  (Produktkarten, Karussell, Produktseite .oeko-pp)

   Farben
     --c-ink     #1A1A1A  Header, Überschriften
     --c-accent  #ff6565  Marke (Linien, Icons, Hover)
     --c-cta     #d42a3a  Buttons mit weißer Schrift (Kontrast ≥ 4.5:1)
     --c-sand    #E7E3D9  Linien, Flächen
     --c-bg      #f7f5f0  Seitenhintergrund
   ===================================================================== */

@font-face {
    font-family: 'Noway';
    src: url('../fonts/noway-regular-webfont.woff2') format('woff2'),
         url('../fonts/noway-regular-webfont.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Noway';
    src: url('../fonts/noway-bold-webfont.woff2') format('woff2');
    font-weight: 600 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Noway';
    src: url('../fonts/noway_bold_italic-webfont.woff2') format('woff2');
    font-weight: 600 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --c-ink: #1A1A1A;
    --c-ink-2: #262626;
    --c-text: #3f3f3f;
    --c-muted: #6b6b6b;
    --c-bg: #f7f5f0;
    --c-surface: #ffffff;
    --c-sand: #E7E3D9;
    --c-line: #E7E3D9;
    --c-accent: #ff6565;
    --c-cta: #d42a3a;
    --c-cta-hover: #b51f2e;
    --c-sale: #df1c2f;
    --c-green: #187f01;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 2px 8px rgba(26, 26, 26, .06);
    --shadow-md: 0 12px 30px rgba(26, 26, 26, .10);
    --container: 1400px;
    --gutter: 20px;
    --font: 'Noway', 'Helvetica Neue', Arial, sans-serif;
    --oeko-header-h: 124px;   /* Höhe des fixierten Headers (Hauptzeile + Navigation) */
}
@media (max-width: 1024px) {
    :root { --oeko-header-h: 64px; --gutter: 16px; }
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--oeko-header-h) + 12px); }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--c-cta); }
a:hover { color: var(--c-cta-hover); }
h1, h2, h3, h4 { font-family: var(--font); color: var(--c-ink); line-height: 1.2; font-weight: 700; letter-spacing: normal; text-transform: none; margin: 0 0 .5em; }
h1 { font-size: clamp(26px, 3.2vw, 38px); }
h2 { font-size: clamp(21px, 2.2vw, 28px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.screen-reader-text, .sr-only {
    position: absolute !important; 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: 12px; top: -60px; z-index: 3000; background: var(--c-ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 8px; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 0; color: #fff; }

.oeko-container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); width: 100%; }
.container-wide { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.site { min-height: 60vh; }
.site-content { background: var(--c-bg); padding: 0 0 56px; }

/* ---------- Buttons ---------- */
.btn, .btn-primary, .btn-secondary, .btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 46px; padding: 12px 24px;
    border-radius: var(--radius-sm); border: 2px solid transparent;
    font-weight: 700; font-size: 15px; line-height: 1.2; letter-spacing: .02em;
    text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn-primary { background: var(--c-cta) !important; color: #fff !important; border-color: var(--c-cta); text-transform: none; }
.btn-primary:hover { background: var(--c-cta-hover) !important; border-color: var(--c-cta-hover); color: #fff !important; }
.btn-secondary { background: var(--c-ink); color: #fff; }
.btn-secondary:hover { background: #000; color: #fff; }
.btn-ghost { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.btn-ghost:hover { background: var(--c-ink); color: #fff; }
.w-full { width: 100%; }

/* ---------- Topbar (USPs) ---------- */
.oeko-topbar { background: var(--c-sand); color: var(--c-ink); font-size: 13px; }
.oeko-topbar .topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.oeko-topbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; flex-wrap: wrap; }
.oeko-topbar li { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.oeko-topbar li i { color: var(--c-green); }
.oeko-topbar .topbar-contact { display: flex; gap: 18px; white-space: nowrap; }
.oeko-topbar .topbar-contact a { color: var(--c-ink); text-decoration: none; font-weight: 600; }
.oeko-topbar .topbar-contact a:hover { color: var(--c-cta); }
@media (max-width: 1024px) {
    .oeko-topbar .topbar-contact { display: none; }
    .oeko-topbar ul { justify-content: center; gap: 0; width: 100%; overflow: hidden; height: 32px; flex-direction: column; flex-wrap: nowrap; }
    .oeko-topbar li { height: 32px; justify-content: center; flex: 0 0 32px; animation: oeko-usp 12s infinite; }
    .oeko-topbar .topbar-inner { min-height: 32px; }
}
@keyframes oeko-usp {
    0%, 28% { transform: translateY(0); }
    33%, 61% { transform: translateY(-32px); }
    66%, 95% { transform: translateY(-64px); }
    100% { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .oeko-topbar li { animation: none; } }

/* ---------- Header ---------- */
.oeko-header {
    position: sticky; top: 0; z-index: 1100;
    background: var(--c-ink); color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.oeko-header .header-main { display: flex; align-items: center; gap: 24px; height: 76px; }
.oeko-header .logo { flex: 0 0 auto; display: block; line-height: 0; }
.oeko-header .logo img { width: 220px; height: auto; display: block; }
.oeko-header .header-search { flex: 1 1 auto; max-width: 620px; margin: 0 auto; position: relative; }
.header-search .search-field-wrap { display: flex; align-items: center; background: #fff; border-radius: 999px; overflow: hidden; border: 2px solid transparent; transition: border-color .2s; }
.header-search .search-field-wrap:focus-within { border-color: var(--c-accent); }
.header-search input[type=search] { flex: 1; min-width: 0; border: 0; outline: 0; padding: 11px 18px; font-size: 15px; color: var(--c-ink); background: transparent; }
.header-search input[type=search]::-webkit-search-cancel-button { cursor: pointer; }
.header-search button[type=submit] { flex: 0 0 auto; border: 0; background: var(--c-cta); color: #fff; width: 48px; height: 44px; cursor: pointer; font-size: 16px; }
.header-search button[type=submit]:hover { background: var(--c-cta-hover); }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: 0 0 auto; }
.header-icon-btn, .header-actions a.header-account {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-width: 48px; height: 48px; padding: 0 8px; border: 0; background: transparent; color: #fff; text-decoration: none;
    font-size: 11px; font-weight: 600; border-radius: var(--radius-sm); cursor: pointer;
}
.header-icon-btn i, .header-actions a.header-account i { font-size: 19px; }
.header-icon-btn:hover, .header-actions a.header-account:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.header-search-toggle, .header-burger { display: none !important; }

/* Warenkorb-Button – Klassen .cart-contents/.amount/.count werden von wc-cart-client.js aktualisiert */
.site-header-cart { list-style: none; margin: 0; padding: 0; display: flex; }
.oeko-header .cart-contents {
    position: relative; display: inline-flex; align-items: center; gap: 10px;
    height: 48px; padding: 0 16px 0 14px; border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .1); color: #fff !important; text-decoration: none !important; font-weight: 700; font-size: 14px; white-space: nowrap;
}
.oeko-header .cart-contents:hover { background: rgba(255, 255, 255, .18); }
.oeko-header .cart-contents i { font-size: 19px; }
.oeko-header .cart-contents .count {
    position: absolute; top: 4px; left: 26px;
    min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
    background: var(--c-accent); color: var(--c-ink); font-size: 11px; line-height: 19px; text-align: center; font-weight: 800;
}
.oeko-header .cart-contents .count.is-empty { display: none; }

/* Hauptnavigation (Desktop) */
.header-nav { background: var(--c-ink-2); border-top: 1px solid rgba(255, 255, 255, .06); }
.header-nav .nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; height: 48px; align-items: stretch; }
.header-nav .nav-item { position: relative; display: flex; }
.header-nav .nav-link {
    display: flex; align-items: center; gap: 6px; padding: 0 14px; color: #fff; text-decoration: none;
    font-size: 14.5px; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent;
}
.header-nav .nav-link i { font-size: 10px; opacity: .7; }
.header-nav .nav-item:hover > .nav-link, .header-nav .nav-item:focus-within > .nav-link, .header-nav .nav-link[aria-current] { border-bottom-color: var(--c-accent); color: #fff; }
.header-nav .nav-item.is-highlight > .nav-link { color: var(--c-accent); }
.header-nav .nav-dropdown {
    position: absolute; top: 100%; left: 0; min-width: 260px; z-index: 20;
    list-style: none; margin: 0; padding: 10px; background: #fff; border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility 0s linear .15s;
}
.header-nav .nav-item:hover > .nav-dropdown, .header-nav .nav-item:focus-within > .nav-dropdown { opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .15s; }
.header-nav .nav-dropdown a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--c-ink); text-decoration: none; font-size: 14.5px; }
.header-nav .nav-dropdown a:hover { background: var(--c-bg); color: var(--c-cta); }
.header-nav .nav-dropdown .nav-sub a { padding-left: 26px; font-size: 13.5px; color: var(--c-muted); }
.header-nav .nav-list > .nav-item:last-child .nav-dropdown { left: auto; right: 0; }

/* Suchvorschläge */
.search-suggest {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 1200;
    background: #fff; color: var(--c-ink); border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden;
}
.search-suggest[hidden] { display: none; }
.search-suggest .ss-head { padding: 10px 16px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); font-weight: 700; }
.search-suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 16px; color: var(--c-ink); text-decoration: none; }
.search-suggest a:hover, .search-suggest a.is-active { background: var(--c-bg); }
.search-suggest img, .search-suggest .ss-noimg { width: 44px; height: 44px; object-fit: contain; flex: 0 0 44px; background: #fff; border: 1px solid var(--c-line); border-radius: 6px; }
.search-suggest .ss-title { flex: 1; font-size: 14px; line-height: 1.3; }
.search-suggest .ss-price { font-weight: 800; font-size: 14px; white-space: nowrap; }
.search-suggest .ss-all { justify-content: center; font-weight: 700; color: var(--c-cta); border-top: 1px solid var(--c-line); padding: 12px; }
.search-suggest .ss-empty { padding: 16px; font-size: 14px; color: var(--c-muted); }
.search-suggest mark { background: none; color: inherit; font-weight: 800; }

@media (max-width: 1024px) {
    .oeko-header .header-main { height: 64px; gap: 8px; }
    .oeko-header .logo img { width: 168px; }
    .header-nav { display: none; }
    .header-burger, .header-search-toggle { display: inline-flex !important; }
    .header-actions a.header-account { display: none; }
    .header-icon-btn span, .header-actions .btn-label { display: none; }
    .oeko-header .cart-contents { padding: 0 12px; height: 44px; }
    .oeko-header .cart-contents .amount { display: none; }
    .oeko-header .cart-contents .count { left: 22px; }
    .oeko-header .header-search {
        position: absolute; left: 0; right: 0; top: 100%; max-width: none; margin: 0;
        padding: 10px var(--gutter) 12px; background: var(--c-ink); display: none; box-shadow: 0 8px 16px rgba(0, 0, 0, .25);
    }
    .oeko-header.search-open .header-search { display: block; }
    .oeko-header .header-search .search-suggest { left: var(--gutter); right: var(--gutter); }
}

/* Mobiles Menü (Drawer) */
.oeko-drawer { position: fixed; inset: 0; z-index: 2000; visibility: hidden; }
.oeko-drawer.is-open { visibility: visible; }
.oeko-drawer .drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .25s; }
.oeko-drawer.is-open .drawer-backdrop { opacity: 1; }
.oeko-drawer .drawer-panel {
    position: absolute; top: 0; bottom: 0; left: 0; width: min(360px, 88vw); background: #fff; color: var(--c-ink);
    display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .28s ease; overflow-y: auto;
}
.oeko-drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; background: var(--c-ink); }
.drawer-head img { width: 150px; }
.drawer-close { background: none; border: 0; color: #fff; font-size: 26px; width: 44px; height: 44px; cursor: pointer; }
.drawer-menu { list-style: none; margin: 0; padding: 8px 0; }
.drawer-menu li { border-bottom: 1px solid var(--c-line); }
.drawer-menu .dm-row { display: flex; align-items: stretch; }
.drawer-menu a { flex: 1; display: block; padding: 14px 20px; color: var(--c-ink); text-decoration: none; font-weight: 600; }
.drawer-menu a[aria-current] { color: var(--c-cta); }
.drawer-menu .dm-toggle { flex: 0 0 52px; border: 0; border-left: 1px solid var(--c-line); background: none; font-size: 14px; cursor: pointer; color: var(--c-muted); }
.drawer-menu .dm-toggle[aria-expanded=true] i { transform: rotate(180deg); }
.drawer-menu .dm-sub { list-style: none; margin: 0; padding: 0 0 8px; background: var(--c-bg); }
.drawer-menu .dm-sub[hidden] { display: none; }
.drawer-menu .dm-sub li { border: 0; }
.drawer-menu .dm-sub a { padding: 10px 20px 10px 34px; font-weight: 400; font-size: 15px; }
.drawer-foot { margin-top: auto; padding: 20px; background: var(--c-bg); font-size: 14px; }
.drawer-foot a { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--c-ink); text-decoration: none; font-weight: 600; }
.drawer-foot i { color: var(--c-cta); width: 18px; text-align: center; }
body.oeko-noscroll { overflow: hidden; }

/* ---------- Breadcrumb ---------- */
.oeko-breadcrumb { background: var(--c-bg); border-bottom: 1px solid var(--c-line); font-size: 13px; }
.oeko-breadcrumb ol { list-style: none; margin: 0; padding: 11px 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0; line-height: 20px; }
.oeko-breadcrumb li { display: flex; align-items: baseline; color: var(--c-muted); line-height: 20px; }
.oeko-breadcrumb li + li::before { content: '\203A'; margin: 0 9px; color: #a9a39a; font-size: 15px; line-height: 20px; }
.oeko-breadcrumb li > a, .oeko-breadcrumb li > span { display: inline-block; line-height: 20px; }
.oeko-breadcrumb a { color: var(--c-muted); text-decoration: none; }
.oeko-breadcrumb a:hover { color: var(--c-cta); text-decoration: underline; }
.oeko-breadcrumb [aria-current] { color: var(--c-ink); font-weight: 700; }
@media (max-width: 640px) {
    .oeko-breadcrumb ol { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
    .oeko-breadcrumb ol::-webkit-scrollbar { display: none; }
}

/* ---------- Gemeinsame Bausteine ---------- */
.oeko-panel { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 24px; }
.section-title { text-align: left; margin: 0 0 18px; }
.section-title h2 { margin: 0; font-size: clamp(20px, 2vw, 24px); color: var(--c-ink); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .section-sub { margin: 4px 0 0; color: var(--c-muted); font-size: 14.5px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-cta); margin-bottom: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--c-bg); border: 1px solid var(--c-line); font-size: 12.5px; font-weight: 600; color: var(--c-ink); }

/* Produktgrid (Kategorie, Suche) */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 760px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 420px) { .product-grid { gap: 10px; } }

/* Karussell-Rahmen */
.oeko-carousel-section { position: relative; margin: 0; padding: 0; }
.oeko-carousel-section .section-title { padding: 0 4px; }

/* ---------- Seiten-Kopf (Seiten, Beiträge, Kategorie, Suche) ---------- */
.page-hero { background: var(--c-surface); border-bottom: 1px solid var(--c-line); padding: 34px 0 30px; }
.page-hero h1 { margin: 0; }
.page-hero .page-hero-meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--c-muted); font-size: 14px; }
.page-hero .page-hero-meta i { color: var(--c-accent); margin-right: 4px; }
.page-hero .page-lead { margin: 12px 0 0; max-width: 820px; font-size: 17px; color: var(--c-text); }

/* ---------- Fließtext (Seiten, Beiträge, Beschreibungen) ---------- */
.prose { color: var(--c-text); font-size: 16.5px; line-height: 1.75; overflow-wrap: break-word; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 25px; margin: 1.8em 0 .6em; }
.prose h3 { font-size: 20px; margin: 1.6em 0 .5em; }
.prose h4 { font-size: 17px; margin: 1.4em 0 .4em; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--c-accent); }
.prose a { color: var(--c-cta); text-decoration: underline; text-underline-offset: 2px; }
.prose img { border-radius: var(--radius-sm); height: auto; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: 13px; color: var(--c-muted); margin-top: 6px; }
.prose blockquote { margin: 1.6em 0; padding: 14px 20px; border-left: 4px solid var(--c-accent); background: var(--c-bg); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.prose th { background: var(--c-bg); font-weight: 700; color: var(--c-ink); }
.prose hr { border: 0; border-top: 1px solid var(--c-line); margin: 2em 0; }
.prose iframe { max-width: 100%; border-radius: var(--radius-sm); }
.prose .alignleft { float: left; margin: 0 1.4em 1em 0; }
.prose .alignright { float: right; margin: 0 0 1em 1.4em; }
.prose .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.prose .wp-block-button__link, .prose .button { display: inline-block; background: var(--c-cta); color: #fff; padding: 12px 22px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 700; }

/* ---------- Inhaltsseite / Beitrag ---------- */
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; padding-top: 28px; align-items: start; }
.content-layout.is-narrow { grid-template-columns: minmax(0, 880px); justify-content: center; }
.content-main { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 40px 48px; min-width: 0; }
.content-aside { position: sticky; top: calc(var(--oeko-header-h) + 20px); display: flex; flex-direction: column; gap: 16px; }
.aside-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 22px; }
.aside-card h3 { font-size: 17px; margin-bottom: 10px; }
.aside-card p { font-size: 14.5px; color: var(--c-muted); margin-bottom: 14px; }
.aside-card.is-dark { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.aside-card.is-dark h3 { color: #fff; }
.aside-card.is-dark p { color: rgba(255, 255, 255, .75); }
.aside-links { list-style: none; margin: 0; padding: 0; }
.aside-links li { border-top: 1px solid var(--c-line); }
.aside-links li:first-child { border-top: 0; }
.aside-links a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; color: var(--c-ink); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.aside-links a:hover { color: var(--c-cta); }
.post-thumb { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; background: var(--c-bg); }
.post-thumb img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; }
.post-footer { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--c-line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.share-links { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--c-muted); }
.share-links a { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--c-bg); color: var(--c-ink); text-decoration: none; }
.share-links a:hover { background: var(--c-ink); color: #fff; }
.related-posts { margin-top: 28px; }
.related-posts .rp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rp-card { display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--c-ink); transition: box-shadow .2s, transform .2s; }
.rp-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); color: var(--c-ink); }
.rp-card .rp-img { aspect-ratio: 16 / 9; background: var(--c-sand) center / cover no-repeat; }
.rp-card .rp-body { padding: 16px 18px 18px; }
.rp-card time { font-size: 12.5px; color: var(--c-muted); }
.rp-card h3 { font-size: 16.5px; margin: 4px 0 0; }
@media (max-width: 1024px) {
    .content-layout { grid-template-columns: 1fr; }
    .content-aside { position: static; }
    .related-posts .rp-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .content-main { padding: 24px 18px; border-radius: 0; border-left: 0; border-right: 0; }
    .content-layout { padding-top: 0; gap: 16px; }
    .content-layout > .content-main { margin: 0 calc(-1 * var(--gutter)); }
    .related-posts .rp-grid { grid-template-columns: 1fr; }
}

/* ---------- Kategorie-Seite (.oeko-cat) ---------- */
.oeko-cat .cat-hero { background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.oeko-cat .cat-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding-top: 30px; padding-bottom: 26px; }
.oeko-cat .cat-hero h1 { margin: 0 0 6px; }
.oeko-cat .cat-count { color: var(--c-muted); font-size: 14px; margin: 0 0 12px; }
.oeko-cat .cat-desc { max-width: 880px; font-size: 15.5px; line-height: 1.65; color: var(--c-text); }
.oeko-cat .cat-desc.is-clamped .cat-desc-body { max-height: 5.1em; overflow: hidden; position: relative; }
.oeko-cat .cat-desc.is-clamped .cat-desc-body::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2.2em; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.oeko-cat .cat-desc-body > *:last-child { margin-bottom: 0; }
.oeko-cat .cat-desc-toggle { margin-top: 6px; background: none; border: 0; padding: 4px 0; color: var(--c-cta); font-weight: 700; cursor: pointer; font-size: 14px; }
.oeko-cat .cat-hero-visual { width: 220px; height: 150px; border-radius: var(--radius); background: var(--c-bg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.oeko-cat .cat-hero-visual img { width: 100%; height: 100%; object-fit: contain; }
.oeko-cat .cat-usps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* Sprungnavigation */
.cat-jump { position: sticky; top: var(--oeko-header-h); z-index: 40; background: rgba(247, 245, 240, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--c-line); }
.cat-jump ul { list-style: none; margin: 0; padding: 10px 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.cat-jump ul::-webkit-scrollbar { display: none; }
.cat-jump a { display: inline-block; white-space: nowrap; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--c-line); color: var(--c-ink); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.cat-jump a:hover, .cat-jump a.is-active { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }

.oeko-cat .cat-section { margin-top: 24px; scroll-margin-top: calc(var(--oeko-header-h) + 70px); }
.oeko-cat .cat-block { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 22px 24px; }
.oeko-cat .cat-block.is-bestseller { padding: 22px 24px 10px; }
.oeko-cat .cat-block .oeko-carousel-track { padding: 6px 2px 14px; }

/* Unterkategorien */
.subcat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.subcat-card {
    display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
    overflow: hidden; text-decoration: none; color: var(--c-ink); transition: box-shadow .2s, transform .2s, border-color .2s;
}
.subcat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--c-accent); color: var(--c-ink); }
.subcat-card .subcat-img { aspect-ratio: 4 / 3; background: var(--c-bg); display: flex; align-items: center; justify-content: center; padding: 12px; }
.subcat-card .subcat-img img { width: 100%; height: 100%; object-fit: contain; }
.subcat-card .subcat-body { padding: 12px 14px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--c-line); }
.subcat-card strong { font-size: 15px; line-height: 1.3; }
.subcat-card .subcat-count { font-size: 12px; color: var(--c-muted); white-space: nowrap; }
.subcat-card .subcat-arrow { color: var(--c-accent); }

/* Produktgruppen */
.pg-group { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 26px 26px 10px; }
.pg-group + .pg-group { margin-top: 16px; }
.pg-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin-bottom: 18px; max-width: 980px; }
.pg-head h2 { margin: 0; }
.pg-desc { font-size: 15px; line-height: 1.65; color: var(--c-text); }
.pg-desc > *:last-child { margin-bottom: 0; }
.pg-desc ul { padding-left: 1.3em; margin: .4em 0 .8em; }
.pg-desc ul ul { margin: .2em 0; }
.pg-desc li::marker { color: var(--c-accent); }
.pg-group .product-grid { margin-bottom: 16px; }
.pg-sub { margin: 10px 0 16px; padding: 20px 0 0; border-top: 1px dashed var(--c-line); }
.pg-sub .pg-head h3 { margin: 0; font-size: 19px; display: flex; align-items: center; gap: 10px; }
.pg-sub .pg-head h3::before { content: ''; width: 4px; height: 20px; border-radius: 2px; background: var(--c-accent); flex: 0 0 4px; }
.pg-sub .pg-sub { margin-left: 0; padding-left: 18px; border-left: 3px solid var(--c-bg); border-top: 0; }
.pg-sub .pg-sub .pg-head h4 { margin: 0; font-size: 17px; }

/* Produktliste mit Werkzeugleiste */
.cat-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.cat-toolbar .tb-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cat-toolbar .tb-count { font-size: 14px; color: var(--c-muted); }
.cat-toolbar label { font-size: 14px; color: var(--c-ink); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.cat-toolbar select { height: 40px; padding: 0 34px 0 12px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231A1A1A' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center; -webkit-appearance: none; appearance: none; font-weight: 600; color: var(--c-ink); cursor: pointer; }
.cat-toolbar input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--c-cta); }
.cat-more { text-align: center; margin: 22px 0 6px; }
.cat-more .cat-more-info { display: block; font-size: 13px; color: var(--c-muted); margin-bottom: 10px; }
.product-grid .oeko-card[hidden] { display: none; }

/* Leerer Zustand / Hinweise */
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state img { width: 220px; margin: 0 auto 18px; display: block; }
.empty-state h2 { margin-bottom: 8px; }
.empty-state p { color: var(--c-muted); max-width: 520px; margin: 0 auto 18px; }
.empty-state .empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Beratungsband */
.advice-strip { margin-top: 24px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; background: var(--c-ink); color: #fff; border-radius: var(--radius); padding: 24px 28px; }
.advice-strip .as-icon { width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 101, 101, .15); color: var(--c-accent); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.advice-strip h2 { color: #fff; font-size: 21px; margin: 0 0 4px; }
.advice-strip p { margin: 0; color: rgba(255, 255, 255, .75); font-size: 15px; }
.advice-strip .as-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.advice-strip .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.advice-strip .btn-ghost:hover { background: #fff; color: var(--c-ink); }

@media (max-width: 900px) {
    .oeko-cat .cat-hero-inner { grid-template-columns: 1fr; gap: 16px; padding-top: 22px; padding-bottom: 18px; }
    .oeko-cat .cat-hero-visual { display: none; }
    .advice-strip { grid-template-columns: 1fr; text-align: left; }
    .advice-strip .as-icon { display: none; }
}
@media (max-width: 640px) {
    .oeko-cat .cat-block, .pg-group { padding: 18px 14px 6px; border-radius: 0; border-left: 0; border-right: 0; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
    .subcat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .subcat-card .subcat-body { padding: 10px; }
    .subcat-card strong { font-size: 14px; }
    .pg-sub .pg-sub { padding-left: 10px; }
}

/* ---------- Suche ---------- */
.search-page-form { display: flex; gap: 10px; max-width: 640px; margin-top: 16px; }
.search-page-form input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); font-size: 16px; }
.search-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.search-cats a { text-decoration: none; }
.search-cats a:hover .pill { border-color: var(--c-accent); }

/* ---------- 404 ---------- */
.notfound { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 48px 0 24px; }
.notfound img { width: 100%; max-width: 460px; display: block; margin: 0 auto; }
.notfound .nf-code { font-size: 14px; font-weight: 800; letter-spacing: .12em; color: var(--c-cta); }
.notfound .nf-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.notfound .nf-links a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm); color: var(--c-ink); text-decoration: none; font-weight: 600; }
.notfound .nf-links a:hover { border-color: var(--c-accent); }
.notfound .nf-links i { color: var(--c-cta); }
@media (max-width: 800px) {
    .notfound { grid-template-columns: 1fr; padding-top: 24px; }
    .notfound img { max-width: 280px; }
}

/* ---------- Service-Leiste über dem Footer ---------- */
.usp-band { background: var(--c-surface); border-top: 1px solid var(--c-line); }
.usp-band ul { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.usp-band li { display: flex; gap: 14px; align-items: flex-start; }
.usp-band .usp-ico { flex: 0 0 46px; height: 46px; border-radius: 50%; background: var(--c-bg); color: var(--c-cta); display: flex; align-items: center; justify-content: center; font-size: 19px; }
.usp-band strong { display: block; color: var(--c-ink); font-size: 15px; }
.usp-band span { font-size: 13.5px; color: var(--c-muted); line-height: 1.45; display: block; }
.usp-band a { color: inherit; text-decoration: none; }
.usp-band a:hover strong { color: var(--c-cta); }
@media (max-width: 1024px) { .usp-band ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .usp-band ul { grid-template-columns: 1fr; gap: 14px; padding: 20px 0; } }

/* ---------- Footer ---------- */
.footer-site { background: var(--c-ink); color: rgba(255, 255, 255, .78); font-size: 15px; }
.footer-site .footer-main { padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-branding img { width: 210px; height: auto; display: block; margin-bottom: 18px; }
.footer-branding p { font-size: 14.5px; line-height: 1.6; margin: 0 0 16px; }
.footer-col h2 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 10px; }
.footer-site a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.footer-site a:hover { color: var(--c-accent); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact i { color: var(--c-accent); width: 16px; margin-top: 4px; text-align: center; }
.footer-addr-note { display: inline-block; margin-top: 4px; font-size: 13px; color: rgba(255,255,255,.7); }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-badges span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 6px; font-size: 12.5px; color: rgba(255, 255, 255, .85); }
.footer-badges i { color: var(--c-accent); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.footer-bottom p { margin: 0; color: rgba(255, 255, 255, .55); }
.payment-methods { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.payment-methods span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 10px; background: #fff; color: var(--c-ink); border-radius: 5px; font-size: 12px; font-weight: 700; }
.payment-methods i { font-size: 18px; }
.footer-legal-note { font-size: 12px; color: rgba(255, 255, 255, .5); padding-bottom: 18px; margin: 0; line-height: 1.5; }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-branding { grid-column: 1 / -1; } }
@media (max-width: 640px) {
    .footer-site .footer-main { padding: 36px 0 16px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
    .footer-contact-col { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Mobile Leiste unten (Konto / Suche / Warenkorb) ---------- */
.oeko-mobilebar { display: none; }
@media (max-width: 768px) {
    body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
    .oeko-mobilebar {
        display: grid; grid-template-columns: repeat(4, 1fr);
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050;
        padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
        background: var(--c-ink); border-top: 1px solid #333;
    }
    .oeko-mobilebar a, .oeko-mobilebar button {
        position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
        min-height: 48px; background: none; border: 0; color: #fff; text-decoration: none; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; cursor: pointer;
    }
    .oeko-mobilebar i { font-size: 19px; }
    .oeko-mobilebar .count {
        position: absolute; top: 2px; left: 50%; margin-left: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
        background: var(--c-accent); color: var(--c-ink); font-size: 10.5px; line-height: 18px; text-align: center;
    }
}

/* ---------- Druck ---------- */
@media print {
    .oeko-topbar, .oeko-header, .oeko-mobilebar, .footer-site, .usp-band, .cat-jump, .pp-sticky, .oeko-drawer { display: none !important; }
    body { background: #fff; }
}

/* --- Cookie-Einwilligung (inc/consent.php) ------------------------------------------ */
.oeko-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 5000; display: flex; justify-content: center; pointer-events: none; }
.oeko-consent[hidden] { display: none; }
.oeko-consent-box { pointer-events: auto; width: 100%; max-width: 720px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; color: var(--c-ink); border-radius: var(--radius); box-shadow: 0 18px 60px rgba(0,0,0,.28); padding: 22px 24px; border: 1px solid var(--c-line); }
.oeko-consent-box h2 { font-size: 20px; margin: 0 0 8px; }
.oeko-consent-box p { font-size: 14px; line-height: 1.55; margin: 0 0 14px; color: #4b4b4b; }
.oeko-consent-box a { color: var(--c-ink); font-weight: 600; }
.oeko-consent-details { display: grid; gap: 8px; margin: 0 0 14px; }
.oeko-consent-details[hidden] { display: none; }
.oeko-consent-opt { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; background: var(--c-bg); border-radius: var(--radius-sm); padding: 10px 12px; cursor: pointer; }
.oeko-consent-opt input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--c-ink); flex: 0 0 auto; }
.oeko-consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.oeko-consent-btn { flex: 1 1 180px; min-height: 46px; border-radius: var(--radius-sm); border: 1px solid var(--c-ink); background: #fff; color: var(--c-ink); font: 700 15px/1.2 var(--font); padding: 12px 16px; cursor: pointer; }
.oeko-consent-btn.is-primary, .oeko-consent-btn[data-oeko-consent-none] { background: var(--c-ink); color: #fff; }  /* beide Optionen gleichwertig */
.oeko-consent-btn.is-primary:hover, .oeko-consent-btn[data-oeko-consent-none]:hover { background: #000; }
.oeko-consent-btn:hover { background: var(--c-ink); color: #fff; }
.oeko-consent-btn.is-link { flex: 0 1 auto; border-color: transparent; text-decoration: underline; }
.oeko-consent-btn.is-link:hover { background: var(--c-bg); color: var(--c-ink); }
.oeko-consent-btn[hidden] { display: none; }
@media (max-width: 1024px) { .oeko-consent { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); left: 10px; right: 10px; } .oeko-consent-box { padding: 18px; max-height: calc(100vh - 100px); } }
.footer-revoke { font-weight: 700; }
