/*
Theme Name:   Blocksy Rätselbuch
Theme URI:    https://raetsel-buch.com
Description:  Blocksy Child Theme — Design based on the original raetsel-buch.com Joomla site
Author:       TS
Template:     blocksy
Version:      1.0.7
*/

/* ============================================================
   1. GLOBAL PALETTE — override Blocksy CSS variables
   Mirrors the Joomla raetsel-buch.com color scheme
   ============================================================ */
:root {
    --theme-palette-color-1: #a52a2a;   /* brownish red — links/primary */
    --theme-palette-color-2: #cc6633;   /* orange-brown — headings/accents */
    --theme-palette-color-3: #555555;   /* body text */
    --theme-palette-color-4: #383838;   /* charcoal — header/dark elements */
    --theme-palette-color-5: #0299DC;   /* blue — logo title/highlight */
    --theme-palette-color-6: #f9f9f9;   /* content background */
    --theme-palette-color-7: #D3E8B2;   /* light green — page background */
    --theme-palette-color-8: #ffffff;   /* white */

    --theme-link-initial-color: #a52a2a;
    --theme-link-hover-color:   #c43a3a;
    --theme-text-color:         #555555;
    --theme-headings-color:     #383838;
}

/* ============================================================
   2. BODY & GLOBAL TYPOGRAPHY
   ============================================================ */
body {
    font-family: Verdana, Helvetica, sans-serif !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    background-color: #ffffff !important;
    color: #555555 !important;
}

a, a:link, a:visited {
    color: #a52a2a;
}
a:hover {
    color: #c43a3a;
    text-decoration: underline;
}

/* ============================================================
   3. PAGE WRAPPER
   ============================================================ */
#main-container,
.ct-container {
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}

/* ============================================================
   4. HEADER — white logo row, dark nav row
   ============================================================ */
.ct-header {
    background-color: #ffffff !important;
    border: none !important;
    position: relative;
}

/* ============================================================
   5. LOGO AREA (site-branding)
   NOTE: Font, color, text-shadow and layout are injected via
   rb-critical-header <style> block in wp_head (priority 999)
   to ensure they override Blocksy's dynamic inline CSS.
   ============================================================ */

/* ============================================================
   6. NAVIGATION
   Menu is in the bottom row of the Blocksy header builder.
   Colors match Joomla's #topmenu (darker than header: #222).
   ============================================================ */

/* Nav bar row — white background, subtle gray border */
.ct-header [data-row*="bottom"] {
    background-color: #fff !important;
    border-top:    1px solid #ddd !important;
    border-bottom: 1px solid #ddd !important;
}

/* Top-level menu items */
.ct-header .header-menu-1 .menu > li {
    border-right: 1px solid #ddd;
}
.ct-header .header-menu-1 .menu > li > a {
    color: #cc6633 !important;
    font-family: Verdana, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: bold;
    padding: 7px 14px;
    border: none !important;
    background-color: transparent !important;
    transition: color .15s, background-color .15s;
}
.ct-header .header-menu-1 .menu > li > a:hover {
    color: #fff !important;
    background-color: #cc6633 !important;
}
.ct-header .header-menu-1 .menu > li.current-menu-item > a,
.ct-header .header-menu-1 .menu > li.current-menu-ancestor > a {
    color: #fff !important;
    background-color: #cc6633 !important;
}

/* Menu item subtitle (.rb-menu-desc) — depth-1 dropdown items — always black */
.ct-header .header-menu-1 .sub-menu .ct-menu-link .rb-menu-desc {
    font-size: 9px;
    color: #333;
    line-height: 1;
    margin-top: 1px;
    font-style: normal;
    font-weight: normal;
    font-family: Verdana, Helvetica, sans-serif;
    letter-spacing: 0;
    text-transform: none;
}
.ct-header .header-menu-1 .sub-menu .ct-menu-link:hover .rb-menu-desc {
    color: #333;
}

