/* Ergänzungen für die iPad-Fassung (Home-Bildschirm-App im Vollbild). */

html { -webkit-text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }

/* Ränder für Statusleiste und Home-Balken des iPads im Vollbild */
body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}
.leiste { padding-top: max(20px, env(safe-area-inset-top)); padding-bottom: max(20px, env(safe-area-inset-bottom)); }
.inhalt { padding-bottom: max(60px, calc(env(safe-area-inset-bottom) + 40px)); }
@media (max-width: 760px) {
    .leiste { padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: 8px; }
}

/* Antwortknöpfe: kein Hover-Effekt nach dem Tippen hängen lassen */
@media (hover: none) {
    .antwort:hover:not(:disabled) { transform: none; }
}

/* ===== Ladebildschirm ===== */
.startbild {
    position: fixed; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    background: var(--grund, #f3f5f8);
    font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
}
.startbild-logo {
    display: grid; place-items: center; width: 84px; height: 84px; border-radius: 24px;
    background: linear-gradient(135deg, #0f6cbd, #5b5fc7);
    animation: startbild-puls 2.4s ease-in-out infinite;
}
.startbild-name { font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--text, #1b1f24); }
.startbild-name span { color: var(--akzent, #0f6cbd); }
.startbild-balken { width: 200px; height: 6px; border-radius: 99px; background: var(--neutral-hell, #e3e7ec); overflow: hidden; }
.startbild-balken span {
    display: block; height: 100%; border-radius: 99px; background: var(--akzent, #0f6cbd);
    width: var(--blazor-load-percentage, 0%); transition: width .2s;
}
.startbild-text { font-size: 13px; color: var(--text-2, #5b6470); }
.startbild-text::after { content: " " var(--blazor-load-percentage-text, ""); }
@keyframes startbild-puls {
    0%, 100% { box-shadow: 0 8px 22px -8px #0f6cbd; }
    50% { box-shadow: 0 0 0 4px rgba(59, 130, 246, .25), 0 0 26px 4px rgba(59, 130, 246, .55); }
}

/* ===== Hinweise: neue Version / Anmeldung abgelaufen ===== */
#update-hinweis, #anmelde-hinweis {
    position: fixed; left: 50%; transform: translateX(-50%);
    bottom: max(16px, env(safe-area-inset-bottom)); z-index: 3000;
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
    padding: 12px 16px; border-radius: 14px; max-width: calc(100% - 32px); box-sizing: border-box;
    background: #1b1f24; color: #fff; box-shadow: 0 12px 32px -10px rgba(0, 0, 0, .5);
    font: 500 14px "Segoe UI", system-ui, -apple-system, sans-serif;
}
#update-hinweis[hidden], #anmelde-hinweis[hidden] { display: none; }
/* Liegen beide an, steht der Anmeldehinweis darüber */
#anmelde-hinweis { bottom: max(84px, calc(env(safe-area-inset-bottom) + 68px)); background: #5a3a00; }
#update-hinweis[hidden] ~ #anmelde-hinweis { bottom: max(16px, env(safe-area-inset-bottom)); }
#update-hinweis button, #anmelde-hinweis button {
    border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer;
    background: #4aa0f0; color: #0b1a28; font: inherit; font-weight: 700;
}
