/* =========================================================
   admin-style.css - Zentrales Design für das Hotel-Backend
   ========================================================= */

/* ---------------------------------------------------------
   1. DESIGN FÜR DIE ÜBERSICHT (konfiguration.php)
   --------------------------------------------------------- */
.overlay {
    max-width: 1400px; 
    margin: 0 auto;
    padding: 30px; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.05em; 
}

.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #d4af37; 
    padding-bottom: 20px;
}

.header-section h2 {
    font-size: 2.8em; 
    margin: 0;
    color: #1a252f; 
    letter-spacing: 1px;
    font-weight: 800;
}

.zimmer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); 
    gap: 30px; 
}

.zimmer-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.06); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.zimmer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.zimmer-header {
    font-size: 1.6em; 
    font-weight: bold;
    color: #2c3e50; 
    margin-bottom: 5px;
}

.zimmer-typ {
    color: #bfa15f; 
    font-size: 1.1em; 
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.zimmer-beschreibung {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.95em;
    color: #4a5568;
    flex-grow: 1; 
    margin-bottom: 25px;
    border-left: 4px solid #bfa15f; 
    line-height: 1.5;
}

.zimmer-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.zimmer-actions form { 
    margin: 0; 
    display: flex; 
    flex: 1; 
}

.zimmer-actions form button { 
    width: 100%; 
}

/* --- BUTTONS (Global für alle Seiten nutzbar) --- */
.btn {
    border: none;
    padding: 12px 18px; 
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: bold;
    text-align: center;
    flex: 1; 
    transition: background 0.2s, transform 0.1s;
}

.btn:active { transform: scale(0.98); } 

.btn-new { background: #2c3e50; color: white; flex: none; font-size: 1.1em; padding: 12px 25px; border-radius: 8px;} 
.btn-new:hover { background: #1a252f; }

.btn-edit { background: #7f8c8d; color: white; } 
.btn-edit:hover { background: #606b6b; }

.btn-delete { background: #c0392b; color: white; } 
.btn-delete:hover { background: #a53125; }


/* ---------------------------------------------------------
   2. DESIGN FÜR DIE FORMULARE (zimmer_edit.php & zimmer_new.php)
   --------------------------------------------------------- */
.edit-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.edit-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 30px 40px;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.edit-card h2 {
    margin-top: 0;
    color: #1a252f;
    font-size: 1.8em;
    border-bottom: 2px solid #bfa15f; 
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.edit-card h2.neu-titel {
    border-bottom-color: #28a745;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 1em;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #bfa15f;
    box-shadow: 0 0 0 3px rgba(191, 161, 95, 0.2);
}

.form-control.neu-focus:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-submit {
    background: #2c3e50; 
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    flex: 2;
}

.btn-submit:hover { background: #1a252f; }

.btn-submit-green { background: #28a745; }
.btn-submit-green:hover { background: #218838; }

.btn-cancel {
    background: #f1f5f9;
    color: #4a5568;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: bold;
    text-align: center;
    transition: background 0.2s;
    flex: 1;
}

.btn-cancel:hover {
    background: #e2e8f0;
    color: #1a252f;
}