/* Dropdown sub-menus — white background, subtle border */
.ct-header .header-menu-1 .sub-menu {
    background-color: #fff !important;
    border: 1px solid #ccc !important;
    box-shadow: 2px 2px 6px rgba(0,0,0,.15);
}
.ct-header .header-menu-1 .sub-menu li {
    background-color: transparent;
}
.ct-header .header-menu-1 .sub-menu li:hover {
    background-color: #cc6633;
}
.ct-header .header-menu-1 .sub-menu a {
    color: #cc6633 !important;
    font-size: 12px;
    padding: 6px 14px;
    border-bottom: 1px solid #eee !important;
    transition: color .15s, background-color .15s;
}
.ct-header .header-menu-1 .sub-menu a:hover {
    color: #fff !important;
    background-color: #cc6633 !important;
}

/* ============================================================
   7. MAIN CONTENT AREA
   ============================================================ */
.entry-content,
.ct-blog-grid article,
.singular-content-wrapper,
.site-main,
.ct-main-content-area,
.content-area,
#primary {
    background-color: #ffffff;
}

.ct-container > .content-area,
.ct-container > #primary {
    background-color: #ffffff;
    border: none;
    padding: 16px;
}

/* Page background — white, matching Joomla original */
#page, .site, #footer {
    background-color: #ffffff;
}

/* ============================================================
   8. CONTENT HEADINGS — Rätselbuch orange-brown style
   ============================================================ */
.entry-content h2:not(.rb-btile-head),
.entry-content h3:not(.rb-btile-head) {
/*
    color: #fff !important;
    background-color: #c63 !important;
    border-radius: 7px 7px 0 0;
    border-left:   1px solid #DBDEE1;
    border-right:  1px solid #DBDEE1;
    border-bottom: 1px solid #DBDEE1;
    min-height: 30px;
    line-height: 30px !important;
    font-size: 115% !important;
    text-align: center;
    margin: 0 0 12px 0;
    padding: 0 10px;
*/
    color: #c63 !important;
    border-bottom: 1px solid #c63;
    min-height: 30px;
    line-height: 30px !important;
    font-size: 115% !important;

}

/* ============================================================
   9. SIDEBAR
   ============================================================ */
.ct-sidebar .widget-title,
.ct-sidebar h3 {
    background-color: #383838;
    color: #ddd;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 5px 5px 0 0;
    border-top:   1px solid #555;
    border-left:  1px solid #555;
    border-right: 1px solid #999;
    margin-bottom: 0;
}
.ct-sidebar .ct-widget {
    border: 1px solid #DBDEE1;
    border-radius: 7px 7px 0 0;
    margin-bottom: 8px;
    background: #fff;
}
.ct-sidebar .ct-widget > *:not(.widget-title):not(h3) {
    padding: 8px 12px;
}

/* ============================================================
   10. FOOTER — background controllable via Customizer (no !important)
   ============================================================ */
.ct-footer {
    background-color: #222;
    color: #5b6c71;
}
.ct-footer a,
.ct-footer a:link,
.ct-footer a:visited {
    color: #5b6c71;
    font-size: 11px;
}
.ct-footer a:hover {
    color: #fff;
}

/* ============================================================
   11. AMAZON / BOOK BOX (ts-raetselbuch shortcode)
   ============================================================ */
.tsrb-book-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 14px;
    display: flex;
    gap: 16px;
    margin: 16px 0;
    box-shadow: 1px 1px 4px rgba(0,0,0,.08);
}
.tsrb-book-box img {
    flex-shrink: 0;
    max-width: 100px;
    height: auto;
    border: 1px solid #ccc;
}
.tsrb-book-box .tsrb-info h3 {
    margin: 0 0 6px;
    font-size: 15px;
    color: #383838;
    text-align: left;
    background: none;
    border: none;
    border-radius: 0;
    line-height: normal;
    min-height: auto;
}
.tsrb-book-box .tsrb-price {
    color: #c63;
    font-weight: bold;
    font-size: 14px;
}
.tsrb-book-box .tsrb-buy-btn {
    display: inline-block;
    margin-top: 8px;
    background: #c63;
    color: #fff !important;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
}
.tsrb-book-box .tsrb-buy-btn:hover {
    background: #a52a00;
    color: #fff !important;
}

/* ============================================================
   12. FOOTER TOP-ROW (Footer Oben — Blocksy footer builder)
   Alignment handled by PHP hook in functions.php (rb-footer-oben-alignment).
   Background inherits from .ct-footer so Customizer controls it.
   ============================================================ */
