/* =========================================================
   Kati Kids — Styles (kbk-styles.css)
   Autark: eigene Marken-Farben, keine Kati-Abhängigkeit.
   GP-Overrides NUR für body.kbk-page (Kati + Impulse bleiben unberührt).
   Basis: kbv-styles.css aus Kati Videos (gleiches Impulse-Gerüst:
   Farben, Schriften, Karten, Suche, Like/Teilen, Themen-Zeile).
   Neu gegenüber Impulse: nur der Slider (ganz unten).
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&family=DM+Sans:wght@300;400;500;600&display=swap");

/* ---- GP-Kasten nur auf Kati-Kids-Seiten auflösen ---- */
body.kbk-page .site-content {
    background: #FDFBF7 !important;
    padding: 0 !important;
}
body.kbk-page .content-area,
body.kbk-page #primary {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
}
body.kbk-page .entry-content,
body.kbk-page article .entry-content,
body.kbk-page .inside-article {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
}
body.kbk-page #secondary,
body.kbk-page #right-sidebar,
body.kbk-page #left-sidebar {
    display: none !important;
}
body.kbk-page { overflow-x: hidden; }
body.kbk-page .site-content { max-width: 100% !important; width: 100% !important; }
body.kbk-page main,
body.kbk-page .site-main { max-width: 100% !important; width: 100% !important; }

/* ---- Grundlayout ---- */
.kbk {
    font-family: 'DM Sans', sans-serif;
    color: #472804;
    background: #FDFBF7;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

/* ---- Masthead (Mockup 1) ---- */
.kbk-masthead {
    text-align: center;
    padding: 56px 32px 12px;
}
.kbk-kicker {
    font-family: 'DM Sans', sans-serif;
    font-size: 11.5px;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: #6B5B4F;
    font-weight: 500;
}
.kbk-headline {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-style: italic;
    font-size: 46px;
    line-height: 1.15;
    margin: 14px 0 0;
    color: #8B935A;
}
.kbk-sep {
    display: block;
    width: 210px;
    height: 2px;
    margin: 16px auto 14px;
    background: linear-gradient(90deg, transparent, #C9A571, transparent);
}
.kbk-subtitle {
    max-width: 520px;
    margin: 0 auto;
    color: #6B5B4F;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    text-align: center;
}

/* ---- Suchfeld (Funktion folgt mit dem JS-Schritt) ---- */
.kbk-search {
    display: flex;
    justify-content: center;
    margin: 28px 0 48px;
}
body.kbk-page .kbk-search input {
    width: min(500px, 100%);
    box-sizing: border-box !important;
    border: 1px solid #E8E0D5 !important;
    background-color: #fff !important;
    border-radius: 40px !important;
    height: auto !important;
    padding: 13px 22px 13px 44px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14.5px !important;
    line-height: 1.4 !important;
    color: #472804 !important;
    box-shadow: 0 2px 12px rgba(139,115,85,.05) !important;
    outline: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238B7355' stroke-width='1.5'%3E%3Ccircle cx='7' cy='7' r='5.5'/%3E%3Cline x1='11' y1='11' x2='15' y2='15'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 16px center !important;
}
body.kbk-page .kbk-search input::placeholder { color: #B6A999 !important; }
body.kbk-page .kbk-search input:focus {
    border-color: #C9A571 !important;
    box-shadow: 0 2px 14px rgba(201, 165, 113, .18) !important;
}

/* ---- Grid: Rubrik-Kacheln (Geschichten, Malvorlagen, Rezepte) ---- */
.kbk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px 72px;
}
/* Karten-Grid (Rubrik-Seite + Übersicht-Suche): 3-spaltig */
.kbk-grid.kbk-post-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1180px;
}

/* ---- Themen-Card ---- */
.kbk-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(71,40,4,.07);
    transition: transform .3s ease, box-shadow .3s ease;
}
.kbk-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(71,40,4,.13);
}
.kbk-card-img {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #F5EFE7;
}
.kbk-card-img img {
    display: block;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
}
/* Fallback, falls ein Cover fehlt: Verlauf aus Akzentfarben */
.kbk-card-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}
.kbk-card-ph span {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 1.25;
    color: #FDFBF7;
    text-shadow: 0 1px 8px rgba(0,0,0,.15);
}
.kbk-card-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
.kbk-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 23px;
    line-height: 1.18;
    color: #472804;
    margin: 0 0 8px;
}
.kbk-card-desc {
    margin: 0 0 14px;
    font-size: 14.5px;
    font-weight: 300;
    color: #6B5B4F;
    line-height: 1.55;
    /* Kurzbeschreibung immer vollstaendig — keine Zeilenbegrenzung (Katja, 28.08.2026) */
}
.kbk-card-cta {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #8B935A;
}
.kbk-card-cta .arr { transition: transform .25s; }
.kbk-card:hover .kbk-card-cta .arr { transform: translateX(4px); }

