/* -----------------------------------------------------------
   GRUNDLAYOUT NAVIGATION (korrigiert)
----------------------------------------------------------- */
.main-nav {
    background: #0A1A2F;
    padding: 0 40px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 1000;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background: #ffffff;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

/* Navigation Menu */
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 40px;
    align-items: center;
    flex: 1;
}

    .nav-menu a,
    .nav-menu .nav-link,
    .nav-menu .nav-link.active {
        color: #ffffff;
        text-decoration: none;
        font-size: 16px;
        letter-spacing: 0.3px;
        padding: 18px 0;
        display: block;
        transition: color 0.25s ease;
    }

        .nav-menu a:hover,
        .nav-menu .nav-link:hover {
            color: #00C2C7;
        }

/* Submenu Toggle */
.submenu-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: #ffffff;
}

    .submenu-toggle .nav-link {
        padding: 0;
        cursor: pointer;
    }

/* Submenu Arrow */
.submenu-arrow {
    display: inline-block;
    font-size: 10px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

/* Desktop Dropdown */
.nav-menu .has-submenu {
    position: relative;
}

.nav-menu .submenu {
    position: absolute;
    top: 70px;
    left: 0;
    background: #112233;
    padding: 10px 0;
    border-radius: 6px;
    min-width: 240px;
    display: none;
    flex-direction: column;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    list-style: none;
    margin: 0;
    z-index: 2000;
}

    .nav-menu .submenu li {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .nav-menu .submenu li a,
    .nav-menu .submenu li .nav-link {
        padding: 12px 20px;
        font-size: 15px;
        color: #ffffff;
        text-decoration: none;
        display: block;
        transition: background 0.2s ease, color 0.2s ease;
    }

        .nav-menu .submenu li a:hover,
        .nav-menu .submenu li .nav-link:hover {
            background: rgba(0, 194, 199, 0.15);
            color: #00C2C7;
        }

/* Desktop: Zeige Submenu bei Hover oder wenn submenu-open Klasse gesetzt */
@media (min-width: 769px) {
    .nav-menu .has-submenu.submenu-open .submenu,
    .nav-menu .submenu.open {
        display: flex;
    }

    /* Desktop: Hover Effekt */
    .nav-menu .has-submenu:hover .submenu {
        display: flex;
    }
}

/* -----------------------------------------------------------
   MOBILE RESPONSIVE (max-width: 768px)
----------------------------------------------------------- */
@media (max-width: 768px) {
    .main-nav {
        padding: 0 20px;
        height: 60px;
    }

    /* Show hamburger menu */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Hide menu by default on mobile */
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 280px;
        height: calc(100vh - 60px);
        background: #0A1A2F;
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    }

        /* Show menu when open */
        .nav-menu.open {
            left: 0;
        }

        .nav-menu li {
            width: 100%;
        }

        .nav-menu a,
        .nav-menu .nav-link {
            padding: 15px 20px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

    /* Mobile Submenu Toggle */
    .submenu-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        color: #ffffff;
        cursor: pointer;
    }

        .submenu-toggle .nav-link {
            padding: 0;
            border: none;
            flex: 1;
            pointer-events: none; /* Verhindere Navigation im Mobile-Modus */
        }

    .submenu-arrow {
        padding: 0 0 0 10px;
        margin-left: auto;
    }

    /* Mobile Submenu */
    .nav-menu .submenu {
        position: static;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        box-shadow: none;
        background: #0d1f33;
        transition: max-height 0.3s ease;
        display: flex !important;
        flex-direction: column;
    }

        .nav-menu .submenu.open {
            max-height: 500px;
            padding: 10px 0;
        }

    .nav-menu .has-submenu.submenu-open .submenu-arrow {
        transform: rotate(180deg);
    }

    .nav-menu .submenu li {
        width: 100%;
    }

    .nav-menu .submenu li a,
    .nav-menu .submenu li .nav-link {
        padding-left: 40px;
        font-size: 14px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
}

/* -----------------------------------------------------------
   HERO SECTION
----------------------------------------------------------- */
.hero {
    background: linear-gradient(135deg, #0A1A2F 0%, #112233 100%);
    color: #ffffff;
    padding: 120px 40px;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero-content .subtitle {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 40px auto;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: #00C2C7;
    color: #0A1A2F;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease;
}

    .cta-button:hover {
        background: #00d8df;
        transform: translateY(-2px);
    }

/* -----------------------------------------------------------
   USP SECTION
----------------------------------------------------------- */
.usp-section {
    padding: 80px 40px;
    background: #f7f9fc;
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.usp-item h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #0A1A2F;
}

.usp-item p {
    color: #3A4F63;
    line-height: 1.6;
}

/* -----------------------------------------------------------
   SERVICES PREVIEW
----------------------------------------------------------- */
.services-preview {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

    .services-preview h2 {
        text-align: center;
        font-size: 36px;
        margin-bottom: 50px;
        color: #0A1A2F;
    }

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

.service-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .service-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    }

    .service-card h3 {
        font-size: 22px;
        margin-bottom: 12px;
        color: #0A1A2F;
    }

    .service-card p {
        color: #3A4F63;
        margin-bottom: 20px;
    }

.more-link {
    color: #00C2C7;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .more-link:hover {
        color: #009aa0;
    }

/* -----------------------------------------------------------
   FINAL CTA SECTION
----------------------------------------------------------- */
.cta-final {
    background: #0A1A2F;
    color: #ffffff;
    text-align: center;
    padding: 100px 40px;
}

    .cta-final h2 {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .cta-final p {
        font-size: 18px;
        opacity: 0.9;
        margin-bottom: 40px;
    }

/* -----------------------------------------------------------
   RESPONSIVE
----------------------------------------------------------- */
@media (max-width: 768px) {
    /* Hero Section */
    .hero {
        padding: 60px 20px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content .subtitle {
        font-size: 16px;
    }

    .cta-button {
        font-size: 16px;
        padding: 12px 24px;
    }

    /* USP Section */
    .usp-section {
        padding: 40px 20px;
    }

    .usp-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Services */
    .services-preview {
        padding: 40px 20px;
    }

    .services-preview h2,
    .cta-final h2 {
        font-size: 24px;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* CTA Final */
    .cta-final {
        padding: 60px 20px;
    }

    /* Headers */
    .projects-header,
    .contact-header,
    .about-header,
    .services-header {
        padding: 40px 20px 20px;
    }

    .projects-header h1,
    .contact-header h1,
    .about-header h1,
    .services-header h1 {
        font-size: 28px;
    }

    .projects-header p,
    .contact-header p,
    .about-header p,
    .services-header p {
        font-size: 16px;
    }

    /* Projects Grid */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
        margin: 40px auto;
    }

    /* Service Cards */
    .service-card {
        padding: 20px;
    }

    .project-card {
        padding: 20px;
    }

    /* Footer */
    .site-footer {
        padding: 40px 20px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
/* -----------------------------------------------------------
   CONTACT HEADER
----------------------------------------------------------- */
.contact-header {
    text-align: center;
    padding: 80px 40px 40px 40px;
}

    .contact-header h1 {
        font-size: 42px;
        color: #0A1A2F;
        margin-bottom: 10px;
    }

    .contact-header p {
        font-size: 18px;
        color: #3A4F63;
        max-width: 700px;
        margin: 0 auto;
    }

/* -----------------------------------------------------------
   CONTACT CONTAINER
----------------------------------------------------------- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 40px;
}

.contact-info h2,
.contact-form h2 {
    font-size: 28px;
    color: #0A1A2F;
    margin-bottom: 20px;
}

.contact-info p {
    color: #3A4F63;
    margin-bottom: 12px;
}

/* -----------------------------------------------------------
   FORM STYLES
----------------------------------------------------------- */
.form-group {
    margin-bottom: 20px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccd4dd;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

    .form-input:focus,
    .form-textarea:focus {
        border-color: #00C2C7;
        outline: none;
    }

.form-textarea {
    height: 140px;
    resize: vertical;
}

.success-message {
    margin-top: 20px;
    color: #00a884;
    font-weight: 600;
}

/* -----------------------------------------------------------
   RESPONSIVE
----------------------------------------------------------- */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
/* -----------------------------------------------------------
   ABOUT HEADER
----------------------------------------------------------- */
.about-header {
    text-align: center;
    padding: 80px 40px 40px 40px;
}

    .about-header h1 {
        font-size: 42px;
        color: #0A1A2F;
        margin-bottom: 10px;
    }

    .about-header p {
        font-size: 18px;
        color: #3A4F63;
        max-width: 800px;
        margin: 0 auto;
        line-height: 1.6;
    }

/* -----------------------------------------------------------
   ABOUT CONTENT
----------------------------------------------------------- */
.about-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 40px;
}

.about-text h2 {
    font-size: 28px;
    color: #0A1A2F;
    margin-top: 30px;
    margin-bottom: 15px;
}

.about-text p {
    color: #3A4F63;
    line-height: 1.7;
    margin-bottom: 20px;
}

.skill-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

    .skill-list li {
        background: #f1f5f9;
        padding: 12px 16px;
        border-radius: 6px;
        margin-bottom: 10px;
        color: #0A1A2F;
        border-left: 4px solid #00C2C7;
    }

/* -----------------------------------------------------------
   IMAGE
----------------------------------------------------------- */
.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* -----------------------------------------------------------
   RESPONSIVE
----------------------------------------------------------- */
@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image img {
        max-width: 400px;
        margin: 0 auto;
        display: block;
    }
}

.services-header {
    text-align: center;
    padding: 80px 40px 40px;
}

    .services-header h1 {
        font-size: 42px;
        color: #0A1A2F;
    }

    .services-header p {
        max-width: 800px;
        margin: 0 auto;
        color: #3A4F63;
    }

.services-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 40px;
}

.service-detail {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 40px;
}

    .service-detail h1 {
        font-size: 36px;
        color: #0A1A2F;
        margin-bottom: 20px;
    }

.detail-list {
    list-style: none;
    padding: 0;
}

    .detail-list li {
        background: #f1f5f9;
        padding: 12px 16px;
        border-radius: 6px;
        margin-bottom: 10px;
        border-left: 4px solid #00C2C7;
    }

/* -----------------------------------------------------------
   PROJECTS HEADER
----------------------------------------------------------- */
.projects-header {
    text-align: center;
    padding: 80px 40px 40px;
}

    .projects-header h1 {
        font-size: 42px;
        color: #0A1A2F;
    }

    .projects-header p {
        max-width: 800px;
        margin: 0 auto;
        color: #3A4F63;
        line-height: 1.6;
    }

/* -----------------------------------------------------------
   PROJECT GRID
----------------------------------------------------------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 40px;
}

.project-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .project-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    }

    .project-card h2 {
        font-size: 22px;
        margin-bottom: 12px;
        color: #0A1A2F;
    }

    .project-card p {
        color: #3A4F63;
        margin-bottom: 20px;
        line-height: 1.6;
    }

/* Tags */
.project-tags {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    .project-tags li {
        background: #f1f5f9;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 14px;
        color: #0A1A2F;
        border-left: 4px solid #00C2C7;
    }

/* Responsive */
@media (max-width: 768px) {
    .projects-header h1 {
        font-size: 32px;
    }
}

/* -----------------------------------------------------------
   FOOTER
----------------------------------------------------------- */
.site-footer {
    background: #0A1A2F;
    color: #ffffff;
    padding: 60px 40px 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #00C2C7;
}

.footer-section p,
.footer-section a,
.footer-section li {
    color: #d0d7e2;
    font-size: 15px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    text-decoration: none;
    transition: color 0.2s ease;
}

    .footer-section a:hover {
        color: #00d8df;
    }

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

    .footer-bottom p {
        color: #9aa5b5;
        font-size: 14px;
    }

/* Responsive */
@media (max-width: 768px) {
    .site-footer {
        padding: 40px 20px 20px;
    }
}

/* -----------------------------------------------------------
   LEGAL / IMPRESSUM
----------------------------------------------------------- */
.legal-header {
    text-align: center;
    padding: 80px 40px 40px;
}

    .legal-header h1 {
        font-size: 42px;
        color: #0A1A2F;
    }

    .legal-header p {
        max-width: 800px;
        margin: 0 auto;
        color: #3A4F63;
    }

.legal-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 40px;
}

.legal-block {
    margin-bottom: 40px;
}

    .legal-block h2 {
        font-size: 26px;
        color: #0A1A2F;
        margin-bottom: 15px;
    }

    .legal-block p {
        color: #3A4F63;
        line-height: 1.7;
        margin-bottom: 15px;
    }

/* -----------------------------------------------------------
   DATENSCHUTZ / LEGAL PAGES
----------------------------------------------------------- */
.legal-header {
    text-align: center;
    padding: 80px 40px 40px;
}

    .legal-header h1 {
        font-size: 42px;
        color: #0A1A2F;
    }

    .legal-header p {
        max-width: 800px;
        margin: 0 auto;
        color: #3A4F63;
        line-height: 1.6;
    }

.legal-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 40px;
}

.legal-block {
    margin-bottom: 40px;
}

    .legal-block h2 {
        font-size: 26px;
        color: #0A1A2F;
        margin-bottom: 15px;
    }

    .legal-block p {
        color: #3A4F63;
        line-height: 1.7;
        margin-bottom: 15px;
    }

.detail-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

    .detail-list li {
        background: #f1f5f9;
        padding: 12px 16px;
        border-radius: 6px;
        margin-bottom: 10px;
        border-left: 4px solid #00C2C7;
        color: #0A1A2F;
    }

.legal-header {
    text-align: center;
    padding: 80px 40px 40px;
}

    .legal-header h1 {
        font-size: 42px;
        color: #0A1A2F;
    }

    .legal-header p {
        max-width: 800px;
        margin: 0 auto;
        color: #3A4F63;
        line-height: 1.6;
    }

.legal-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 40px;
}

.legal-block {
    margin-bottom: 40px;
}

    .legal-block h2 {
        font-size: 26px;
        color: #0A1A2F;
        margin-bottom: 15px;
    }

    .legal-block p {
        color: #3A4F63;
        line-height: 1.7;
        margin-bottom: 15px;
    }

/* -----------------------------------------------------------
   COOKIE BANNER
----------------------------------------------------------- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #0A1A2F;
    color: #ffffff;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
}

.cookie-text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    max-width: 700px;
}

.cookie-actions {
    margin-left: 20px;
}

.cookie-btn {
    background: #00C2C7;
    color: #0A1A2F;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease;
}

    .cookie-btn:hover {
        background: #00d8df;
    }

/* Responsive */
@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}
