/* ================================
   Platzstatus App – Styling
   ================================ */

.platzstatus-app {
    max-width: 480px;
    margin: 40px auto;
    padding: 25px 30px;

    background: #ffffff;
    color: #232d33;

    border: 2px solid #232d33;
    border-radius: 8px;
}

/* Überschrift */
.platzstatus-app h2,
.platzstatus-app .platzstatus-app-title {
    color: #232d33;
    font-size: 22px;
    margin: 0 0 20px 0;
    text-align: center;
}

/* ACF Labels */
.platzstatus-app .acf-label {
    text-align: center;
}
.platzstatus-app .acf-label label {
    font-size: 16px;
    font-weight: 600;
    color: #232d33;
    display: inline-block;
}

/* Formular insgesamt zentrieren */
.platzstatus-app form.acf-form {
    text-align: center;
}

/* Input-Bereich zentrieren */
.platzstatus-app .acf-input {
    text-align: center;
}

/* Checkboxen / Toggles */
.platzstatus-app .acf-input input[type="checkbox"] {
    transform: scale(1.7);
}

/* True/False/Checkbox-Block mittig */
.platzstatus-app .acf-true-false {
    display: flex;
    justify-content: center;
}

/* Textfeld Hinweis */
.platzstatus-app input[type="text"] {
    display: inline-block;
    width: 100%;
    max-width: 420px;

    font-size: 16px;
    padding: 8px 10px;

    border: 1px solid #232d33;
    border-radius: 4px;

    text-align: center;
}

/* Feldabstände */
.platzstatus-app .acf-field {
    margin-bottom: 18px;
}

/* Trennlinien entfernen (Enfold) */
.platzstatus-app hr,
.platzstatus-app .hr {
    display: none;
}

/* Submit Button mittig */
.platzstatus-app input[type="submit"],
.platzstatus-app button,
.platzstatus-app .acf-button {
    display: inline-block;
    margin: 10px auto 0 auto;
}

/* Erfolgsmeldung */
.platzstatus-app-saved {
    margin-top: 15px;
    padding: 10px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 6px;
    text-align: center;
}

/* ================================
   Logo: zentriert, responsive
   ================================ */

.platzstatus-app-logo {
    text-align: center;
    margin: 0 0 18px 0;
}

/* Link selbst ohne Deko */
.platzstatus-app-logo a {
    display: inline-block;
    text-decoration: none !important;
    border: 0 !important;
}

/* Logo responsive + per Variablen steuerbar */
.platzstatus-app-logo img {
    max-width: var(--logo-max-desktop, 180px);
    width: 100%;
    height: auto;

    image-rendering: -webkit-optimize-contrast;
    transform: translateZ(0);
}

@media (max-width: 600px) {
    .platzstatus-app {
        padding: 20px 18px;
    }
    .platzstatus-app-logo img {
        max-width: var(--logo-max-mobile, 130px);
    }
}

/* ================================
   Nur Platzstatus-App Seite: Hintergrund komplett weiß
   (ID ggf. anpassen, falls Seite eine andere ID hat)
   ================================ */

body.page-id-6886,
body.page-id-6886 #wrap_all,
body.page-id-6886 #main,
body.page-id-6886 .container_wrap,
body.page-id-6886 .content {
    background: #ffffff !important;
}

/* Falls unten “Leerraum” bleibt: Box auf volle Höhe strecken */
body.page-id-6886 .platzstatus-app {
    min-height: calc(100vh - 60px);
}

/* Optional: Falls Footer/Socket trotzdem sichtbar sind, ausblenden:
body.page-id-6886 #footer,
body.page-id-6886 #socket { display:none !important; }
*/


/* ================================
   Hinweis-Textfeld korrekt zentrieren
   ================================ */

.platzstatus-app .acf-field[data-name="platz_hinweis"] {
    text-align: center;
}

.platzstatus-app .acf-field[data-name="platz_hinweis"] .acf-input {
    display: flex;
    justify-content: center;
}

.platzstatus-app .acf-field[data-name="platz_hinweis"] input[type="text"] {
    max-width: 420px;
    width: 100%;
    text-align: center;
}

/* ================================
   Zuletzt geändert - Anzeige 
   ================================ */

.platzstatus-app-updated {
    margin-top: 12px;
    font-size: 14px;
    color: #232d33;
    text-align: center;
    opacity: 0.85;
}


/* PLATZSTATUS---- */
.status-ok {
  color: #679938 !important;
  font-weight: bold;
  font-size: 16px;
}

.status-fail {
  color: #841d5b !important;
  font-weight: bold;
  font-size: 16px;
}



