/* Profile (D3): Dichte, Schriftgrößen und Seitenabstände je data-profile. Die Zielgröße (--tp-touch-min) hängt seit DV2 an der Eingabeart data-input (Maus 36, Touch 48), senior bleibt 64.
   Desktop ist kompakt (Mockup). Überschreibt nur Tokens, keine Farben. */
@layer tokens {
    :root,
    [data-profile="desktop"] {
        --tp-density-gap: var(--tp-space-3);
        --tp-density-pad: var(--tp-space-3);
        --tp-page-gutter: var(--tp-space-5);
        --tp-font-size-base: 0.9375rem;
        --tp-font-size-title: 1.5rem;
    }

    [data-profile="tablet"] {
        --tp-density-gap: var(--tp-space-4);
        --tp-density-pad: var(--tp-space-4);
        --tp-page-gutter: var(--tp-space-5);
        --tp-font-size-base: 1.0625rem;
        --tp-font-size-title: 1.75rem;
    }

    [data-profile="phone"] {
        --tp-density-gap: var(--tp-space-3);
        --tp-density-pad: var(--tp-space-3);
        --tp-page-gutter: var(--tp-space-4);
        --tp-font-size-base: 1rem;
        --tp-font-size-title: 1.375rem;
    }

    [data-profile="senior"] {
        --tp-density-gap: var(--tp-space-5);
        --tp-density-pad: var(--tp-space-5);
        --tp-page-gutter: var(--tp-space-6);
        --tp-font-size-base: 1.375rem;
        --tp-font-size-title: 2.25rem;
        --tp-font-family: "Atkinson Hyperlegible Next", var(--tp-font-fallback);
        --tp-font-features: normal;
    }

    /* Eingabeart (DV2): unabhängig vom Layout. Ohne Attribut (vor profile.js, Tests) gilt die kompakte Maus-Größe. */
    :root,
    [data-input="mouse"] { --tp-touch-min: 36px; }
    [data-input="touch"] { --tp-touch-min: 48px; }
    /* senior steht nach data-input: immer Touch, 64 px */
    [data-profile="senior"] { --tp-touch-min: 64px; }
}