.ct-footer [data-row*="top"] {
    border-top: 1px solid rgba(255,255,255,.1);
}
.ct-footer [data-row*="top"] .footer-menu-inline a {
    color: #888 !important;
    font-size: 11px;
    padding: 6px 10px;
}
.ct-footer [data-row*="top"] .footer-menu-inline a:hover {
    color: #fff !important;
}

/* ============================================================
   13. SINGLE POST — hide author/date meta, book cover image
   ============================================================ */

/* Hide author + date on all single posts (all posts = Rätselbücher) */
.single .entry-meta,
.single .ct-meta,
.single .posted-by,
.single .posted-on,
.single [class*="post-meta"],
.single [data-meta-type="author"],
.single [data-meta-type="date"] {
    display: none !important;
}

/* Book cover: featured image floats left, looks like a product photo */
.single-post .post-thumbnail,
.single-post .entry-featured-image,
.single-post .ct-post-featured-image {
    float: left;
    margin: 0 24px 16px 0;
    max-width: 200px;
    clear: left;
}
.single-post .post-thumbnail img,
.single-post .entry-featured-image img,
.single-post .ct-post-featured-image img {
    border: 1px solid #ccc;
    box-shadow: 3px 3px 10px rgba(0,0,0,.18);
    border-radius: 2px;
    display: block;
    width: 100%;
    height: auto;
}
/* Clear float after post content */
.single-post .entry-content::after {
    content: '';
    display: table;
    clear: both;
}

/* ============================================================
   14. HEADER MENU ICONS (Issue n69ee7ab)
   ============================================================ */

