:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --accent-color: #AEC6CF;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px; 
}

html.no-scroll,
body.no-scroll {
    overflow: hidden !important;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 111px; 
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #1a1a1a;
    backdrop-filter: blur(10px);
    z-index: 1000;
    margin: 0;
    padding: 15px max(20px, calc((100vw - 1400px) / 2));
    display: flex;
    justify-content: space-between;
    align-items: center; 
    border-bottom: 1px solid #222;
    box-sizing: border-box;
}

.logo-area {
    flex: 1; 
    display: flex;
    justify-content: flex-start;
}

.header-logo {
    max-height: 80px; 
    width: auto;
    display: block;
}

nav.main-nav {
    flex: 2; 
    display: flex;
    justify-content: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.85rem; 
    letter-spacing: 2px;
    white-space: nowrap; 
    transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a.active {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.nav-links a.dropbtn {
    border-color: rgba(255, 255, 255, 0.4);
    padding: 6px 12px;
}

.header-icons {
    flex: 1; 
    display: flex;
    gap: 15px; 
    justify-content: flex-end;
    align-items: center;
}

.nav-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.nav-icon-link img {
    height: 48px; 
    width: auto;
}

.nav-icon-link:hover {
    transform: scale(1.1); 
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-bg);
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 1001;
    border-radius: 4px;
    border: 1px solid #333;
    top: 100%;
    right: 0; 
    padding: 5px 0;
}

.dropdown-content a {
    color: var(--text-main);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    text-transform: none; 
    font-size: 0.9rem;
    border: none;
    border-radius: 0;
    letter-spacing: 1px;
}

.dropdown-content a:hover {
    background-color: #333;
    color: var(--accent-color);
    border: none; 
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content .mobile-home-link {
    display: none; 
}

.dropdown-content.show {
    display: block !important;
}

.hero-video-section {
    position: relative;
    width: 100%;
    margin-bottom: 0; 
}

.full-width-video {
    width: 100%;
    height: 75vh; 
    object-fit: cover; 
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.65); 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.hero-content {
    display: flex;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

.hero-text {
    max-width: 700px; 
}

.hero-text h2 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.check-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
    color: var(--text-muted);
}

.contact-action-buttons {
    display: flex;
    flex-direction: row; 
    flex-wrap: wrap; 
    gap: 15px;
    margin-top: 30px; 
}

.column-layout {
    flex-direction: column !important;
    align-items: flex-start;
}

.cta-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    text-align: center; 
    padding: 15px 20px; 
    width: 320px; 
    max-width: 100%; 
    background-color: transparent;
    color: var(--accent-color);
    text-decoration: none;
    border: 1px solid var(--accent-color);
    border-radius: 4px; 
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; 
}

.phone-button {
    background-color: #0e0e0e;
    border: 1px solid #fff;
    color: #fff;
}

.whatsapp-button {
    background-color: #25D366;
    color: #fff !important;
    border: 1px solid #25D366 !important;
}

.whatsapp-button:hover {
    background-color: #1ebe57 !important;
}

.cta-button:not(.whatsapp-button):not(.phone-button) {
    background-color: #0e0e0e;
    border: 1px solid #fff;
    color: #fff;
}

.cta-button:hover {
    background-color: var(--text-muted);
    border-color: var(--text-muted);
}

.section-title {
    text-align: left;
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--accent-color);
    margin-top: 0;
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.about-preview-section {
    padding: 60px 0;
    background-color: var(--bg-color);
    border-bottom: none; 
    margin-bottom: 40px;
}

.about-preview-container {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-preview-image {
    flex: 1;
}

.about-preview-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: block;
}

.about-preview-text {
    flex: 1;
}

.about-preview-text h2 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 300;
    line-height: 1.3;
}

.about-preview-text p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 20px;
}

.about-preview-text strong {
    color: var(--text-main);
}

.container {
    max-width: 1400px; 
    margin: 0 auto;
    padding: 0 20px 80px 20px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px; 
}

.card {
    background-color: #000;
    border: 1px solid #333;
    border-radius: 10px; 
    overflow: hidden; 
    position: relative; 
    cursor: pointer; 
    aspect-ratio: 4 / 3; 
}

.card-image-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; 
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.card-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    background: rgba(0,0,0,0.4); 
    padding: 25px 20px; 
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    align-items: center; 
    box-sizing: border-box;
    z-index: 2;
}

.card-title {
    font-size: 1.2rem; 
    font-weight: 400; 
    margin: 0;
    letter-spacing: 1px;
    color: var(--text-main);
    transition: color 0.4s ease, transform 0.4s ease;
}

.card-btn {
    padding: 10px 20px;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    opacity: 0.9;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.5); 
}

