/* Basis-Stil des Tagesplaners (D1). Verwendet nur Tokens aus tokens.css. */
@layer base {
    /* Minimales Reset (früher durch Bootstrap-Reboot geleistet, D11c) */
    *, *::before, *::after { box-sizing: border-box; }
    body { margin: 0; line-height: 1.5; -webkit-text-size-adjust: 100%; }
    h1, h2, h3, h4, h5, h6 { margin-top: 0; margin-bottom: var(--tp-space-2); line-height: 1.2; }
    p, ul, ol, dl { margin-top: 0; margin-bottom: var(--tp-space-3); }
    table { border-collapse: collapse; }
    img, svg { vertical-align: middle; }
    button, input, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; }
    a { color: var(--tp-color-primary); }
    :where(:root[data-input="mouse"]) a:hover { color: var(--tp-color-primary-hover); }
    [hidden] { display: none !important; }

    html,
    body,
    #app {
        height: 100dvh;
    }

    body {
        background-color: var(--tp-color-background);
        color: var(--tp-color-text);
        font-family: var(--tp-font-family);
        font-feature-settings: var(--tp-font-features);
    }

    /* V6: Überschriften erhalten den Fokus nur per Programm (FocusOnNavigate, tabindex -1); dafür kein Ring. */
    h1[tabindex="-1"]:focus, h1[tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }

    :focus-visible {
        outline: none;
        box-shadow: var(--tp-focus-ring);
        border-radius: var(--tp-radius-sm);
    }
}

/* Absichtlich ohne Ebene: !important in einer Ebene gewänne gegen !important ohne Ebene (Senioren-Client). Wie bisher soll dort die Ladereihenfolge entscheiden. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
