/* ==========================================================
   buch.css – gemeinsames Stylesheet für /buch/* und /reihe/*
   Farb- und Typo-System identisch zur Startseite:
   Tinte #0e0c0a · Antikgold #c9a84c · Playfair Display
   ========================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.6;
    color: #d8d0c4;
    background: linear-gradient(135deg, #0e0c0a 0%, #1c1916 50%, #0e0c0a 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 20% 15%, rgba(122, 92, 30, 0.10) 0%, transparent 55%),
                radial-gradient(ellipse at 80% 85%, rgba(90, 60, 20, 0.07) 0%, transparent 55%),
                radial-gradient(ellipse at 50% 50%, rgba(20, 18, 15, 0.4) 0%, transparent 70%);
    pointer-events: none;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.035;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

a { color: #c9a84c; }

:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 3px;
}

.skip-to-content {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #c9a84c;
    color: #0e0c0a;
    padding: 12px 20px;
    z-index: 2000;
    font-weight: 700;
}
.skip-to-content:focus { left: 0; }

/* ---------- Navigation ----------
   Bewusst per ID, nicht per Typ-Selektor: auf den Buchseiten gibt es ein
   zweites <nav> fuer die Brotkrumen, das nicht fixiert werden darf. */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(14, 12, 10, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(122, 92, 30, 0.3);
}

#navbar.scrolled {
    background: rgba(14, 12, 10, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #7a5c1e, #c9a84c);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: 1px;
}

