/*
 * VERSION: V.70
 * Privatmodus: unauffaelliger Klickbereich, Statuszeichen und kurze Meldung.
 * Bestehende Seiten-/Vollbildregeln in stil.css bleiben unveraendert.
 */

.site-status {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 12px;
}

/* Kein sichtbarer neuer Knopf. Der bisherige Versionstext bleibt stehen. */
.privatmodus-schalter {
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: transparent;
    font-family: inherit;
    font-weight: 400;
    line-height: normal;
    text-align: right;
    cursor: default;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Unsichtbar vergroesserte Trefferflaeche, auch fuer fuenfmaliges Antippen. */
.privatmodus-schalter::before {
    content: "";
    position: absolute;
    right: -6px;
    top: 50%;
    width: max(44px, calc(100% + 12px));
    height: 44px;
    transform: translateY(-50%);
}

.privatmodus-schalter:focus-visible {
    outline: 1px solid #aaa579;
    outline-offset: 5px;
}

.privatmodus-anzeige {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #83e6a0;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
}

.privatmodus-punkt {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
}

.privatmodus-meldung {
    box-sizing: border-box;
    position: fixed;
    z-index: 3000;
    top: 78px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100vw - 32px);
    padding: 15px 22px;
    border: 1px solid #5b5633;
    border-radius: 6px;
    background: #151610;
    color: #fff2a8;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.65);
    font-size: 17px;
    line-height: 1.4;
    text-align: center;
    pointer-events: none;
}

.privatmodus-meldung[data-zustand="ein"] {
    border-color: #529d68;
    color: #a0f0b7;
}

.privatmodus-meldung[data-zustand="fehler"] {
    border-color: #d6a55d;
    color: #ffda9c;
}

.privatmodus-anzeige[hidden],
.privatmodus-meldung[hidden] {
    display: none !important;
}

@media (max-width: 760px) {
    .site-status {
        gap: 10px;
    }

    .privatmodus-anzeige {
        font-size: 10px;
    }

    .privatmodus-meldung {
        top: 70px;
        padding: 13px 17px;
        font-size: 16px;
    }
}