/* Link with icon: row layout — icon left, text-block right */
.ct-header .menu .ct-menu-link.rb-has-icon {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    text-align: left !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* Icon image */
.ct-header .menu .rb-menu-icon {
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0 !important;
    display: block !important;
    image-rendering: auto;
}

/* Text-block: stacks link-text and subtitle vertically */
.ct-header .menu .ct-menu-link .rb-menu-text-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

/* Icon menu: subtitle left-aligned, always black */
.ct-header .menu .ct-menu-link.rb-has-icon .rb-menu-desc {
    text-align: left !important;
    color: #333 !important;
}

/* ============================================================
   15. RESPONSIVE
   ============================================================ */
@media (max-width: 930px) {
    .ct-header .site-title,
    .ct-header .site-title a {
        font-size: 38px !important;
        letter-spacing: 2px !important;
    }
    .ct-header .site-slogan-rb {
        font-size: 16px;
        letter-spacing: 8px;
    }
    /* Tagline wraps + smaller letter-spacing (font-family rule stays in functions.php) */
    .ct-header .site-description {
        white-space: normal !important;
        font-size: 16px !important;
        letter-spacing: 10px !important;
    }
    .ct-header .site-title-container {
        padding-top: 28px !important;
    }
}

@media (max-width: 695px) {
    .ct-header .site-branding {
        flex-direction: column !important;
        align-items: center !important;
    }
    .ct-header .site-title-container {
        padding-top: 4px !important;
        padding-left: 0 !important;
        text-align: center;
        align-items: center;
    }
    .ct-header .site-title,
    .ct-header .site-title a {
        font-size: 28px !important;
        letter-spacing: 1px !important;
    }
    .ct-header .site-slogan-rb {
        font-size: 13px;
        letter-spacing: 4px;
    }
    .ct-header .site-description {
        white-space: normal !important;
        font-size: 16px !important;
        letter-spacing: 5px !important;
    }
}

/* ============================================================
   16. SINGLE POST — Styling für Aktuelles-Titel
   Blocksy-Hero ist global deaktiviert (Buch-Posts brauchen keinen Seitentitel).
   Für Aktuelles-Posts gibt functions.php den Titel per blocksy:single:top aus
   als h1.rb-aktuelles-title — Basis-Styling im priority-999-Block in functions.php.
   ============================================================ */

/* Wissen-Artikel: mehr Abstand zwischen Header-Menü und H1 */
.category-wissen .rb-aktuelles-title {
    margin-top: 48px;
}

/* ============================================================
   16b. ARCHIVE POST THUMBNAIL — natürliche Bildproportion, kein Zuschnitt
   Blocksy erzwingt standardmäßig ein festes Seitenverhältnis auf
   Archiv-Karten (padding-bottom-Trick oder feste Höhe). Für Buch-Cover
   (variierende Höhe/Breite) besser: Container freigeben, height:auto.
   Alternativ: WP-Admin → Customize → Blog → Blog Archive → Image Ratio.
   ============================================================ */
.ct-blog-article .ct-image-container {
    height: auto !important;
    padding-bottom: 0 !important;
    aspect-ratio: unset !important;
}
.ct-blog-article .ct-image-container img,
.ct-blog-article .ct-image-container a img {
    position: static !important;
    height: auto !important;
    width: 100% !important;
    object-fit: initial !important;
}

/* ============================================================
   17. ARCHIVE — Kategorie-Titel sichtbar (SEO §2.2)
   Tatsächliche DOM-Struktur: <header.entry-header><h1.page-title>…</h1></header>
   entry-header darf NICHT display:none sein — es enthält den H1.
   Andere Archive-Header-Wrapper (page-header, ct-*) bleiben ausgeblendet.
   ============================================================ */

.archive .page-header,
.category .page-header,
.taxonomy .page-header,
.archive .ct-archive-header,
.category .ct-archive-header,
.taxonomy .ct-archive-header,
.archive .ct-page-header,
.category .ct-page-header,
.taxonomy .ct-page-header,
.archive .ct-archive-title,
.category .ct-archive-title,
.taxonomy .ct-archive-title {
    display: none !important;
}

/* Kategorie-Titel H1: gleiche Größe wie auf normalen Seiten (kein font-size-Override) */
.category h1.page-title,
.taxonomy h1.page-title {
    display: block !important;
    text-align: center;
    margin: 0.4em 0 1.1em;
}

/* Rätselarten- + Sudoku-Archiv (#95, 2026-05-21): Überschrift kommt aus h1.page-title
   (get_the_archive_title-Filter); Beschreibung zeigt Textabsätze darunter.
   Auf Mobile: Blocksy blendet .page-description per ct-hidden-sm aus — aufheben,
   damit der Beschreibungstext auch auf kleinen Screens sichtbar bleibt. */
@media (max-width: 689.98px) {
    .category-raetselarten .page-description.ct-hidden-sm,
    .category-sudoku .page-description.ct-hidden-sm {
        display: block !important;
    }
}

/* ============================================================
   18. SEARCH BAR IN HEADER MENU
   ============================================================ */
.rb-search-li {
    display: flex !important;
    align-items: center !important;
    margin-left: auto !important;
    padding: 0 6px !important;
    flex-shrink: 0;
}
.rb-search-li .search-form {
    display: flex;
    align-items: center;
}
.rb-search-li form {
    display: flex !important;
    align-items: center !important;
    background: #f9f9f9 !important;
    border: 1px solid #ccc !important;
    border-radius: 3px !important;
    overflow: hidden !important;
}
.rb-search-li input[type="search"],
.rb-search-li input.search-field {
    font-size: 12px !important;
    padding: 3px 6px !important;
    border: none !important;
    border-radius: 0 !important;
    width: 120px !important;
    color: #333 !important;
    background: transparent !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.rb-search-li input[type="search"]::-webkit-search-cancel-button,
.rb-search-li input[type="search"]::-webkit-search-decoration,
.rb-search-li input[type="search"]::-webkit-search-results-button,
.rb-search-li input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none !important;
    display: none !important;
}
.rb-search-li .rb-search-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
    border: none !important;
    border-left: 1px solid #ddd !important;
    padding: 4px 8px !important;
    cursor: pointer !important;
    color: #888 !important;
    flex-shrink: 0 !important;
}
.rb-search-li .rb-search-btn:hover { color: #cc6633 !important; }
.rb-search-li input[type="submit"] { display: none !important; }
/* Remove any Blocksy-generated separator/border after the search LI */
.rb-search-li::before,
.rb-search-li::after { display: none !important; content: none !important; border: none !important; }
.ct-header .menu > ul > .rb-search-li,
.ct-header nav[data-id] > ul > .rb-search-li { border: none !important; box-shadow: none !important; }
/* Remove trailing separator pseudo-element on the nav UL itself */
.ct-header nav[data-id] > ul::after,
.ct-header .ct-nav > ul::after { display: none !important; content: none !important; }

/* Hide search form on no-results / empty category pages */
.no-results .search-form,
.not-found .search-form {
    display: none !important;
}

/* Force header nav and its UL to full width — required for margin-left:auto
   on .rb-search-li to push the search bar to the far right */
@media (min-width: 1020px) {
    .ct-header nav[data-id],
    .ct-header .ct-nav {
        flex: 1 !important;
    }
    .ct-header nav[data-id] > ul,
    .ct-header .ct-nav > ul {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
    }
}

/* ============================================================
   19. MOBILE — search bar hidden; Blocksy nav hidden by rb-mobile-panel-css
   Breakpoint an Blocksys Header-Umschaltung (≤1019.98px) angeglichen (#91 reopen).
   ============================================================ */
@media (max-width: 1019.98px) {
    .rb-search-li { display: none !important; }
}

/* ── #91 reopen 3 (2026-05-22): Blocksy-Hamburger-Zeile im Band 1000–1019.98px ──────────
   Blocksy blendet [data-device=mobile] (mobile Header-Zeile mit Logo + Hamburger-Icon)
   generell ab min-width:1000px aus (@media(min-width:1000px){#header [data-device=mobile]{display:none}}).
   Da das Child-Theme seinen Breakpoint auf 1020px verschoben hat, muss die mobile Zeile
   auch im Band 1000–1019.98px sichtbar sein; die Desktop-Zeile wird dort ausgeblendet.
   display:block — nativ zeigt Blocksy die mobile Zeile als Block-Container (Div-Standard). */
@media (min-width: 1000px) and (max-width: 1019.98px) {
    #header [data-device=mobile]  { display: block !important; }
    #header [data-device=desktop] { display: none !important; }
}

/* ── #91 reopen 3 (2026-05-22): site-title schrumpfen damit Hamburger sichtbar bleibt ──
   Per Headless-Probe bestätigt: ab 1000px schaltet das Layout auf den mobilen
   data-device=mobile-Container um (siehe Block oben). Das site-title rendert dort
   aber mit Blocksys Customizer-Default 60px und nimmt im Flex-Layout der mobilen
   Header-Zeile ~573px Breite ein — der Hamburger (18×18px bei x=771) wird visuell
   vom Titel überlagert. Die bestehende §15-Regel (max-width:930px) skaliert erst
   unterhalb 930px. Hier den Titel zwischen 931 und 1019.98px ebenfalls verkleinern,
   damit Logo + Titel + Hamburger nebeneinander Platz haben. */
@media (min-width: 931px) and (max-width: 1019.98px) {
    .ct-header .site-title,
    .ct-header .site-title a {
        font-size: 38px !important;
        letter-spacing: 2px !important;
    }
    .ct-header .site-description {
        font-size: 16px !important;
        letter-spacing: 10px !important;
        white-space: normal !important;
    }
    .ct-header .site-title-container {
        padding-top: 28px !important;
    }
}

/* ── #91 reopen 4 (2026-05-22): Hamburger-Position im Band 1000–1019.98px ─────────
   Blocksys Customizer-CSS setzt --row-padding für den middle-row der Mobile-Header-Zeile
   im Default (Desktop-Wert) auf 0px 170px. Der bestehende Override-Block
   @media(max-width:999.98px){…--row-padding:0vw 4vw;} greift im Band 1000–1019.98px
   nicht mehr → das innere >div wird mit 170px L/R-Padding gestaucht, das End-Column
   (Hamburger) wandert ~111px nach links (x=764 statt x=875 bei <1000px). Hier den
   4vw-Wert bis 1019.98px verlängern — selber Selektor + Spezifität wie Customizer-CSS,
   media query gewinnt durch !important über das Inline-CSS. Damit bekommt der
   Hamburger im Band 1000–1019.98px dieselbe relative Position wie bei <1000px. */
@media (min-width: 1000px) and (max-width: 1019.98px) {
    [data-header*="type-1"] .ct-header [data-row*="middle"] {
        --row-padding: 0vw 4vw !important;
    }
}

/* ============================================================
   20. CONTACT FORM
   ============================================================ */
.rb-contact-form p {
    margin-bottom: 12px;
}
.rb-contact-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
    color: #383838;
}
.rb-contact-form input[type="text"],
.rb-contact-form input[type="email"],
.rb-contact-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    font-family: Verdana, Helvetica, sans-serif;
    box-sizing: border-box;
}
.rb-contact-form button[type="submit"] {
    background: #cc6633;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}
.rb-contact-form button[type="submit"]:hover {
    background: #a52a00;
}
.rb-contact-success {
    color: #2a7a2a;
    font-weight: bold;
    padding: 12px;
    background: #e8f5e9;
    border-radius: 4px;
}

/* ============================================================
   21. LAYOUT & MISC — consolidated from functions.php (formerly inline, priority 999).
   Font-face + Emmett/Gloria font-family rules stay in functions.php (need PHP $uri
   and must override Blocksy Customizer inline CSS). Everything else is here.
   ============================================================ */

/* ── Site branding layout — logo left, title+slogan vertically centered ── */
.ct-header .site-branding {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    min-height: 110px !important;
    padding: 10px 0 !important;
}
.ct-header .site-logo-container {
    flex-shrink: 0 !important;
    padding: 0 12px 0 0 !important;
    line-height: 0 !important;
}
.ct-header .site-logo-container img {
    width: auto !important;
    display: block !important;
}
.ct-header .site-title-container {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding-left: 0 !important;
    padding-bottom: 0 !important;
}

/* ── Menu item subtitle — stacked below link text ── */
.ct-header .menu .ct-menu-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}
.ct-header .menu .ct-menu-link .rb-menu-desc {
    font-size: 9px;
    color: #333;
    line-height: 1;
    margin-top: 2px;
    text-transform: none;
    letter-spacing: 0;
    font-family: Verdana, Helvetica, sans-serif;
    font-style: normal;
    font-weight: normal;
    text-align: center;
}
.ct-header .menu .ct-menu-link:hover .rb-menu-desc,
.ct-header .menu .ct-menu-link:focus .rb-menu-desc { color: #333; }
/* Icon items: row layout — icon left, text+desc right (size 32px overrides sec 14 value of 24px) */
.ct-header .menu .ct-menu-link.rb-has-icon {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
}
.ct-header .menu .rb-menu-icon {
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0 !important;
}
/* Sub-menu parent: link + dropdown arrow side by side */
.ct-header .menu .ct-sub-menu-parent {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}
.ct-header .menu .ct-sub-menu-parent > .ct-menu-link {
    flex: 1 !important;
    min-width: 0 !important;
}
.ct-header .menu li.current-menu-item > .ct-sub-menu-parent > button,
.ct-header .menu li.current-menu-ancestor > .ct-sub-menu-parent > button {
    color: #fff !important;
    opacity: 1 !important;
}

/* ── All views — hide author + date meta ── */
.entry-meta,
li.meta-author,
li.meta-date,
li.meta-updated-date,
.ct-meta-element-author,
.ct-meta-element-date { display: none !important; }

/* ── Aktuelles category: show date (exception to global hide above) ── */
.category-aktuelles .entry-meta,
.category-aktuelles li.meta-date,
.category-aktuelles li.meta-updated-date,
.category-aktuelles .ct-meta-element-date { display: block !important; }

/* ── Aktuelles archive: Kategorie-Label in Post-Karten ausblenden (konsistent mit Wissen) ── */
.category-aktuelles li.meta-categories,
.category-aktuelles .meta-categories { display: none !important; }

/* ── Book cover image (output by ts_raetselbuch PHP hook on single posts) ── */
.rb-book-cover {
    float: left !important;
    margin: 0 24px 16px 0 !important;
    padding: 0 !important;
    max-width: 160px !important;
    border: 1px solid #ddd !important;
    box-shadow: 3px 3px 10px rgba(0,0,0,.15) !important;
    border-radius: 2px !important;
    line-height: 0 !important;
}
.rb-book-cover .rb-cover-img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 160px !important;
}

