/* ══════════════════════════════════════════════
   SKIP-TO-CONTENT (Barrierefreiheit)
══════════════════════════════════════════════ */
.skip-to-content {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    -webkit-clip-path: inset(50%) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    text-decoration: none;
    /* Chromium/Edge: display nicht none damit :focus funktioniert */
}
.skip-to-content:focus,
.skip-to-content:focus-visible {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: auto !important;
    height: auto !important;
    padding: 12px 20px !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    -webkit-clip-path: none !important;
    clip-path: none !important;
    white-space: normal !important;
    z-index: 99999 !important;
    background: #228B22 !important;
    color: #fff !important;
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-size: .9rem !important;
    font-weight: 600 !important;
    border-radius: 0 0 6px 6px !important;
    outline: 3px solid #FF8C00 !important;
    outline-offset: 2px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.3) !important;
}
/* Bei Maus-Nutzung: Skip-Link visuell unterdrücken */
.skip-to-content[data-mouse]:focus {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    padding: 0 !important;
}

/*
 * LeseOrbit – Haupt-Stylesheet
 * Forest Green #228B22 · Dark Orange #FF8C00 · Deep Blue #19468C
 */

/* ══════════════════════════════════════════════
   TOKENS
══════════════════════════════════════════════ */
:root {
    /* Farben */
    --green:        #228B22;
    --green-dark:   #1a6b1a;
    --green-light:  #eaf4ea;
    --orange:       #FF8C00;
    --orange-soft:  #fff5e6;
    --blue:         #19468C;
    --white:        #ffffff;
    --off:          #f8f6f2;
    --ink:          #1a1a18;
    --muted:        #7a7570;
    --border:       #e4e0da;

    /* Typografie */
    --serif:        'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans:         'DM Sans', system-ui, -apple-system, sans-serif;

    /* Layout */
    --sidebar-w:    272px;
    --radius:       6px;
    --radius-lg:    10px;

    /* Schatten */
    --shadow-sm:    0 1px 4px rgba(0,0,0,.06);
    --shadow-md:    0 2px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
    --shadow-lg:    0 8px 32px rgba(0,0,0,.13), 0 2px 8px rgba(0,0,0,.07);
    --shadow-cover: 0 20px 60px rgba(0,0,0,.22), 0 4px 16px rgba(0,0,0,.12);

    /* Transitions */
    --transition: all .18s ease;
}

