/* =========================================================
   NLS STUDIOS — SHARED DESIGN SYSTEM
   Basiert auf dem MeinAlltag-Look (Aurora + Liquid Glass).
   Wird von allen Seiten der Website eingebunden.
   ========================================================= */

:root {
    --accent-blue: #0A84FF;
    --accent-indigo: #5E5CE6;
    --accent-teal: #30D5C8;
    --accent-orange: #FF9F0A;
    --accent-red: #FF453A;

    --border-radius-lg: 32px;
    --border-radius-md: 22px;
    --border-radius-sm: 14px;

    /* NLS Studios Brand */
    --bg-base: #FEF8F8;
    --bg-base-2: #F6EFED;
    --glass-surface: rgba(254, 248, 248, 0.55);
    --glass-surface-strong: rgba(254, 248, 248, 0.7);
    --glass-border: rgba(254, 248, 248, 0.8);
    --glass-shadow: 0 20px 60px rgba(23, 22, 22, 0.14);
    --text-main: #171616;
    --text-muted: rgba(23, 22, 22, 0.66);
    --text-faint: rgba(23, 22, 22, 0.42);
    --nav-bg: rgba(254, 248, 248, 0.55);
    --divider: rgba(23, 22, 22, 0.08);

    /* Warnfarben (z.B. Status-Hinweise) */
    --warning-color: #f39c12;
    --warning-bg: rgba(243, 156, 18, 0.15);
    --warning-text-title: #8a6d3b;
    --warning-text-desc: #66512c;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-base: #171616;
        --bg-base-2: #0E0D0D;
        --glass-surface: rgba(254, 248, 248, 0.06);
        --glass-surface-strong: rgba(254, 248, 248, 0.1);
        --glass-border: rgba(254, 248, 248, 0.14);
        --glass-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        --text-main: #FEF8F8;
        --text-muted: rgba(254, 248, 248, 0.68);
        --text-faint: rgba(254, 248, 248, 0.42);
        --nav-bg: rgba(23, 22, 22, 0.55);
        --divider: rgba(254, 248, 248, 0.1);

        --warning-bg: rgba(243, 156, 18, 0.2);
        --warning-text-title: #f39c12;
        --warning-text-desc: rgba(254, 248, 248, 0.8);
    }
    ::-webkit-scrollbar-thumb { background: rgba(254, 248, 248, 0.2); }

    /* Im Dunkelmodus duerfen die Aurora-Farben kraeftiger leuchten */
    .blob-1, .blob-2 { opacity: 0.46; }
    .blob-3 { opacity: 0.4; }
    .blob-4 { opacity: 0.24; }
}

@font-face {
    font-family: 'Null';
    src: url('/assets/fonts/Null-Normal.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-base);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(150, 150, 150, 0.3); border-radius: 10px; }

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 4px;
}

/* ======================= AURORA HINTERGRUND ======================= */
.aurora-wrap {
    position: fixed; inset: 0; z-index: -1; overflow: hidden;
    background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-base-2) 100%);
}
/* Im Hellmodus bewusst sehr dezent (nur ein leichter Farbhauch), im Dunkelmodus etwas
   praesenter - siehe @media (prefers-color-scheme: dark) Override unten. */
.blob { position: absolute; border-radius: 50%; filter: blur(95px); opacity: 0.16; will-change: transform; }
.blob-1 { width: 620px; height: 620px; background: var(--accent-indigo); top: -160px; left: -120px; animation: drift1 26s ease-in-out infinite; }
.blob-2 { width: 560px; height: 560px; background: var(--accent-blue); top: 10%; right: -180px; animation: drift2 32s ease-in-out infinite; }
.blob-3 { width: 480px; height: 480px; background: var(--accent-teal); bottom: -140px; left: 8%; opacity: 0.13; animation: drift3 30s ease-in-out infinite; }
.blob-4 { width: 400px; height: 400px; background: var(--accent-orange); bottom: -60px; right: 10%; opacity: 0.09; animation: drift1 24s ease-in-out infinite reverse; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,80px) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-70px,60px) scale(0.92); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(50px,-50px) scale(1.08); } }

