/* public/assets/css/style.css - Einfaches Styling (One-Pager mit schwarzem Hintergrund) */

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    background: #000; /* schwarzer Hintergrund für die gesamte Seite */
    color: #fff; /* Standard-Textfarbe auf weiß für lesbaren Kontrast */
    scroll-behavior: smooth;
}

/* Scroll offset for fixed navbar */
section[id] {
    scroll-margin-top: 80px;
}

/* Mobile scroll offset */
@media (max-width: 768px) {
    section[id] {
        scroll-margin-top: 70px;
    }
}

/* Box sizing und Default-Reset für Gaps */
*, *::before, *::after { box-sizing: border-box; }

/* Performance Optimierung für Animationen */
* {
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* GPU-Beschleunigung für häufig animierte Elemente */
.carousel-track, .carousel-slide, .dienst-card, .about-image, .services-image {
    transform: translateZ(0);
    backface-visibility: hidden;
}

header {
    padding-top: 0; /* Kein Padding oben - Navbar ist fixed-top */
}

nav a { color: #fff; text-decoration: none; margin-right: 8px; }

main { padding-top: 0; padding-left: 0; padding-right: 0; }

footer { background: transparent; padding: 15px 20px; text-align: center; color: #888; }

.flash { background: #e6ffe6; border: 1px solid #b2ffb2; padding: 10px; margin-bottom: 10px; }

form label { display: block; margin-top: 10px; }
form input[type="text"], form textarea { width: 100%; padding: 8px; box-sizing: border-box; }
form button { margin-top: 10px; padding: 8px 12px; }

/* Landing-Section: Fullscreen background image */
.landing {
    min-height: 100vh; /* komplette Höhe des Viewports */
    background-image: url('/assets/images/landing.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: flex-start; /* position content at top of landing */
    justify-content: flex-start; /* align to left region */
    position: relative;
}

/* Overlay entfernt — Bild wird nicht mehr abgedunkelt */
.landing::before { display: none; }

/* Subtiler Gradient-Übergang am unteren Rand der Landing-Section zu Schwarz */
.landing::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80vh; /* Höhe des Gradients - etwas größer für fließenden Übergang */
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,1) 100%);
    pointer-events: none;
    z-index: 1;
}

.landing .landing-content {
    position: relative; /* über dem Overlay */
    z-index: 2;
    text-align: left;
    padding-left: 8%; /* offset to left similar to your design */
    /* move content down to first quarter of viewport */
    padding-top: calc(65vh); /* move approximately to 25% of viewport; subtract small amount for navbar */
}

h1, h2, h3, p { color: #fff; }

/* Landing text readability improvements when no overlay present */
.landing .landing-content h1, .landing .landing-content p {
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* Custom landing text / button styling */
.landing-title {
    color: #D4AF37; /* gold color */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .4rem;
    /* responsive size */
    font-size: clamp(36px, 8vw, 42px);
}
.landing-sub {
    color: #fff;
    font-size: 22px;
    margin-bottom: 1.25rem;
    font-weight: 400;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    letter-spacing: 0.02em;
}
.btn-project {
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: 1px solid #fff;
    padding: 10px 18px;
    border-radius: 4px;
    display: inline-block;
    transition: all 200ms ease;
}
.btn-project:hover {
    background: rgba(0,0,0,0.85);
    border-color: rgba(255,255,255,0.6);
    color: #fff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .landing { min-height: 85vh; align-items: center; }
    .landing .landing-content { padding-left: 8%; padding-right: 8%; padding-top: 20vh; text-align: center; width: 100%; }
    .landing-title { font-size: clamp(24px, 7.5vw, 36px); margin-bottom: 0.8rem; word-wrap: break-word; max-width: 100%; }
    .landing-sub { font-size: 16px; margin-bottom: 1.5rem; line-height: 1.4; }
    .btn-project { padding: 12px 24px; font-size: 15px; }
}

@media (max-width: 480px) {
    .landing { min-height: 80vh; }
    .landing .landing-content { padding-left: 10%; padding-right: 10%; padding-top: 15vh; }
    .landing-title { font-size: clamp(20px, 6.5vw, 28px); line-height: 1.1; }
    .landing-sub { font-size: 14px; }
}

@media (max-width: 375px) {
    .landing .landing-content { padding-left: 8%; padding-right: 8%; }
    .landing-title { font-size: clamp(18px, 6vw, 24px); }
}

/* Navbar transparency */
.navbar.bg-black { background-color: #000 !important; }
.navbar.navbar-dark .nav-link { color: rgba(255,255,255,0.95); }
.navbar-brand { color: #fff !important; }

.navbar { box-shadow: none; /* subtle white bottom border */ border-bottom: 2px solid rgba(255, 255, 255, 0.295); z-index: 2000; overflow: visible; padding: 0.15rem 1rem; }
.navbar.fixed-top { position: fixed; top: 0; left: 0; right: 0; }

@media (max-width: 991px) {
    .navbar { padding: 0.5rem 1rem; }
    
    /* Hamburger Menu Icon Styling - Simple White */
    .navbar-toggler {
        border: 1px solid rgba(255,255,255,0.3);
        padding: 0.5rem 0.75rem;
        border-radius: 4px;
        transition: all 200ms ease;
    }
    .navbar-toggler:hover {
        border-color: rgba(255,255,255,0.5);
        background: rgba(255,255,255,0.03);
    }
    .navbar-toggler:focus {
        box-shadow: none;
        border-color: rgba(255,255,255,0.5);
    }
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    /* Collapsed Menu Styling - Subtle & Clean */
    .navbar-collapse {
        margin-top: 1rem;
        padding: 0.8rem 0.5rem;
        background: rgba(255,255,255,0.05);
        border-radius: 8px;
        border: 1px solid rgba(255,255,255,0.12);
    }
    
    .navbar-nav {
        gap: 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.7rem 1rem;
        border-radius: 0;
        transition: all 250ms ease;
        color: rgba(255,255,255,0.9);
        border-bottom: 1px solid rgba(255,255,255,0.1);
        display: flex;
        align-items: center;
    }
    
    .navbar-nav .nav-item:first-child .nav-link {
        border-radius: 6px 6px 0 0;
    }
    
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
        border-radius: 0 0 6px 6px;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:active {
        background: rgba(255,255,255,0.1);
        color: #fff;
        transform: translateX(2px);
    }
}

/* Verhindere horizontales Scrollen durch 100vw Probleme */
html, body { overflow-x: hidden; }

/* Sektionen haben Abstände */
.section { padding: 100px 20px; scroll-margin-top: 64px; background-color: #000; }

/* About bar layout: left-aligned bar covering 80% width with left text and right image */
.about-wrapper { background: #000; /* keep the page background */
    /* larger responsive top gap between landing and about bar (doubled) */
    margin-top: clamp(128px, 20vh, 320px);
}
.about-bar-inner {
    width: 80%;
    max-width: 80%;
    padding: 64px 40px; /* more vertical room like the design */
    background-color: #1b1b1b; /* subtle grey bar */
    margin-left: 0; /* keep left edge aligned */
    border-radius: 12px; /* slightly more rounded */
}
.about-text {
    padding-right: 8px; /* a little breathing room between text and image */
    /* center text content horizontally */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.about-text h2 { color: #D4AF37; margin-bottom: 14px; font-weight: 800; letter-spacing: .02em; line-height: 0.92; font-size: clamp(48px, 8vw, 72px); }
.about-text p { color: #eaeaea; font-size: clamp(16px, 2vw, 18px); max-width: 56ch; line-height: 1.75; margin-bottom: 0; margin-left: auto; margin-right: auto; }
.about-image-wrap { overflow: visible; position: relative; border-radius: 12px; height: 300px; }
.about-image { width: 115%; height: calc(100% + 100px); object-fit: cover; display: block; transform: translate(70px, 12px); border-radius: 12px; z-index: 2; border: 1px solid rgba(255,255,255,0.55); box-shadow: 0 6px 18px rgba(0,0,0,0.35); }

@media (max-width: 992px) {
    .about-bar-inner { width: 92%; max-width: 92%; padding: 48px 20px; }
    .about-image-wrap { height: 220px; }
    .about-image { width: 108%; height: calc(100% + 72px); transform: translate(54px, 10px); border: 1px solid rgba(255,255,255,0.55); box-shadow: 0 5px 14px rgba(0,0,0,0.34); }
    .about-text h2 { font-size: clamp(36px, 7.5vw, 56px); }
    .about-text p { font-size: clamp(15px, 2.2vw, 17px); max-width: 48ch; margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
    .about-wrapper { margin-top: 48px; padding: 0 16px; }
    .about-bar-inner { width: 100%; max-width: 100%; padding: 32px 20px; margin-left: 0; border-radius: 12px; }
    .about-bar-inner .row { flex-direction: column; }
    .about-image-wrap { height: 220px; margin-top: 24px; border-radius: 8px; overflow: hidden; }
    .about-image { width: 100%; height: 100%; transform: translate(0, 0); object-fit: cover; border-radius: 8px; }
    .about-text { padding-right: 0; padding-left: 0; }
    .about-text h2 { font-size: clamp(32px, 8vw, 48px); margin-bottom: 20px; }
    .about-text p { font-size: 16px; line-height: 1.7; padding: 0 4px; }
}

@media (max-width: 576px) {
    .about-wrapper { padding: 0 12px; }
    .about-bar-inner { width: 100%; max-width: 100%; padding: 28px 16px; border-radius: 12px; }
    .about-image-wrap { height: 200px; margin-top: 20px; }
    .about-image { border-radius: 8px; }
    .about-text h2 { font-size: clamp(28px, 9vw, 36px); }
    .about-text p { font-size: 15px; max-width: 100%; padding: 0; }
    .about-wrapper { margin-top: 40px; }
}

/* Center the separate about page content too (global) */
.section#about .container { text-align: center; }
.section#about .container p { max-width: 72ch; margin-left: auto; margin-right: auto; }

/* Dienstleistungen Section */
.dienstleistungen-section { background: #000; padding: 96px 0; margin-top: clamp(96px, 16vh, 240px); }
.dienstleistungen-title { color: #D4AF37; font-size: clamp(40px, 6vw, 56px); font-weight: 800; text-align: center; margin-bottom: 64px; letter-spacing: .02em; }
.dienstleistungen-grid { display: flex; flex-direction: column; gap: 0; max-width: 100%; margin: 0 auto; }
.dienst-card { display: flex; align-items: stretch; background: linear-gradient(135deg, rgba(27,27,27,0.95) 0%, rgba(20,20,20,0.98) 100%); border: 1px solid rgba(255,255,255,0.08); width: 100%; height: 400px; }
.dienst-card:nth-child(even) { flex-direction: row-reverse; }
.dienst-image { flex: 0 0 60%; overflow: hidden; position: relative; }
.dienst-image img { width: 100%; height: 100%; object-fit: cover; border: 1px solid rgba(255,255,255,0.55); box-shadow: 0 6px 18px rgba(0,0,0,0.35); }
.dienst-image.zoom-image img { object-fit: cover; transform: scale(1.6); transform-origin: center 35%; }
.dienst-content { flex: 0 0 40%; padding: 48px 56px; display: flex; flex-direction: column; justify-content: center; }
.dienst-content h3 { color: #D4AF37; font-size: clamp(24px, 2.8vw, 32px); font-weight: 700; margin-bottom: 16px; letter-spacing: .01em; }
.dienst-content p { color: #d0d0d0; font-size: clamp(15px, 1.8vw, 18px); line-height: 1.7; margin: 0; }

@media (max-width: 992px) {
    .dienstleistungen-section { padding: 72px 0; margin-top: clamp(72px, 14vh, 180px); }
    .dienstleistungen-title { margin-bottom: 48px; }
    .dienst-card { height: 340px; }
    .dienst-image { flex: 0 0 55%; }
    .dienst-content { flex: 0 0 45%; padding: 32px 40px; }
}

@media (max-width: 768px) {
    .dienstleistungen-section { padding: 48px 16px; margin-top: 48px; }
    .dienstleistungen-title { font-size: clamp(32px, 8vw, 40px); margin-bottom: 32px; }
    .dienst-card { flex-direction: column; height: auto; border-radius: 12px; margin-bottom: 20px; }
    .dienst-card:nth-child(even) { flex-direction: column; }
    .dienst-image { flex: 0 0 auto; height: 220px; border-radius: 12px 12px 0 0; }
    .dienst-image img { border-radius: 12px 12px 0 0; }
    .dienst-content { flex: 0 0 auto; padding: 28px 20px; }
    .dienst-content h3 { font-size: clamp(22px, 5vw, 28px); margin-bottom: 12px; }
    .dienst-content p { font-size: 15px; line-height: 1.65; }
}

@media (max-width: 480px) {
    .dienstleistungen-section { padding: 40px 12px; margin-top: 40px; }
    .dienst-image { height: 200px; }
    .dienst-content { padding: 24px 16px; }
}

/* Services bar layout: mirrored version of about - right-aligned bar with right text and left image */
.services-wrapper { background: #000;
    /* same top gap as about */
    margin-top: clamp(128px, 20vh, 320px);
}
.services-bar-inner {
    width: 80%;
    max-width: 80%;
    padding: 64px 40px;
    background-color: #1b1b1b;
    margin-left: auto; /* align to right */
    margin-right: 0;
    border-radius: 12px;
}
.services-text {
    padding-left: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.services-text h2 { color: #D4AF37; margin-bottom: 14px; font-weight: 800; letter-spacing: .02em; line-height: 0.92; font-size: clamp(48px, 8vw, 72px); }
.services-text p { color: #eaeaea; font-size: clamp(16px, 2vw, 18px); max-width: 56ch; line-height: 1.75; margin-bottom: 0; margin-left: auto; margin-right: auto; }
.services-image-wrap { overflow: visible; position: relative; border-radius: 12px; height: 300px; }
.services-image { width: 115%; height: calc(100% + 100px); object-fit: cover; display: block; transform: translate(-150px, 12px); border-radius: 12px; z-index: 2; border: 1px solid rgba(255,255,255,0.55); box-shadow: 0 6px 18px rgba(0,0,0,0.35); }

@media (max-width: 992px) {
    .services-bar-inner { width: 92%; max-width: 92%; padding: 48px 20px; }
    .services-image-wrap { height: 220px; }
    .services-image { width: 108%; height: calc(100% + 72px); transform: translate(-54px, 10px); border: 1px solid rgba(255,255,255,0.55); box-shadow: 0 5px 14px rgba(0,0,0,0.34); }
    .services-text h2 { font-size: clamp(36px, 7.5vw, 56px); }
    .services-text p { font-size: clamp(15px, 2.2vw, 17px); max-width: 48ch; margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
    .services-wrapper { margin-top: 48px; padding: 0 16px; }
    .services-bar-inner { width: 100%; max-width: 100%; padding: 32px 20px; margin-left: auto; margin-right: auto; border-radius: 12px; }
    .services-bar-inner .row { flex-direction: column; }
    .services-image-wrap { height: 220px; margin-top: 24px; order: 2; border-radius: 8px; overflow: hidden; }
    .services-text { order: 1; }
    .services-image { width: 100%; height: 100%; transform: translate(0, 0); object-fit: cover; border-radius: 8px; }
    .services-text { padding-left: 0; padding-right: 0; }
    .services-text h2 { font-size: clamp(32px, 8vw, 48px); margin-bottom: 20px; }
    .services-text p { font-size: 16px; line-height: 1.7; padding: 0 4px; }
}

@media (max-width: 576px) {
    .services-wrapper { padding: 0 12px; }
    .services-bar-inner { width: 100%; max-width: 100%; padding: 28px 16px; border-radius: 12px; }
    .services-image-wrap { height: 200px; margin-top: 20px; order: 2; border-radius: 8px; }
    .services-text { order: 1; }
    .services-image { border-radius: 8px; }
    .services-text h2 { font-size: clamp(28px, 9vw, 36px); }
    .services-text p { font-size: 15px; max-width: 100%; padding: 0; }
    .services-wrapper { margin-top: 40px; }
}

/* Footer styling */
.site-footer { background: transparent; border-top: 2px solid rgba(255, 255, 255, 0.295); padding: 48px 0 16px; }
.footer-content { display: flex; flex-direction: column; gap: 32px; }
.footer-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 32px; }
.footer-section h4 { color: #D4AF37; font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.footer-section p { color: rgba(255,255,255,0.8); font-size: 14px; line-height: 1.6; margin: 0; }
.footer-section a { color: rgba(255,255,255,0.8); text-decoration: none; transition: color 200ms ease; }
.footer-section a:hover { color: #D4AF37; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-right { display: flex; align-items: center; gap: 8px; }
.social-icon-btn { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.18); color: rgba(255,255,255,0.94); background: transparent; transition: all 200ms ease; }
.social-icon-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); color: #fff; }
.site-footer .footer-left small { color: rgba(255,255,255,0.7); }
.site-footer .footer-right .btn { padding: 6px 10px; font-size: 0.85rem; }
.site-footer .footer-right .btn.btn-outline-light { border-color: rgba(255,255,255,0.18); color: rgba(255,255,255,0.94); background: transparent; transition: all 200ms ease; }
.site-footer .footer-right .btn.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); color: #fff; }
@media (max-width: 768px) {
    .site-footer { padding: 40px 16px 20px; }
    .footer-info { grid-template-columns: 1fr; gap: 28px; text-align: center; }
    .footer-section h4 { font-size: 17px; }
    .footer-section p { font-size: 15px; }
    .footer-bottom { flex-direction: column; gap: 20px; align-items: center; text-align: center; }
    .footer-left small { font-size: 14px; }
}
@media (max-width: 576px) {
    .site-footer { padding: 32px 12px 16px; }
    .footer-info { gap: 24px; }
    .site-footer .footer-right { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
    .social-icon-btn { width: 38px; height: 38px; }
}

/* Referenzen Section */
.referenzen-section { background: #000; padding: 96px 0; margin-top: clamp(128px, 20vh, 320px); }
.referenzen-title { color: #D4AF37; font-size: clamp(40px, 6vw, 56px); font-weight: 800; text-align: center; margin-bottom: 64px; letter-spacing: .02em; }
.carousel-wrapper { position: relative; max-width: none; width: 90%; margin: 0 auto; display: flex; align-items: center; gap: 0; padding: 0; }
.carousel-container { flex: 1; overflow: hidden; border-radius: 0; margin: 0 20px; }
.carousel-track { display: flex; gap: 28px; transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1); align-items: center; will-change: transform; transform: translate3d(0,0,0); }
.carousel-slide { flex: 0 0 calc(19.8% - 22px); aspect-ratio: 16/10; border-radius: 12px; overflow: visible; border: 1px solid rgba(255,255,255,0.15); transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1), opacity 250ms ease-out; transform: scale(0.75) translateZ(0); opacity: 0.4; cursor: pointer; position: relative; will-change: transform, opacity; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 12px; }
.carousel-btn { background: rgba(212,175,55,0.9); border: none; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 200ms ease-out, transform 150ms ease-out; flex-shrink: 0; color: #000; position: absolute; z-index: 10; }
.carousel-prev { left: -45px; }
.carousel-next { right: -45px; }
.carousel-btn:hover { background: rgba(212,175,55,1); transform: scale(1.1); }
.carousel-btn:active { transform: scale(0.95); }

@media (max-width: 992px) {
    .referenzen-section { padding: 72px 0; margin-top: clamp(96px, 16vh, 240px); }
    .carousel-slide { flex: 0 0 calc(33.333% - 14px); }
    .carousel-btn { width: 44px; height: 44px; }
}

@media (max-width: 768px) {
    .referenzen-section { padding: 48px 16px; margin-top: 64px; }
    .referenzen-title { font-size: clamp(32px, 8vw, 40px); margin-bottom: 32px; }
    .carousel-wrapper { width: 100%; gap: 8px; }
    .carousel-container { margin: 0 12px; overflow: hidden; }
    .carousel-track { gap: 0; }
    .carousel-slide { flex: 0 0 100%; aspect-ratio: 16/11; border-radius: 8px; transform: scale(1); opacity: 1; margin-right: 0; }
    .carousel-slide img { border-radius: 8px; }
    .carousel-btn { width: 42px; height: 42px; }
    .carousel-prev { left: -15px; }
    .carousel-next { right: -15px; }
}

@media (max-width: 576px) {
    .carousel-wrapper { width: 100%; padding: 0; }
    .carousel-container { margin: 0 8px; overflow: hidden; }
    .carousel-slide { flex: 0 0 100%; margin-right: 0; }
    .carousel-track { gap: 0; }
    .carousel-btn { width: 36px; height: 36px; }
    .carousel-prev { left: -10px; }
    .carousel-next { right: -10px; }
}

/* Image Modal */
.image-modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.95); }
.image-modal.active { display: flex; align-items: center; justify-content: center; }
.modal-content { max-width: 70%; max-height: 70vh; object-fit: contain; border-radius: 8px; animation: zoomIn 300ms ease; }
.modal-close { position: absolute; top: 30px; right: 40px; color: #D4AF37; font-size: 48px; font-weight: 300; cursor: pointer; transition: color 200ms ease; }
.modal-close:hover { color: #fff; }
@keyframes zoomIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Modal Mobile Optimierung */
@media (max-width: 768px) {
    .modal-content { 
        max-width: 90%; 
        max-height: 75vh; 
        border-radius: 4px; 
    }
    .modal-close { 
        top: 10px; 
        right: 10px; 
        font-size: 40px;
        background: rgba(0,0,0,0.5);
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }
}

@media (max-width: 480px) {
    .modal-content { 
        max-width: 95%; 
        max-height: 80vh; 
    }
    .modal-close {
        font-size: 36px;
        width: 44px;
        height: 44px;
    }
}

/* Contact Section */
.contact-section { background: #000; padding: 96px 0; }
.contact-title { color: #D4AF37; font-size: clamp(40px, 6vw, 56px); font-weight: 800; text-align: center; margin-bottom: 64px; letter-spacing: .02em; }
.alert { max-width: 800px; margin: 0 auto 32px; padding: 16px 24px; border-radius: 8px; font-size: 15px; }
.alert-success { background: rgba(76, 175, 80, 0.15); border: 1px solid rgba(76, 175, 80, 0.3); color: #81C784; }
.alert-error { background: rgba(244, 67, 54, 0.15); border: 1px solid rgba(244, 67, 54, 0.3); color: #E57373; }
.contact-form { max-width: 800px; margin: 0 auto; background: linear-gradient(135deg, rgba(27,27,27,0.95) 0%, rgba(20,20,20,0.98) 100%); padding: 48px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.08); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.form-group { display: flex; flex-direction: column; }
.form-group:not(.form-row > .form-group) { margin-bottom: 24px; }
.form-label { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 8px; letter-spacing: .01em; }
.form-input, .form-textarea { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; padding: 12px 16px; color: #fff; font-size: 15px; transition: border-color 300ms ease, background 300ms ease; }
.form-input:focus, .form-textarea:focus { outline: none; border-color: #D4AF37; background: rgba(255,255,255,0.08); }

/* Select dropdown styling */
select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

select.form-input option {
    background: #1a1a1a;
    color: #fff;
    padding: 12px;
}

.form-textarea { resize: vertical; font-family: inherit; }
.checkbox-group { flex-direction: row; align-items: center; gap: 12px; margin-top: 8px; }
.form-checkbox { width: 20px; height: 20px; cursor: pointer; accent-color: #D4AF37; }
.checkbox-label { color: #d0d0d0; font-size: 14px; margin: 0; cursor: pointer; }
.checkbox-label a { color: #D4AF37; text-decoration: none; transition: color 200ms ease; }
.checkbox-label a:hover { color: #fff; }
.required-notice { color: rgba(255,255,255,0.6); font-size: 13px; margin: 16px 0 8px; text-align: center; }
.btn-submit { background: linear-gradient(135deg, #D4AF37 0%, #b8941f 100%); color: #000; border: none; padding: 14px 40px; border-radius: 8px; font-size: 16px; font-weight: 700; cursor: pointer; transition: transform 200ms ease, box-shadow 200ms ease; margin-top: 24px; width: 100%; }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,175,55,0.3); }
.btn-submit:active { transform: translateY(0); }

@media (max-width: 768px) {
    .contact-section { padding: 48px 16px; }
    .contact-title { font-size: clamp(32px, 8vw, 40px); margin-bottom: 32px; }
    .contact-form { padding: 28px 20px; border-radius: 12px; }
    .form-row { grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px; }
    .form-label { font-size: 15px; }
    .form-input, .form-textarea { padding: 14px; font-size: 16px; }
    .btn-submit { padding: 16px 32px; font-size: 17px; }
}

@media (max-width: 480px) {
    .contact-form { padding: 24px 16px; }
    .form-input, .form-textarea { font-size: 16px; }
}

.contact-persons { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 800px; margin: 64px auto 0; }
.contact-person { text-align: center; background: linear-gradient(135deg, rgba(27,27,27,0.95) 0%, rgba(20,20,20,0.98) 100%); padding: 32px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.08); }
.person-image { width: 160px; height: 160px; margin: 0 auto 24px; border-radius: 50%; overflow: hidden; }
.person-image img { width: 100%; height: 100%; object-fit: cover; }
.person-name { color: #D4AF37; font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.person-title { color: #fff; font-size: 14px; margin-bottom: 20px; font-weight: 400; }
.person-contact { display: flex; flex-direction: column; gap: 12px; }
.contact-link { display: flex; align-items: center; justify-content: center; gap: 8px; color: #d0d0d0; text-decoration: none; font-size: 14px; transition: color 200ms ease; }
.contact-link:hover { color: #D4AF37; }
.contact-link svg { flex-shrink: 0; }

@media (max-width: 768px) {
    .contact-persons { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
    .contact-person { padding: 28px 20px; border-radius: 12px; }
    .person-image { width: 120px; height: 120px; margin-bottom: 20px; }
    .person-name { font-size: 20px; }
    .person-title { font-size: 14px; margin-bottom: 16px; }
    .contact-link { font-size: 15px; padding: 8px; }
}

@media (max-width: 480px) {
    .contact-person { padding: 24px 16px; }
    .person-image { width: 100px; height: 100px; }
}

/* Partners Section */
.partners-section { position: relative; padding: 72px 0; background-image: url('/assets/images/partner-bg.webp'); background-size: cover; background-position: center; color: #fff; margin-top: clamp(96px, 16vh, 240px); }
.partners-section::before, .partners-section::after { content: ''; position: absolute; left: 0; right: 0; height: 61vh; pointer-events: none; z-index: 1; }
.partners-section::before { top: 0; background: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.88) 18%, rgba(0,0,0,0.72) 32%, rgba(0,0,0,0.48) 52%, rgba(0,0,0,0.22) 72%, rgba(0,0,0,0) 90%); }
.partners-section::after { bottom: 0; background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.88) 18%, rgba(0,0,0,0.72) 32%, rgba(0,0,0,0.48) 52%, rgba(0,0,0,0.22) 72%, rgba(0,0,0,0) 90%); }
.partners-inner { position: relative; z-index: 2; }
.partners-title { color: #D4AF37; font-size: clamp(36px, 6vw, 48px); font-weight: 800; margin-bottom: 28px; text-shadow: 0 2px 6px rgba(0,0,0,0.6); }
.partners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: center; justify-items: center; max-width: 1200px; margin: 0 auto; }
.partner-card { width: 240px; height: 150px; display: flex; align-items: center; justify-content: center; background: #fff; padding: 18px; border-radius: 8px; overflow: hidden; transition: transform 360ms ease, box-shadow 360ms ease; }
.partner-card img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; filter: grayscale(0.02) contrast(0.95); transition: filter 360ms ease; }
.partner-card:hover { transform: scale(1.05); z-index: 3; box-shadow: 0 10px 36px rgba(0,0,0,0.6); }
.partner-card:hover img { filter: none; }
@media (max-width: 992px) {
    .partners-section { padding: 56px 16px; margin-top: clamp(100px, 22vh, 280px); }
    .partners-section::before, .partners-section::after { height: 47vh; }
    .partners-grid { gap: 24px; grid-template-columns: repeat(3, 1fr); }
    .partner-card { width: 100%; max-width: 200px; height: 125px; padding: 14px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .partners-section { padding: 48px 16px; margin-top: 64px; }
    .partners-title { font-size: clamp(32px, 8vw, 40px); margin-bottom: 32px; }
    .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .partner-card { width: 100%; max-width: 180px; height: 110px; padding: 12px; margin: 0 auto; }
}

@media (max-width: 576px) {
    .partners-section { padding: 40px 12px; margin-top: 48px; }
    .partners-section::before, .partners-section::after { height: 32vh; }
    .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .partner-card { width: 100%; max-width: 150px; height: 95px; padding: 10px; }
}

@media (max-width: 380px) {
    .partner-card { max-width: 130px; height: 85px; padding: 8px; }
}

/* Navbar Logo Styling: rounded logo that can protrude slightly under the navbar */
.navbar-brand { overflow: visible; padding-top: 0; padding-bottom: 0; }
.navbar-logo {
    width: 90px;
    height: 90px;
    object-fit: cover;
    /* Shift the image inside the circle: 1px left, 2px up (3px up minus 1px down => -2) */
    object-position: calc(50% - 1px) calc(50% - 2px);
    border-radius: 50%;
    display: block;
    margin-bottom: -36px; /* protrude downwards (reduced amount) */
    transform: translateY(4px); /* nudge down visually */
    border: 4px solid rgba(255,255,255,0.95);
    background: #000; /* fill circle background with black */
    box-shadow: 0 6px 12px rgba(0,0,0,0.35);
    z-index: 2100;
}

/* Small screens: slightly smaller logo */
@media (max-width: 991px) {
    .navbar-logo { width: 70px; height: 70px; margin-bottom: -28px; transform: translateY(3px); object-position: calc(50% - 1px) calc(50% - 2px); border-width: 3px; }
}

@media (max-width: 576px) {
    .navbar-logo { width: 60px; height: 60px; margin-bottom: -24px; transform: translateY(2px); border-width: 3px; }
}

/* Reduce nav link height and font size to compact the navbar */
.navbar-nav .nav-link { padding-top: 0.1rem; padding-bottom: 0.1rem; font-size: 0.95rem; }

/* Adjust anchor scroll offset to match smaller navbar */
/* .section already defined above */

/* ============================================
   ZUSÄTZLICHE MOBILE OPTIMIERUNGEN
   ============================================ */

/* Touch-optimierte Buttons und Links */
@media (max-width: 768px) {
    /* Größere Touch-Targets für bessere Bedienbarkeit */
    button, a, .btn, .carousel-btn, .social-icon-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Besseres Touch-Feedback */
    button:active, a:active, .btn:active {
        opacity: 0.7;
        transform: scale(0.98);
    }
    
    /* Verhindere Text-Selektion bei Buttons */
    button, .btn, .carousel-btn {
        -webkit-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Bessere Lesbarkeit auf mobilen Geräten */
    p {
        line-height: 1.6;
        letter-spacing: 0.01em;
    }
    
    /* Modal auf mobilen Geräten optimieren */
    .modal-content {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        font-size: 36px;
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Carousel Touch-Swipe Unterstützung */
    .carousel-container {
        touch-action: pan-x;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Formulare auf mobilen Geräten */
    input, textarea, select {
        font-size: 16px !important; /* Verhindert Auto-Zoom auf iOS */
    }
    
    /* Navbar Toggler größer für besseres Tippen */
    .navbar-toggler {
        padding: 0.5rem 0.75rem;
        font-size: 1.4rem;
    }
}

/* Extra kleine Geräte */
@media (max-width: 480px) {
    /* Kleinere Abstände für kompaktere Darstellung */
    .section { padding: 60px 12px; }
    
    /* Überschriften anpassen */
    h2 { 
        font-size: clamp(24px, 7vw, 32px);
        line-height: 1.2;
    }
    
    h3 {
        font-size: clamp(18px, 5vw, 24px);
        line-height: 1.3;
    }
    
    /* Kompaktere Karten */
    .dienst-card, .contact-person, .contact-form {
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
}

/* Landscape Modus für kleine Geräte */
@media (max-width: 768px) and (orientation: landscape) {
    .landing {
        min-height: 100vh;
    }
    
    .landing .landing-content {
        padding-top: 25vh;
    }
    
    .landing-title {
        font-size: clamp(24px, 6vw, 32px);
    }
}

/* Verbesserung für sehr kleine Geräte wie iPhone SE */
@media (max-width: 375px) {
    .about-bar-inner, .services-bar-inner {
        width: 98%;
        padding: 20px 12px;
    }
    
    .dienstleistungen-section {
        padding: 40px 8px;
    }
    
    .dienst-content {
        padding: 20px 14px;
    }
    
    .contact-form {
        padding: 20px 14px;
    }
    
    .form-input, .form-textarea {
        padding: 12px;
    }
}

/* Optimierung für horizontales Scrollen vermeiden */
@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Accessibility: Focus States für Tastatur-Navigation */
@media (max-width: 768px) {
    a:focus, button:focus, input:focus, textarea:focus {
        outline: 2px solid #D4AF37;
        outline-offset: 2px;
    }
}

/* Cookie Banner (DSGVO) */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(20,20,20,0.98) 0%, rgba(10,10,10,0.98) 100%);
    border-top: 2px solid rgba(212,175,55,0.3);
    padding: 24px;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.cookie-text h3 {
    color: #D4AF37;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.cookie-text p {
    color: #ddd;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-cookie {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 200ms ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.btn-cookie-info {
    background: transparent;
    color: #D4AF37;
    border: 1px solid rgba(212,175,55,0.3);
}

.btn-cookie-info:hover {
    background: rgba(212,175,55,0.1);
    border-color: rgba(212,175,55,0.5);
}

.btn-cookie-reject {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
}

.btn-cookie-reject:hover {
    background: rgba(255,255,255,0.12);
}

.btn-cookie-accept {
    background: #D4AF37;
    color: #000;
    border: 1px solid #D4AF37;
}

.btn-cookie-accept:hover {
    background: #e5c247;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212,175,55,0.4);
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 20px 16px;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .cookie-text h3 {
        font-size: 16px;
    }
    
    .cookie-text p {
        font-size: 13px;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .btn-cookie {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
}
