/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Georgia', serif;
}

body {
    background: #f9f5f0;
    line-height: 1.7;
    color: #333;
    font-size: 1.1rem;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

.main-container {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .main-container {
        padding: 0 20px;
    }
}

/* Header */
header {
    background: #2c3e50;
    color: white;
    padding: 0 40px; /* Seitenabstand gleich wie Container */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 70px;
    line-height: 70px;
}

@media (max-width: 768px) {
    header {
        padding: 0 20px;
    }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: #f1c40f;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

main {
    padding-top: 70px; /* Gleich der Header-Höhe */
    min-height: calc(100vh - 140px); /* 70px Header + 70px Footer */
}

/* Hero Section */
.hero {
    height: 70vh;
    background: url('../images/hero-bg.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin: 70px 0 0 0; /* Header-Höhe ausgleichen */
    padding: 80px 40px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.hero-content p{
    font-size: 22px;
}

/* Content Sections */
.content-section {
    padding: 60px 0;
}

.section-title {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.section-title:after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: #f1c40f;
    margin: 20px auto 0;
}

/* Bio Section */
.bio-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.bio-image img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.photo-credit {
    text-align: center;
    font-size: 0.8em;
    color: #666;
    margin-top: 8px;
}

/* Books Section */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.book-card {
    background: white;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.book-card img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.book-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.excerpt {
    margin: 1rem 0;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin: 40px auto;
    max-width: 1200px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.videos-container {
    margin-top: 3rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 2rem;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.form-group textarea {
    height: 150px;
}

/* Buttons */
.btn {
    display: inline-block;
    background: #2c3e50;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #1a252f;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 40px;
    margin-top: 60px;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

.social-links {
    margin: 1rem 0;
}

.social-links a {
    color: white;
    margin: 0 10px;
    font-size: 1.5rem;
}

.copyright {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #2c3e50;
        flex-direction: column;
        padding: 1rem 0;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 0;
        text-align: center;
        padding: 0.5rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .bio-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .bio-image {
        max-width: 300px;
        margin: 0 auto;
    }
    .content-section {
        padding: 40px 0;
    }

    .book-detail {
        padding: 20px;
    }

    .book-meta{
         flex-direction: column;
    }


    footer {
        padding: 30px 20px;
    }

}

section[id] {
    scroll-margin-top: 70px;
}

/* Book Detail Page */
.book-detail {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    border-radius: 8px;
}


    @media (max-width: 768px) {
        .book-detail {
            padding-top: 20px;
        }
    }

.book-cover img {
    width: 100%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.book-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.book-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: #7f8c8d;
    font-size: 0.95rem;
}

.book-description {
    margin: 2rem 0;
}

.book-description h2 {
    margin: 1.5rem 0 1rem;
    color: #2c3e50;
}

blockquote {
    border-left: 3px solid #f1c40f;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
}

blockquote footer {
    margin-top: 0.5rem;
    font-style: normal;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.book-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn.secondary {
    background: #95a5a6;
}

.btn.secondary:hover {
    background: #7f8c8d;
}

@media (max-width: 768px) {
    .book-detail {
        grid-template-columns: 1fr;
    }

    .book-cover {
        text-align: center;
    }

    .book-actions {
        flex-direction: column;
    }
}
/* Video Grid Layout */
.video-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.video-wrapper {
    flex: 1 1 calc(50% - 1rem); /* Halbe Breite minus Gap */
    position: relative;
    padding-bottom: 28.125%; /* 16:9 Aspect Ratio bei halber Breite */
    height: 0;
    overflow: hidden;
    min-width: 300px; /* Mindestbreite für mobile Ansicht */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .video-wrapper {
        flex: 1 1 100%; /* Volle Breite auf Mobilgeräten */
        padding-bottom: 56.25%; /* Normales 16:9 Verhältnis */
    }

    .video-grid {
        gap: 1rem;
    }
}

    .expandable .more-text {
        display: none;
    }

    .read-more-link {
        color: #0073aa;
        cursor: pointer;
        font-size: 0.9em;
    }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.gallery-image-wrapper {
    width: 100%;
    position: relative;
    margin-bottom: 10px;
}

.gallery-image-wrapper.landscape {
    padding-bottom: 66.67%; /* Für 1.5:1 Format */
}

.gallery-image-wrapper.portrait {
    height: 100%;
    width: 66.67%; /* Macht Hochformatbilder schmaler */
    margin: 0 auto; /* Zentriert das schmalere Bild */
}

.gallery-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 10px 0;
    font-size: 0.8em;
    color: #666;
    text-align: center;
}
