body {
    background-color: #0a0c10;
    color: #dfe2eb;
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

.liquid-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 20px 40px rgba(0, 0, 0, 0.4);
}

.liquid-glass-pill {
    background: rgba(20, 24, 30, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.liquid-glass-pill.scrolled {
    background: rgba(8, 10, 14, 0.92);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.text-kern-wide {
    letter-spacing: 0.05em;
}

.asymmetric-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.headline-accent {
    font-weight: 300;
    font-style: italic;
    opacity: 0.8;
}

/* ── Mobile menu ─────────────────────────────── */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-radius: 0 0 1rem 1rem;
}

.mobile-menu.open {
    max-height: 320px;
}

/* ── Active nav link ─────────────────────────── */
.nav-link {
    position: relative;
}

.nav-link.active {
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #00dbe7;
    transition: width 0.3s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

/* ── Progress bar (Theorie) ──────────────────── */
.progress-bar {
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00dbe7, #74f5ff);
    border-radius: 9999px;
    width: 0;
    transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Scroll reveal ───────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Modal ───────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: #181c22;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 0.75rem;
    padding: 2.5rem;
    width: 100%;
    max-width: 520px;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.open .modal-box {
    transform: translateY(0) scale(1);
}

.modal-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
    padding: 0.75rem 1rem;
    color: #dfe2eb;
    font-size: 14px;
    font-family: Inter, sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    display: block;
}

.modal-input:focus {
    border-color: #00dbe7;
    box-shadow: 0 0 0 3px rgba(0, 219, 231, 0.08);
}

.modal-input::placeholder {
    color: rgba(185, 202, 203, 0.35);
}

select.modal-input option {
    background: #181c22;
}

/* ── Success state ───────────────────────────── */
.success-msg {
    display: none;
    text-align: center;
    padding: 2rem 0;
}

.success-msg.show {
    display: block;
}

.form-fields.hidden-form {
    display: none;
}

/* ── Scrollbar ───────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0c10; }
::-webkit-scrollbar-thumb { background: #31353c; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3a494b; }
