/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: #111;
    color: #d4d4d4;
    line-height: 1.9;
}

/* --- Hero Header --- */
.hero {
    text-align: center;
    padding: 1.5rem 2rem 1rem;
    background: #0a0a0a url('/biografie/img/WhatTheFba_Visit2.png') left center / auto 100% no-repeat;
    color: #fff;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-cover {
    max-width: 300px;
    width: auto;
    margin: 0.8rem auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.6);
}

.hero-logo {
    height: 90px;
    margin-bottom: 0.5rem;
    filter: invert(1);
    opacity: 0.9;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero .subtitle {
    font-size: 1.1rem;
    opacity: 0.6;
    margin-top: 0.5rem;
    font-style: italic;
    letter-spacing: 0.1em;
}

.lang-switch {
    margin-top: 1.5rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 0.3rem 1rem;
    margin: 0 0.3rem;
    cursor: pointer;
    font-size: 0.85rem;
    border-radius: 3px;
    transition: all 0.2s;
    font-family: inherit;
}

.lang-btn.active {
    background: rgba(200,30,30,0.3);
    border-color: #c81e1e;
}

.lang-btn:hover {
    background: rgba(200,30,30,0.15);
}

/* --- Filters --- */
.filters {
    background: #1a1a1a;
    border-bottom: 1px solid #2a2a2a;
    padding: 1rem 2rem;
}

.filter-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    max-width: 900px;
    margin: 0 auto;
}

.filter-row select,
.filter-row input {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 0.82rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid #333;
    border-radius: 4px;
    background: #1e1e1e;
    color: #d4d4d4;
    min-width: 140px;
    transition: border-color 0.2s;
}

.filter-row select:focus,
.filter-row input:focus {
    outline: none;
    border-color: #c81e1e;
}

.filter-row input {
    min-width: 200px;
}

/* --- Chapter Navigation --- */
.chapter-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.3rem 1rem;
    padding: 1.2rem 2rem;
    background: #141414;
    border-bottom: 1px solid #2a2a2a;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chapter-link {
    color: #777;
    text-decoration: none;
    font-size: 0.82rem;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.chapter-link:hover {
    color: #c81e1e;
    border-bottom-color: #c81e1e;
}

/* --- Book Layout --- */
.book {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* --- Chapter --- */
.chapter {
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeIn 0.6s forwards;
}

.chapter-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #c81e1e;
}

.chapter-number {
    font-size: 3rem;
    font-weight: 300;
    color: #444;
    line-height: 1;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.chapter-title {
    font-size: 1.4rem;
    font-weight: 400;
    color: #c81e1e;
    letter-spacing: 0.05em;
}

.read-btn {
    margin-left: auto;
    background: none;
    border: 1px solid #555;
    color: #999;
    font-size: 1rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.read-btn:hover {
    color: #c81e1e;
    border-color: #c81e1e;
}

/* --- Paragraph (Entry) --- */
.paragraph {
    margin-bottom: 2.5rem;
    padding-left: 1.5rem;
    border-left: 2px solid #2a2a2a;
    transition: border-color 0.3s;
}

.paragraph:hover {
    border-left-color: #c81e1e;
}

.paragraph-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.paragraph-meta span {
    display: inline-flex;
    align-items: center;
}

.paragraph-meta span:not(:last-child)::after {
    content: '\00b7';
    margin-left: 0.8rem;
    color: #444;
}

.paragraph-body {
    font-size: 1.05rem;
    color: #bbb;
}

.paragraph-body p {
    margin-bottom: 1rem;
    text-align: justify;
    hyphens: auto;
}

.paragraph-body p:last-child {
    margin-bottom: 0;
}

.paragraph-topic {
    margin-top: 0.8rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 0.72rem;
    color: #555;
    font-style: italic;
}

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 100;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 6px;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
}

/* --- Loading --- */
.loading {
    text-align: center;
    padding: 4rem;
    color: #666;
    font-style: italic;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 3rem 1rem;
    color: #555;
    font-size: 0.82rem;
    border-top: 1px solid #2a2a2a;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* --- Animation --- */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 700px) {
    .book {
        padding: 1.5rem 1rem;
    }

    .hero-cover {
        max-width: 320px;
    }

    .hero-logo {
        height: 55px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .chapter-number {
        font-size: 2.2rem;
    }

    .chapter-title {
        font-size: 1.2rem;
    }

    .paragraph {
        padding-left: 1rem;
    }

    .paragraph-body {
        text-align: left;
    }
}
