/* Standard: Tag-Modus (Hell) */
body {
    background-color: #fcfcfc;
    color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Georgia, serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.book-container {
    width: 100%;
    max-width: 650px;
    margin: 50px 20px;
    padding: 40px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #efefef;
    box-sizing: border-box;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

h1 {
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 1px;
}

h2 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #222222;
}

p {
    margin: 0 0 1.2rem 0;
    font-size: 1.05rem;
}

p:last-child {
    margin-bottom: 0;
}

/* Bild-Container (Autoren- und Weltbild) */
.author-image-container,
.welt-image-container {
    margin: 0 0 2.5rem 0;
    text-align: center;
}

.author-image-container img,
.welt-image-container img {
    max-width: 240px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 1px solid #efefef;
    border-radius: 12px;
}

figcaption {
    font-size: 0.72rem;
    color: #888888;
    margin-top: 0.4rem;
    letter-spacing: 0.3px;
}

.section {
    margin-bottom: 2.5rem;
}

.divider {
    border: 0;
    border-top: 1px solid #efefef;
    margin: 3rem 0;
}

/* Serien-Übersicht (Welt-Seite) */
.series-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.series-intro h2 {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.series-card {
    background-color: #fafafa;
    border: 1px solid #eeeeee;
    padding: 20px;
    margin-bottom: 1.2rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.series-card h3 {
    margin: 0 0 0.2rem 0;
    font-size: 1.15rem;
    font-weight: 500;
    color: #1a1a1a;
}

.series-pattern {
    display: inline-block;
    font-size: 0.85rem;
    color: #666666;
    font-style: italic;
    margin-bottom: 0.8rem;
}

.series-card p {
    margin: 0;
    font-size: 0.98rem;
}

/* Rechtstexte (Impressum & Datenschutz) */
.legal-box {
    font-size: 0.9rem;
    color: #444b54;
    background-color: #fafafa;
    padding: 20px;
    border: 1px solid #eeeeee;
    margin-top: 3rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.legal-box h2 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333333;
    margin-top: 1.8rem;
    margin-bottom: 0.5rem;
}

.legal-box h2:first-child {
    margin-top: 0;
}

.legal-box p {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.legal-box p:last-child {
    margin-bottom: 0;
}

/* Buttons & Links */
.links-container {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

.btn-link {
    display: inline-block;
    color: #1a1a1a;
    text-decoration: none;
    border: 1px solid #1a1a1a;
    padding: 10px 20px;
    margin: 5px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.btn-link:hover {
    background-color: #1a1a1a;
    color: #ffffff;
}

/* Footer */
footer {
    margin-top: 3.5rem;
    border-top: 1px solid #efefef;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

footer a {
    color: #666666;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Automatischer Nacht-Modus (Dark Mode) */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #eaeaea;
    }
    .book-container {
        background-color: #1e1e1e;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        border-color: #333333;
    }
    .author-image-container img,
    .welt-image-container img {
        border-color: #333333;
    }
    figcaption {
        color: #999999;
    }
    h2 {
        color: #dddddd;
    }
    .divider {
        border-top-color: #333333;
    }
    .series-card {
        background-color: #181818;
        border-color: #2e2e2e;
    }
    .series-card h3 {
        color: #f0f0f0;
    }
    .series-pattern {
        color: #999999;
    }
    .legal-box {
        background-color: #181818;
        border-color: #333333;
        color: #bbbbbb;
    }
    .legal-box h2 {
        color: #dddddd;
    }
    .btn-link {
        color: #eaeaea;
        border-color: #eaeaea;
    }
    .btn-link:hover {
        background-color: #eaeaea;
        color: #121212;
    }
    footer {
        border-top-color: #333333;
    }
    footer a {
        color: #aaaaaa;
    }
}

/* Smartphone-Ansicht */
@media (max-width: 600px) {
    .book-container {
        margin: 20px 15px;
        padding: 25px 20px;
        box-shadow: none;
        border: none;
        background-color: transparent;
    }
    h1 {
        font-size: 1.8rem;
    }
}
