@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #002347;
    --secondary-color: #0056b3;
    --accent-color: #FFD700;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
}


/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

header.scrolled {
    background: rgba(10, 11, 14, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.top-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 400;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header.scrolled .top-bar {
    margin-top: -40px;
    /* Schiebt die Top-Bar sanft nach oben aus dem Viewport */
    opacity: 0;
    pointer-events: none;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 2%;
    width: 100%;
    margin: 0;
    transition: var(--transition);
}

header.scrolled nav {
    padding: 12px 5%;
    /* Kompakterer Nav beim Scrollen */
}

.logo-wrapper {
    flex-shrink: 0;
}

.logo img {
    height: 48px;
    /* Reduzierte Höhe, um Überlappung zu vermeiden */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

header.scrolled .logo img {
    height: 38px;
    /* Kompakter beim Scrollen */
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.nav-links .cta-button {
    padding: 8px 15px;
    font-size: 0.8rem;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(13, 14, 18, 0.98);
    backdrop-filter: blur(15px);
    min-width: 280px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    border-radius: 12px;
    padding: 15px 0;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
    top: 100%;
}

.dropdown-content a {
    color: var(--white) !important;
    padding: 12px 25px !important;
    text-decoration: none;
    display: block;
    font-size: 0.85rem !important;
    transition: all 0.2s ease;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-transform: none !important;
    letter-spacing: 0.5px !important;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--secondary-color) !important;
    padding-left: 30px !important;
}

.dropbtn::after {
    content: ' ▾';
    font-size: 0.8rem;
    opacity: 0.7;
}

.cta-button {
    background: var(--secondary-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 5%;
    overflow: hidden;
    background: var(--primary-color);
    /* Fallback */
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
}


.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 35, 71, 0.9), rgba(0, 35, 71, 0.7));
    z-index: 2;
}

.pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(var(--secondary-color) 1px, transparent 1px),
        radial-gradient(var(--secondary-color) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    animation: fadeIn 1s ease-out;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeIn 1s ease-out 0.3s backwards;
}

.experience-badge {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 800;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-out 0.5s backwards;
}

/* Services Section */
.services {
    padding: 100px 5%;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    padding: 0 5%;
}

.section-header h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.section-header p {
    margin-top: 25px;
    font-size: 1rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
}


/* Comparison Section */
.comparison {
    padding: 100px 5%;
    background: var(--white);
}

.comparison-grid {
    max-width: 1000px;
    margin: 0 auto;
}

.comparison-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.comparison-item {
    position: relative;
}

.comparison-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.comparison-item span {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    font-weight: 700;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 50px 5%;
    background: var(--primary-color);
    color: var(--white);
}

.badge-card {
    text-align: center;
}

.badge-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.badge-card h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.badge-card p {
    opacity: 0.7;
}

/* Founder Section */
.founder {
    padding: 100px 5%;
    background: var(--white);
}

.about-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    line-height: 1.2;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.founder-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item strong {
    font-size: 2rem;
    color: var(--secondary-color);
    font-weight: 800;
}

.stat-item span {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
}

.about-image {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    box-shadow: 30px 30px 0px var(--bg-light);
}

.experience-label {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 20px 30px;
    font-weight: 800;
    border-radius: 8px;
    box-shadow: var(--shadow);
    font-size: 1.1rem;
}

@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        height: 400px;
        margin-top: 40px;
        box-shadow: 15px 15px 0px var(--bg-light);
    }

    .experience-label {
        right: 20px;
        bottom: 20px;
        padding: 15px 20px;
    }
}

/* Results Section */
.results {
    padding: 100px 5%;
    background: #0a0b0e;
    color: var(--white);
}

.results .section-header {
    text-align: center;
    margin-bottom: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.results .section-header h2 {
    color: var(--white) !important;
    font-size: 2.5rem;
    font-weight: 800;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.results .section-header h2::after {
    display: none;
    /* Cleaner look without the default underline */
}

.experience-badge {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1350px;
    margin: 0 auto;
}

.comparison-card {
    background: #14161d;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.comparison-card h4 {
    margin-bottom: 15px;
    color: var(--white);
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.comparison-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.comparison-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.comparison-item img {
    width: 100%;
    height: 180px;
    /* Kompakter */
    object-fit: cover;
    display: block;
    transition: var(--transition);
    filter: brightness(0.9);
}

.comparison-card:hover img {
    transform: scale(1.03);
    filter: brightness(1.1);
}

.label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 3px 8px;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 3px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: 1fr;
    }

    .comparison-item img {
        height: 200px;
    }
}

/* Services Section - Tile Grid (GlanzK Style) */
.services {
    padding: 60px 0;
    /* Reduziertes Padding für weniger 'Wuchtigkeit' */
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2px;
    width: 100%;
    margin: 0 auto;
}

.service-card {
    position: relative;
    aspect-ratio: 3 / 2;
    /* Etwas flacher als quadratisch, wirkt graziler */
    overflow: hidden;
    display: block;
    text-decoration: none;
    background: #000;
}

.service-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-card:hover .service-image {
    transform: scale(1.1);
}

.service-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 15px 15px;
    /* Kompakteres Info-Feld */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    text-align: center;
    z-index: 2;
    transition: background 0.3s ease;
}

.service-card:hover .service-info {
    background: linear-gradient(to top, rgba(0, 35, 71, 0.95) 0%, rgba(0, 35, 71, 0.4) 100%);
}

.service-info h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    /* Etwas kleinere Schrift */
    font-weight: 600;
    color: var(--white);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-info p {
    display: none;
    /* Only titles in the tile view for cleaner look */
}

.service-card::after {
    display: none;
}

@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3 Spalten für 6 Items (2 Reihen) */
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-info h3 {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
}


/* Contact Section */
.contact {
    padding: 100px 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-image-section {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.map-link-wrapper {
    position: relative;
    height: 100%;
}

.large-location-image {
    width: 100%;
    height: 100%;
    min-height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.contact-image-section:hover .large-location-image {
    transform: scale(1.05);
}

.maps-overlay-button {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 35, 71, 0.95);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border: 2px solid var(--accent-color);
    transition: var(--transition);
    white-space: nowrap;
    backdrop-filter: blur(10px);
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: min(350px, 90%);
    text-align: center;
}

.maps-overlay-button:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 5% 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-links h4 {
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
}


/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .contact {
        grid-template-columns: 1fr;
    }
}
/* Contact Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 35, 71, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--primary-color);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-content h2 {
    color: var(--white);
    margin-bottom: 10px;
}

.modal-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-btn {
    width: 100%;
    padding: 15px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    background: var(--secondary-color);
}

.modal-btn:hover {
    background: var(--white);
    color: var(--primary-color);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--white);
}
