/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    background: url('assets/images/hintergrund.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

/* Main Navigation */
.main-nav {
    background: linear-gradient(135deg, #001e50 0%, #003d82 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 5px;
}

.nav-link {
    display: inline-block;
    padding: 18px 30px;
    color: white;
    text-decoration: none;
    font-size: 1.05em;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-color: #fff;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    border-bottom-color: #fff;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.52);
    z-index: -1;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #001e50 0%, #003d82 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 30, 80, 0.2);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 600;
}

header .subtitle {
    font-size: 1.3em;
    opacity: 0.95;
    font-weight: 300;
}

/* Content Wrapper - Flexbox Layout */
.content-wrapper {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

/* Main Column */
.main-column {
    flex: 1;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.welcome-section {
    margin-bottom: 40px;
}

.welcome-section h2 {
    font-size: 2em;
    color: #001e50;
    margin-bottom: 15px;
}

.welcome-section p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.8;
}

/* Brands Section */
.brands-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.brand-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 30, 80, 0.15);
    border-color: #001e50;
    background: white;
}

.brand-card img {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
}

.brand-label {
    font-size: 1.1em;
    font-weight: 500;
    color: #001e50;
    margin-top: 10px;
}

/* Sidebar */
.sidebar {
    width: 350px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.info-box h3 {
    font-size: 1.5em;
    color: #001e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #003d82;
}

.company-name {
    font-size: 1.1em;
    font-weight: 600;
    color: #001e50;
    margin-bottom: 15px;
}

.address {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
}

.contact-details p {
    margin-bottom: 10px;
    color: #555;
}

.contact-details a {
    color: #003d82;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #001e50;
    text-decoration: underline;
}

.opening-hours p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
}

.opening-hours strong {
    color: #001e50;
    display: block;
    margin-bottom: 5px;
}

/* Footer */
footer {
    text-align: center;
    padding: 25px 20px;
    background: #001e50;
    color: white;
    border-radius: 10px;
    margin-top: 20px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    font-size: 0.95em;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-bottom: 2px solid transparent;
}

.footer-nav a:hover {
    border-bottom-color: white;
    opacity: 0.9;
}

.copyright {
    font-size: 0.9em;
    opacity: 0.85;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    header h1 {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    header {
        padding: 20px;
    }

    header h1 {
        font-size: 1.5em;
    }

    header .subtitle {
        font-size: 1em;
    }

    .main-column {
        padding: 25px;
    }

    .welcome-section h2 {
        font-size: 1.5em;
    }

    .brands-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-box {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.3em;
    }

    .main-column {
        padding: 20px;
    }

    .welcome-section h2 {
        font-size: 1.3em;
    }

    .brand-card {
        padding: 20px;
    }
}

/* Legal Pages Styling */
.legal-page {
    display: block;
}

.full-width {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.legal-content {
    line-height: 1.8;
}

.legal-content h1 {
    font-size: 2.2em;
    color: #001e50;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #003d82;
}

.legal-content h2 {
    font-size: 1.6em;
    color: #001e50;
    margin-top: 35px;
    margin-bottom: 15px;
}

/* Gallery Styles */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #f5f5f5;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 30, 80, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    line-height: 1;
}

.lightbox-close:hover {
    color: #ccc;
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 60px;
    font-weight: 300;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #ccc;
    transform: translateY(-50%) scale(1.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.1em;
    text-align: center;
    background: rgba(0, 30, 80, 0.8);
    padding: 12px 30px;
    border-radius: 5px;
}

.gallery-item {
    cursor: pointer;
}

@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 80vh;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 40px;
        padding: 15px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 40px;
    }

    .lightbox-caption {
        bottom: 15px;
        font-size: 0.95em;
        padding: 10px 20px;
    }
}

.legal-content h3 {
    font-size: 1.3em;
    color: #003d82;
    margin-top: 25px;
    margin-bottom: 12px;
}

.legal-content p {
    margin-bottom: 15px;
    color: #333;
}

.legal-content ul {
    margin: 15px 0 15px 25px;
    line-height: 1.8;
}

.legal-content li {
    margin-bottom: 10px;
    color: #333;
}

.legal-content a {
    color: #003d82;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: #001e50;
    text-decoration: underline;
}

.legal-content strong {
    color: #001e50;
}