.logo img { height: 40px; width: auto; }

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #d8d0c4;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-links a:hover,
.nav-links a.active { color: #c9a84c; }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7a5c1e, #c9a84c);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* ---------- Brotkrumen ---------- */
.breadcrumb {
    padding: 120px 0 0;
    font-size: 0.9rem;
    color: #8a8378;
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li::after { content: '›'; margin-left: 8px; color: #6d665c; }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: #a8a094; text-decoration: none; }
.breadcrumb a:hover { color: #c9a84c; }

/* ---------- Kopfbereich des Buches ---------- */
.book-hero { padding: 40px 0 70px; }

.book-hero-grid {
    display: grid;
    grid-template-columns: minmax(240px, 340px) 1fr;
    gap: 60px;
    align-items: start;
}

.cover-frame {
    position: sticky;
    top: 110px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(122, 92, 30, 0.4);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}
.cover-frame img { display: block; width: 100%; height: auto; }

.book-hero h1 {
    font-family: 'Cinzel Decorative', 'Playfair Display', serif;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.15;
    font-weight: 700;
    background: linear-gradient(45deg, #c9a84c, #7a5c1e, #a8853a);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 18px;
}

.book-tagline {
    font-family: 'EB Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1.35rem;
    color: #c8c0b4;
    max-width: 34em;
    margin-bottom: 28px;
}

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(122, 92, 30, 0.18);
    border: 1px solid rgba(122, 92, 30, 0.4);
    color: #c9a84c;
}
.badge.available { color: #6fbf6f; border-color: rgba(111, 191, 111, 0.4); background: rgba(50, 205, 50, 0.1); }

.fact-list {
    list-style: none;
    border-top: 1px solid rgba(122, 92, 30, 0.25);
    margin-bottom: 32px;
}
.fact-list li {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(122, 92, 30, 0.18);
    font-size: 0.98rem;
}
.fact-list .fact-key { color: #8a8378; }
.fact-list .fact-val { color: #d8d0c4; }

/* ---------- Kaufoptionen ---------- */
.buy-links { display: flex; flex-wrap: wrap; gap: 12px; }

.buy-link {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 26px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(122, 92, 30, 0.45);
    background: rgba(122, 92, 30, 0.14);
    color: #c9a84c;
    transition: transform 0.25s ease, background 0.25s ease;
}
.buy-link:hover { background: rgba(122, 92, 30, 0.3); transform: translateY(-2px); }
.buy-link.primary { background: linear-gradient(45deg, #7a5c1e, #c9a84c); color: #0e0c0a; border-color: transparent; }

/* ---------- Inhaltsabschnitte ---------- */
.book-section { padding: 55px 0; border-top: 1px solid rgba(122, 92, 30, 0.18); }

.book-section h2 {
    font-family: 'Cinzel Decorative', 'Playfair Display', serif;
    font-size: 1.7rem;
    color: #c9a84c;
    margin-bottom: 26px;
    letter-spacing: 0.5px;
}

.book-section h3 {
    font-size: 1.15rem;
    color: #d8d0c4;
    margin: 28px 0 12px;
}

.prose {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.18rem;
    line-height: 1.85;
    max-width: 68ch;
    color: #cfc7bb;
}
.prose p { margin-bottom: 1.15em; }
.prose strong { color: #e8dfd0; }
.prose em { color: #c9a84c; }

/* ---------- Ausgaben ---------- */
.editions { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.edition {
    background: rgba(14, 12, 10, 0.65);
    border: 1px solid rgba(122, 92, 30, 0.28);
    border-radius: 14px;
    padding: 26px;
}
.edition h3 { margin: 0 0 14px; color: #c9a84c; font-size: 1.05rem; }
.edition dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 0.93rem; }
.edition dt { color: #8a8378; }
.edition dd { color: #d8d0c4; }
.edition a { color: #c9a84c; text-decoration: none; border-bottom: 1px dotted rgba(201, 168, 76, 0.5); }
.edition a:hover { color: #e0c26a; }

/* ---------- Inhaltshinweise ---------- */
.content-notes {
    background: rgba(28, 25, 22, 0.55);
    border-left: 3px solid rgba(122, 92, 30, 0.6);
    border-radius: 0 12px 12px 0;
    padding: 24px 28px;
    max-width: 68ch;
}
.content-notes ul { margin: 12px 0 0 20px; }
.content-notes li { margin-bottom: 7px; color: #c8c0b4; }

/* ---------- Leserstimmen ---------- */
.reviews { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.review {
    background: rgba(14, 12, 10, 0.7);
    border: 1px solid rgba(122, 92, 30, 0.25);
    border-radius: 16px;
    padding: 28px;
}
.review .stars { color: #c9a84c; font-size: 1.3rem; margin-bottom: 12px; }
.review blockquote { color: #c8c0b4; font-style: italic; line-height: 1.75; margin-bottom: 16px; }
.review cite { color: #c9a84c; font-weight: 600; font-size: 0.88rem; font-style: normal; }

/* ---------- Querverweise ---------- */
.crosslinks { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.crosslink {
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(28, 25, 22, 0.6);
    border: 1px solid rgba(122, 92, 30, 0.25);
    border-radius: 14px;
    padding: 24px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.crosslink:hover { transform: translateY(-4px); border-color: rgba(201, 168, 76, 0.55); }
.crosslink .crosslink-kind { color: #8a8378; font-size: 0.8rem; display: block; margin-bottom: 8px; }
.crosslink strong { color: #c9a84c; font-size: 1.05rem; display: block; margin-bottom: 8px; }
.crosslink p { color: #a8a094; font-size: 0.9rem; line-height: 1.6; }

/* ---------- Hörprobe ---------- */
.track {
    background: rgba(14, 12, 10, 0.7);
    border: 1px solid rgba(122, 92, 30, 0.25);
    border-radius: 14px;
    padding: 26px;
    max-width: 640px;
}
.track audio { width: 100%; margin-top: 16px; }

/* ---------- Reihenseite ---------- */
.series-hero { padding: 40px 0 20px; }
.series-hero h1 {
    font-family: 'Cinzel Decorative', 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.4rem);
    background: linear-gradient(45deg, #c9a84c, #7a5c1e, #a8853a);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.volume {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 36px;
    align-items: start;
    padding: 38px 0;
    border-top: 1px solid rgba(122, 92, 30, 0.2);
}
.volume img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(122, 92, 30, 0.35);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.volume h2 { font-size: 1.5rem; color: #c9a84c; margin-bottom: 6px; }
.volume .volume-order { color: #8a8378; font-size: 0.88rem; margin-bottom: 14px; }
.volume p { color: #c8c0b4; line-height: 1.75; margin-bottom: 18px; max-width: 62ch; }

/* ---------- Footer ---------- */
.footer {
    background: rgba(14, 12, 10, 0.9);
    padding: 40px 0;
    border-top: 1px solid rgba(122, 92, 30, 0.2);
    text-align: center;
    margin-top: 40px;
}
.footer p { color: #999; font-size: 0.9rem; }
.footer-links { margin-top: 20px; }
.footer-links a {
    color: #c9a84c;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.footer-links a:hover { color: #7a5c1e; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
    .book-hero-grid { grid-template-columns: 1fr; gap: 34px; }
    .cover-frame { position: static; max-width: 300px; margin: 0 auto; }
    .volume { grid-template-columns: 120px 1fr; gap: 22px; }
}

@media (max-width: 768px) {
    /* Die Navigation wird nicht ausgeblendet, sondern umgebrochen:
       auf den Buchseiten gibt es keinen Hamburger-Button, ein
       display:none wuerde die Seite ohne jede Navigation zuruecklassen. */
    #navbar .container { flex-direction: column; gap: 10px; padding: 14px 20px; }
    .nav-links {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-links a { font-size: 0.95rem; }
    .nav-links a::after { bottom: -4px; }
    .breadcrumb { padding-top: 150px; }
    .fact-list li { grid-template-columns: 1fr; gap: 2px; }
    .prose { font-size: 1.08rem; }
    .logo { font-size: 1.4rem; }
    .logo img { height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
