/* style.css – Basis-Styles Sales-Quality
   Nutzt die Vodafone-Tokens aus brand.css (immer zuerst brand.css laden). */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--vf-font);
    font-weight: 400;
    background: var(--bg);
    color: var(--fg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
}

.hero {
    text-align: center;
    padding: 2rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;              /* Bold */
    letter-spacing: -0.02em;
    color: var(--accent);         /* Vodafone Red */
}

.hero p {
    margin-top: 0.75rem;
    font-weight: 400;
    color: var(--fg-muted);
}

/* --- Pull-to-Refresh (nur installierte App) -------------------------------
   Indikator wird per JS erzeugt. Horizontal über left/right/margin zentriert,
   damit das JS die transform-Eigenschaft allein für die Y-Achse nutzen kann. */
.is-standalone body {
    overscroll-behavior-y: contain;   /* natives Rubber-Band unterdrücken */
}

.ptr-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    box-shadow: 0 2px 10px rgb(0 0 0 / 0.18);
    transform: translateY(-50px);
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
}

.ptr-indicator.ptr-animate {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Vodafone-Loader-Animation (GIF, rot auf transparent – passt hell wie dunkel).
   Seitenverhältnis 416x512 bleibt über width:auto erhalten. */
.ptr-logo {
    display: block;
    height: 26px;
    width: auto;
}

/* Leicht gedimmt, solange die Auslöse-Schwelle noch nicht erreicht ist */
.ptr-indicator .ptr-logo {
    filter: grayscale(0.4);
    transition: filter 0.2s ease;
}

.ptr-indicator.is-ready .ptr-logo,
.ptr-indicator.is-refreshing .ptr-logo {
    filter: none;
}

@media (prefers-reduced-motion: reduce) {
    .ptr-indicator.ptr-animate { transition-duration: 0.01ms; }
}
