/* ------------------------- */
/*        Global Styles      */
/* ------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

/* Body-Offset, damit die fixe Navbar nichts verdeckt */
body {
    font-family: 'Montserrat', sans-serif;
    color: #222;
    background-color: #fff;
    line-height: 1.6;

}

/* HEADER: fixiert, aber nur Container für die Bar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding-top: 20px;        /* Abstand zum oberen Rand */
    display: flex;
    justify-content: center;
    z-index: 1000;
    background: transparent;  /* keine fette Fläche */
}

/* Inhalt unter der fixen Navbar: nur für Seiten, die ein <main> verwenden
   (impressum/datenschutz). Dadurch wird die Startseite mit Hero nicht verschoben.) */
main {
    padding-top: 110px; /* genug Abstand für die fixe Nav (adjustierbar) */
}

@media (max-width: 768px) {
    main {
        padding-top: 90px;
    }
}

/* Specific page wrapper for legal pages to keep layout consistent */
.page-main {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    padding-top: 110px; /* ensure content starts below fixed navbar */
}

@media (max-width: 768px) {
    .page-main { padding-top: 90px; }
}

/* NAV: die eigentliche runde Bar */
nav {
    width: 100%;
    max-width: 1100px;
    height: 64px;             /* macht die Bar schön schlank */
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.08);
}

/* Logo */
.logo {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.logo img {
    width: 160px;
    height: auto;
}

/* Nav-Links */
.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
    font-size: 0.95rem;
}

.nav-links a {
    color: #222;
    transition: color 0.2s, transform 0.2s;
}

.nav-links a:hover {
    color: #2563ff;
    transform: translateY(-1px);
}

/* Hide mobile CTA on desktop */
.mobile-cta {
    display: none;
}

/* Hide hamburger button on desktop */
.nav-toggle {
    display: none;
}

/* Language Switcher */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switcher {
    display: flex;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
}

.lang-btn {
    padding: 6px 14px;
    background: transparent;
    border: none;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.lang-btn:hover {
    color: #374151;
    transform: scale(1.05);
}

.lang-btn.active {
    background: #4e72ff;
    color: #fff;
    box-shadow: 0 2px 8px rgba(78, 114, 255, 0.3);
}

/* CTA-Button */
.cta-btn {
    padding: 10px 20px;
    background: #4e72ff;
    color: #fff;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: bold;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover {
    background: #0553d4;
    box-shadow: 0 8px 20px rgba(5, 83, 212, 0.4);
    transform: translateY(-1px);
}


/* Optional: etwas Responsiveness */
@media (max-width: 768px) {
    nav {
        padding: 10px 16px;
        position: relative;
        justify-content: flex-start;
    }

    /* Nav links hidden by default on mobile; shown when nav has .open */
    .nav-links {
        display: none; /* will be toggled by JS */
    }

    /* Hide desktop CTA button on mobile */
    .cta-btn {
        display: none;
    }

    /* Hide language switcher on mobile - will be shown in dropdown */
    .nav-right .lang-switcher {
        display: none;
    }

    /* Burger button: visible only on small screens, absolutely positioned on right */
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        cursor: pointer;
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
    }

    .nav-toggle .hamburger {
        width: 22px;
        height: 2px;
        background: #222;
        position: relative;
        display: inline-block;
    }

    .nav-toggle .hamburger::before,
    .nav-toggle .hamburger::after {
        content: '';
        width: 22px;
        height: 2px;
        background: #222;
        position: absolute;
        left: 0;
        transition: transform 0.18s ease;
    }

    .nav-toggle .hamburger::before { top: -7px; }
    .nav-toggle .hamburger::after  { top: 7px; }

    /* When nav has .open show links as a vertical dropdown */
    nav.open .nav-links {
        display: flex;
        position: absolute;
        top: 70px;
        right: 20px;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.12);
        min-width: 160px;
        z-index: 1500;
    }

    nav.open .nav-links a { 
        color: #222; 
        padding: 8px 10px; 
        display: block;
        width: 100%;
    }

    /* Mobile CTA in dropdown menu */
    .mobile-cta {
        display: none; /* Hidden by default, only shown on mobile */
        width: 100%;
        margin-top: 4px;
        padding-top: 8px;
        border-top: 1px solid #e5e7eb;
    }

    nav.open .mobile-cta {
        display: block;
    }

    nav.open .mobile-cta a {
        background: #4e72ff;
        color: #fff;
        border-radius: 8px;
        text-align: center;
        font-weight: bold;
        padding: 10px;
    }

    nav.open .mobile-cta a:hover {
        background: #0553d4;
    }
}

/* ------------------------- */
/*        Hero Section       */
/* ------------------------- */

#hero {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 80vh;
    min-height: 500px;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 40px;
    color: white;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 0;
    left: 50%;
    transform: none;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
    margin-right: none;
}

#hero h1 {
    font-size: 2.4rem;
    margin-bottom: 15px;
}

#hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.hero-btn {
    padding: 10px 28px;
    margin-top: 20px;
    background: #4e72ff;
    color: white;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    transition: opacity 0.2s;
}

.hero-btn:hover {
    opacity: 0.9;
}

#marked-text {
    color:#4e72ff;
    font-weight: bold;
}

/* ------------------------- */
/*        Features           */
/* ------------------------- */

#features {
    padding: 80px 40px;
    text-align: center;
}

.feature-list {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.feature-card {
    padding: 20px;
    width: 18vw;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: background-color 0.5s linear;
    transition: color 0.5s;
}

#feature-image {
    max-width: 100%;
    width: 100%;
    object-fit: cover;
    height: 50%;
    border-radius: 10px;
    padding-bottom: 2vh;
}

