/* Klobrillen Magazin – Design-Auffrischung 2026-12 (Bad-Farbwelt, Karten, Raster).
   Liegt als Schicht über design.css und finder.css. Rücknahme: MU-Plugin kmb-refresh.php entfernen. */
body.kmb-design {
    --kmb-bg: #F3F7F8;
    --kmb-surface: #FFFFFF;
    --kmb-ink: #13232A;
    --kmb-muted: #4A5D66;
    --kmb-brand: #0E5F6E;
    --kmb-tone: #E2F0F2;
    --kmb-dark: #093F4A;
    --kmb-line: #D3E1E4;
    --kmb-warm: #C9772B;
    --kmb-warm-tone: #FBF1E6;
    --kmb-radius: 18px;
    --kmb-shadow: 0 1px 2px rgba(9,63,74,.06), 0 8px 24px rgba(9,63,74,.07);
    --kmb-shadow-hover: 0 2px 4px rgba(9,63,74,.08), 0 14px 34px rgba(9,63,74,.13);
    background: var(--kmb-bg);
}

/* Kopfzeile */
.kmb-design .site-header {
    background: rgba(255,255,255,.9);
    -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid rgba(211,225,228,.8);
    box-shadow: 0 1px 0 rgba(9,63,74,.02), 0 6px 18px rgba(9,63,74,.04);
}