.card:hover .card-image-wrapper img {
    transform: scale(1.08); 
}

.card:hover .card-title {
    color: var(--accent-color);
    transform: scale(1.1);
}

.card:hover .card-btn {
    background-color: var(--text-main);
    color: #000;
    opacity: 1;
}

.card-btn:hover {
    background-color: var(--text-main);
    color: #000;
    opacity: 1;
}

.gallery-section {
    padding: 60px 0;
    border-top: none; 
    background-color: var(--bg-color);
}

.gallery-container {
    display: flex;
    gap: 60px;
    align-items: stretch; 
}

.gallery-slider {
    flex: 1.5; 
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background-color: #000;
}

.gallery-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.gallery-slider .slide.active {
    opacity: 1;
    z-index: 2;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--text-main);
    border: none;
    width: 35px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.slider-arrow:hover {
    background-color: rgba(255, 255, 255, 0.8);
    color: #000;
}

.slider-arrow.prev {
    left: 0;
    border-radius: 0 5px 5px 0;
    padding-left: 4px;
}

.slider-arrow.next {
    right: 0;
    border-radius: 5px 0 0 5px;
    padding-right: 4px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.dot.active {
    background-color: var(--accent-color);
}

.gallery-info {
    flex: 1;
    display: flex;
    flex-direction: column; 
}

.gallery-info h2 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 300;
    line-height: 1.3;
}

.gallery-info p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 20px;
}

.gallery-info p:last-of-type {
    margin-top: auto; 
}

.experience-bar {
    background-color: #1a1a1a;
    padding: 50px 0;
    margin-bottom: 60px;
    border: none; 
}

.experience-bar .container {
    padding-bottom: 0;
}

.exp-flex {
    display: flex;
    align-items: center;
    gap: 40px;
}

.exp-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.exp-items {
    display: flex;
    flex: 1;
    justify-content: space-around;
    align-items: center; 
    gap: 20px;
}

.exp-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    gap: 10px;
}

.exp-number {
    font-size: 2.5rem;
    font-weight: 600;
    color: #AEC6CF; 
}

.exp-text {
    font-size: 0.85rem;
    color: #ffffff;
}

.partner-bar {
    background-color: #1a1a1a;
    padding: 40px 0;
    margin-bottom: 60px;
    border-bottom: 1px solid #222;
}

.partner-bar .container {
    padding-bottom: 0;
}

.partner-flex {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    gap: 140px; 
}

.partner-title {
    font-size: 1.1rem; 
    font-weight: 400;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.partner-logos {
    display: flex;
    align-items: center;
    gap: 140px; 
}

.partner-logos img {
    height: 80px; 
    width: auto;
    transition: transform 0.3s ease; 
}

.bottom-section {
    padding-top: 60px;
    border-top: none; 
    background-color: var(--bg-color);
}

.bottom-container {
    display: flex;
    gap: 40px; 
    justify-content: space-between;
    align-items: stretch; 
    margin-bottom: 60px;
}

.bottom-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bottom-info p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.bottom-info strong {
    color: var(--text-main);
    font-weight: 400;
}

.middle-map {
    flex: 1.2;
    border-radius: 10px;
    overflow: hidden;
    min-height: 100%; 
}

.middle-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    border: none;
}

/* Form Container */
.bottom-form {
    flex: 1.5; 
    background: #191919;
    padding: 40px;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
    max-width: 500px; 
    width: 100%;
    /* Verhindert, dass das Padding die Box nach aussen groesser macht */
    box-sizing: border-box; 
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
}

.contact-form input, 
.contact-form textarea,
.contact-form select {
    background-color: #0e0e0e; 
    border: 1px solid #2a2a2a;
    color: #fff;
    padding: 15px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #555;
}

.contact-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    color: #555;
}

.contact-form input:focus, 
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: #666;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #ccc;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #fff;
}

.form-checkbox a {
    color: #fff;
    text-decoration: underline;
}

.submit-btn {
    background-color: #f0f0f0 !important;
    color: #000 !important;
    border: none !important;
    padding: 16px !important;
    font-size: 1rem !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 4px !important;
    font-weight: 600 !important;
    transition: background-color 0.3s ease;
    margin-top: 10px;
    width: 100%;
}

.submit-btn:hover {
    background-color: #ccc !important;
}

.lightbox {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px); 
    z-index: 2000; 
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease; 
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 20px; 
    max-width: 95vw;
    max-height: 90vh;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}

.lightbox-content::-webkit-scrollbar {
    display: none;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    max-width: 100%;
    height: 100%;
}

