/* =========================================================
   NEXT LEVEL STUDIOS — DESIGN-SYSTEM DER WEBSITE
   Gleiches Design wie das NLS Technology Portal (login.nextlvlstudios.de):
   Markenfarben aus dem Logo (Schwarz auf Creme, dunkel umgekehrt),
   Aurora-Hintergrund, Liquid Glass mit Lichtkante, Hausschrift „Null“,
   Navigation als Glas-Leiste – auf dem Handy als Tab-Leiste unten.
   Regeln: Desktop ≥ 1025 px · iPad 701–1024 px · Handy ≤ 700 px,
   Tippflächen ≥ 44 px, nichts breiter als der Bildschirm.
   ========================================================= */

:root {
    --brand: #171616;
    --on-brand: #FEF8F8;
    --brand-rgb: 23, 22, 22;
    /* Frühere Akzentfarben zeigen jetzt auf die Markenfarben (alte Seiten-Styles bleiben stimmig) */
    --accent-blue: var(--brand);
    --accent-indigo: #4A4240;
    --accent-teal: #6B5B4D;
    --accent-orange: #FF9F0A;
    --accent-red: #FF453A;
    --accent-green: #30D158;

    --radius-xl: 36px;
    --radius-lg: 28px;
    --radius-md: 22px;
    --radius-sm: 14px;
    --border-radius-lg: var(--radius-lg);
    --border-radius-md: var(--radius-md);
    --border-radius-sm: var(--radius-sm);

    --bg-base: #FEF8F8;
    --bg-base-2: #F6EFED;
    --glass-surface: rgba(254, 248, 248, 0.55);
    --glass-surface-strong: rgba(254, 248, 248, 0.72);
    --glass-border: rgba(254, 248, 248, 0.8);
    --glass-rim: rgba(255, 255, 255, 0.95);
    --glass-rim-soft: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 20px 60px rgba(23, 22, 22, 0.12);
    --hover: rgba(120, 130, 160, 0.12);
    --text-main: #171616;
    --text-muted: rgba(23, 22, 22, 0.78);   /* Kontrast: erfüllt WCAG AA auf Creme */
    --text-faint: rgba(23, 22, 22, 0.42);
    --divider: rgba(23, 22, 22, 0.08);
    --nav-bg: var(--glass-surface);

    --warning-color: #FF9F0A;
    --warning-bg: rgba(255, 159, 10, 0.16);
    --warning-text-title: #8a5300;
    --warning-text-desc: rgba(23, 22, 22, 0.75);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --brand: #FEF8F8;
        --on-brand: #171616;
        --brand-rgb: 254, 248, 248;
        --accent-indigo: #D9CFCB;
        --accent-teal: #A08670;
        --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-rim: rgba(255, 255, 255, 0.35);
        --glass-rim-soft: rgba(255, 255, 255, 0.06);
        --glass-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        --hover: rgba(254, 248, 248, 0.08);
        --text-main: #FEF8F8;
        --text-muted: rgba(254, 248, 248, 0.80);  /* Kontrast: erfüllt WCAG AA auf Schwarz */
        --text-faint: rgba(254, 248, 248, 0.42);
        --divider: rgba(254, 248, 248, 0.1);
        --warning-bg: rgba(255, 159, 10, 0.2);
        --warning-text-title: #ffc15c;
        --warning-text-desc: rgba(254, 248, 248, 0.8);
        color-scheme: dark;
    }
    .blob-1, .blob-2 { opacity: 0.10; }
    .blob-3 { opacity: 0.14; }
    .blob-4 { opacity: 0.08; }
}

@font-face {
    font-family: 'Null';
    src: url('/assets/fonts/null-normal.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    /* Nur Buchstaben, Ziffern und Umlaute aus „Null“ – Satzzeichen (, ? ! ’) fehlen dort und kommen aus der Systemschrift */
    unicode-range: U+0020, U+0030-0039, U+0041-005A, U+0061-007A, U+00C0-00FF;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-base);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--text-main); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
::selection { background: rgba(var(--brand-rgb), 0.18); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(150, 150, 150, 0.3); border-radius: 10px; }

