/* General Styles */
:root {
    --primary-color: #333;
    --secondary-color: #f4f4f4;
    --accent-color: #ffc800; /* Yellow from logo */
    --text-color-light: #ffffff;
    --text-color-dark: #333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--text-color-light);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

h1, h2, h3 {
    margin-bottom: 20px;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.section {
    padding: 60px 0;
}

/* Header */
header {
    background: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 60px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--primary-color);
    font-weight: bold;
    padding: 5px 10px;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 5px;
}

nav ul li a:hover {
    color: var(--text-color-light);
    background-color: var(--accent-color);
}


/* Hero Section */
#hero {
    background: url('Bilder/Absenkanhaenger/IMG-20241231-WA0004.jpg') no-repeat center center/cover;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-color-light);
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.cta-button {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background: #e6b400;
}

/* Trailers Section */
#trailers {
    background-color: var(--secondary-color);
}

.trailer-category {
    margin-bottom: 40px;
    text-align: center;
}

.trailer-category h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.trailer-category p {
    max-width: 800px;
    margin: 0 auto 20px auto;
}

.trailer-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px auto;
    max-width: 800px;
    text-align: left;
    flex-wrap: wrap;
}

.trailer-specs, .trailer-pricing {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    flex: 1;
    min-width: 250px;
}

.trailer-details h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
    font-size: 1.3rem;
}

.trailer-details ul {
    list-style: none;
    padding: 0;
}

.trailer-details ul li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.trailer-details ul li strong {
    color: var(--primary-color);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Contact Section */
#contact {
    text-align: center;
}

.contact-details {
    margin-top: 30px;
    font-size: 1.2rem;
}

.contact-details p {
    margin-bottom: 10px;
}

/* Modal (Lightbox) Styles */
body.modal-open {
    overflow: hidden;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 85vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-name: zoom;
    animation-duration: 0.3s;
}

@keyframes zoom {
    from {transform: translate(-50%, -50%) scale(0.5);}
    to {transform: translate(-50%, -50%) scale(1);}
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--text-color-light);
    padding: 20px 0;
    text-align: center;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-color-light);
    margin-left: 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }

    header .container {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 10px;
    }

    nav ul {
        padding: 0;
    }

    #hero {
        height: 50vh;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    footer .container {
        flex-direction: column;
    }

    footer p {
        margin-bottom: 10px;
    }

    .footer-links a {
        margin: 0 5px;
    }
}