/* --- GRUNDSTELLUNG (PC & TABLET) --- */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Tempus Sans ITC", "Segoe UI", Tahoma, sans-serif;
    background-color: #B2A976;
    color: #4E433C;
}

body {
    display: flex; /* Erzeugt das 2-Spalten-Layout (Navi links, Main rechts) */
}

/* Menü-Balken für Handy standardmäßig verstecken */
#menu-bar {
    display: none;
}

/* NAVIGATION (LINKE SPALTE AM PC) */
nav {
    width: 280px;
    background-color: #B2A976;
    border-right: 1px solid rgba(78, 67, 60, 0.3);
    padding: 30px 20px;
    height: 100vh;
    box-sizing: border-box;
    overflow-y: auto;
    flex-shrink: 0;
}

nav a {
    display: block;
    text-decoration: none;
    color: #4E433C;
    font-weight: bold;
    padding: 8px 0;
    font-size: 1.1rem;
}

nav a:hover {
    color: #f5f3e7;
}

.submenu {
    margin-left: 15px;
    margin-bottom: 15px;
}

/* HAUPTINHALT (RECHTE SPALTE AM PC) */
main {
    flex-grow: 1;
    background-color: #f5f3e7;
    padding: 40px;
    height: 100vh;
    overflow-y: auto;
    box-sizing: border-box;
}

/* TABELLEN-DESIGN */
.work-table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.4);
}

.work-table td {
    border: 1px solid #4E433C;
    padding: 10px;
    vertical-align: middle;
}

.col-bild { width: 200px; text-align: center; }
.col-nr   { width: 100px; text-align: center; font-weight: bold; }

/* LIGHTBOX (VERGRÖSSERUNG) */
.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    text-align: center;
    overflow: auto;
}

.lightbox-overlay:target { display: block; }

.lightbox-overlay img {
    width: 1000px;
    max-width: 90%;
    height: auto;
    margin-top: 50px;
    border: 3px solid #B2A976;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    font-size: 50px;
    text-decoration: none;
}

/* --- HANDY-MODUS (MAX. 768PX BREITE) --- */
@media (max-width: 768px) {
    body {
        flex-direction: column; /* Stapelt alles untereinander */
    }

    /* Der braune Balken oben am Handy */
    #menu-bar {
        display: block !important; /* Erzwingt Sichtbarkeit */
        background-color: #4E433C;
        color: #ffffff;
        padding: 15px;
        text-align: center;
        font-weight: bold;
        cursor: pointer;
        position: sticky;
        top: 0;
        z-index: 3000; /* Ganz oben über allem */
    }

    /* Die Navigation wird am Handy standardmäßig ausgeblendet */
    nav {
        display: none; 
        width: 100% !important;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 2px solid #4E433C;
        z-index: 2500;
    }

    /* Diese Klasse zeigt die Navi an, wenn man auf "MENÜ" klickt */
    nav.show {
        display: block !important;
    }

    main {
        width: 100%;
        height: auto; /* Erlaubt natürliches Scrollen am Handy */
        padding: 15px;
    }

    /* Tabelle am Handy schmaler */
    .col-bild { width: 80px; }
    .col-bild img { width: 70px; }
}