:root {
    --mg-nightblue: #1a1a2e;
    --mg-runegold: #c8a94a;
    --mg-slate: #2e2e4e;
    --mg-forest: #4a7c59;
    --mg-parchment: #f5f0e8;
    --mg-app-surface: #f3f4f8;
    --mg-app-surface-2: #e8ebf2;
    --mg-app-text: #232733;
    --mg-app-muted: #5a6170;
}

/* Unterseiten & App: Pergament + nordischer Wald, ohne Farbverlauf-Overlay */
body.page-app {
    background-color: var(--mg-parchment);
    background-image: url("assets/branding/nordic_forest_bg.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #2b2b2b;
}

/* Startseite (und starke Marketing-Fläche): volles Mathgard-Pergament + Wald */
body.page-brand-home {
    background-color: var(--mg-parchment);
    background-image:
        linear-gradient(to bottom, rgba(245, 240, 232, 0.28), rgba(245, 240, 232, 0.46)),
        url("assets/branding/nordic_forest_bg.svg");
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed, fixed;
    color: #2b2b2b;
}

header,
.header {
    background: var(--mg-nightblue);
    border-bottom: 1px solid rgba(200, 169, 74, 0.25);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.header-left:has(.header-brand) {
    flex: 1 1 38%;
    min-width: min(100%, 17rem);
}

a.header-brand-link {
    text-decoration: none;
    color: inherit;
    display: block;
    min-width: 0;
}

a.header-brand-link:focus-visible {
    outline: 2px solid var(--mg-runegold);
    outline-offset: 3px;
    border-radius: 4px;
}

.header-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    min-width: 0;
}

.header-brand h1 {
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0;
    white-space: nowrap;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
}

.header-brand h1::before {
    content: "";
    width: 4.4rem;
    height: 4.4rem;
    flex: 0 0 4.4rem;
    margin-right: 1.05rem;
    background: url("assets/branding/logo_with_bg.svg") center/cover no-repeat;
}

.header-tagline {
    margin: 0;
    padding-left: calc(4.4rem + 1.05rem);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: rgba(200, 169, 74, 0.72);
    line-height: 1.2;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .header-tagline {
        letter-spacing: 0.22em;
        font-size: 0.55rem;
        white-space: normal;
        max-width: 14rem;
    }
}

.brand-gard {
    color: var(--mg-runegold);
    margin-left: -0.06em;
}

nav a {
    color: #d7d8ec;
}

nav a:hover {
    color: var(--mg-runegold);
}

.notif-panel {
    background: #fff;
    border: 1px solid rgba(200, 169, 74, 0.22);
}

.logout-btn {
    background-color: var(--mg-slate);
    border: 1px solid rgba(200, 169, 74, 0.35);
}

.logout-btn:hover {
    background-color: #242441;
}
