/* Reset, Body, Typografie */

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; min-height: 100vh; }

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-base);
    color: var(--text-primary);
    /* Heller App-Grund mit dezentem NOA-Türkis-Schimmer oben (nicht laut). */
    background-color: var(--bg-app);
    background-image:
        radial-gradient(1200px 420px at 78% -8%, rgba(0,174,184,.10), transparent 60%),
        radial-gradient(900px 360px at 8% -4%, rgba(10,37,64,.06), transparent 55%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--text-link);
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--text-link-hover); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
h1 { font-size: var(--text-2xl); line-height: var(--leading-2xl); letter-spacing: -0.02em; }
h2 { font-size: var(--text-xl);  line-height: var(--leading-xl);  letter-spacing: -0.015em; }
h3 { font-size: var(--text-lg);  line-height: var(--leading-lg);  }
h4 { font-size: var(--text-md);  line-height: var(--leading-md);  }
h5 { font-size: var(--text-base);line-height: var(--leading-base);}
h6 { font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-semibold); color: var(--text-secondary); text-transform: uppercase; letter-spacing: .06em; }

p { margin: 0; }
small { font-size: var(--text-xs); line-height: var(--leading-xs); color: var(--text-muted); }
code, kbd, pre { font-family: var(--font-mono); font-size: var(--text-sm); }

.tabular { font-variant-numeric: tabular-nums; }

/* Skip-Link (A11y) */
.skip-link {
    position: absolute; top: -100px; left: 0;
    background: var(--bg-topbar); color: var(--text-inverse);
    padding: var(--space-2) var(--space-4);
    z-index: var(--z-toast);
    transition: top var(--dur-base) var(--ease-out);
    text-decoration: none;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { top: 0; }

/* Globale Focus-Indicators (A11y) */
:focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus);
}
button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus);
    border-radius: var(--radius-sm);
}

/* Material Symbols */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-size: 20px;
    line-height: 1;
    vertical-align: middle;
    user-select: none;
    font-variation-settings: 'opsz' 24, 'wght' 400, 'GRAD' 0, 'FILL' 0;
}

/* Markenzeichen-Wrapper (Topbar + Login) */
.brand-mark { display: inline-flex; align-items: center; line-height: 0; }
.brand-mark svg { display: block; }

/* Visually hidden (Screenreader-only) */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

/* Sanfter Auftritt für Content-Sektionen (via .reveal genutzt). */
@keyframes noa-rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes noa-sheen {
    0%   { transform: translateX(-120%); }
    60%  { transform: translateX(120%); }
    100% { transform: translateX(120%); }
}
@keyframes noa-pop {
    0%   { transform: scale(.85); opacity: 0; }
    100% { transform: scale(1);   opacity: 1; }
}
