/* ---------------------------------------------------------
   Safehotel – Grundlayout
--------------------------------------------------------- */

.safehotel-container {
    padding: 20px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin-top: 20px;
}

/* ---------------------------------------------------------
   Tabellen
--------------------------------------------------------- */

table.safehotel-table,
table.widefat.safehotel-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.safehotel-table th,
.safehotel-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

.safehotel-table th {
    background: #f3f3f3;
    font-weight: bold;
}

.safehotel-table tr:nth-child(even) {
    background: #fafafa;
}

/* ---------------------------------------------------------
   Buttons
--------------------------------------------------------- */

.safehotel-btn {
    display: inline-block;
    padding: 8px 14px;
    background: #0073aa;
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.safehotel-btn:hover {
    background: #006799;
}

/* Warnbutton */
.safehotel-btn-danger {
    background: #d63638;
}

.safehotel-btn-danger:hover {
    background: #b32d2e;
}

/* ---------------------------------------------------------
   Formulare
--------------------------------------------------------- */

.safehotel-form input[type="text"],
.safehotel-form input[type="email"],
.safehotel-form input[type="number"],
.safehotel-form select,
.safehotel-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #bbb;
    border-radius: 4px;
    margin-bottom: 12px;
}

.safehotel-form label {
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
}

/* ---------------------------------------------------------
   Checkliste
--------------------------------------------------------- */

.checklist-item-row {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.checklist-item-row:last-child {
    border-bottom: none;
}

.checklist-item-id {
    font-weight: bold;
    width: 80px;
}

.checklist-item-text {
    width: 60%;
}

.checklist-item-points select {
    padding: 4px;
    border-radius: 4px;
}

.checklist-item-comment input {
    width: 100%;
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* ---------------------------------------------------------
   Listenüberschriften (M/B/S/E)
--------------------------------------------------------- */

.safehotel-list-title {
    font-size: 20px;
    font-weight: bold;
    margin: 30px 0 10px 0;
    padding-bottom: 6px;
    border-bottom: 2px solid #0073aa;
}

/* ---------------------------------------------------------
   Auditstatus
--------------------------------------------------------- */

.audit-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    color: #fff;
}

.audit-status-offen {
    background: #d63638;
}

.audit-status-inbearbeitung {
    background: #ffb900;
}

.audit-status-abgeschlossen {
    background: #46b450;
}

/* ---------------------------------------------------------
   PDF-ähnliche Bereiche
--------------------------------------------------------- */

.safehotel-pdf-box {
    border: 1px solid #ccc;
    padding: 20px;
    margin: 25px 0;
    background: #fafafa;
    border-radius: 6px;
}

/* ---------------------------------------------------------
   Tabellen für Admin-Listen
--------------------------------------------------------- */

.wp-list-table th {
    font-weight: bold;
}

.wp-list-table td {
    vertical-align: middle;
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */

@media (max-width: 768px) {
    .checklist-item-text {
        width: 100%;
        display: block;
        margin-bottom: 10px;
    }

    .checklist-item-row {
        display: block;
    }
}

/* =========================================================
   JS-Interaktion: Flash-Effekte & Loader
   ========================================================= */


.safehotel-flash-ok {
    background-color: #d4f8d4 !important;
    transition: background-color 0.4s ease;
}

.safehotel-flash-error {
    background-color: #ffd4d4 !important;
    transition: background-color 0.4s ease;
}

.safehotel-loader {
    padding: 20px;
    text-align: center;
    font-style: italic;
    color: #666;
}
