/**
 * Loveify Bücher — Frontend Styles
 * Optisch angeglichen an die Flüsterecke (heller Hintergrund,
 * pinker Eyebrow, schwarze fette H1) damit alles wie aus einem
 * Guss aussieht.
 */

/* ════════════════════════════════════════════════════════════════════
   ARCHIV / BIBLIOTHEK — Flüsterecke-Look
   ════════════════════════════════════════════════════════════════════ */
.lvy-books-page {
    background: #f7f7f7;
    min-height: 60vh;
}

.lvy-books-hero {
    background: transparent;
    padding: 60px 24px 40px;
}
.lvy-books-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.lvy-books-eyebrow {
    display: inline-block;
    background: #b71361;
    color: #fff;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 18px;
}
.lvy-books-title {
    font-size: 64px;
    font-weight: 900;
    color: #111;
    margin: 0 0 14px;
    letter-spacing: -.02em;
    line-height: 1;
}
.lvy-books-intro {
    font-size: 16px;
    color: #444;
    max-width: 680px;
    margin: 0 0 24px;
}
.lvy-books-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.lvy-books-filter-btn {
    display: inline-block;
    padding: 10px 22px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #e5e5e5;
    transition: all .15s;
}
.lvy-books-filter-btn:hover { border-color: #b71361; color: #b71361; }
.lvy-books-filter-btn.active { background: #b71361; color: #fff; border-color: #b71361; }
.lvy-books-filter-btn.lvy-books-back {
    margin-left: auto;
    color: #888;
    border-color: transparent;
    background: transparent;
}
.lvy-books-filter-btn.lvy-books-back:hover { color: #b71361; background: transparent; }

.lvy-books-grid-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 24px 60px;
}
.lvy-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}
.lvy-book-card {
    background: #fff;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.lvy-book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    color: inherit;
}

.lvy-book-cover {
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #b71361 0%, #6b0d3a 100%);
    overflow: hidden;
    position: relative;
}
.lvy-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.lvy-book-cover-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lvy-book-cover-placeholder span {
    font-size: 100px;
    color: rgba(255,255,255,.8);
    font-weight: 900;
}
.lvy-book-age-badge {
    position: absolute; top: 12px; right: 12px;
    background: rgba(0,0,0,.85);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    padding: 4px 8px;
}

.lvy-book-card-body {
    padding: 18px 18px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.lvy-book-genre {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #b71361;
    margin-bottom: 6px;
}
.lvy-book-title-card {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;
    color: #111;
    margin: 0 0 8px;
}
.lvy-book-excerpt {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    margin: 0 0 12px;
    flex: 1;
}
.lvy-book-meta {
    font-size: 12px;
    color: #999;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.lvy-book-meta svg {
    color: #b71361;
    flex-shrink: 0;
}

.lvy-books-pagination {
    margin-top: 50px;
    text-align: center;
}
.lvy-books-pagination .nav-links {
    display: inline-flex;
    gap: 6px;
}
.lvy-books-pagination .page-numbers {
    padding: 10px 16px;
    background: #fff;
    color: #444;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #ddd;
}
.lvy-books-pagination .page-numbers.current { background: #b71361; color: #fff; border-color: #b71361; }

.lvy-books-empty {
    text-align: center;
    padding: 80px 20px;
    color: #888;
    font-size: 16px;
}

/* ════════════════════════════════════════════════════════════════════
   READER (Single Book) — bleibt Reader-typisch dunkler
   ════════════════════════════════════════════════════════════════════ */
.lvy-book-reader {
    background: #fafaf8;
    min-height: 60vh;
}

.lvy-book-reader-hero {
    background: transparent;
    padding: 50px 24px 30px;
    max-width: 900px;
    margin: 0 auto;
}
.lvy-book-reader-hero-inner {
    max-width: 900px;
    margin: 0 auto;
}
.lvy-book-reader-back {
    color: #b71361;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    display: inline-block;
}
.lvy-book-reader-back:hover { color: #6b0d3a; }
.lvy-book-reader-genre {
    display: inline-block;
    background: #b71361;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 12px;
    margin: 12px 0 14px;
}
.lvy-book-reader-hero h1 {
    font-size: 48px;
    font-weight: 900;
    color: #111;
    line-height: 1.1;
    margin: 0 0 14px;
}
.lvy-book-reader-meta {
    font-size: 14px;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.lvy-book-age-inline {
    background: #b71361;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    margin-left: 8px;
}

/* Download-Buttons (PDF / ePub) */
.lvy-book-downloads {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.lvy-book-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #b71361;
    color: #b71361;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .3px;
    transition: all .15s;
}
.lvy-book-dl-btn:hover {
    background: #b71361;
    color: #fff;
}
.lvy-book-dl-btn svg {
    flex-shrink: 0;
}

.lvy-book-reader-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 24px 80px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
}

.lvy-book-toc {
    position: sticky;
    top: 100px;
    align-self: start;
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}
.lvy-book-toc h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #b71361;
    margin: 0 0 12px;
}
.lvy-book-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: ch;
}
.lvy-book-toc li {
    counter-increment: ch;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.4;
}
.lvy-book-toc li::before {
    content: counter(ch) ". ";
    color: #b71361;
    font-weight: 700;
}
.lvy-book-toc a {
    color: #333;
    text-decoration: none;
}
.lvy-book-toc a:hover { color: #b71361; }

/* Download-Buttons in der TOC-Sidebar */
.lvy-book-toc-downloads {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.lvy-book-toc-downloads h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #b71361;
    margin: 0 0 8px;
    font-weight: 700;
}
.lvy-book-dl-btn-small {
    padding: 8px 12px;
    font-size: 12px;
    width: 100%;
    justify-content: center;
}

.lvy-book-text {
    background: #fff;
    padding: 50px 60px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

/* Buch-Header innerhalb des Article-Body (immer sichtbar, theme-unabhängig) */
.lvy-book-article-header {
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f0f0f0;
}
.lvy-book-back-link {
    display: inline-block;
    color: #b71361;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
}
.lvy-book-back-link:hover { color: #6b0d3a; }
.lvy-book-article-genre {
    display: inline-block;
    background: #b71361;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    margin-bottom: 14px;
}
.lvy-book-article-title {
    font-size: 38px;
    font-weight: 900;
    color: #111;
    line-height: 1.15;
    margin: 0 0 14px;
}
.lvy-book-article-meta {
    font-size: 14px;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
}
.lvy-book-article-downloads {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #fce4ef 0%, #ffeef6 100%);
    border-left: 4px solid #b71361;
    margin-top: 10px;
}
.lvy-book-dl-label {
    font-size: 13px;
    font-weight: 700;
    color: #6b0d3a;
    margin-right: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.lvy-book-dl-label svg {
    color: #b71361;
    flex-shrink: 0;
}
.lvy-book-cover-large {
    margin: 0 0 30px;
}
.lvy-book-cover-large img {
    width: 100%;
    height: auto;
    display: block;
}
.lvy-book-warning {
    background: #fce4ef;
    border-left: 4px solid #b71361;
    padding: 14px 18px;
    margin-bottom: 30px;
    font-size: 13px;
    color: #444;
}

.lvy-book-chapter {
    margin-bottom: 60px;
}
.lvy-book-chapter h2 {
    font-size: 28px;
    font-weight: 800;
    color: #111;
    margin: 0 0 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid #b71361;
    line-height: 1.3;
}
.lvy-book-chapter h2 span { color: #b71361; margin: 0 6px; }
.lvy-book-chapter p {
    font-size: 17px;
    line-height: 1.75;
    color: #2a2a2a;
    margin: 0 0 1em;
    font-family: Georgia, "Times New Roman", serif;
}
.lvy-book-chapter p:first-of-type::first-letter {
    font-size: 56px;
    float: left;
    line-height: 1;
    margin: 6px 8px 0 0;
    color: #b71361;
    font-weight: 700;
}

/* ════════════════════════════════════════════════════════════════════
   MOBILE
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .lvy-books-title { font-size: 42px; }
    .lvy-book-reader-hero h1 { font-size: 32px; }
    .lvy-book-reader-body {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 10px 16px 50px;
    }
    .lvy-book-toc {
        position: static;
        max-height: none;
    }
    .lvy-book-text {
        padding: 30px 22px;
    }
    .lvy-book-chapter h2 { font-size: 22px; }
    .lvy-book-chapter p { font-size: 16px; line-height: 1.7; }
    .lvy-books-grid { gap: 18px; }
    .lvy-books-filter-btn.lvy-books-back { margin-left: 0; }
}
