/* =========================================================================
   Platz Status Manager – Admin-Styles (mobil-optimiert)
   ========================================================================= */

.psm-wrap {
    max-width: 720px;
}

/* ---- Schloss-Miel-Header (Branding) ---- */
.psm-brand {
    text-align: center;
    padding: 22px 16px 18px;
    margin: 10px 0 8px;
}
.psm-brand-logo {
    max-height: 70px;
    width: auto;
    margin: 0 auto 6px;
    display: block;
}
.psm-brand-krone {
    font-size: 34px;
    line-height: 1;
    color: #c59d0c;
    margin-bottom: 2px;
}
.psm-brand-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #2b2b2b;
}
.psm-brand-sub {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    color: #c59d0c;
    margin-top: 2px;
}
.psm-brand-stand {
    font-size: 14px;
    color: #777;
    margin-top: 8px;
}

.psm-titel {
    display: flex;
    align-items: center;
    gap: 8px;
}
.psm-titel .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

/* ---- Gold-Link "Pin Positionen ansehen >" ---- */
.psm-pin-link {
    display: inline-block;
    margin-top: 8px;
    color: #c59d0c;
    font-weight: 600;
    text-decoration: none;
}
.psm-pin-link:hover {
    text-decoration: underline;
    color: #a8850a;
}

/* ---- Meldungen ---- */
.psm-meldung {
    padding: 12px 16px;
    border-radius: 6px;
    margin: 16px 0;
    font-size: 15px;
}
.psm-erfolg {
    background: #e6f6e6;
    border-left: 4px solid #2e9e44;
    color: #1e6b2e;
}
.psm-fehler {
    background: #fdecea;
    border-left: 4px solid #d63638;
    color: #8a1f21;
}

/* ---- Login ---- */
.psm-login-box {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 24px;
    max-width: 420px;
    margin-top: 20px;
}

/* ---- Kopf / Logout ---- */
.psm-kopf {
    display: flex;
    justify-content: flex-end;
    margin: 10px 0;
}
.psm-logout {
    background: #f0f0f1;
}

/* ---- Formular-Elemente ---- */
.psm-label {
    display: block;
    font-weight: 600;
    margin: 4px 0 6px;
    font-size: 15px;
}
.psm-einheit {
    font-weight: 400;
    color: #666;
}
.psm-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px;
    font-size: 16px; /* verhindert Zoom auf iOS */
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    background: #fff;
}
.psm-input-nummer {
    max-width: 200px;
}
.psm-feld {
    margin-bottom: 18px;
    background: #fff;
    padding: 14px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}
.psm-button-gross {
    margin-top: 14px;
    padding: 10px 22px !important;
    height: auto !important;
    font-size: 16px !important;
}
/* Primär-Buttons im Schloss-Miel-Gold */
.psm-wrap .button-primary.psm-button-gross {
    background: #c59d0c !important;
    border-color: #a8850a !important;
    color: #fff !important;
    text-shadow: none !important;
    box-shadow: none !important;
}
.psm-wrap .button-primary.psm-button-gross:hover {
    background: #a8850a !important;
    border-color: #8f7008 !important;
}

/* ---- Aktueller Status ---- */
.psm-status-box {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 16px 0 26px;
}
.psm-status-box h2 {
    margin-top: 0;
}
.psm-status-tabelle {
    width: 100%;
    border-collapse: collapse;
}
.psm-status-tabelle th,
.psm-status-tabelle td {
    text-align: left;
    padding: 8px 6px;
    border-bottom: 1px solid #f0f0f1;
    font-size: 15px;
    vertical-align: top;
}
.psm-status-tabelle th {
    width: 45%;
    color: #50575e;
    font-weight: 600;
}

.psm-aktionen {
    position: sticky;
    bottom: 0;
    background: #f0f0f1;
    padding: 12px 0;
}

/* ---- Modal (Pin-Positionen-Bild) ---- */
.psm-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}
.psm-modal-inhalt {
    position: relative;
    max-width: 95%;
    max-height: 95vh;
    text-align: center;
}
.psm-modal-bild {
    max-width: 100%;
    max-height: 95vh;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.psm-modal-schliessen {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    user-select: none;
}
.psm-modal-schliessen:hover {
    color: #c59d0c;
}

/* ---- Mobile ---- */
@media screen and (max-width: 600px) {
    .psm-wrap {
        margin-right: 10px;
    }
    .psm-input-nummer {
        max-width: 100%;
    }
    .psm-status-tabelle th {
        width: 50%;
    }
    .psm-modal-schliessen {
        font-size: 28px;
        top: -35px;
    }
}