.lightbox-img-container {
    position: relative;
    max-height: 90vh;
    flex: 0 1 auto; 
    max-width: fit-content; 
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    cursor: zoom-in; 
    transform: translateZ(0); 
}

.lightbox-img-container.zoomed {
    cursor: zoom-out;
}

.lightbox-img-container img {
    max-height: 90vh;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
    transform-origin: center center;
    pointer-events: none; 
    border-radius: 10px; 
}

.lightbox-img-container.zoomed img {
    transform: scale(2.5);
}

.lightbox-thumb-sidebar {
    width: 350px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow: hidden; 
}

.lb-thumb-title {
    margin: 0;
    padding: 20px 15px;
    color: var(--accent-color);
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
    border-bottom: 1px solid #333;
    background-color: #1a1a1a;
}

.lightbox-thumb-panel {
    padding: 15px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    align-content: start;
    flex: 1;
}

.lb-thumb {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

.lb-thumb:hover {
    opacity: 0.8;
}

.lb-thumb.active {
    opacity: 1;
    border-color: #fff;
}

.lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--text-main);
    border: none;
    width: 40px;
    height: 60px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.lb-arrow:hover { 
    background-color: rgba(255,255,255,0.8); 
    color: #000; 
}

.lb-arrow.prev { 
    left: 0; 
    border-radius: 0 5px 5px 0; 
}

.lb-arrow.next { 
    right: 0; 
    border-radius: 5px 0 0 5px; 
}

.lb-dots {
    position: absolute;
    bottom: -30px;
    width: 100%;
    text-align: center;
    z-index: 2100;
}

.close-lightbox {
    position: absolute; 
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    font-weight: 300;
    color: #fff;
    cursor: pointer;
    z-index: 2100;
    transition: color 0.2s ease;
}

.close-lightbox:hover {
    color: var(--text-muted);
}

.footer {
    border-top: 1px solid #222;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

@media (max-width: 900px) {
    html, body {
        overflow-x: hidden; 
        width: 100%;
    }

    .hero-content {
        box-sizing: border-box;
        max-width: 100%;
    }

    .partner-flex, .partner-logos {
        gap: 30px !important; 
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-header {
        padding: 15px;
    }

    .header-logo {
        max-height: 60px; 
    }

    .hero-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }

    .contact-action-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-button {
        width: 100%;
    }

    .about-preview-container {
        flex-direction: column;
    }

    .gallery-container {
        flex-direction: column;
    }

    .slider-arrow {
        padding: 10px 10px;
        font-size: 1.2rem;
    }

    .portfolio-grid { 
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    
    .bottom-container {
        flex-direction: column;
        align-items: stretch;
    }

    .middle-map {
        min-height: 350px; 
    }

    .bottom-form {
        max-width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr; 
    }

    .lightbox {
        align-items: center; 
    }

    .lightbox-content {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 15px;
        max-height: 90vh; 
        overflow-y: auto; 
        width: 95vw;
        padding-bottom: 20px;
    }

    .lightbox-img-container {
        max-width: 100%;
        height: auto;
        cursor: default; 
        flex-shrink: 0;
    }

    .lightbox-img-container img {
        max-height: 85vh; 
    }

    .lightbox-thumb-sidebar {
        width: 100%;
        height: auto;
        max-height: 35vh; 
    }

    .lightbox-thumb-panel {
        width: 100%;
    }
    
    .lb-dots {
        bottom: -15px;
    }

    .exp-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .exp-items {
        flex-wrap: wrap;
        gap: 40px;
    }
    
    .exp-item {
        width: 40%;
    }
}

@media (max-width: 700px) {
    .main-header {
        flex-direction: row !important;
        justify-content: space-between !important;
        padding: 15px 20px !important;
    }
    
    .logo-area {
        display: none !important; 
    }
    
    .nav-links li:not(.dropdown) {
        display: none !important; 
    }
    
    .header-icons {
        order: 1 !important; 
        justify-content: flex-start !important;
        margin: 0 !important;
    }
    
    nav.main-nav {
        order: 2 !important; 
        justify-content: flex-end !important;
        flex: unset !important;
    }

    .nav-links {
        justify-content: flex-end !important;
        gap: 0 !important;
    }
    
    body {
        padding-top: 80px !important; 
    }

    .dropdown-content .mobile-home-link {
        display: block; 
    }
    
    .dropdown .dropdown-content {
        display: none !important;
    }
    
    .dropdown .dropdown-content.show {
        display: block !important;
    }

    .check-list {
        grid-template-columns: 1fr;
    }

    .exp-item {
        width: 100%;
    }

    /* Padding-Anpassung fuer die Form-Box auf Handys */
    .bottom-form {
        padding: 20px; 
    }
}