/* =========================================================
   Eintrags-Karte (Rubrik-Seite + Übersicht-Suche)
   Titelbild, Titel, 2-Zeilen-Vorschau, Like/Teilen
   + Weiter-Link, Themen-Begriffe
   ========================================================= */
.kbk-post-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(71,40,4,.07);
    transition: transform .3s ease, box-shadow .3s ease;
}
.kbk-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(71,40,4,.13);
}
.kbk-post-link { display: block; text-decoration: none; color: inherit; }
.kbk-post-img {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #F5EFE7;
}
.kbk-post-img img {
    display: block;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
}
.kbk-post-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}
.kbk-post-ph span {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 19px;
    line-height: 1.25;
    color: #FDFBF7;
    text-shadow: 0 1px 8px rgba(0,0,0,.15);
}
.kbk-post-body { padding: 20px 22px 14px; }
.kbk-post-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 21px;
    line-height: 1.3;
    min-height: 2.6em; /* reserviert immer 2 Titelzeilen -> Beschrieb startet auf allen Karten gleich hoch */
    color: #472804;
    margin: 0 0 9px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kbk-post-excerpt {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 300;
    color: #6B5B4F;
    line-height: 1.55;
    min-height: 3.1em; /* reserviert immer 2 Beschrieb-Zeilen -> Linie/Aktionen auf allen Karten gleich hoch */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kbk-post-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0 22px;
    padding: 12px 0;
    border-top: 1px solid #E8E4DE;
}
.kbk-readmore {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13.5px;
    font-weight: 500;
    color: #8B935A;
    text-decoration: none;
    white-space: nowrap;
}
.kbk-readmore:hover { color: #C9A571; }
.kbk-readmore .arr { transition: transform .25s; }
.kbk-readmore:hover .arr { transform: translateX(4px); }

/* ---- Like / Teilen — reine Symbole im Gold-Grün-Verlauf (kein Kästchen) ---- */
.kbk-like, .kbk-share {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    background: transparent !important;
    box-shadow: none !important;
    margin: 0;
    padding: 0;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8B935A;
}
.kbk-like:hover, .kbk-like:focus, .kbk-like:active,
.kbk-share:hover, .kbk-share:focus, .kbk-share:active {
    background: transparent !important;
    box-shadow: none !important;
    outline: none;
}
.kbk-like svg, .kbk-share svg {
    width: 26px; height: 26px;
    max-width: 26px; max-height: 26px;
    display: block; flex: 0 0 auto; overflow: hidden;
    stroke: url(#kbk-grad);
    transition: transform .2s ease;
}
.kbk-like:hover svg, .kbk-share:hover svg { transform: scale(1.14); }
.kbk-like-count, .kbk-share span {
    font-size: 14.5px;
    font-weight: 500;
    display: inline-block;
    background: linear-gradient(135deg, #C9A571 0%, #8B935A 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}
/* Gelikt: Herz füllt sich im selben Verlauf (nie rot) */
.kbk-like.is-liked svg path { fill: url(#kbk-grad); }

.kbk-empty {
    text-align: center;
    color: #8B7355;
    padding: 40px 32px 80px;
    font-size: 15px;
}

/* =========================================================
   Rubrik-Seite (/kids/thema/<slug>/)
   ========================================================= */
.kbk-thema {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: calc(100vh - 160px);
    background: #FDFBF7;
}
.kbk-back {
    display: block;
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 32px 0;
    font-size: 14px;
    font-weight: 500;
    color: #8B7355;
    text-decoration: none;
}
.kbk-back:hover { color: #C9A571; }
.kbk-thema-head { padding-top: 18px; }
.kbk-thema-head .kbk-headline { font-size: 40px; white-space: normal !important; }
.kbk-postcount {
    text-align: center;
    color: #8B7355;
    font-size: 13px;
    letter-spacing: .08em;
    margin: 0 0 24px;
}

/* =========================================================
   Einzel-Eintrag (/kids/beitrag/<slug>/)
   ========================================================= */
.kbk-single {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: calc(100vh - 160px);
    background: #FDFBF7;
    padding-bottom: 70px;
}
.kbk-single .kbk-back {
    max-width: 780px;
    padding: 24px 6px 14px;
}
.kbk-article {
    max-width: 780px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(71,40,4,.08);
}
.kbk-article-hero { margin: 0; }
.kbk-article-hero img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
}
.kbk-article-body { padding: 44px 60px 48px; }
.kbk-article-meta {
    font-size: 12.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #8B935A;
    font-weight: 500;
    margin: 0 0 14px;
}
.kbk-article-meta em { font-style: normal; color: #C9A571; }
.kbk-article-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 36px;
    line-height: 1.18;
    color: #472804;
    text-align: center;
    margin: 0 0 22px;
}

/* ---- Inhalt (the_content, z. B. Rezepttext) — Lese-Typografie ---- */
.kbk-article-content {
    color: #472804;
    font-size: 15.5px;
    font-weight: 300;
    line-height: 1.75;
    text-align: left;
}
.kbk-article-content p { margin: 0 0 16px; }
.kbk-article-content strong { font-weight: 600; }
.kbk-article-content a { color: #8B935A; }
.kbk-article-content a:hover { color: #C9A571; }
.kbk-article-content h2,
.kbk-article-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    color: #472804;
    line-height: 1.25;
    margin: 32px 0 12px;
}
.kbk-article-content h2 { font-size: 25px; }
.kbk-article-content h3 { font-size: 21px; }
.kbk-article-content ul,
.kbk-article-content ol {
    margin: 0 0 16px;
    padding-left: 24px;
}
.kbk-article-content li { margin: 0 0 7px; }
.kbk-article-content blockquote {
    margin: 24px 0;
    padding: 4px 0 4px 20px;
    border-left: 3px solid #C9A571;
    color: #6B5B4F;
    font-style: italic;
}
.kbk-article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 8px 0;
}
.kbk-article-content figure { margin: 26px 0; }
.kbk-article-content figcaption {
    font-size: 13px;
    color: #8B7355;
    font-style: italic;
    margin-top: 8px;
    text-align: left;
}
/* WP-Galerie (z. B. Karussell-Slides untereinander/nebeneinander) */
.kbk-article-content .wp-block-gallery { margin: 26px 0; }
.kbk-article-content .wp-block-image img,
.kbk-article-content .wp-block-gallery img { border-radius: 14px; }

/* ---- Gutenberg-Blöcke im Beitrag: Buttons, Datei-Block, Tabellen ---- */
.kbk-article-content .wp-block-button__link,
.kbk-article-content .wp-block-file .wp-block-file__button {
    display: inline-block !important;
    background: linear-gradient(135deg, #C9A571 0%, #8B935A 100%) !important;
    color: #FFFFFF !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    padding: 12px 26px !important;
    border: none !important;
    border-radius: 40px !important;
    text-decoration: none !important;
    box-shadow: 0 2px 12px rgba(139, 115, 85, 0.25) !important;
    transition: transform .2s ease, box-shadow .2s ease;
    cursor: pointer;
}
.kbk-article-content .wp-block-button__link:hover,
.kbk-article-content .wp-block-file .wp-block-file__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(139, 115, 85, 0.32) !important;
    color: #FFFFFF !important;
}
.kbk-article-content .wp-block-file {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 22px 0;
}
.kbk-article-content .wp-block-file a:first-child {
    color: #8B935A;
    font-weight: 500;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.kbk-article-content .wp-block-file a:first-child:hover { color: #C9A571; }
.kbk-article-content .wp-block-file object,
.kbk-article-content .wp-block-file embed {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 12px;
}
.kbk-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14.5px;
}
.kbk-article-content th {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    color: #472804;
    background: #FAF8F6;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid #C9A571;
}
.kbk-article-content td {
    padding: 10px 12px;
    border-bottom: 1px solid #E8E0D5;
    vertical-align: top;
}

/* ---- Artikel-Ende: Trennlinie, Aktionen, Themen-Begriffe ---- */
.kbk-article-end {
    border-top: 1px solid #E8E4DE;
    margin-top: 36px;
    padding-top: 24px;
}
.kbk-article-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin: 0 0 22px;
    flex-wrap: wrap;
}
.kbk-article-actions .kbk-like svg,
.kbk-article-actions .kbk-share svg {
    width: 28px; height: 28px;
    max-width: 28px; max-height: 28px;
}
.kbk-topics {
    padding: 14px 0 0;
    border-top: 1px dashed #E8E4DE;
    text-align: left;
    box-sizing: border-box;
}
.kbk-topics .kbk-topics-label {
    display: inline-block;
    margin-bottom: 5px;
    font-family: 'DM Sans', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #C9A571 0%, #8B935A 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.kbk-topics .kbk-topics-words {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 12.5px;
    line-height: 1.5;
    color: #B8977C;
    overflow-wrap: break-word;
}
.kbk-topics .kbk-topics-words span { white-space: nowrap; }
.kbk-topics .kbk-topics-words span::after {
    content: '\00A0\00B7\0020';
    color: #C9A571;
    white-space: normal;
}
.kbk-topics .kbk-topics-words span:last-child::after { content: ''; }

/* =========================================================
   Teilen-Menü (on-brand Popover — 1:1 PinKati-Muster)
   ========================================================= */
.kbk-share-layer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    z-index: 99999 !important;
    background: rgba(71, 40, 4, 0.28) !important;
}
.kbk-share-card {
    position: fixed !important;
    z-index: 100000 !important;
    width: 280px;
    max-width: calc(100vw - 16px);
    background: #FFFFFF;
    border: 1px solid #E8E4DE;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(71, 40, 4, 0.22);
    padding: 10px;
    font-family: 'DM Sans', sans-serif;
}
.kbk-share-head {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6B5B4F;
    font-weight: 600;
    padding: 8px 12px 10px;
}
.kbk-share-opt {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    padding: 11px 12px;
    border: none !important;
    border-radius: 10px;
    background: none !important;
    box-shadow: none !important;
    color: #472804;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease;
}
.kbk-share-opt:hover {
    background: #F5EFE7 !important;
    color: #472804 !important;
}
.kbk-share-opt .psi {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.kbk-share-opt .psi svg {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px;
    max-height: 22px;
    overflow: hidden;
}

/* ---- Themen-Block auf Karten (Abstände) ---- */
.kbk-post-card .kbk-topics {
    margin: 0 22px 16px;
    padding: 11px 0 0;
}
.kbk-post-card .kbk-topics .kbk-topics-words {
    min-height: 3em; /* reserviert immer 2 Begriffszeilen -> Karten bis zur Unterkante deckungsgleich */
}

/* ---- Suche: Ein-/Ausblenden (JS-Schritt) ---- */
.kbk-card.kbk-hidden { display: none !important; }
.kbk-post-card.kbk-hidden { display: none !important; }
.kbk-search-empty {
    text-align: center;
    color: #8B7355;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    padding: 30px 20px 60px;
}

/* =========================================================
   Responsive
   ========================================================= */
/* ---- Tablet ---- */
@media (max-width: 1024px) {
    .kbk-grid { gap: 22px; }
    .kbk-grid.kbk-post-grid { grid-template-columns: repeat(2, 1fr); }
    .kbk-headline { font-size: 40px; }
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
    .kbk-masthead { padding: 40px 28px 8px; }
    .kbk-grid,
    .kbk-grid.kbk-post-grid { grid-template-columns: 1fr; gap: 20px; padding: 0 28px 60px; }
    .kbk-headline { font-size: 34px; }
    .kbk-search { margin: 20px 0 32px; }
    .kbk-thema-head .kbk-headline { font-size: 30px; }
    .kbk-single { padding-left: 16px; padding-right: 16px; }
    .kbk-article-body { padding: 30px 24px 36px; }
    .kbk-article-title { font-size: 28px; }
    .kbk-article-content { font-size: 15px; }
    .kbk-article-content h2 { font-size: 22px; }
    .kbk-article-content h3 { font-size: 19px; }
    .kbk-article-actions { gap: 20px; }
}

/* ---- Mobile klein ---- */
@media (max-width: 480px) {
    .kbk-masthead { padding: 36px 24px 8px; }
    .kbk-grid { padding: 0 24px 56px; }
    .kbk-headline { font-size: 30px; }
    .kbk-card-body { padding: 16px 18px 18px; }
    .kbk-card-title { font-size: 21px; }
    .kbk-post-body { padding: 16px 18px 12px; }
    .kbk-post-actions { margin: 0 18px; padding: 10px 0; gap: 18px; }
    .kbk-post-card .kbk-topics { margin: 0 18px 14px; }
    .kbk-article-body { padding: 26px 18px 32px; }
    .kbk-article-title { font-size: 25px; }
}

/* ---- sehr kleine Screens ---- */
@media (max-width: 360px) {
    .kbk-headline { font-size: 26px; }
    .kbk-article-actions { gap: 14px; }
}

/* =========================================================
 *  KATI-KIDS-SPEZIFISCH (Ergänzungen ggü. Impulse-Vorlage)
 * ========================================================= */
.kbk-post-img .kbk-post-ph { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }

/* Kurzbeschreibung auf der Einzelseite */
.kbk-desc {
    color: #472804;
    font-size: 15.5px;
    font-weight: 300;
    line-height: 1.75;
    text-align: center;
    margin: 0 0 16px;
    white-space: pre-line;
}

@media (max-width: 1024px) {
    .kbk-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .kbk-grid { grid-template-columns: 1fr; }
}

/* ---- Slider (einzige neue Komponente) ----
   Knöpfe im Stil des Play-Kreises aus Kati Videos, Zähler im Stil von .kbk-postcount. */
.kbk-slider { position: relative; }
.kbk-slider-frame {
    overflow: hidden;
    background: #F5EFE7;
    touch-action: pan-y;
    outline: none;
}
.kbk-slider-frame:focus-visible { box-shadow: inset 0 0 0 3px #C9A571; }
.kbk-slider-track {
    display: flex;
    height: 100%;
    transition: transform .35s ease;
}
.kbk-slider-track > div { flex: 0 0 100%; height: 100%; }
.kbk-slider-track img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    border-radius: 0;
    -webkit-user-drag: none;
    user-select: none;
}
/* Pfeile UNTEN, links und rechts vom Zähler — verdecken keine Sprechblasen */
.kbk-slider-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 22px 0;
}
.kbk-slider-btn,
.kbk-slider-btn:focus {
    width: 46px;
    height: 46px;
    min-height: 0;
    flex: 0 0 auto;
    border-radius: 50% !important;
    border: none !important;
    padding: 0 !important;
    margin: 0;
    background: rgba(71, 40, 4, .85) !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .25s ease, background .25s ease;
}
.kbk-slider-btn:hover { background: rgba(71, 40, 4, .95) !important; transform: scale(1.08); }
.kbk-slider-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #FDFBF7;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.kbk-slider-btn:disabled { opacity: .28; cursor: default; transform: none; }
.kbk-slider-btn:focus-visible { outline: 3px solid #C9A571; outline-offset: 2px; }
.kbk-slider-count {
    margin: 0 !important;
    text-align: center;
    color: #8B7355;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    letter-spacing: .08em;
}

/* Slider-Karten (Malvorlagen) sind die letzte Ebene: Titel, Text und Aktionen mittig; Text ungekürzt */
.kbk-post-card--slider .kbk-post-body { text-align: center; padding-bottom: 10px; }
.kbk-post-card--slider .kbk-post-title { min-height: 0; display: block; overflow: visible; }
.kbk-post-card--slider .kbk-post-excerpt { min-height: 0; display: block; overflow: visible; margin-bottom: 8px; }
.kbk-post-card--slider .kbk-post-body + * { margin-top: auto; }
.kbk-post-card--slider .kbk-post-actions { justify-content: center; }

/* Vorlesetext: wechselt mit dem Bild; alle Texte stehen im HTML (für Google), sichtbar ist nur der aktuelle.
   Flexible Höhe: der Bereich ist immer nur so hoch wie der aktuelle Text. */
.kbk-slider-read { text-align: center; }
.kbk-slider-read.is-empty { display: none; }
.kbk-slider-readlabel {
    display: inline-block;
    margin-bottom: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #C9A571 0%, #8B935A 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.kbk-slider-text {
    display: none;
    color: #472804;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.7;
}
.kbk-slider-text.is-current { display: block; }
.kbk-slider-text p { margin: 0 0 8px; }
.kbk-slider-text p:last-child { margin-bottom: 0; }
.kbk-slider-text strong { font-weight: 600; }

/* Einzelseite: Bilderfolge mittig im weissen Rahmen.
   Breite: höchstens 420px, nie breiter als der Rahmen, und nur so breit,
   dass das ganze Bild in die Fensterhöhe passt (--kbk-rw / --kbk-rh = Bildformat). */
.kbk-slider--single { margin: 28px auto 0; }
.kbk-slider--single .kbk-slider-stage {
    width: min(420px, calc(100% - 32px), max(260px, calc((100vh - 200px) * var(--kbk-rw, 3) / var(--kbk-rh, 4))));
    margin: 0 auto;
}
.kbk-slider--wide.kbk-slider--single .kbk-slider-stage {
    width: min(640px, calc(100% - 32px), max(260px, calc((100vh - 200px) * var(--kbk-rw, 16) / var(--kbk-rh, 9))));
}
.kbk-slider--single .kbk-slider-frame { border-radius: 16px; }
.kbk-slider--single .kbk-slider-nav { padding: 14px 0 0; }
.kbk-slider--single .kbk-slider-read {
    max-width: 560px;
    margin: 20px auto 0;
    padding: 18px 24px 0;
    border-top: 1px dashed #E8E4DE;
}
.kbk-slider--single + .kbk-article-body { padding-top: 32px; }
@media (max-width: 768px) {
    .kbk-slider--single { margin-top: 16px; }
    .kbk-slider--single .kbk-slider-read { padding: 16px 18px 0; }
    .kbk-slider--single + .kbk-article-body { padding-top: 26px; }
}

/* Karten mit Weiter-Link (Geschichte, Rezept): Titel, Text und Aktionen mittig — gleich wie die Malvorlagen-Karte */
.kbk-post-card--center .kbk-post-body { text-align: center; }
.kbk-post-card--center .kbk-post-actions { justify-content: center; flex-wrap: wrap; row-gap: 6px; } /* Sicherheitsnetz: auf sehr schmalen Displays bricht der Link um, statt abgeschnitten zu werden */
.kbk-post-card--center .kbk-readmore { margin-left: 0; }
/* Seit 1.1.5: einheitliche Bildfläche 5:3 für alle Titelbilder dieser Karten — Bild, Titel, Kurzbeschreibung, Linie und Themen
   stehen in einer Reihe auf gleicher Höhe, egal welches Format das einzelne Titelbild hat (es wird mittig eingepasst). */
.kbk-post-card--center .kbk-post-img { aspect-ratio: 5 / 3; }
/* Seit 1.1.4, Sicherheitsnetz: Bild und Text füllen die freie Höhe der Karte — fehlt z. B. eine Kurzbeschreibung, bleiben Linie, Herz/Teilen und Themen trotzdem unten auf gleicher Höhe. */
.kbk-post-card--center .kbk-post-link { flex: 1 1 auto; }

/* Download: Dateiname über dem Knopf, mittig */
.kbk-card-dl { margin: 0 22px 16px; }
.kbk-card-dl .wp-block-file {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0;
    text-align: center;
}
/* WordPress-eigene Vorgaben des Datei-Blocks neutralisieren (kleinere Schrift, Abstand links vom Knopf) */
.kbk-card-dl .wp-block-file { font-size: 1em !important; }
.kbk-card-dl .wp-block-file .wp-block-file__button { margin-left: 0 !important; }
.kbk-article-body .kbk-card-dl { margin: 8px 0 0; }

@media (max-width: 480px) {
    .kbk-slider-nav { padding: 12px 18px 0; }
    .kbk-card-dl { margin: 0 18px 14px; }
    .kbk-article-body .kbk-card-dl { margin: 8px 0 0; }
}
/* Leseseite einer Geschichte: Titel und Kurzbeschreibung entfallen (stehen auf der Karte und im ersten Bild).
   Die Überschrift bleibt für Google und Vorleseprogramme im HTML, ist aber nicht sichtbar. */
.kbk-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.kbk-article-body--story .kbk-article-end { margin-top: 0; }
/* Startseite: Unterzeile auf dem Handy zweizeilig — Frage 1 oben, Frage 2 vollständig darunter.
   Grenze 520px: darüber passt die ganze Unterzeile in eine Zeile, darunter würde sie sonst mitten im Satz umbrechen. */
@media (max-width: 520px) {
    .kbk-subtitle .kbk-subtitle-1 { display: block; }
    .kbk-subtitle .kbk-subtitle-2 { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
    .kbk-slider-track { transition: none; }
}
/* Rezept mit Rezeptkarte (seit 1.1.3): die Karte gross oben im weissen Rahmen, ein Tipp öffnet das Bild.
   Der Titel steht in der Karte (Überschrift unsichtbar im HTML), der Rezepttext darunter zum Aufklappen. */
.kbk-article-karte { margin: 0; }
.kbk-article-karte a { display: block; }
.kbk-article-karte img { display: block; width: 100%; height: auto; }
.kbk-karte-zoom { margin: 0; padding: 12px 20px 0; text-align: center; font-size: 13px; color: #8B7355; }
.kbk-article-karte + .kbk-article-body { padding-top: 26px; }
.kbk-rezept-lesen { margin: 0 0 6px; }
.kbk-rezept-lesen summary { cursor: pointer; list-style: none; text-align: center; font-size: 14px; font-weight: 500; letter-spacing: .04em; color: #8B935A; padding: 10px 0; }
.kbk-rezept-lesen summary::-webkit-details-marker { display: none; }
.kbk-rezept-lesen summary::after { content: " \25BE"; }
.kbk-rezept-lesen[open] summary::after { content: " \25B4"; }
.kbk-rezept-lesen[open] summary { margin-bottom: 14px; }
.kbk-rezept-lesen summary:hover { color: #C9A571; }
