/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/*
  Die Wiederverbindungs-Anzeige — seit Feature 022 ein Hinweis am UNTEREN Rand statt einer
  Karte in der Mitte (FR-050, research.md Punkt 15). Farben NUR aus den Tokens in app.css:
  Diese Datei ist das einzige *.razor.css der App und wird von TokenTests mitgelesen (SC-002).

  Flaeche --signal, Schrift --signal-auf: hell Orange auf Weiss, dunkel Orange (heller als der
  Grund) auf Dunkelbraun — Vertrag Abschnitt 5. Kein Schleier ueber der Seite: Die Pille ist
  fuer die Dauer des Hinweises ausgeblendet (app.css, body:has(...)), und der Hinweis nimmt
  ihren Platz ein. Ein abgedunkelter Bildschirm dazu waere das Gegenteil von „im Garten weiter
  lesen koennen, bis die Verbindung zurueck ist".
*/

.components-reconnect-first-attempt-visible[b-cfxyqynh9p],
.components-reconnect-repeated-attempt-visible[b-cfxyqynh9p],
.components-reconnect-failed-visible[b-cfxyqynh9p],
.components-pause-visible[b-cfxyqynh9p],
.components-resume-failed-visible[b-cfxyqynh9p],
.components-rejoining-animation[b-cfxyqynh9p] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-cfxyqynh9p],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-cfxyqynh9p],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-cfxyqynh9p],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-cfxyqynh9p],
#components-reconnect-modal.components-reconnect-retrying[b-cfxyqynh9p],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-cfxyqynh9p],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-cfxyqynh9p],
#components-reconnect-modal.components-reconnect-failed[b-cfxyqynh9p],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-cfxyqynh9p] {
    display: block;
}

/* Am unteren Rand, volle Breite — an der Stelle der Pille. inset statt margin: Ein <dialog>,
   das showModal() oeffnet, wird sonst vom Browser in die Mitte gelegt. */
#components-reconnect-modal[b-cfxyqynh9p] {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0.75rem var(--abstand) calc(0.75rem + env(safe-area-inset-bottom));
    border: 0;
    background-color: var(--signal);
    color: var(--signal-auf);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-cfxyqynh9p 0.5s both;
}

#components-reconnect-modal[open][b-cfxyqynh9p] {
    animation: components-reconnect-modal-slideUp-b-cfxyqynh9p 0.6s cubic-bezier(.05, .89, .25, 1.02), components-reconnect-modal-fadeInOpacity-b-cfxyqynh9p 0.5s ease-in-out;
    animation-fill-mode: both;
}

/* Kein Schleier: Die Seite bleibt lesbar (FA-41). */
#components-reconnect-modal[b-cfxyqynh9p]::backdrop {
    background-color: transparent;
}

@keyframes components-reconnect-modal-slideUp-b-cfxyqynh9p {
    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-cfxyqynh9p {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-cfxyqynh9p {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Symbol, Woerter und Knopf in EINER Zeile, wie der Hinweis #blazor-error-ui in app.css. */
.components-reconnect-container[b-cfxyqynh9p] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--abstand-klein) var(--abstand);
    max-width: 60rem;
    margin: 0 auto;
}

#components-reconnect-modal p[b-cfxyqynh9p] {
    margin: 0;
}

/* Der Knopf: umgekehrte Farben desselben Paars — Schrift des Hinweises als Flaeche. Mindestens
   44 px, weil er im Garten mit dem Daumen getroffen wird (FA-41). */
#components-reconnect-modal button[b-cfxyqynh9p] {
    min-height: 44px;
    border: 0;
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    font: inherit;
    font-weight: 600;
    background-color: var(--signal-auf);
    color: var(--signal);
    cursor: pointer;
}

/* Die Punkte der Wiederverbindung — klein, in der Schriftfarbe des Hinweises. */
.components-rejoining-animation[b-cfxyqynh9p] {
    position: relative;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.components-rejoining-animation div[b-cfxyqynh9p] {
    position: absolute;
    border: 2px solid var(--signal-auf);
    opacity: 1;
    border-radius: 50%;
    animation: components-rejoining-animation-b-cfxyqynh9p 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.components-rejoining-animation div:nth-child(2)[b-cfxyqynh9p] {
    animation-delay: -0.5s;
}

@keyframes components-rejoining-animation-b-cfxyqynh9p {
    0% {
        top: 12px;
        left: 12px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 12px;
        left: 12px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 12px;
        left: 12px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0;
        left: 0;
        width: 24px;
        height: 24px;
        opacity: 0;
    }
}
