/*
 * Einstiegshinweis der Live-Tafel.
 * Die Standardvorlagen bleiben mittig; der Hinweis sitzt rechts und wird
 * dynamisch zwischen Vorlagen und Fußzeile sowie an Kopf 1/2 ausgerichtet.
 */
body.page-id-9 #ast-startauswahl {
    position: relative;
}

#ast-neunutzer-hinweis[hidden] {
    display: none !important;
}

#ast-neunutzer-hinweis {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: clamp(12px, 1.6vh, 18px);
    box-sizing: border-box;
    width: min(440px, calc(100% - 12px));
    margin: 0;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .18s ease, transform .18s ease;
    font-family: Helvetica, Arial, sans-serif;
    font-size: clamp(13px, 1.05vw, 14px);
    line-height: 1.28;
    color: #17120a;
}

#ast-neunutzer-hinweis.ast-neunutzer-positioniert {
    opacity: 1;
    transform: translateY(0);
}

#ast-neunutzer-hinweis a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .85em;
    box-sizing: border-box;
    width: 100%;
    min-height: 78px;
    padding: 11px 44px 11px 16px;
    border: 1px solid #a26a0c !important;
    border-radius: 12px !important;
    background: #ffe69b !important;
    box-shadow: 0 3px 8px rgba(95, 62, 7, .16);
    color: inherit !important;
    text-align: left;
    text-decoration: none !important;
    white-space: normal;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .18s ease, transform .18s ease,
        box-shadow .18s ease;
}

#ast-neunutzer-hinweis a:hover {
    background: #ffdfa0 !important;
}

#ast-neunutzer-hinweis a:active {
    background: #ffd385 !important;
    transform: scale(.985);
    box-shadow: 0 1px 3px rgba(95, 62, 7, .2);
}

#ast-neunutzer-hinweis a:focus-visible {
    outline: 3px solid #1976d2;
    outline-offset: 3px;
}

.ast-neunutzer-schliessen {
    position: absolute;
    z-index: 3;
    top: 5px;
    right: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #5c430d !important;
    font: 400 24px/1 Arial, sans-serif !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ast-neunutzer-schliessen:hover {
    background: rgba(162, 106, 12, .12) !important;
}

.ast-neunutzer-schliessen:active {
    background: rgba(162, 106, 12, .2) !important;
    transform: scale(.94);
}

.ast-neunutzer-schliessen:focus-visible {
    outline: 2px solid #1976d2;
    outline-offset: 1px;
}

.ast-neunutzer-info {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 1.8em;
    height: 1.8em;
    border-radius: 50%;
    background: #d58c00;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05em;
    font-weight: 700;
    font-style: normal;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24);
}

.ast-neunutzer-text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.ast-neunutzer-text strong,
.ast-neunutzer-zeile {
    display: block;
    white-space: nowrap;
}

.ast-neunutzer-text strong {
    font-weight: 700;
}

@media (max-width: 760px) {
    body.page-id-9 #ast-startauswahl {
        row-gap: 24px;
    }

    #ast-neunutzer-hinweis {
        position: relative;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        grid-column: 1 / -1;
        justify-self: center;
        width: min(440px, 100%);
    }

    .ast-neunutzer-text strong,
    .ast-neunutzer-zeile {
        white-space: normal;
    }
}

@media (max-width: 620px) {
    #ast-neunutzer-hinweis {
        font-size: 12px;
    }

    #ast-neunutzer-hinweis a {
        min-height: 64px;
        gap: .68em;
        padding: 10px 40px 10px 12px;
    }

    .ast-neunutzer-schliessen {
        top: 3px;
        right: 3px;
        width: 26px;
        min-width: 26px;
        height: 26px;
        min-height: 26px;
        font-size: 22px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #ast-neunutzer-hinweis,
    #ast-neunutzer-hinweis a {
        transition: none;
    }
}

@media print {
    #ast-neunutzer-hinweis {
        display: none !important;
    }
}