/* ======================= NAV ======================= */
#mainNav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; flex-direction: column;
    padding: 16px 32px;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.4s ease, border-color 0.4s ease;
}
#mainNav.scrolled { background: var(--nav-bg); border-bottom: 1px solid var(--divider); }
.header-top { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.portfolio-brand { font-family: 'Null', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 23px; font-weight: 400; letter-spacing: 0.01em; color: var(--text-main); text-decoration: none; }
.portfolio-toggle { display: none; background: none; border: none; color: var(--text-main); font-size: 26px; cursor: pointer; padding: 4px; line-height: 1; }
.portfolio-links { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; width: 100%; }
.portfolio-links a {
    text-decoration: none; color: var(--text-main); font-weight: 600; font-size: 14.5px;
    padding: 9px 16px; border-radius: 20px; transition: all 0.2s ease;
}
.portfolio-links a:hover { background: rgba(120,130,160,0.14); }
.portfolio-links a.active {
    background: var(--accent-indigo); color: #fff !important;
    box-shadow: 0 4px 15px rgba(94,92,230,0.35);
}
@media (min-width: 901px) {
    #mainNav { flex-direction: row; justify-content: space-between; align-items: center; }
    .header-top { width: auto; }
    .portfolio-links { width: auto; margin: 0 20px; }
}
@media (max-width: 900px) {
    .portfolio-toggle { display: block; }
    .portfolio-links {
        display: none; flex-direction: column; margin-top: 15px; padding-top: 15px;
        border-top: 1px solid var(--divider); gap: 10px;
    }
    .portfolio-links.open { display: flex; animation: navSlideDown 0.3s ease forwards; }
    .portfolio-links a { width: 100%; padding: 12px; }
}
@keyframes navSlideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ======================= HERO ======================= */
header.hero {
    position: relative;
    padding: 170px 24px 100px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
header.hero.compact { padding: 150px 24px 60px; }
.kicker {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 16px; border-radius: 50px;
    background: var(--glass-surface); border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: var(--text-muted);
    margin-bottom: 26px;
    box-shadow: var(--glass-shadow);
}
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-teal); box-shadow: 0 0 10px var(--accent-teal); }
h1.headline {
    font-size: clamp(38px, 7vw, 76px);
    font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
    margin: 0 0 20px;
    background: linear-gradient(120deg, var(--text-main) 20%, var(--accent-indigo) 55%, var(--accent-blue) 80%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
header.hero.compact h1.headline { font-size: clamp(30px, 5vw, 48px); margin-bottom: 14px; }
.hero p.sub {
    max-width: 580px; font-size: 18px; line-height: 1.6; color: var(--text-muted);
    margin: 0 0 30px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; }
header.hero:not(.compact) .hero-ctas { margin-bottom: 90px; }
.btn {
    appearance: none; border: none; cursor: pointer; text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
    font-family: inherit; font-size: 15.5px; font-weight: 700;
    padding: 15px 26px; border-radius: 50px;
    transition: transform 0.25s cubic-bezier(.25,.8,.25,1), box-shadow 0.25s ease, opacity 0.2s ease;
}
.btn:active { transform: scale(0.96); opacity: 0.85; }
.btn-primary {
    color: #fff; background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
    box-shadow: 0 14px 34px rgba(10,132,255,0.38);
}
.btn-primary:hover { box-shadow: 0 18px 42px rgba(10,132,255,0.5); transform: translateY(-2px); }
.btn-glass {
    color: var(--text-main); background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--glass-shadow);
}
.btn-glass:hover { background: var(--glass-surface-strong); transform: translateY(-2px); }

/* ======================= SECTIONS ======================= */
section { position: relative; padding: 90px 24px; max-width: 1120px; margin: 0 auto; }
section.narrow { max-width: 820px; }
section.tight-top { padding-top: 20px; }
.section-kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-indigo); margin-bottom: 12px; text-align: center; }
.section-title { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -0.02em; text-align: center; margin: 0 0 16px; }
.section-sub { text-align: center; color: var(--text-muted); font-size: 17px; max-width: 580px; margin: 0 auto 50px; line-height: 1.6; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ======================= FEATURE / INFO GRID ======================= */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.feature-card {
    padding: 26px; border-radius: var(--border-radius-md);
    background: var(--glass-surface); border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--glass-shadow);
    transition: transform 0.35s cubic-bezier(.25,.8,.25,1), box-shadow 0.35s ease;
    text-align: left;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(23,22,22,0.2); }