/* ======================= AURORA ======================= */
.aurora-wrap {
    position: fixed; inset: 0; z-index: -1; overflow: hidden;
    background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-base-2) 100%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(95px); opacity: 0.22; will-change: transform; }
.blob-1 { width: 620px; height: 620px; background: var(--brand); opacity: 0.07; top: -160px; left: -120px; animation: drift1 26s ease-in-out infinite; }
.blob-2 { width: 560px; height: 560px; background: #6B5B4D; opacity: 0.12; top: 10%; right: -180px; animation: drift2 32s ease-in-out infinite; }
.blob-3 { width: 480px; height: 480px; background: var(--brand); bottom: -140px; left: 8%; opacity: 0.06; animation: drift3 30s ease-in-out infinite; }
.blob-4 { width: 400px; height: 400px; background: #A08670; bottom: -60px; right: 10%; opacity: 0.10; 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); } }

/* ======================= LIQUID GLASS ======================= */
.glass,
.feature-card, .project-card, .news-item, .doc-card, .cta-panel, .app-tile, .quick-link {
    position: relative; isolation: isolate;
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(28px) saturate(175%);
    backdrop-filter: blur(28px) saturate(175%);
    box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-rim-soft);
}
/* Lichtkante: heller Rand oben links, weich auslaufend – wie iOS Liquid Glass */
.glass::before,
.feature-card::before, .project-card::before, .news-item::before, .doc-card::before, .cta-panel::before, .app-tile::before, .quick-link::before {
    content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px;
    background: linear-gradient(145deg, var(--glass-rim), transparent 32%, transparent 68%, var(--glass-rim-soft));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    pointer-events: none;
}

/* ======================= TYPO ======================= */
.wordmark, .portfolio-brand {
    font-family: 'Null', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 22px; font-weight: 400; letter-spacing: 0.01em;
    color: var(--text-main); text-decoration: none; white-space: nowrap;
}
.kicker {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 50px;
    background: var(--glass-surface); border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; color: var(--text-muted);
    margin-bottom: 22px;
}
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-green); box-shadow: 0 0 10px var(--accent-green); }
h1.headline {
    font-family: 'Null', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(40px, 7vw, 78px);
    font-weight: 400; letter-spacing: 0; line-height: 1.02;
    margin: 0 0 20px; color: var(--text-main);
}
header.hero.compact h1.headline { font-size: clamp(34px, 5.6vw, 54px); margin-bottom: 14px; }
.section-kicker { font-size: 12.5px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; text-align: center; }
.section-title {
    font-family: 'Null', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(28px, 4.4vw, 42px); font-weight: 400; letter-spacing: 0; line-height: 1.08;
    text-align: center; margin: 0 0 16px;
}
.section-sub { text-align: center; color: var(--text-muted); font-size: 16.5px; max-width: 600px; margin: 0 auto 46px; line-height: 1.6; }
.muted { color: var(--text-muted); }

