:root {
    --ink: #122033;
    --muted: #607089;
    --line: rgba(18, 32, 51, 0.12);
    --surface: rgba(255, 255, 255, 0.92);
    --surface-soft: #edf3f8;
    --brand: #1d3b61;
    --brand-dark: #183964;
    --blue: #1d3b61;
    --blue-dark: #183964;
    --teal: #5a91d7;
    --shadow: 0 24px 60px rgba(8, 19, 35, 0.16);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        radial-gradient(circle at 90% 6%, rgba(24, 57, 100, 0.06), transparent 26%),
        linear-gradient(180deg, #eef3f7 0, #edf3f8 100%);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}

body.login-open {
    overflow: hidden;
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

h1, h2, h3, h4 {
    color: var(--ink);
    font-weight: 750;
    letter-spacing: 0;
}

h1 span {
    color: #b8d3ff;
}

.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 28, 48, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 30px rgba(8, 19, 35, 0.22);
}

.nav-container {
    width: min(1240px, calc(100% - 40px));
    min-height: 84px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Weiße Kopfleiste: Logo sitzt auf Weiß (kein Blau dahinter), Buttons rechts. */
.site-top {
    position: relative;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    margin: 0;
    padding: 12px clamp(20px, 5vw, 56px);
    background: #ffffff;
    box-shadow: 0 6px 22px rgba(8, 19, 35, 0.14);
}

.site-logo-link {
    display: inline-flex;
    line-height: 0;
}

.site-logo {
    height: 96px;
    width: auto;
    max-width: min(60vw, 360px);
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Team/Leistungen/Kontakt nutzen die dunklen Standard-Pills (lesbar auf Weiß). */
.site-nav .nav-login {
    background: linear-gradient(135deg, #1d3b61, #183964);
    border-color: #183964;
    color: #ffffff;
}
.site-nav .nav-login:hover {
    filter: brightness(1.06);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-pill,
.login-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 16px;
    font-size: 0.96rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.2;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, rgba(32, 86, 148, 0.92), rgba(22, 58, 100, 0.9));
    color: #f5f8fc;
    box-shadow: 0 10px 24px rgba(8, 19, 35, 0.16);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.nav-pill:hover,
.login-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(8, 19, 35, 0.22);
    filter: saturate(1.03);
}

.login-trigger {
    cursor: pointer;
    font: inherit;
    appearance: none;
}

.hero {
    position: relative;
    min-height: auto;
    display: grid;
    align-items: start;
    padding: 40px 20px 64px;
    overflow: hidden;
    background: transparent;
}

.hero::before {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(880px, 100%);
    margin: 0 auto;
    text-align: center;
    padding: 44px 38px;
    border-radius: 28px;
    background: linear-gradient(135deg, #1d3b61, #14233c);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 26px 60px rgba(8, 19, 35, 0.26);
}

.hero-kicker {
    margin-bottom: 16px;
    color: var(--teal);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(2.55rem, 6vw, 5.2rem);
    line-height: 1.02;
    margin-bottom: 24px;
    color: #f7fbff;
}

.hero p {
    width: min(690px, 100%);
    margin: 0 auto 34px;
    color: rgba(247, 251, 255, 0.9);
    font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 8px;
    padding: 0.84rem 1.2rem;
    font-weight: 750;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: white;
    box-shadow: 0 14px 32px rgba(8, 19, 35, 0.28);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(23, 105, 255, 0.27);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255,255,255,0.88);
    color: #183964;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.96);
    transform: translateY(-1px);
}

.hero-bg-shapes {
    display: none;
}

section {
    padding: 88px 0;
}

.section-title {
    margin-bottom: 36px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    margin: 16px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue), var(--teal));
}

.founder-grid,
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.glass-card {
    min-height: 100%;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(16, 32, 51, 0.08);
    padding: 28px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.glass-card:hover {
    border-color: rgba(23, 105, 255, 0.25);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.founder-card h3,
.service-card h3 {
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.founder-card .role {
    margin-bottom: 14px;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.founder-card .desc,
.service-card p {
    color: var(--muted);
}

.icon-wrapper {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 8px;
    background: #eef5ff;
    color: var(--blue);
}

.footer {
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    padding: 64px 0 26px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 34px;
    margin-bottom: 34px;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.footer-col p {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 0.92rem;
}

.mail-link {
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
}

.mail-link:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 22px;
    color: var(--muted);
    font-size: 0.86rem;
    text-align: center;
}

.login-overlay[hidden] {
    display: none;
}

.login-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.login-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 32, 51, 0.58);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.login-modal {
    position: relative;
    width: min(440px, 100%);
    border: 1px solid rgba(255,255,255,0.72);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
    padding: 30px;
}

.login-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    color: var(--muted);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
}

.login-close:hover {
    color: var(--ink);
    border-color: #cbd5e1;
}

.login-mark {
    margin-bottom: 24px;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.login-kicker {
    margin-bottom: 8px;
    color: var(--teal);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-modal h2 {
    margin-bottom: 12px;
    font-size: 2.15rem;
    line-height: 1.05;
}

.login-copy {
    margin-bottom: 22px;
    color: var(--muted);
}

.login-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.login-summary span {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
    padding: 0.35rem 0.62rem;
}

.login-actions {
    display: grid;
    gap: 10px;
}

.login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 8px;
    background: var(--ink);
    color: white;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.18s ease;
}

.login-submit:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
}

.login-secondary {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.login-secondary:hover {
    color: var(--blue);
}

.fade-in-up {
    animation: fadeInUp 0.72s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(16px);
}

.delay-1 {
    animation-delay: 0.16s;
}

.delay-2 {
    animation-delay: 0.28s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 820px) {
    .nav-container {
        min-height: 70px;
        width: min(100% - 28px, 1160px);
    }

    .site-top {
        padding: 10px 18px;
    }

    .site-nav a:not(.nav-login) {
        display: none;
    }

    .site-logo {
        height: 70px;
    }

    .hero {
        min-height: auto;
        padding: 20px 16px 66px;
    }

    section {
        padding: 64px 0;
    }

    .container {
        width: min(100% - 28px, 1160px);
    }

    .glass-card {
        padding: 22px;
    }
}

@media (max-width: 480px) {
    .site-logo {
        height: 58px;
        max-width: 62vw;
        object-fit: contain;
    }

    .login-trigger {
        min-height: 38px;
        padding: 0.48rem 0.78rem;
        font-size: 0.88rem;
    }

    .hero h1 {
        font-size: 2.35rem;
    }

    .hero-actions,
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .login-overlay {
        padding: 12px;
    }

    .login-modal {
        padding: 24px;
    }

    .login-modal h2 {
        font-size: 1.8rem;
    }
}
