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

:root {
    --g: #58E044;
    --r: #FF4E45;
    --bg: #050908;
    --panel: #111716;
    --soft: #18201E;
    --line: #2A302F;
    --txt: #F5F6F3;
    --muted: #9EA6A2;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--txt);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

/* Scroll-Glow: fixe Hintergrund-Ebene, Farbe/Position steuert main.js beim Scrollen */
.glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    transition: background 0.4s linear;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
    transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    background: rgba(5, 9, 8, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--line);
}

.nav-logo {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--txt);
    text-decoration: none;
}

.nav-logo span,
.footer-brand span {
    color: var(--g);
}

.nav-links {
    display: flex;
    gap: 22px;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(88, 224, 68, 0.12);
    border: 1px solid rgba(88, 224, 68, 0.3);
    color: var(--g);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.badge-small {
    margin-bottom: 0;
    padding: 4px 10px;
    font-size: 10px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--g);
    animation: pulse 1.8s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(1.3); }
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 110px 24px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1506157786151-b8491531f063?w=1400&q=80');
    background-size: cover;
    background-position: center;
    filter: brightness(0.22);
}

.hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 56px;
    flex-wrap: wrap;
    max-width: 1080px;
}

.hero-content {
    max-width: 560px;
    text-align: left;
}

.hero h1 {
    font-size: clamp(2.6rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--g);
}

.hero p {
    font-size: 1.15rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 480px;
    margin: 0 0 36px;
}

.hero p strong {
    color: var(--txt);
}

.cta-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Hero-Radar (Canvas) */
.hero-radar {
    text-align: center;
    transition-delay: 0.15s;
}

#radar {
    width: min(380px, 82vw);
    height: auto;
    aspect-ratio: 1;
    display: block;
    border-radius: 50%;
    box-shadow: 0 0 80px rgba(88, 224, 68, 0.12), 0 0 0 1px rgba(88, 224, 68, 0.08);
}

.radar-caption {
    margin-top: 14px;
    font-size: .8rem;
    color: var(--muted);
    letter-spacing: 0.5px;
}

.scroll-hint {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--muted);
    font-size: 1.6rem;
    text-decoration: none;
    animation: bob 2s infinite;
}

@keyframes bob {
    0%, 100% { transform: translate(-50%, 0); }
    50%       { transform: translate(-50%, 8px); }
}

/* Buttons */
.btn-primary {
    background: var(--g);
    color: #050908;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.2s, transform 0.2s;
    display: inline-block;
}

.btn-primary:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--txt);
    border: 1px solid var(--line);
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1rem;
    transition: border-color 0.2s;
    display: inline-block;
}

.btn-secondary:hover {
    border-color: var(--muted);
}

/* Stats-Leiste */
.stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: var(--line);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stat {
    background: var(--bg);
    text-align: center;
    padding: 34px 18px;
}

.stat-num {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--g);
    letter-spacing: -1px;
}

.stat-label {
    margin-top: 6px;
    font-size: .85rem;
    color: var(--muted);
}

/* Sections */
.section {
    position: relative;
    z-index: 1;
    padding: 90px 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.section-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--g);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-sub {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 560px;
}

/* Feature Cards */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 16px;
    margin-top: 48px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px;
    transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
    border-color: rgba(88, 224, 68, 0.3);
    transform: translateY(-2px);
}

.icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(88, 224, 68, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.card p {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.6;
}

/* Feature-Spotlight (Treffpunkte) */
.spotlight {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 24px;
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.spotlight-text {
    flex: 1 1 380px;
}

.spotlight-text p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 22px;
}

.spotlight-text p strong {
    color: var(--txt);
}

.check-list {
    list-style: none;
}

.check-list li {
    padding-left: 28px;
    position: relative;
    color: var(--txt);
    font-size: .95rem;
    line-height: 2.1;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--g);
    font-weight: 700;
}

.spotlight-visual {
    flex: 1 1 280px;
    display: flex;
    justify-content: center;
}

