/*
 * Tario – ergänzende Styles zu /style.css (Tailwind-Build)
 * ---------------------------------------------------------
 * Ablage auf dem Server:  /css/site.css
 * Einbindung im <head> jeder Seite, NACH /style.css:
 *   <link rel="stylesheet" href="/style.css">
 *   <link rel="stylesheet" href="/css/site.css">
 *
 * Farben kommen aus den Variablen von style.css (z. B. --color-tario-blue).
 * Der zweite Wert ist nur ein Fallback, falls eine Variable fehlt.
 * Markenfarbe ändern = nur in der Tailwind-Konfiguration, nicht hier.
 */

/* ---------- Design-Tokens ---------- */
:root {
    --tario-accent: var(--color-tario-blue, #007aff);
    --tario-phone-frame: var(--color-slate-900, #0f172a);
    --tario-phone-screen: var(--color-slate-100, #f1f5f9);
    --tario-muted-text: var(--color-slate-500, #64748b);
    --tario-on-accent: #ffffff;
}

/* ---------- Tastaturfokus (Barrierefreiheit) ---------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--tario-accent);
    outline-offset: 3px;
    border-radius: 0.5rem;
}

/* ---------- Handy-Rahmen für App-Screenshots ---------- */
.phone {
    position: relative;
    width: 100%;
    max-width: 260px;
    margin: 0 auto 1.5rem;
    aspect-ratio: 9 / 19.5;
    padding: 10px;
    border-radius: 2.25rem;
    background: var(--tario-phone-frame);
    box-shadow: 0 20px 40px -12px color-mix(in srgb, var(--tario-accent) 25%, transparent);
}

.phone img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.75rem;
}

/* Ausgeblendet von /js/screenshots.js, wenn ein Bild fehlt */
.phone img[hidden] {
    display: none;
}

/* Platzhalter hinter dem Screenshot, sichtbar solange kein Bild vorhanden ist */
.phone-fallback {
    position: absolute;
    inset: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 1.75rem;
    background: var(--tario-phone-screen);
    color: var(--tario-muted-text);
    font-size: 0.875rem;
    text-align: center;
}

/* ---------- Schrittnummern (1-2-3) ---------- */
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.75rem;
    border-radius: 9999px;
    background: var(--tario-accent);
    color: var(--tario-on-accent);
    font-size: 0.875rem;
    font-weight: 700;
}