/* ── Active / current menu item — permanent orange highlight ── */
.ct-header .menu li.current-menu-item > .ct-menu-link,
.ct-header .menu li.current-menu-ancestor > .ct-menu-link,
.ct-header .menu li.current-menu-item > .ct-sub-menu-parent > .ct-menu-link,
.ct-header .menu li.current-menu-ancestor > .ct-sub-menu-parent > .ct-menu-link,
.ct-header .sub-menu li.current-menu-item > .ct-menu-link {
    background-color: #cc6633 !important;
    color: #fff !important;
}
.ct-header .menu li.current-menu-item > .ct-menu-link .rb-menu-desc,
.ct-header .menu li.current-menu-item > .ct-sub-menu-parent > .ct-menu-link .rb-menu-desc,
.ct-header .sub-menu li.current-menu-item > .ct-menu-link .rb-menu-desc {
    color: rgba(255,255,255,.8) !important;
}

/* ── H1 page/post title — centered site-wide ── */
.entry-title,
.page-title { text-align: center !important; }

/* ── Front page — hide H1 page title ── */
.home .entry-title,
.home .page-title { display: none !important; }

/* ── #94: Gratis-Seite: H1 auf dieselbe Größe wie alle anderen Single-Titel (30px) ──
   ECHTE DOM-Struktur (per curl verifiziert, postid-113, body.rb-gratis-page):
     <div class="entry-content …"><h1 class="page-title" itemprop="headline">…</h1>
   Der H1 ist als Hardcode aus der Joomla-Migration im post_content enthalten und
   liegt deshalb in .entry-CONTENT, NICHT in .entry-header.
   Blocksy generiert seine 30px-Regeln aber ausschließlich für
     [data-prefix=…] .entry-HEADER .page-title { --theme-font-size: 30px; }
   → kein Blocksy-Selektor matcht diesen H1, er fällt auf den globalen H1-Default
   (40px) zurück. Zudem liest in .entry-content niemand die Variable --theme-font-size,
   daher muss font-size direkt gesetzt werden (Variable allein wirkungslos).
   Robuster, eindeutiger Selektor über die Body-Klasse rb-gratis-page. */