/* ══════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════ */
*, *::before, *::after { -webkit-box-sizing: border-box; box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    background: #f8f6f2;
    color: #1a1a18;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: #228B22; }
a:hover { color: #1a6b1a; }

/* ══════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════ */
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }

.site-layout {
    display: grid;
    grid-template-columns: 272px 1fr;
    grid-template-rows: auto 1fr auto; /* auto für Footer-Zeile */
    flex: 1;
}


.site-main {
    grid-column: 2;
    grid-row: 1 / 2; /* nur Inhaltszeile, Footer in Zeile 2 */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ══════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════ */
.sidebar {
    grid-column: 1;
    grid-row: 1 / -1; /* Sidebar überspannt alle Reihen inkl. Footer */
    background: #ffffff;
    border-right: 1px solid #e4e0da;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 32px 24px 28px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e4e0da transparent;
}

/* Logo */
.sidebar-logo { margin-bottom: 36px; }

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 2px;
}
.logo-icon {
    width: 34px; height: 34px;
    background: #228B22;
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.logo-text {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #228B22;
    line-height: 1.1;
}
.logo-tagline {
    font-size: .7rem;
    color: #7a7570;
    letter-spacing: .09em;
    text-transform: uppercase;
    margin-left: 44px;
    display: block;
}
/* Custom Logo */
.sidebar-logo .custom-logo-link img {
    max-height: 60px;
    width: auto;
}

/* Nav Label */
.nav-label {
    font-size: .66rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #7a7570;
    margin-bottom: 8px;
    display: block;
}

/* Nav Menu */
.sidebar-nav ul { list-style: none; }
.sidebar-nav > ul > li { margin-bottom: 2px; }

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 6px;
    color: #1a1a18;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 400;
    transition: all .18s ease;
}
.sidebar-nav .nav-link:hover        { background: #eaf4ea; color: #228B22; }
.sidebar-nav .nav-link.active       { background: #228B22; color: #fff; }
.sidebar-nav .nav-link.active .nav-icon { opacity: 1; }

.nav-icon { display: none; } /* Icons im Menü ausgeblendet */
/* ── Nav-Item mit separatem Caret-Button ── */
.nav-item-wrap {
    display: flex;
    align-items: center;
}
.nav-item-wrap .nav-link {
    flex: 1;
}
.nav-caret-btn {
    width: 32px; height: 32px;
    background: none; border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #7a7570;
    border-radius: 6px;
    flex-shrink: 0;
    transition: background .15s, color .15s;
}
.nav-caret-btn:hover { background: #eaf4ea; color: #228B22; }
.nav-caret-btn svg { transition: transform .2s; }
.nav-caret-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav-caret { margin-left: auto; opacity: .5; transition: transform .2s; display: flex; }
.nav-caret.open { transform: rotate(180deg); }

/* Sub-menu */
.sidebar-nav .sub-menu {
    list-style: none;
    margin: 3px 0 4px 26px;
    border-left: 2px solid #e4e0da;
    padding-left: 12px;
}
.sidebar-nav .sub-menu li a {
    display: block;
    padding: 5px 8px;
    font-size: .81rem;
    color: #7a7570;
    text-decoration: none;
    border-radius: 4px;
    transition: all .18s ease;
}
.sidebar-nav .sub-menu li a:hover          { color: #228B22; background: #eaf4ea; }
.sidebar-nav .sub-menu li.current-menu-item a { color: #FF8C00; font-weight: 500; }

/* Suchfeld in Sidebar */
.sidebar-search {
    margin-top: auto;
    padding-top: 20px;
}
.search-label {
    font-size: .66rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #7a7570;
    display: block;
    margin-bottom: 8px;
}
.search-form { position: relative; }
.search-field {
    width: 100%;
    padding: 8px 36px 8px 12px;
    border: 1px solid #e4e0da;
    border-radius: 6px;
    background: #f8f6f2;
    font-size: .86rem;
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    color: #1a1a18;
    outline: none;
    transition: border-color .18s;
}
.search-field:focus { border-color: #228B22; background: #fff; }
.search-submit {
    position: absolute;
    right: 10px; top: 50%;
    transform: translateY(-50%);
    border: none; background: none;
    cursor: pointer; color: #7a7570;
    display: flex; align-items: center;
    padding: 0;
}
.search-submit:hover { color: #228B22; }
.wp-block-search .wp-block-search__input { /* WordPress-Block-Kompatibilität */
    border-radius: 6px;
}

/* Social Icons */
.sidebar-social {
    margin-top: 16px;
    padding-top: 18px;
    border-top: 1px solid #e4e0da;
    width: 100%;
}
.social-icons {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    /* Rechtsbündig: float ist zuverlässigster Cross-Browser-Ansatz */
    float: right;
}
/* Clearfix nach social-icons */
.sidebar-social::after {
    content: '';
    display: table;
    clear: both;
}

.social-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: #f8f6f2;
    border: 1px solid #e4e0da;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    color: #7a7570;
    transition: all .18s ease;
}
.social-btn:hover { background: #228B22; border-color: #228B22; color: #fff; }

/* ══════════════════════════════════════════════
   MOBILE HEADER
══════════════════════════════════════════════ */
.m-header {
    display: none;
    background: #ffffff;
    border-bottom: 1px solid #e4e0da;
    padding: 10px 20px;
    align-items: center;
    justify-content: flex-end; /* Logo rechtsbündig */
    position: sticky;
    top: 0;
    z-index: 100;
    grid-column: 1 / 3;
    gap: 12px;
}
.m-logo a {
    display: flex; align-items: center; gap: 9px;
    text-decoration: none;
}
.m-logo-icon {
    width: 22px; height: 22px; /* 75% von 30px */
    background: #228B22;
    border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
}
.m-logo-name {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-size: 0.86rem; font-weight: 700; /* 75% von 1.15rem */
    color: #228B22;
}
.m-hamburger {
    width: 38px; height: 38px;
    background: #f8f6f2;
    border: 1px solid #e4e0da;
    border-radius: 6px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; padding: 10px; cursor: pointer;
}
.m-hamburger span {
    display: block; width: 100%; height: 1.5px;
    background: #1a1a18; border-radius: 2px; transition: all .18s ease;
}
.m-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.m-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.m-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ══════════════════════════════════════════════
   MOBILE DRAWER
══════════════════════════════════════════════ */
.m-drawer {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 300px;
    background: #ffffff;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    padding: 56px 24px 32px;
    display: flex; flex-direction: column;
    box-shadow: none;
}
.m-drawer.open { transform: translateX(0); box-shadow: 0 8px 32px rgba(0,0,0,.13), 0 2px 8px rgba(0,0,0,.07); }

.m-drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 190;
    opacity: 0; pointer-events: none;
    transition: opacity .28s;
}
.m-drawer-overlay.visible { opacity: 1; pointer-events: all; }

.m-drawer-close {
    position: absolute; top: 16px; right: 16px;
    width: 32px; height: 32px;
    background: #f8f6f2; border: 1px solid #e4e0da;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #7a7570;
}
.m-drawer-close:hover { background: #228B22; color: #fff; border-color: #228B22; }

.m-drawer-logo {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-size: 1.2rem; font-weight: 700;
    color: #228B22; margin-bottom: 28px;
}
.m-drawer-logo a { text-decoration: none; color: inherit; }

.m-nav ul { list-style: none; }
.m-nav > ul > li { border-bottom: 1px solid #e4e0da; }
.m-nav > ul > li > a {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 4px;
    font-size: .93rem; color: #1a1a18; text-decoration: none;
}
.m-nav > ul > li > a.active { color: #228B22; font-weight: 600; }
.m-nav .sub-menu {
    list-style: none;
    padding: 4px 0 10px 28px;
}
.m-nav .sub-menu li a {
    display: block; padding: 6px 0;
    font-size: .84rem; color: #7a7570;
    text-decoration: none; border-bottom: 1px solid #e4e0da;
}
.m-nav .sub-menu li:last-child a { border-bottom: none; }

.m-drawer-search { margin-top: 20px; }
.m-drawer-social { margin-top: auto; padding-top: 20px; text-align: right; }
.m-drawer-social .social-icons { float: none; display: inline-flex; }

/* ══════════════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════════════ */
.main-content {
    padding: 40px 48px 72px; /* 72px Weißraum vor Footer */
    flex: 1;
}

/* ══════════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════════ */
.section-eyebrow {
    display: flex; align-items: center; gap: 10px;
    font-size: .7rem; letter-spacing: .14em;
    text-transform: uppercase; color: #7a7570;
    margin-bottom: 18px;
}
.section-eyebrow::after {
    content: ''; flex: 1; height: 1px; background: #e4e0da;
}

.section-divider { border: none; border-top: 1px solid #e4e0da; margin: 36px 0; }

.breadcrumb {
    display: flex; align-items: center; gap: 6px;
    font-size: .76rem; color: #7a7570;
    margin-bottom: 20px; flex-wrap: wrap;
}
.breadcrumb a { color: #7a7570; text-decoration: none; transition: color .15s; }
.breadcrumb a:hover { color: #228B22; }
.breadcrumb .sep { opacity: .4; }
.breadcrumb .current { color: #1a1a18; font-weight: 500; }

.back-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .8rem; color: #7a7570;
    text-decoration: none; margin-bottom: 28px;
    transition: color .15s; background: none; border: none; cursor: pointer;
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
}
.back-link:hover { color: #228B22; }
.back-link svg { transition: transform .18s; }
.back-link:hover svg { transform: translateX(-3px); }

/* Buttons */
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: #228B22; color: #fff;
    text-decoration: none; padding: 10px 20px;
    border-radius: 6px; font-size: .88rem; font-weight: 500;
    border: none; cursor: pointer; font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    transition: background .18s, transform .15s;
}
.btn-primary:hover { background: #1a6b1a; color: #fff; transform: translateY(-1px); }
.btn-primary svg { transition: transform .18s; }
.btn-primary:hover svg { transform: translateX(3px); }

.cat-tag {
    font-size: .7rem; letter-spacing: .09em; text-transform: uppercase;
    font-weight: 500; color: #FF8C00;
    border: 1px solid #FF8C00; padding: 3px 10px;
    border-radius: 20px; text-decoration: none; transition: all .18s ease;
}
.cat-tag:hover { background: #FF8C00; color: #fff; }

/* ══════════════════════════════════════════════
   FEATURED CARD
══════════════════════════════════════════════ */
.featured-card {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
    margin-bottom: 48px;
    min-height: 0;      /* Kein fixer min-height – Inhalt bestimmt Höhe */
    border: 1px solid #e4e0da;
    transition: box-shadow .2s;
    font-size: 100%;    /* Normale Schriftgröße */
}
.featured-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.13), 0 2px 8px rgba(0,0,0,.07); }

.featured-img {
    position: relative; overflow: hidden;
    background: #f8f6f2; /* Hintergrund wenn Bild nicht das ganze Feld füllt */
    display: flex; align-items: center; justify-content: center;
}
.featured-img img {
    width: 100%; height: 100%; object-fit: contain;
    transition: transform .5s ease;
}
.featured-card:hover .featured-img img { transform: scale(1.02); }

.featured-badge {
    position: absolute; top: 16px; left: 16px;
    background: #FF8C00; color: #fff;
    font-size: .68rem; font-weight: 500; letter-spacing: .1em;
    text-transform: uppercase; padding: 4px 11px; border-radius: 20px;
}

.featured-body {
    padding: 32px 28px;  /* 80% von 40px/36px */
    display: flex; flex-direction: column; justify-content: center;
}
.featured-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.date-tag { font-size: .78rem; color: #7a7570; }

.featured-title {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; font-size: 1.6rem; font-weight: 700;
    line-height: 1.2; color: #228B22; margin-bottom: 8px;
}
.featured-title a { text-decoration: none; color: inherit; }
.featured-title a:hover { color: #1a6b1a; }

.featured-author {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; font-style: italic;
    font-size: 1rem; color: #7a7570; margin-bottom: 14px;
}
.featured-excerpt {
    font-size: .9rem; color: #555; line-height: 1.7;
    margin-bottom: 0; flex: 1;
}
.featured-body .btn-primary {
    margin-top: 28px; /* Abstand zwischen Text und Button */
}

/* ══════════════════════════════════════════════
   CARD GRID
══════════════════════════════════════════════ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 36px;
}

.book-card {
    background: #ffffff;
    border-radius: 8px; overflow: hidden;
    border: 1px solid #e4e0da;
    box-shadow: 0 2px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
    transition: box-shadow .22s, transform .22s;
    display: flex; flex-direction: column;
}
.book-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.13), 0 2px 8px rgba(0,0,0,.07); transform: translateY(-3px); }

.card-inner { display: block; text-decoration: none; }

.card-cover {
    position: relative; aspect-ratio: 3/4; overflow: hidden;
    background: #eaf4ea;
}
.card-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
}
.book-card:hover .card-img { transform: scale(1.06); }

.card-no-cover {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #228B22; opacity: .4;
}

.card-cat {
    display: none; /* Kategorie-Badge auf Kacheln ausgeblendet */
}

.card-body { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.card-title {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; font-size: 1.02rem; font-weight: 700;
    line-height: 1.25; color: #228B22; margin-bottom: 3px;
}
.card-title a { text-decoration: none; color: inherit; }
.card-title a:hover { color: #1a6b1a; }
.card-author {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; font-style: italic;
    font-size: .85rem; color: #7a7570; margin-bottom: 10px;
}
.card-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: auto;
}
.card-date { font-size: .73rem; color: #aaa; }
.card-arrow {
    width: 25px; height: 25px; border-radius: 50%;
    background: #fff5e6;
    display: flex; align-items: center; justify-content: center;
    color: #FF8C00; transition: all .18s ease;
    text-decoration: none;
}
.book-card:hover .card-arrow { background: #FF8C00; color: #fff; }

/* Load More */
.load-more-wrap { text-align: center; margin-bottom: 48px; }
.btn-load-more {
    display: inline-flex; align-items: center; gap: 8px;
    background: #ffffff; color: #228B22;
    border: 1.5px solid #228B22; padding: 10px 26px;
    border-radius: 6px; font-size: .88rem; font-weight: 500;
    cursor: pointer; font-family: 'DM Sans', system-ui, -apple-system, sans-serif; transition: all .18s ease;
}
.btn-load-more:hover { background: #228B22; color: #fff; }
.btn-load-more.loading { opacity: .6; pointer-events: none; }

/* ══════════════════════════════════════════════
   ARCHIVE / CATEGORY
══════════════════════════════════════════════ */
.archive-header { margin-bottom: 8px; }
.archive-eyebrow {
    font-size: .7rem; letter-spacing: .14em;
    text-transform: uppercase; color: #FF8C00;
    margin-bottom: 6px; display: block;
}
.archive-title {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; font-size: 2rem; font-weight: 700;
    color: #228B22; line-height: 1.2; margin-bottom: 8px;
}
.archive-description { color: #7a7570; font-size: .9rem; }

/* Pagination */
.nav-links { display: flex; gap: 8px; justify-content: center; margin: 32px 0 48px; }
.page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 6px;
    border: 1px solid #e4e0da; background: #ffffff;
    color: #1a1a18; text-decoration: none; font-size: .88rem;
    transition: all .18s ease;
}
.page-numbers:hover       { border-color: #228B22; color: #228B22; }
.page-numbers.current     { background: #228B22; border-color: #228B22; color: #fff; }
.nav-pag-label             { white-space: nowrap; }
.page-numbers.prev,
.page-numbers.next {
    width: auto;
    height: auto;           /* kein festes height – passt sich dem Inhalt an */
    min-height: 36px;       /* mindesthöhe wie andere Buttons */
    padding: 8px 16px;      /* vertikales Padding statt height */
    white-space: nowrap;
    min-width: -webkit-max-content;
    min-width: max-content;
    overflow: visible;
    display: inline-flex;
    align-items: center;
}
.page-numbers.prev .nav-pag-label,
.page-numbers.next .nav-pag-label {
    white-space: nowrap;
    display: inline-block;
}
.page-numbers.dots        { border: none; background: none; cursor: default; }

/* ══════════════════════════════════════════════
   SEARCH
══════════════════════════════════════════════ */
.no-results, .no-posts { color: #7a7570; font-size: .95rem; padding: 16px 0; }

/* ══════════════════════════════════════════════
   404
══════════════════════════════════════════════ */
.error-404-content { display: flex; align-items: center; justify-content: center; }
.error-404-inner { text-align: center; max-width: 480px; }
.error-404-number {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; font-size: 8rem; font-weight: 700;
    color: #228B22; line-height: 1; opacity: .15;
    margin-bottom: -24px;
}
.error-404-title {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; font-size: 2rem; font-weight: 700;
    color: #228B22; margin-bottom: 12px;
}
.error-404-text { color: #7a7570; margin-bottom: 24px; }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.site-footer {
    background: #228B22;
    color: rgba(255,255,255,.75);
    padding: 36px 48px;
    /* Footer steht nach .site-main, innerhalb .site-layout (2-Spalten-Grid) */
    grid-column: 2; /* nur Inhaltsspalte, nicht über Sidebar */
}
.footer-inner {
    display: flex; justify-content: space-between;
    align-items: flex-start; gap: 24px; flex-wrap: wrap;
    max-width: 100%;
    margin-left: 0;
}
.footer-logo {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; font-size: 1.1rem;
    font-weight: 700; color: #fff; margin-bottom: 4px;
}
.footer-brand p { font-size: .8rem; color: rgba(255,255,255,.5); }

.footer-links { display: flex; gap: 0; list-style: none; flex-wrap: wrap; }
.footer-links li + li::before { content: '·'; padding: 0 10px; color: rgba(255,255,255,.3); }
.footer-links a {
    color: rgba(255,255,255,.7); text-decoration: none;
    font-size: .83rem; transition: color .15s;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 20px; padding-top: 16px;
    font-size: .72rem; color: rgba(255,255,255,.35);
    margin-left: 0;
}
.footer-bottom a { color: rgba(255,255,255,.5); }

/* ══════════════════════════════════════════════
   NACH-OBEN-BUTTON
══════════════════════════════════════════════ */
.back-to-top {
    position: fixed; bottom: 28px; right: 28px;
    width: 44px; height: 44px; border-radius: 50%;
    background: #FF8C00; color: #fff;
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(255,140,0,.4);
    opacity: 0; pointer-events: none;
    transform: translateY(12px);
    transition: opacity .25s, transform .25s;
    z-index: 500;
}
.back-to-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-to-top:hover { background: #d97700; }

/* ══════════════════════════════════════════════
   ANIMATIONEN
══════════════════════════════════════════════ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.book-card { animation: fadeUp .3s ease both; }
.book-card:nth-child(1) { animation-delay: .04s; }
.book-card:nth-child(2) { animation-delay: .10s; }
.book-card:nth-child(3) { animation-delay: .16s; }
.book-card:nth-child(4) { animation-delay: .22s; }
.book-card:nth-child(5) { animation-delay: .28s; }
.book-card:nth-child(6) { animation-delay: .34s; }
.new-card { animation: fadeUp .4s ease both; }

/* ══════════════════════════════════════════════
   RESPONSIVE – TABLET (< 1024px)
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-card { grid-template-columns: 1fr; min-height: auto; font-size: 100%; }
    .featured-img { aspect-ratio: 16/9; }
    .featured-img img { object-fit: cover; width: 100%; height: 100%; max-height: none; margin: 0; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE – MOBIL (< 768px)
══════════════════════════════════════════════ */
@media (max-width: 768px) {
    .sidebar { display: none; }
    .m-header { display: flex; }

    .site-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
    }
    .site-main { grid-column: 1; grid-row: 2; }
    .site-footer { grid-column: 1; grid-row: 3; } /* Footer unter Inhalt auf Mobil */

    .main-content { padding: 24px 16px 80px; } /* mehr Weißraum vor Footer auf Mobil */

    .card-grid { grid-template-columns: 1fr; gap: 16px; }

    /* Mobil: horizontale Kacheln */
    .book-card { display: grid; grid-template-columns: 80px 1fr; }
    .card-inner { grid-column: 1; }
    .card-cover { aspect-ratio: 2/3; height: 100%; }
    .card-body  { grid-column: 2; }

    .featured-card { grid-template-columns: 1fr; }
    .featured-body { padding: 20px; }
    .featured-title { font-size: 1.5rem; }
    /* Mobil: Featured-Bild vollständig anzeigen */
    .featured-img { aspect-ratio: unset; background: #f8f6f2; }
    .featured-img img { object-fit: contain; max-height: 280px; width: auto; max-width: 100%; margin: 0 auto; display: block; }

    .site-footer {
        padding: 24px 20px;
        width: 100%;
        /* Footer unter dem Inhalt, nicht daneben */
        display: block;
    }
    .footer-inner, .footer-bottom { margin-left: 0; }

    .back-to-top { bottom: 16px; right: 16px; }
}

/* ══════════════════════════════════════════════
   STATISCHE SEITEN (page.php)
══════════════════════════════════════════════ */
.page-content { }

.page-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e4e0da;
}

/* page-title: explizite Hex-Werte, kein clamp() als Fallback */
.page-title {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #228B22;
    line-height: 1.2;
}

/* page-body: alle Styles explizit, kein Vererben auf .prose */
.page-body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.85;
    color: #2a2824;
    max-width: 680px;
}
.page-body p {
    margin-bottom: 1.4em;
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.85;
    color: #2a2824;
}
.page-body h2 {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #228B22;
    margin: 2em 0 .6em;
    padding-bottom: 8px;
    border-bottom: 1px solid #e4e0da;
}
.page-body h3 {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #228B22;
    margin: 1.6em 0 .4em;
}
.page-body h4 {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a18;
    margin: 1.4em 0 .3em;
}
.page-body a {
    color: #228B22;
    font-weight: 500;
}
.page-body a:hover { color: #1a6b1a; }
.page-body ul,
.page-body ol {
    padding-left: 1.6em;
    margin-bottom: 1.4em;
}
.page-body li {
    margin-bottom: .4em;
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.85;
    color: #2a2824;
}
.page-body strong { font-weight: 600; }
.page-body em { font-style: italic; }
.page-body blockquote {
    margin: 1.5em 0;
    padding: 12px 20px;
    border-left: 3px solid #FF8C00;
    background: #fff5e6;
    color: #228B22;
    font-style: italic;
}

/* ══════════════════════════════════════════════
   FORMULARFELDER – Modern & konsistent
   (input, textarea, select – alle Seiten)
══════════════════════════════════════════════ */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="password"],
input[type="date"],
textarea,
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    padding: 10px 14px;
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    font-size: .92rem;
    color: #1a1a18;
    background: #ffffff;
    border: 1.5px solid #e4e0da;
    border-radius: 6px;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
    line-height: 1.5;
    box-sizing: border-box;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    border-color: #228B22;
    box-shadow: 0 0 0 3px rgba(34,139,34,.12);
}
input::placeholder,
textarea::placeholder {
    color: #bbb;
    font-style: italic;
}
textarea {
    resize: vertical;
    min-height: 120px;
}
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a7570' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 36px;
}
label {
    display: block;
    font-size: .82rem;
    font-weight: 500;
    color: #7a7570;
    margin-bottom: 6px;
    letter-spacing: .02em;
}
input[type="submit"],
button[type="submit"] {
    -webkit-appearance: none;
    appearance: none;
    background: #228B22;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .18s, transform .15s;
}
input[type="submit"]:hover,
button[type="submit"]:hover {
    background: #1a6b1a;
    transform: translateY(-1px);
}
input[type="checkbox"],
input[type="radio"] {
    width: auto;
    accent-color: #228B22;
    margin-right: 6px;
}

/* ══════════════════════════════════════════════
   MICROSOFT EDGE – KOMPATIBILITÄTS-FIXES
   Edge (Chromium-basiert) sollte modernes CSS
   vollständig unterstützen. Wenn Schrift und
   Layout abweichen, liegt es meistens an:
   1. Fehlenden lokalen Schriftdateien (woff2)
   2. Fehlenden expliziten font-family Angaben
   3. CSS-Eigenschaften die Edge anders berechnet
══════════════════════════════════════════════ */

/* Explizite Schrift-Vererbung für alle Textelemente */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}
h4 { font-size: 1.15rem; font-weight: 700; }
p, li, td, th, label, input, textarea, select, button {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
}

/* Edge: clamp() wird korrekt unterstützt,
   aber mit explizitem min/max als Fallback */
.post-title {
    /* Fallback für sehr alte Edge-Versionen */
    font-size: 2rem;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.archive-title,
.page-title {
    font-size: 1.8rem;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
}
.featured-title {
    font-size: 1.6rem;
}

/* Edge: position:sticky in Grid-Layouts */
@supports (display: grid) {
    .sidebar {
        position: -webkit-sticky;
        position: sticky;
    }
}

/* Edge: gap in Flexbox (ältere Versionen) */
.footer-inner {
    gap: 24px;
}
.featured-meta {
    gap: 10px;
}
.post-meta {
    gap: 12px;
}