.feature-card.centered { text-align: center; }
.icon-badge {
    width: 46px; height: 46px; border-radius: 14px; margin-bottom: 16px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 22px;
}
.feature-card.centered .icon-badge { margin-left: auto; margin-right: auto; }
.icon-badge svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 17px; margin: 0 0 8px; letter-spacing: -0.01em; }
.feature-card p { font-size: 14.5px; line-height: 1.6; color: var(--text-muted); margin: 0; }
.bg-blue { background: linear-gradient(135deg, var(--accent-blue), #4fb2ff); }
.bg-indigo { background: linear-gradient(135deg, var(--accent-indigo), #8a89ff); }
.bg-teal { background: linear-gradient(135deg, var(--accent-teal), #55e8d6); }
.bg-orange { background: linear-gradient(135deg, var(--accent-orange), #ffbf5c); }
.bg-red { background: linear-gradient(135deg, var(--accent-red), #ff7a70); }
.bg-dark { background: linear-gradient(135deg, #3a3f4d, #1a1d24); }

/* ======================= STATUS / ALERT BANNER ======================= */
.alert-banner {
    background: var(--warning-bg);
    border-left: 6px solid var(--warning-color);
    border-radius: var(--border-radius-md);
    padding: 22px 26px;
    display: flex; align-items: center; gap: 20px;
    margin-bottom: 40px;
}
.alert-banner .icon { font-size: 30px; flex-shrink: 0; }
.alert-banner h3 { font-size: 17px; margin: 0 0 5px; color: var(--warning-text-title); }
.alert-banner p { font-size: 14.5px; margin: 0; color: var(--warning-text-desc); line-height: 1.6; }

/* ======================= STEPS / TIMELINE ======================= */
.steps-list { display: flex; flex-direction: column; gap: 30px; max-width: 700px; margin: 0 auto; }
.step-item { display: flex; align-items: flex-start; gap: 20px; text-align: left; }
.step-number {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
    color: white; width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 17px; flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(10,132,255,0.35);
}
.step-item h3 { margin: 0 0 6px; font-size: 17px; }
.step-item p { margin: 0; font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }

/* ======================= BADGES ======================= */
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.tech-badge {
    background: var(--glass-surface); border: 1px solid var(--glass-border);
    color: var(--text-main); padding: 9px 18px; border-radius: 12px;
    font-weight: 600; font-size: 13.5px; transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}
.tech-badge:hover { background: var(--accent-blue); color: #fff; transform: translateY(-2px); }

/* ======================= NEWS ACCORDION ======================= */
.news-list { display: flex; flex-direction: column; gap: 14px; max-width: 820px; margin: 0 auto; }
.news-item {
    border-radius: var(--border-radius-md); overflow: hidden;
    background: var(--glass-surface); border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--glass-shadow);
}
.news-header { padding: 20px 25px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.news-title-area h4 { font-size: 16.5px; margin: 0 0 5px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--text-main); }
.news-title-area p { font-size: 13.5px; margin: 0; color: var(--text-muted); }
.news-badge { background: var(--accent-red); color: white; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: bold; }
.news-date { font-size: 12.5px; color: var(--text-muted); font-weight: 600; background: var(--glass-surface-strong); padding: 6px 12px; border-radius: 12px; white-space: nowrap; }
.news-content { display: none; padding: 0 25px 22px; border-top: 1px solid var(--divider); margin-top: 2px; padding-top: 18px; color: var(--text-main); }
.news-content ul { margin-left: 20px; }
.news-content li { margin-bottom: 8px; color: var(--text-muted); }
.news-content p { color: var(--text-muted); margin: 0 0 12px; }
.news-content strong { color: var(--text-main); }

/* ======================= LEGAL / SUPPORT DOCUMENT CARD ======================= */
.doc-card {
    border-radius: var(--border-radius-lg); padding: 44px;
    background: var(--glass-surface); border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--glass-shadow);
    max-width: 780px; margin: 0 auto; text-align: left;
}
.doc-card h2 { font-size: 24px; margin: 0 0 6px; }
.doc-card .doc-meta { font-size: 14px; color: var(--text-muted); margin: 0 0 30px; }
.doc-card h3 { font-size: 16.5px; margin: 26px 0 8px; color: var(--text-main); }
.doc-card p { font-size: 15px; line-height: 1.75; color: var(--text-muted); margin: 0 0 14px; }
.doc-card ul { margin: 0 0 14px 20px; padding: 0; color: var(--text-muted); font-size: 15px; line-height: 1.75; }
.doc-card li { margin-bottom: 8px; }
.doc-card strong { color: var(--text-main); }
.doc-card a { color: var(--accent-blue); text-decoration: none; font-weight: 600; }
.doc-card a:hover { text-decoration: underline; }
.doc-card hr { border: 0; border-top: 1px solid var(--divider); margin: 30px 0; }
.doc-card .info-box { margin-top: 26px; padding: 18px 20px; background: var(--glass-surface-strong); border-radius: var(--border-radius-sm); border: 1px solid var(--glass-border); }
.doc-card .info-box h3 { margin-top: 0; }
.doc-card .info-box p { margin-bottom: 0; font-size: 14px; }

/* ======================= CTA PANEL ======================= */
.cta-panel {
    border-radius: 40px; padding: 60px 40px; text-align: center;
    background: linear-gradient(135deg, rgba(94,92,230,0.16), rgba(10,132,255,0.1));
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--glass-shadow);
    position: relative; overflow: hidden; max-width: 780px; margin: 0 auto;
}
.app-icon-mark {
    width: 78px; height: 78px; border-radius: 22px; margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
    box-shadow: 0 20px 44px rgba(10,132,255,0.4);
    display: flex; align-items: center; justify-content: center; font-size: 34px;
}
.app-icon-mark svg { width: 38px; height: 38px; color: #fff; }
.cta-panel h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; margin: 0 0 14px; letter-spacing: -0.02em; }
.cta-panel p { color: var(--text-muted); font-size: 15.5px; max-width: 440px; margin: 0 auto 28px; line-height: 1.6; }
.status-chip {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
    padding: 8px 16px; border-radius: 50px; background: var(--glass-surface-strong);
    border: 1px solid var(--glass-border); font-size: 13px; font-weight: 700; color: var(--text-muted);
}
.mini-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-teal); }

/* ======================= PROJECT CARD (Start-Seite) ======================= */
.project-card {
    display: flex; flex-direction: column; gap: 10px;
    padding: 24px; border-radius: var(--border-radius-md);
    background: var(--glass-surface); border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease;
    text-align: left;
}
.project-card:hover { transform: translateY(-4px); }
.project-card h3 { margin: 0; font-size: 19px; }
.project-card p { margin: 0; font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }

/* ======================= FOOTER ======================= */
footer.site-footer { padding: 60px 24px 40px; text-align: center; }
.footer-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.footer-links a:hover { color: var(--text-main); }
footer.site-footer .copyright { font-size: 13px; color: var(--text-faint); }
footer.site-footer .apple-note { margin-top: 12px; font-size: 12px; color: var(--text-faint); letter-spacing: 0.3px; }
footer.site-footer .ai-note { margin-top: 6px; font-size: 12px; color: var(--text-faint); letter-spacing: 0.2px; }

/* ======================= TOAST ======================= */
.toast-notification {
    position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%);
    background: var(--accent-blue); color: white; padding: 14px 28px;
    border-radius: 50px; font-size: 15px; font-weight: 600;
    box-shadow: 0 10px 30px rgba(10,132,255,0.4);
    transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 9999; pointer-events: none;
}
.toast-notification.show { bottom: 40px; }
