/* Globale Stile und CSS-Variablen */
:root {
    --primary-color: #132477;
    --secondary-color: #9D0C15;
    --text-color: #333;
    --bg-color: #f4f4f4;
    --nav-width: 280px;
    --header-height-mobile: 70px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Palatino, 'Palatino Linotype', Georgia, Times, 'Times New Roman', serif;
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--bg-color);
}

h1, h2, h3 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; margin-top: 1rem;}


p {
    margin-bottom: 1rem;
    max-width: 75ch; /* Bessere Lesbarkeit */
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
    padding-left: 20px;
}

ul li {
    margin-bottom: 0.5rem;
    position: relative;
}
ul li::before {
    content: '-';
    position: absolute;
    left: -20px;
    color: var(--secondary-color);
}


/* Layout für Desktop */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--nav-width);
    height: 100vh;
    background: #fff;
    padding: 2rem;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.logo img {
    max-width: 163px;
    margin-bottom: 2rem;
}

.main-nav ul {
    list-style: none;
    padding: 0;
}

.main-nav a {
    display: block;
    padding: 0.5rem 0;
    font-family: 'Lucida Sans', 'Lucida Grande', 'Lucida Sans Unicode', sans-serif;
    font-size: 1rem;
    transition: color 0.3s;
}

.main-nav a.active {
    color: var(--secondary-color);
    font-weight: bold;
}

.content {
    margin-left: var(--nav-width);
    padding: 3rem 4rem;
}

section {
    padding: 4rem 0;
    border-bottom: 1px solid #eee;
    min-height: 90vh;
}
section:first-of-type {
    padding-top: 2rem;
}
section:last-child {
    border-bottom: none;
    min-height: auto;
}

.seit-2007-badge {
    float: right;
    max-width: 250px;
    margin: 0 0 1rem 2rem;
}

.section-links a {
    margin-right: 1.5rem;
    font-weight: bold;
}

/* Slideshow Stile */
.slideshow-container {
    max-width: 700px;
    margin: auto;
}

.slides {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    border: 1px solid #ccc;
    margin-bottom: 1rem;
    background-color: #fff;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.thumbnail {
    width: 60px;
    height: 60px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.thumbnail.active {
    border-color: var(--secondary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.caption {
    text-align: center;
    margin-top: 1.5rem;
    font-style: italic;
    min-height: 50px;
}
.caption p { margin-bottom: 0.2rem; }

/* Kontakt Sektion */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}
.contact-details p, .legal-details p {
    font-size: 0.95rem;
}
.privacy-policy {
    font-size: 0.9rem;
    color: #555;
    margin-top: 2rem;
}
.privacy-policy p {
    margin-bottom: 0.8rem;
}


/* Mobile Navigation Toggle */
.nav-toggle { display: none; }

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --nav-width: 240px;
    }
    .content {
        padding: 2rem;
    }
     h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }
}


@media (max-width: 900px) {
    .main-header {
        width: 100%;
        height: var(--header-height-mobile);
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
        z-index: 100;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        overflow-y: hidden;
    }
    .logo img {
        max-width: 100px;
        margin-bottom: 0;
    }
    .nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 101;
    }
    .hamburger {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--primary-color);
        position: relative;
        transition: background 0.2s;
    }
    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 3px;
        background: var(--primary-color);
        left: 0;
        transition: transform 0.3s;
    }
    .hamburger::before { top: -8px; }
    .hamburger::after { top: 8px; }

    body.nav-open .hamburger { background: transparent; }
    body.nav-open .hamburger::before { transform: rotate(45deg) translate(5px, 6px); }
    body.nav-open .hamburger::after { transform: rotate(-45deg) translate(5px, -6px); }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        display: flex;
    }
    body.nav-open .main-nav {
        transform: translateX(0);
    }
    .main-nav a {
        font-size: 1.5rem;
        text-align: center;
    }

    .content {
        margin-left: 0;
        padding: 1.5rem;
        margin-top: var(--header-height-mobile);
    }
    section {
        padding: 3rem 0;
        min-height: auto;
    }
    .seit-2007-badge {
        float: none;
        display: block;
        margin: 0 auto 2rem auto;
        max-width: 200px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}