.rb-gratis-page .entry-content h1.page-title {
    font-size: 30px !important;
    --theme-font-size: 30px;
}

/* ── #105 (2026-05-21 reopen 2): H1 Abstand zum Menü angleichen ─────────────────────
   Blocksys CSS-Reset setzt h1 margin-top:0. Referenz /raetselarten/ wirkt durch
   den Container-padding-top (15px). Auf /buch-finder/ und /gratis-raetselbuch-erhalten/
   fehlt der 0.4em-Abstand oben am H1 (≈12px bei font-size 30px). */
[data-prefix="single_page"] .entry-header {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
[data-prefix="single_page"] .entry-header h1.page-title {
    margin-top: 0.4em;
}
.rb-gratis-page [data-prefix="single_blog_post"] > .entry-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
.rb-gratis-page .entry-content h1.page-title {
    margin-top: 0.4em;
}

/* ── Max Mega Menu: fill nav width so margin-left:auto pushes search bar right ── */
.header-menu-1 #mega-menu-wrap-menu_1 {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}
#mega-menu-wrap-menu_1 #mega-menu-menu_1 {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}
#mega-menu-wrap-menu_1 #mega-menu-menu_1 > li.mega-item-align-right {
    float: none !important;
    margin-left: auto !important;
}

/* ── Startseite bottom tiles ── */
.rb-bottom-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 40px; margin-top: 40px; }
.rb-bottom-tile { padding: 0; }
.rb-btile-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rb-btile-icon { flex-shrink: 0; color: #cc6633 !important; display: flex; align-items: center; line-height: 1; }
.rb-btile-icon svg { width: 24px !important; height: 24px !important; color: #cc6633 !important; }
/* Specificity (0,2,0) beats .entry-content h3 (0,1,1) */
.rb-btile-header .rb-btile-head { margin: 0 !important; font-size: 24px !important; line-height: 1.1 !important; color: #666 !important; font-weight: bold !important; background: none !important; border: none !important; border-radius: 0 !important; min-height: 0 !important; padding: 0 !important; text-align: left !important; }
.rb-btile-accent { color: #cc6633 !important; font-weight: bold !important; }
.rb-btile-text { color: #666 !important; font-size: 14px !important; margin: 8px 0 0 !important; line-height: 1.5 !important; }
@media (max-width: 600px) { .rb-bottom-tiles { grid-template-columns: 1fr; } }