#feature-description {
    font-size: 0.8em;
    padding-top: 2vh;
}

.feature-card:hover {
    background: #4e72ff;
    opacity: 0.9;
    color: white;
}

#logo-img {
    width: 20vw;
    margin-top: 5vh;
    margin-bottom: 5vh;
}

/* ------------------------- */
/*        About Section      */
/* ------------------------- */

#about-us {
    padding: 80px 40px;
    max-width: 800px;
    margin: auto;
    text-align: center;
}

#about {
    padding: 80px 40px;
    max-width: 800px;
    margin: auto;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-top: 5vh;
}

/* Team Member Styles */
.team-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 5vh;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.team-member {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 16px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.team-member:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.member-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.member-image {
    height: 320px;
    width: 280px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

.member-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.member-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #4e72ff;
}

.member-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: #222;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.linkedin-icon {
    width: 36px;
    height: 36px;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.linkedin-icon:hover {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 4px 10px rgba(5, 83, 212, 0.4));
}

.member-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}



/* ------------------------- */
/*        CTA Section        */
/* ------------------------- */

#cta {
    padding: 80px 20px;
    text-align: center;
    background: #0077ff;
    color: white;
    width: 100%;
    margin-left: 0;
}

#cta h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.cta-subtitle {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 auto 30px;
    max-width: 640px;
    width: 100%;
    align-items: stretch;
}

.waitlist-form input {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    transition: box-shadow 0.2s ease;
}

.waitlist-form .submit-btn {
    align-self: center;
    width: auto;
    padding: 12px 28px;
}

@media (min-width: 900px) {
    /* on larger screens keep inputs stacked but make them slightly narrower for a balanced look */
    .waitlist-form { max-width: 720px; }
}

.waitlist-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.waitlist-form input::placeholder {
    color: #999;
}

.submit-btn {
    padding: 12px 28px;
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.12s ease;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
}

.submit-btn:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.submit-btn:active {
    transform: translateY(0);
    background: rgba(255,255,255,0.03);
}

.form-note {
    font-size: 0.85rem;
    opacity: 0.85;
}

/* ------------------------- */
/*          Footer           */
/* ------------------------- */

footer {
    padding: 40px;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    background: transparent;
}

.footer-links {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    font-weight: 600;
}

.footer-links a {
    color: #333;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}

.footer-links a:hover {
    background: rgba(0,0,0,0.05);
    color: #000;
}

/* ------------------------- */
/*      Responsive Rules     */
/* ------------------------- */

/* Large screens (wider desktops) — tighten some spacing */
@media (max-width: 1200px) {
    nav { max-width: 1000px; }
    .feature-card { width: 20vw; }
}

/* Medium screens / tablets */
@media (max-width: 992px) {
    #hero { height: 60vh; min-height: 450px; }
    #hero h1 { font-size: 2rem; }
    .feature-card { width: 280px; }
    .feature-list { gap: 20px; }
    .team-container { grid-template-columns: 1fr; width: 92vw; }
    .team-member { padding: 30px; }
    .member-image { width: 320px; height: auto; }
    .member-info { align-items: center; text-align: center; }
    .member-header { justify-content: center; }
}

/* Small screens / mobile */
@media (max-width: 768px) {
    header { padding-top: 12px; }
    nav { padding: 8px 14px; height: 56px; }
    .logo img { width: 120px; }
    #hero { height: 55vh; min-height: 400px; padding: 0 20px; }
    #hero h1 { font-size: 1.6rem; }
    #hero p { font-size: 1rem; }
    .feature-list { flex-direction: column; align-items: center; }
    .feature-card { width: 90%; }
    .team-container { grid-template-columns: 1fr; gap: 24px; width: 94vw; }
    .team-member { padding: 24px; border-radius: 12px; }
    .member-image { width: 100%; max-width: 360px; height: auto; }
    .member-header { flex-direction: row; gap: 10px; }
    .member-info { padding: 10px 6px; }
    .member-description { font-size: 0.95rem; line-height: 1.6; }
    .waitlist-form { max-width: 94%; gap: 10px; }
    .waitlist-form input { font-size: 1rem; padding: 12px 14px; }
    .submit-btn { padding: 10px 20px; }
    footer { padding: 30px 12px; }
}

/* Extra small phones */
@media (max-width: 480px) {
    nav { height: 52px; }
    .logo img { width: 100px; }
    .nav-links { gap: 10px; }
    .cta-btn { padding: 8px 12px; font-size: 0.9rem; }
    #hero h1 { font-size: 1.4rem; }
    .feature-card { width: 96%; }
    .team-member { padding: 18px; }
    .member-description { font-size: 0.9rem; }
}

/* ------------------------- */
/* FORCE HIDE MOBILE LANGUAGE SWITCHER ON DESKTOP */
/* High specificity to override any conflicting rules */
/* ------------------------- */

nav .nav-links > li.mobile-lang {
    display: none !important;
}

/* Show mobile language switcher only in mobile dropdown */
@media (max-width: 768px) {
    nav.open .nav-links > li.mobile-lang {
        display: list-item !important;
        width: 100%;
        margin-top: 4px;
        padding-top: 8px;
        border-top: 1px solid #e5e7eb;
    }
    
    nav.open .nav-links > li.mobile-lang .lang-switcher {
        display: flex !important;
        width: 100%;
        justify-content: center;
        background: #f9fafb;
        border-radius: 8px;
        padding: 6px;
    }
}