/* Überschriften mit ruhigem Akzent */
.kmb-design .content > section > h2,
.kmb-design .content > section > header > h2,
.kmb-design .kmb-home-section-heading h2 {
    display: flex; align-items: center; gap: .6rem;
}
.kmb-design .content > section > h2::before,
.kmb-design .content > section > header > h2::before,
.kmb-design .kmb-home-section-heading h2::before {
    content: ""; flex: 0 0 auto; width: 6px; height: 1.05em; border-radius: 3px;
    background: linear-gradient(180deg, var(--kmb-brand), #3FA3B2);
}

/* Hero */
.kmb-design .kmb-hero {
    position: relative; isolation: isolate; gap: clamp(20px, 4vw, 48px);
    padding: clamp(20px, 4vw, 44px); border-radius: 28px;
    background:
        radial-gradient(120% 140% at 0% 0%, #FFFFFF 0%, rgba(255,255,255,0) 55%),
        linear-gradient(135deg, #E4F2F4 0%, #F4F9FA 55%, #FBF4EC 100%);
    border: 1px solid #DCEAEC;
}
.kmb-design .kmb-hero h1 { color: var(--kmb-dark); }
.kmb-design .kmb-hero-copy p { color: var(--kmb-muted); }
.kmb-design .kmb-hero-image img { border-radius: 20px; box-shadow: 0 18px 40px rgba(9,63,74,.16); }

/* Vertrauenszeile als ruhige Chips */
.kmb-design .kmb-trust {
    gap: 10px; margin-top: 18px; padding: 0 0 22px; border-bottom: 0; justify-content: center;
}
.kmb-design .kmb-trust > li {
    min-height: 40px; padding: 0 14px; border: 1px solid var(--kmb-line); border-radius: 999px;
    background: var(--kmb-surface); font-size: .88rem;
}
.kmb-design .kmb-trust > li:has(> a) { padding: 0; border: 0; background: none; }
.kmb-design .kmb-trust > li > a.kmb-button { min-height: 40px; border-radius: 999px; }

/* Buttons: gleiche Rundung, weicher Übergang */
.kmb-design :is(a.kmb-button, .entry-content a.kmb-offer, .ksf-product-button, a.ksf-product-button) {
    border-radius: 12px; transition: background-color 160ms, border-color 160ms, box-shadow 160ms, transform 160ms;
}
.kmb-design a.kmb-action { box-shadow: 0 6px 16px rgba(14,95,110,.22); }
.kmb-design a.kmb-action:hover { transform: translateY(-1px); }

/* Themen-Kacheln */
.kmb-design .kmb-topic-grid .kmb-button {
    min-height: 68px; border-radius: 16px; border-color: transparent; background: var(--kmb-surface);
    box-shadow: var(--kmb-shadow); font-size: 1rem;
}
.kmb-design .kmb-topic-grid .kmb-button:hover { box-shadow: var(--kmb-shadow-hover); transform: translateY(-2px); background: var(--kmb-surface); }

/* Finder-Einstieg */
.kmb-design .ksf-home-entry {
    border-radius: 24px; border: 1px solid #CFE5E8;
    background: linear-gradient(120deg, #DDEFF1 0%, #EEF7F8 60%, #F8FBFB 100%) !important;
}

/* Produktkarten: gleich hoch, Bild zentriert in gleich großem Rahmen, Aktion unten */
.kmb-design .ksf-product-card {
    display: flex; flex-direction: column; gap: 14px; height: 100%;
    border: 1px solid var(--kmb-line); border-radius: var(--kmb-radius); background: var(--kmb-surface);
    box-shadow: var(--kmb-shadow); transition: box-shadow 180ms, transform 180ms, border-color 180ms;
}
.kmb-design .ksf-product-card:hover { box-shadow: var(--kmb-shadow-hover); transform: translateY(-2px); border-color: #BFD7DB; }
.kmb-design .ksf-product-card > :is(.ksf-product-photo, .ksf-product-illustration) {
    border: 0 !important; border-radius: 14px !important; background: #FFFFFF;
    box-shadow: inset 0 0 0 1px #E6EEF0;
}
.kmb-design .ksf-product-card > .ksf-product-illustration { background: #F6FAFB; }
.kmb-design .ksf-product-card .ksf-product-frame { display: flex; align-items: center; justify-content: center; }
.kmb-design .ksf-product-copy { display: flex; flex-direction: column; align-items: flex-start; flex: 1 1 auto; }
.kmb-design .ksf-product-copy > .ksf-product-actions { margin-top: auto; padding-top: 6px; width: 100%; }
.kmb-design .ksf-product-category {
    display: inline-block; padding: .2em .65em; border-radius: 999px;
    background: var(--kmb-tone); color: var(--kmb-dark); font-size: .76rem; font-weight: 700; letter-spacing: .01em;
}
.kmb-design .ksf-product-card a.ksf-product-title,
.kmb-design .entry-content .ksf-product-card a.ksf-product-title { color: var(--kmb-ink); line-height: 1.3; }
.kmb-design .ksf-product-card a.ksf-product-title:hover { color: var(--kmb-brand); }
.kmb-design .ksf-featured-rating > span { color: var(--kmb-warm); }
.kmb-design .ksf-image-badge { border-color: #EBD3BA; background: var(--kmb-warm-tone); color: #7A4413; box-shadow: none; }
.kmb-design .ksf-image-bestseller { background: var(--kmb-dark); color: #fff; border-color: var(--kmb-dark); }
.kmb-design a.ksf-product-button {
    display: flex; justify-content: center; width: 100%; min-height: 44px;
    border: 1px solid var(--kmb-brand); background: var(--kmb-surface); color: var(--kmb-brand); font-weight: 700;
}
.kmb-design a.ksf-product-button:hover { background: var(--kmb-brand); color: #fff; }

/* Top-Empfehlungen: bündiges Raster ohne Lücke (5 = 2 + 3, 4 = 2 + 2) */
@media (min-width: 900px) {
    .kmb-design .ksf-top-picks .ksf-product-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
    .kmb-design .ksf-top-picks .ksf-product-card { grid-column: span 2; }
    .kmb-design .ksf-top-picks .ksf-product-card:first-child:nth-last-child(5),
    .kmb-design .ksf-top-picks .ksf-product-card:first-child:nth-last-child(5) + .ksf-product-card,
    .kmb-design .ksf-top-picks .ksf-product-card:first-child:nth-last-child(4),
    .kmb-design .ksf-top-picks .ksf-product-card:first-child:nth-last-child(4) ~ .ksf-product-card { grid-column: span 3; }
}

/* Ratgeber-Karten */
.kmb-design .kmb-card-grid { gap: 22px; align-items: stretch; }
.kmb-design .kmb-home-card {
    border: 1px solid var(--kmb-line); border-radius: var(--kmb-radius); box-shadow: var(--kmb-shadow);
    transition: box-shadow 180ms, transform 180ms; position: relative;
}
.kmb-design .kmb-home-card:hover { box-shadow: var(--kmb-shadow-hover); transform: translateY(-2px); }
.kmb-design .kmb-home-card > img { aspect-ratio: 16 / 9; }
.kmb-design .kmb-home-card .kmb-card-copy { flex: 1 1 auto; }
.kmb-design .kmb-card-copy h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.kmb-design .kmb-card-copy h3 a { color: var(--kmb-ink); }
.kmb-design .kmb-home-card:hover .kmb-card-copy h3 a { color: var(--kmb-brand); }

/* Seitenleiste und Inhaltsverzeichnis im Artikel */
.kmb-design .sidebar :is(section, .widget), .kmb-design aside[aria-label] > section {
    border-radius: var(--kmb-radius);
}

/* Tabellen im Artikel */
.kmb-design .entry-content table { border-radius: 14px; overflow: hidden; box-shadow: var(--kmb-shadow); border-collapse: separate; border-spacing: 0; }
.kmb-design .entry-content thead th, .kmb-design .entry-content table tr:first-child th { background: var(--kmb-tone); color: var(--kmb-dark); }

/* Fußbereich */
.kmb-design .site-footer {
    background: radial-gradient(90% 120% at 100% 0%, #0F5765 0%, rgba(15,87,101,0) 60%), var(--kmb-dark);
}

@media (prefers-reduced-motion: reduce) {
    .kmb-design :is(.ksf-product-card, .kmb-home-card, .kmb-topic-grid .kmb-button, a.kmb-action) { transition: none; transform: none !important; }
}
@media (max-width: 45em) {
    .kmb-design .kmb-hero { padding: 18px; border-radius: 22px; }
    .kmb-design .kmb-trust { justify-content: flex-start; }
}
