/*
 * Globale CSS-Datei für das Mieterportal
 * Projekt: Camping Resort Langlingen
 * Stand: 14. Januar 2026 (Modern Button & Module 09 Upgrade)
 */

/* ===========================
   BASIS-STILE
   =========================== */

body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    color: #2c3e50;
    line-height: 1.6;
}

main.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 75vh;
}

h1, h2, h3, h4, h5, h6 {
    color: #2c3e50;
    margin-top: 0;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ===========================
   NAVIGATION (Update 2026)
   =========================== */

.navbar {
    background: #2c3e50;
    color: white;
    padding: 0.8rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px; /* Engeres Gap für einheitliche Button-Optik */
}

/* Einheitliche Nav-Buttons */
.nav-item {
    color: #ecf0f1 !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
}

/* Spezial-Buttons für Admin-Icons */
.nav-admin-pill {
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.nav-admin-pill:hover {
    background: rgba(52, 152, 219, 0.4);
}

/* Modul 09: Shelly Live-Button */
.nav-live {
    background: rgba(241, 194, 15, 0.15);
    color: #f1c40f !important;
    border: 1px solid rgba(241, 194, 15, 0.3);
}

.nav-live:hover {
    background: rgba(241, 194, 15, 0.35);
}

.role-badge {
    background: #1a252f;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: #95a5a6;
    text-transform: uppercase;
    border: 1px solid #34495e;
    margin-right: 5px;
}

/* ===========================
   BUTTONS
   =========================== */

.btn-primary {
    background: #2980b9;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    background: #2471a3;
}

.btn-logout {
    background: #e74c3c !important;
    color: white !important;
    margin-left: 10px;
}

.btn-logout:hover {
    background: #c0392b !important;
}

/* ===========================
   KARTEN & FORMULARE
   =========================== */

.portal-content > div {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}

.auth-card, .portal-card, .msg-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

/* ===========================
   TABELLEN
   =========================== */

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #7f8c8d;
}

/* ===========================
   STATUS BADGES
   =========================== */

.status-badge {
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

.status-open { background: #e67e22; }
.status-progress { background: #3498db; }
.status-done { background: #27ae60; }

/* ===========================
   RESPONSIVE FRAMEWORK (R1)
   =========================== */

@media (max-width: 992px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .portal-content > div {
        grid-template-columns: 1fr;
    }
}
