/* Jackie-Designsystem – Tokens für jackie agentur (Dark Mode).
   Werte aus Jackie-Gesamtpaket/01-Designsystem/jackie-tokens.css.
   Schriften selbst gehostet (keine Verbindung zu Google), Lizenzen: /lizenzen/ */

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Space Grotesk";
    src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --bg: #0E0F12;
    --surface: #16181C;
    --surface-raised: #1E2126;
    --border: #2B2F36;
    --border-strong: #3D424A;
    --text: #F3F2EF;
    --text-muted: #A6AAB1;
    --text-subtle: #80858D;
    --brand: #E5352B;
    --brand-action: #E5352B;
    --brand-text: #F05A50;
    --brand-soft: #3A1A18;
    --on-brand: #FFFFFF;
    --focus: #F3F2EF;
    --success: #3DBE7E;
    --success-soft: #12301F;
    --warning: #E8A33D;
    --warning-soft: #33270F;
    --info: #8FB0D6;
    --info-soft: #18222F;
    --error: #FF6B5E;
    --error-soft: #3A1714;

    --font-display: "Space Grotesk", system-ui, sans-serif;
    --font-sans: Inter, system-ui, sans-serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-pill: 999px;

    /* Fenster der Rechtstexte: 15 % Transparenz */
    --win-alpha: 0.85;
}

/* ---------- Jackie-Tooltip (projektweiter Standard, Verhalten: js/tipp.js) ----------
   Dunkle, leicht angehobene Fläche wie Fenster und Menüs, feine Kontur, rote Akzentlinie oben (wie die Fenster-Titelleiste),
   Inter 13 px, max. 300 px breit, Pfeil zum Element. Erscheint weich (120 ms), bei „weniger Bewegung“ ohne Animation. */
.ja-tipp {
    position: fixed; z-index: 2147483000; max-width: min(300px, calc(100vw - 16px)); padding: 7px 11px 8px;
    background: color-mix(in srgb, #1E2126 96%, transparent); color: #F3F2EF;
    border: 1px solid #3D424A; border-top: 2px solid #E5352B; border-radius: 8px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .35);
    font: 500 13px/1.45 Inter, system-ui, sans-serif; letter-spacing: .005em; text-align: left;
    white-space: pre-line; overflow-wrap: anywhere; pointer-events: none;
    opacity: 0; transform: translateY(3px); transition: opacity .12s ease, transform .12s ease;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ja-tipp.unten { transform: translateY(-3px); }
.ja-tipp.an { opacity: 1; transform: none; }
.ja-tipp[hidden] { display: none; }
.ja-tipp-pfeil { position: absolute; left: var(--pfeil-x, 50%); bottom: -6px; width: 10px; height: 10px; margin-left: -5px; transform: rotate(45deg);
    background: #1E2126; border-right: 1px solid #3D424A; border-bottom: 1px solid #3D424A; }
.ja-tipp.unten .ja-tipp-pfeil { top: -7px; bottom: auto; border: 0; border-left: 2px solid #E5352B; border-top: 2px solid #E5352B; }
@media (prefers-reduced-motion: reduce) { .ja-tipp, .ja-tipp.unten { transition: none; transform: none; } }
@media print { .ja-tipp { display: none !important; } }
/* Wert am Schieberegler (projektweit, js/tipp.js): beim Schieben am Mauszeiger */
.ja-schieber-wert { position: fixed; z-index: 2147483001; padding: 3px 9px 4px; border-radius: 7px; pointer-events: none;
    background: #1E2126; color: #F3F2EF; border: 1px solid #3D424A; border-top: 2px solid #E5352B; box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
    font: 600 13px/1.3 Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; opacity: 0; transition: opacity .1s ease; }
.ja-schieber-wert.an { opacity: 1; }
.ja-schiebt .ja-tipp { display: none !important; }
@media print { .ja-schieber-wert { display: none !important; } }