/* ======================= NAVIGATION ======================= */
.topnav-wrap { position: sticky; top: 0; z-index: 50; padding: 14px 16px 0; }
.topnav {
    max-width: 1120px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 8px 8px 8px 22px; border-radius: 50px;
}
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a, .tabbar a { color: var(--text-main); text-decoration: none; }
.nav-links a {
    position: relative; display: inline-flex; align-items: center; gap: 7px;
    font-weight: 600; font-size: 14.5px; padding: 9px 16px; border-radius: 22px; white-space: nowrap;
    transition: background .2s;
}
.nav-links a svg { width: 18px; height: 18px; flex: none; }
.nav-links a:hover { background: var(--hover); }
.nav-links a.active { background: var(--brand); color: var(--on-brand); box-shadow: 0 4px 15px rgba(23,22,22,0.25); }
.nav-user { display: flex; align-items: center; gap: 6px; }
.nav-login { padding: 9px 18px; font-size: 14px; }
.avatar {
    width: 38px; height: 38px; border-radius: 50%; flex: none; overflow: hidden;
    display: grid; place-items: center; text-decoration: none;
    font-size: 14px; font-weight: 700; color: var(--on-brand); background: var(--brand);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-hello { font-size: 14px; font-weight: 650; color: var(--text-main); text-decoration: none; padding: 0 4px 0 8px; white-space: nowrap; }
.tabbar { display: none; }

/* ======================= BUTTONS ======================= */
.btn {
    appearance: none; border: none; cursor: pointer; text-decoration: none !important;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: inherit; font-size: 15.5px; font-weight: 700; line-height: 1.2;
    padding: 14px 24px; border-radius: 50px;
    transition: transform 0.25s cubic-bezier(.25,.8,.25,1), box-shadow 0.25s ease, background 0.2s ease, opacity 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-primary { color: var(--on-brand) !important; background: var(--brand); box-shadow: 0 12px 30px rgba(23,22,22,0.28), inset 0 1px 0 rgba(255,255,255,0.18); }
.btn-primary:hover { box-shadow: 0 16px 38px rgba(23,22,22,0.38), inset 0 1px 0 rgba(255,255,255,0.18); transform: translateY(-1px); }
.btn-glass {
    color: var(--text-main) !important; background: var(--glass-surface-strong);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: 0 8px 24px rgba(23,22,22,0.08), inset 0 1px 0 var(--glass-rim-soft);
}
.btn-glass:hover { background: var(--glass-surface); transform: translateY(-1px); }

/* ======================= HERO ======================= */
header.hero { position: relative; padding: 80px 24px 70px; display: flex; flex-direction: column; align-items: center; text-align: center; }
header.hero.compact { padding: 60px 24px 30px; }
.hero p.sub { max-width: 600px; font-size: 18px; line-height: 1.6; color: var(--text-muted); margin: 0 0 30px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; }
header.hero:not(.compact) .hero-ctas { margin-bottom: 30px; }
.hero > * { animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
.hero > *:nth-child(2) { animation-delay: .08s; }
.hero > *:nth-child(3) { animation-delay: .16s; }
.hero > *:nth-child(4) { animation-delay: .24s; }
.hero > *:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ======================= SECTIONS ======================= */
section { position: relative; padding: 70px 24px; max-width: 1120px; margin: 0 auto; }
section.narrow { max-width: 820px; }
section.tight-top { padding-top: 20px; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ======================= KARTEN ======================= */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.feature-card {
    padding: 26px; border-radius: var(--radius-md); text-align: left;
    transition: transform 0.35s cubic-bezier(.25,.8,.25,1), box-shadow 0.35s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 26px 60px rgba(23,22,22,0.18), inset 0 1px 0 var(--glass-rim-soft); }
.feature-card.centered { text-align: center; }
.icon-badge {
    width: 46px; height: 46px; border-radius: 13px; margin-bottom: 16px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 22px; box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
}
.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, #171616, #4A4240); }
.bg-indigo { background: linear-gradient(135deg, #4A4240, #6E6460); }
.bg-teal { background: linear-gradient(135deg, #6B5B4D, #8A7B70); }
.bg-orange { background: linear-gradient(135deg, var(--accent-orange), #ffbf5c); }
.bg-red { background: linear-gradient(135deg, var(--accent-red), #ff7a70); }
.bg-green { background: linear-gradient(135deg, var(--accent-green), #6be38a); }
.bg-dark { background: linear-gradient(135deg, #3a3634, #171616); }
@media (prefers-color-scheme: dark) {
    .bg-blue { background: linear-gradient(135deg, #4A4240, #6E6460); }
    .bg-indigo { background: linear-gradient(135deg, #5A5250, #7A706C); }
}

.project-card {
    display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius-md); text-align: left;
    transition: transform 0.3s cubic-bezier(.25,.8,.25,1), box-shadow .3s ease;
}
.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; }
.project-card .btn { align-self: flex-start; margin-top: 6px; padding: 10px 20px; font-size: 14px; }

/* App-Raster (Startseite, wie „Deine Apps“ im Portal) */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.app-tile {
    display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
    padding: 22px; border-radius: var(--radius-md); color: var(--text-main); text-decoration: none;
    transition: transform .35s cubic-bezier(.25,.8,.25,1), box-shadow .35s ease;
}
.app-tile:hover { transform: translateY(-5px); box-shadow: 0 26px 60px rgba(23,22,22,0.18), inset 0 1px 0 var(--glass-rim-soft); }
.app-tile img, .app-tile .app-glyph { width: 66px; height: 66px; border-radius: 16px; margin-bottom: 14px; box-shadow: 0 8px 20px rgba(23,22,22,0.16); transition: transform .35s cubic-bezier(.25,.8,.25,1); object-fit: cover; }
.app-tile .app-glyph { display: grid; place-items: center; font-size: 30px; color: #fff; }
.app-tile:hover img, .app-tile:hover .app-glyph { transform: scale(1.06) rotate(-2deg); }
.app-tile strong { font-size: 16px; }
.app-tile span { font-size: 13.5px; color: var(--text-muted); line-height: 1.45; }
.app-tile .tag { font-style: normal; margin-top: 10px; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: rgba(var(--brand-rgb), .08); color: var(--text-muted); }

/* Schnellzugriffe (wie im Portal) */
.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.quick-link { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius-md); color: var(--text-main); text-decoration: none; transition: transform .3s cubic-bezier(.25,.8,.25,1); }
.quick-link:hover { transform: translateY(-3px); }
.quick-link .tile { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.quick-link .tile svg { width: 21px; height: 21px; }
.quick-link strong { display: block; font-size: 15.5px; }
.quick-link small { display: block; color: var(--text-muted); font-size: 13px; }

/* ======================= STATUS / HINWEIS ======================= */
.alert-banner {
    background: var(--warning-bg); border-radius: var(--radius-md); padding: 20px 24px;
    display: flex; align-items: center; gap: 18px; margin-bottom: 40px; border: 1px solid rgba(255,159,10,.25);
}
.alert-banner .icon { font-size: 28px; flex-shrink: 0; }
.alert-banner h3 { font-size: 16.5px; margin: 0 0 4px; color: var(--warning-text-title); }
.alert-banner p { font-size: 14.5px; margin: 0; color: var(--warning-text-desc); line-height: 1.6; }

/* ======================= SCHRITTE ======================= */
.steps-list { display: flex; flex-direction: column; gap: 26px; max-width: 700px; margin: 0 auto; }
.step-item { display: flex; align-items: flex-start; gap: 18px; text-align: left; }
.step-number {
    background: var(--brand); color: var(--on-brand); 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(23,22,22,0.25);
}
.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: 99px; font-weight: 600; font-size: 13.5px; transition: all 0.2s ease;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.tech-badge:hover { background: var(--brand); color: var(--on-brand); transform: translateY(-2px); }

/* ======================= NEWS ======================= */
.news-list { display: flex; flex-direction: column; gap: 14px; max-width: 820px; margin: 0 auto; }
.news-item { border-radius: var(--radius-md); overflow: hidden; }
.news-header { padding: 18px 22px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 15px; min-height: 44px; }
.news-header:hover { background: var(--hover); }
.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: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.news-date { font-size: 12.5px; color: var(--text-muted); font-weight: 600; background: var(--glass-surface-strong); padding: 6px 12px; border-radius: 99px; white-space: nowrap; }
.news-content { display: none; padding: 18px 22px 22px; border-top: 1px solid var(--divider); 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); }

/* ======================= DOKUMENTE (Datenschutz, Support) ======================= */
.doc-card { border-radius: var(--radius-lg); padding: 44px; 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(--text-main); font-weight: 650; text-decoration: underline; text-decoration-color: rgba(var(--brand-rgb), .3); text-underline-offset: 3px; }
.doc-card a:hover { text-decoration-color: currentColor; }
.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(--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 ======================= */
.cta-panel { border-radius: 40px; padding: 56px 40px; text-align: center; overflow: hidden; max-width: 780px; margin: 0 auto; }
.app-icon-mark {
    width: 78px; height: 78px; border-radius: 22px; margin: 0 auto 22px;
    background: var(--brand); color: var(--on-brand);
    box-shadow: 0 20px 44px rgba(23,22,22,0.3);
    display: flex; align-items: center; justify-content: center; font-size: 34px;
}
.app-icon-mark svg { width: 38px; height: 38px; color: var(--on-brand); }
.cta-panel h2 { font-family: 'Null', -apple-system, sans-serif; font-weight: 400; font-size: clamp(28px, 4.4vw, 40px); margin: 0 0 14px; line-height: 1.08; }
.cta-panel p { color: var(--text-muted); font-size: 15.5px; max-width: 460px; margin: 0 auto 28px; line-height: 1.6; }
.status-chip {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 7px 15px; 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-green); }

/* ======================= FOOTER ======================= */
footer.site-footer { padding: 50px 24px 40px; text-align: center; }
.footer-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 13px; font-weight: 600; }
.footer-links a:hover { color: var(--text-main); }
footer.site-footer .copyright { font-size: 12.5px; color: var(--text-faint); }
footer.site-footer .apple-note, footer.site-footer .ai-note { margin-top: 8px; font-size: 12px; color: var(--text-faint); }

/* ======================= TOAST ======================= */
.toast-notification {
    position: fixed; left: 50%; bottom: 28px; z-index: 200;
    transform: translate(-50%, 160%); opacity: 0;
    padding: 13px 24px; border-radius: 50px; font-size: 15px; font-weight: 650; pointer-events: none;
    color: var(--text-main); background: var(--glass-surface-strong); border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px); box-shadow: var(--glass-shadow);
    transition: transform .5s cubic-bezier(.3,1.4,.5,1), opacity .3s;
}
.toast-notification.show { transform: translate(-50%, 0); opacity: 1; }

/* ======================= RESPONSIVE ======================= */
/* iPad & kleine Laptops */
@media (max-width: 1024px) {
    section { padding: 56px 20px; }
    .nav-links a { padding: 9px 13px; }
    .nav-hello { display: none; }
}
/* iPad hochkant: Navigation nur mit Symbolen */
@media (max-width: 900px) and (min-width: 701px) {
    .nav-links a span { display: none; }
    .nav-links a { padding: 10px 14px; }
}
/* Handy: Tab-Leiste unten (wie iOS), oben nur Marke + Konto */
@media (max-width: 700px) {
    body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
    .topnav-wrap { padding: calc(8px + env(safe-area-inset-top)) 12px 0; }
    .topnav { padding: 6px 6px 6px 18px; border-radius: 26px; }
    .wordmark { font-size: 19px; }
    .topnav .nav-links { display: none; }
    .nav-login { display: none; }            /* „Anmelden“ steckt auf dem Handy in der Tab-Leiste */
    .topnav { min-height: 50px; }
    .tabbar {
        position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
        display: flex; justify-content: space-around; padding: 6px; border-radius: 28px;
        background: var(--glass-surface-strong); border: 1px solid var(--glass-border);
        -webkit-backdrop-filter: blur(28px) saturate(175%); backdrop-filter: blur(28px) saturate(175%);
        box-shadow: var(--glass-shadow);
    }
    .tabbar a {
        position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
        padding: 7px 2px; min-height: 50px; border-radius: 20px; font-size: 11px; font-weight: 650;
    }
    .tabbar a svg { width: 22px; height: 22px; }
    .tabbar a.active { background: var(--brand); color: var(--on-brand); }
    header.hero { padding: 44px 18px 40px; }
    header.hero.compact { padding: 36px 18px 18px; }
    .hero p.sub { font-size: 16px; }
    .hero-ctas { width: 100%; }
    .hero-ctas .btn { flex: 1 1 100%; }
    section { padding: 44px 16px; }
    .section-sub { font-size: 15.5px; margin-bottom: 30px; }
    .app-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .app-tile { padding: 16px; }
    .app-tile img, .app-tile .app-glyph { width: 54px; height: 54px; border-radius: 13px; }
    .quick-links { grid-template-columns: 1fr; gap: 10px; }
    .doc-card { padding: 26px 20px; border-radius: 26px; }
    .cta-panel { padding: 40px 22px; border-radius: 30px; }
    .alert-banner { flex-direction: column; align-items: flex-start; }
    .toast-notification { bottom: calc(96px + env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); text-align: center; }
    .news-header { padding: 16px 18px; }
    .news-date { display: none; }
}
@media (pointer: coarse) {
    .btn { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    .blob { animation: none; }
    .hero > * { animation: none; }
    .reveal { opacity: 1; transform: none; }
    * { transition-duration: 0.01ms !important; }
}

/* =========================================================
   EXTRAS – Bewegung & Tiefe (nur wo es sich gut anfühlt)
   ========================================================= */

/* Lesefortschritt unter der Navigation */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 70; transform-origin: 0 50%; transform: scaleX(0);
    background: linear-gradient(90deg, var(--brand), #A08670); pointer-events: none; }

/* Hero: Überschrift Wort für Wort */
.headline .w { display: inline-block; white-space: pre; animation: wordRise .9s cubic-bezier(.16,1,.3,1) both; }
@keyframes wordRise { from { opacity: 0; transform: translateY(.45em) rotateX(-50deg); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
.headline .w.hl { background: linear-gradient(110deg, var(--text-main) 0%, #A08670 55%, var(--text-main) 100%); background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent; animation: wordRise .9s cubic-bezier(.16,1,.3,1) both, sheen 7s ease-in-out 1.2s infinite; }
@keyframes sheen { 0%,100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }

/* Hero: schwebende App-Symbole rundherum (folgen leicht der Maus) */
.hero-orbit { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.hero-orbit img {
    position: absolute; width: 74px; height: 74px; border-radius: 18px;
    box-shadow: 0 18px 40px rgba(23,22,22,.2), 0 0 0 1px rgba(255,255,255,.4);
    transform: translate(var(--px, 0), var(--py, 0)); transition: transform .6s cubic-bezier(.2,.8,.2,1);
    animation: orbitIn 1s cubic-bezier(.2,1.4,.4,1) both;
}
.hero-orbit img > * { pointer-events: none; }
.hero-orbit .o { position: absolute; animation: bob 7s ease-in-out infinite; }
.hero-orbit .o:nth-child(2n) { animation-duration: 8.5s; animation-delay: -2s; }
.hero-orbit .o:nth-child(3n) { animation-duration: 6.4s; animation-delay: -4s; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-16px) rotate(4deg); } }
@keyframes orbitIn { from { opacity: 0; transform: scale(.3); } to { opacity: 1; } }
.hero-orbit .o1 { top: 8%; left: 6%; } .hero-orbit .o2 { top: 44%; left: 2%; } .hero-orbit .o3 { bottom: 6%; left: 12%; }
.hero-orbit .o4 { top: 6%; right: 7%; } .hero-orbit .o5 { top: 42%; right: 2%; } .hero-orbit .o6 { bottom: 4%; right: 13%; }
.hero-orbit .o2 img, .hero-orbit .o5 img { width: 58px; height: 58px; border-radius: 15px; opacity: .85; }
.hero-orbit .o3 img, .hero-orbit .o6 img { width: 64px; height: 64px; }
@media (max-width: 1100px) { .hero-orbit .o2, .hero-orbit .o5 { display: none; } }
@media (max-width: 700px) { .hero-orbit { display: none; } }

/* Lichtkegel, der der Maus über Glas-Karten folgt */
.spot { background-image: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(255,255,255,.28), transparent 42%); }
@media (prefers-color-scheme: dark) { .spot { background-image: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(255,255,255,.07), transparent 42%); } }
.tilt { transform-style: preserve-3d; will-change: transform; }

/* Zahlen-Band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { text-align: center; padding: 22px 12px; border-radius: var(--radius-md); }
.stat b { display: block; font-family: 'Null', -apple-system, sans-serif; font-weight: 400; font-size: clamp(38px, 5vw, 60px); line-height: 1; }
.stat span { display: block; margin-top: 8px; font-size: 13.5px; font-weight: 650; color: var(--text-muted); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Laufband mit Technologien */
.marquee { overflow: hidden; padding: 6px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .tech-badge { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.marquee .tech-badge img { width: 22px; height: 22px; border-radius: 6px; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
    .headline .w, .hero-orbit .o, .hero-orbit img, .marquee-track { animation: none !important; }
}

/* App-Seiten: Handy-Mockup ist höher als die Bühne (546 px vs. 480 px) und ragte oben in die Buttons */
header.hero .device-stage { height: auto !important; min-height: 480px; align-items: center !important; margin-top: 24px; }
header.hero .device-stage .phone { flex: none; }
