/* --- CSS Variablen für einfaches Anpassen der Farben --- */
:root {
    --bg-dark: #12141d;
    --bg-light: #1f2233;
    --text-main: #f0f0f0;
    --text-muted: #a0a5b5;
    --accent-color: #d38c44; /* Ein eleganter Kupfer/Gold-Ton */
    --accent-hover: #e09e58;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

/* --- Reset & Basis --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Sanftes Scrollen beim Klick aufs Menü */
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Typografie --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--accent-color);
}

.category-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.text-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}

.text-link:hover {
    color: var(--text-main);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: #fff;
}

.btn-small {
    padding: 6px 15px;
    font-size: 0.9rem;
    background-color: var(--accent-color);
    color: white;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(18, 20, 29, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: 0.3s;
}

/* --- Hero Section (Ehemalige Diashow) --- */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Optional: Füge hier ein atmosphärisches Hintergrundbild ein */
    background: linear-gradient(rgba(18,20,29,0.7), rgba(18,20,29,0.9)), url('Bilder/Hintergrund2.jpg') center/cover no-repeat;
    padding: 0 20px;
    margin-top: 60px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    color: #fff;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* --- Sections Allgemein --- */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* --- Bücher Grid --- */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.book-card {
    background-color: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-5px);
}

.book-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-bottom: 3px solid var(--accent-color);
}

.book-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.book-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.book-year {
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.book-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* --- Autorin Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* --- Footer --- */
.footer {
    background-color: #0a0b10;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--accent-color);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 9999;
    transform: translateY(100%); /* Standardmäßig versteckt */
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner a {
    color: #fff;
    text-decoration: underline;
}

/* --- Responsive (Smartphones & Tablets) --- */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: rgba(18, 20, 29, 0.98);
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        display: none; /* Per JS getoggelt */
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 15px 0;
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Modals (Pop-ups für Impressum & Datenschutz) --- */

/* Button-Style für Links im Footer, die aussehen wie Text */
.link-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
    transition: color 0.3s;
}

.link-btn:hover {
    color: var(--text-main);
    text-decoration: underline;
}

/* Das dunkle Overlay im Hintergrund */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Wenn Modal aktiv ist */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Die weiße Text-Box */
.modal-content {
    background-color: var(--bg-light);
    color: var(--text-main);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
    overflow-y: auto; /* Erlaubt das Scrollen im Text */
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-content h2 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.modal-content h3 {
    margin: 25px 0 10px 0;
    font-size: 1.2rem;
}

.modal-content p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Das Schließen-X oben rechts */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--accent-color);
}

/* Anpassung für mobile Geräte */
@media (max-width: 768px) {
    .modal-content {
        padding: 25px 20px;
        width: 95%;
    }
}

/* --- Kontaktformular --- */
.contact-section {
    max-width: 500px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.08);
}

/* Versteckt den Honeypot vor echten Menschen */
.hidden-honeypot {
    display: none !important;
}

/* Nachrichten-Box (Erfolg oder Fehler) */
.form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: none; /* Wird per JS eingeblendet */
    font-weight: bold;
}

.form-message.success {
    display: block;
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.form-message.error {
    display: block;
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

/* --- Video Button --- */
.btn-video {
    display: inline-flex;     /* Flexbox, damit Icon und Text auf einer Höhe sind */
    align-items: center;      /* Zentriert beides vertikal */
    gap: 10px;                /* Abstand zwischen Icon und Text */
    background-color: #2a2e42; /* Etwas heller als der dunkle Hintergrund */
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;      /* Macht den Button schön abgerundet */
    padding: 10px 24px 10px 20px;
}

.btn-video:hover {
    background-color: #c4302b; /* Dezentes YouTube-Rot beim Hover */
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 48, 43, 0.3); /* Roter, weicher Schatten */
    border-color: #c4302b;
}

.btn-video svg {
    transition: transform 0.3s; /* Das Icon animieren wir leicht */
}

.btn-video:hover svg {
    transform: scale(1.1); /* Das Play-Icon wird beim Hover minimal größer */
}

/* --- Logo --- */
.logo {
    display: flex;
    align-items: center; /* Zentriert das Bild vertikal */
    text-decoration: none;
}

.logo-img {
    height: 100px; /* Die angezeigte Höhe des Logos (Desktop & Tablet) */
    width: auto;  /* Breite passt sich automatisch an, damit nichts verzerrt */
    display: block;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05); /* Beim Drüberfahren mit der Maus wird es minimal größer */
}

/* Anpassung für mobile Geräte */
@media (max-width: 768px) {
    .logo-img {
        height: 35px; /* Auf dem Handy machen wir das Logo einen Hauch kleiner */
    }
}