.flag-demo {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.flag-pin {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 3px solid var(--c, var(--g));
    border-radius: 12px;
    padding: 14px 22px;
    font-weight: 600;
    min-width: 220px;
}

.flag-pin span {
    font-size: 1.3rem;
}

.chat-demo {
    width: 100%;
    max-width: 360px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

.chat-bubble {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 82%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: .9rem;
    line-height: 1.4;
}

.chat-bubble.incoming {
    align-self: flex-start;
    background: var(--bg);
}

.chat-bubble.outgoing {
    align-self: flex-end;
    background: rgba(88, 224, 68, 0.12);
    border-color: rgba(88, 224, 68, 0.3);
}

.chat-name {
    color: var(--g);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.chat-bubble small {
    color: var(--muted);
    font-size: .72rem;
    text-align: right;
}

.chat-quick {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 6px;
}

.chat-quick span {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: .78rem;
    padding: 7px 10px;
    white-space: nowrap;
}

/* E2E-Spotlight: gespiegeltes Layout + "Server sieht nur Geheimtext"-Visual */
.spotlight.reverse {
    flex-direction: row-reverse;
}

.cipher-demo {
    width: 100%;
    max-width: 360px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

.cipher-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 14px;
}

.cipher-tag {
    font-size: .82rem;
    font-weight: 600;
    color: var(--txt);
    white-space: nowrap;
}

.cipher-blob {
    font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
    font-size: .8rem;
    color: var(--muted);
    letter-spacing: .3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    direction: rtl;
}

.cipher-note {
    margin-top: 4px;
    text-align: center;
    font-size: .82rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.cipher-note .lock-ico {
    font-size: 1rem;
}

/* Steps */
.how {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-top: 48px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

.step {
    padding: 28px 24px;
    border-right: 1px solid var(--line);
}

.step:last-child {
    border-right: none;
}

.step-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--g);
    line-height: 1;
    margin-bottom: 12px;
}

.step h4 {
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.step p {
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.5;
}

/* Technik */
.tech {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 90px 24px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 48px;
}

.tech-card {
    background: linear-gradient(160deg, var(--soft), var(--panel));
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px;
}

.tech-card h4 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.tech-card p {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.65;
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 8px;
    margin-top: 48px;
    border-radius: 16px;
    overflow: hidden;
}

.photo-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75);
    transition: filter 0.3s;
}

.photo-grid img:hover {
    filter: brightness(0.95);
}

.photo-grid img:first-child {
    grid-row: span 2;
}

/* FAQ */
.faq-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-list details {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 20px;
    transition: border-color 0.2s;
}

.faq-list details[open] {
    border-color: rgba(88, 224, 68, 0.3);
}

.faq-list summary {
    cursor: pointer;
    padding: 18px 0;
    font-weight: 600;
    font-size: .98rem;
    list-style: none;
    position: relative;
    padding-right: 30px;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: '+';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--g);
    font-size: 1.3rem;
    font-weight: 400;
    transition: transform 0.2s;
}

.faq-list details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-list details p {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.7;
    padding-bottom: 18px;
}

.faq-list details a {
    color: var(--g);
}

/* CTA Section */
.cta-section {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 100px 24px;
    background: var(--soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.cta-section h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta-section p {
    color: var(--muted);
    margin-bottom: 32px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.lora-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--muted);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
}

/* Footer */
footer {
    position: relative;
    z-index: 1;
    padding: 40px 24px 28px;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-brand {
    font-size: 1.05rem;
    font-weight: 800;
}

.footer-note {
    font-size: .75rem;
    font-weight: 400;
    color: var(--muted);
    margin-top: 4px;
}

.footer-links a {
    color: var(--muted);
    font-size: .85rem;
    text-decoration: none;
    margin-left: 18px;
    transition: color 0.2s;
}

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

.footer-copy {
    max-width: 1000px;
    margin: 24px auto 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .75rem;
}

/* Scroll-Reveal */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .dot, .scroll-hint {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Datenschutz-Seite */
.legal {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    padding: 120px 24px 60px;
}

.legal h1 {
    font-size: 1.9rem;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.legal .legal-date {
    color: var(--muted);
    font-size: .85rem;
    margin-bottom: 36px;
}

.legal h2 {
    font-size: 1.2rem;
    margin: 36px 0 12px;
}

.legal h3 {
    font-size: 1rem;
    margin: 24px 0 8px;
}

.legal p, .legal li {
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.75;
}

.legal ul {
    padding-left: 22px;
    margin: 10px 0;
}

.legal a {
    color: var(--g);
}

.legal strong {
    color: var(--txt);
}

/* Mobile */
@media (max-width: 720px) {
    .nav-links {
        display: none;
    }

    .hero {
        text-align: center;
        padding-top: 90px;
    }

    .hero-content {
        text-align: center;
    }

    .hero p {
        margin: 0 auto 36px;
    }

    .cta-group {
        justify-content: center;
    }

    .how {
        grid-template-columns: 1fr;
    }

    .step {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .step:last-child {
        border-bottom: none;
    }

    .photo-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 160px 160px 160px;
    }

    .photo-grid img:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links a {
        margin: 0 9px;
    }
}
