:root {
    --primary-red: #C8102E;
    --primary-red-dark: #9e0b23;
    --dark-bg: #1A1A1A;
    --text-dark: #222222;
    --text-muted: #555555;
    --light-bg: #F7F7F7;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

body {
    background-color: var(--white);
}

header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.logo span {
    color: var(--primary-red);
    margin-left: 5px;
}

.logo .logo-sub {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-left: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

nav a:hover {
    color: var(--primary-red);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-dark);
}

.hero {
    background: linear-gradient(rgba(26, 26, 26, 0.78), rgba(26, 26, 26, 0.78)), 
                url('https://unsplash.com') center/cover no-repeat;
    color: var(--white);
    padding: 6rem 1.5rem;
    text-align: center;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background-color: var(--primary-red);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
}

.hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.15rem;
    color: #E0E0E0;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-red-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--text-dark);
}

section {
    padding: 5rem 1.5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-red);
    margin: 0.6rem auto 0;
}

.section-header p {
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
}

.services-bg {
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--primary-red);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 54px;
    height: 54px;
    background-color: rgba(200, 16, 46, 0.1);
    color: var(--primary-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary-red);
    color: var(--white);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.filter-btn {
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.07);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.2rem;
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    font-size: 0.8rem;
    color: #ff8a8a;
    text-transform: uppercase;
    font-weight: 700;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 78vh;
    border-radius: 4px;
}

.lightbox-caption {
    color: var(--white);
    margin-top: 1rem;
    font-size: 1.05rem;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: fixed;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    background: var(--primary-red);
}

.lightbox-close { top: 20px; right: 25px; }
.lightbox-prev { left: 15px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 15px; top: 50%; transform: translateY(-50%); }

.contact-bg {
    background-color: var(--light-bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.team-card {
    background: var(--white);
    padding: 1.8rem;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-red);
}

.team-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.team-role {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.team-card p {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.team-card a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
}

.team-card a:hover {
    color: var(--primary-red);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.contact-info-item {
    margin-bottom: 1.2rem;
}

.contact-form .form-group {
    margin-bottom: 1.2rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

footer {
    background-color: var(--dark-bg);
    color: #CCCCCC;
    padding: 3.5rem 1.5rem 2rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #CCCCCC;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.footer-col a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid #333333;
    padding-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    gap: 1rem;
}

.legal-links a {
    color: #CCCCCC;
    margin-left: 1.5rem;
    text-decoration: none;
    cursor: pointer;
}

.legal-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.modal.active {
    display: flex;
}

.modal-box {
    background: var(--white);
    max-width: 750px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2.5rem;
    border-radius: 8px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-box h2 {
    margin-bottom: 1rem;
    color: var(--primary-red);
}

.modal-box h3 {
    margin: 1.2rem 0 0.5rem;
    font-size: 1.1rem;
}

.modal-box p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-bg);
    color: var(--white);
    padding: 1.5rem;
    z-index: 2500;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.cookie-text {
    flex: 1;
    min-width: 280px;
    font-size: 0.9rem;
}

.cookie-text a {
    color: #ff8a8a;
    text-decoration: underline;
    cursor: pointer;
}

.cookie-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.btn-cookie-accept {
    background: var(--primary-red);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.btn-cookie-essential {
    background: #444444;
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1.5rem;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        gap: 1rem;
    }

    nav ul.open {
        display: flex;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .legal-links a {
        margin-left: 0;
        margin-right: 1rem;
    }
}

/* Logo-Darstellung im Header & Footer */
.brand-logo {
    height: 54px;
    width: auto;
    display: block;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--white);
    padding: 8px 14px;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.footer-icon {
    height: 36px;
    width: auto;
}

.footer-text-logo {
    height: 30px;
    width: auto;
}

.form-status {
    margin-top: 1rem;
    font-weight: 600;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .brand-logo {
        height: 44px;
    }
}

section {
    scroll-margin-top: 80px;
}

/* Fix für dynamisch geladene Vorschaubilder */
.gallery-item {
    min-height: 220px;
    background-color: #EAEAEA;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}
