/* ====== Grundlayout ====== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f9f9f9;
}

body {
    margin-bottom: 60px; /* gleiche Höhe wie Footer */
}

/* Flexbox-Seitenaufbau für Sticky-Footer */
.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Seite immer mindestens Bildschirmhöhe */
}

.content {
    flex: 1; /* Inhalt füllt Platz zwischen Header und Footer */
}

/* ====== Header & Footer ====== */
header {
    background: #FFCE32;
    color: white;
    padding: 10px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

    header img {
        height: 40px;
    }

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #FFCE32;
    color: white;
    text-align: center;
    padding: 12px 0;
    z-index: 1000;
}

/* ====== Hauptinhalt ====== */
main {
    padding: 10px;
}

/* ====== Formulare ====== */
.form-container {
    max-width: 400px;
    margin: 20px auto;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

input, select, button {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

button {
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

    button:hover {
        background: #0069d9;
    }

a {
    color: #007bff;
    text-decoration: none;
    display: block;
    margin-top: 10px;
    text-align: center;
}

    a:hover {
        text-decoration: underline;
    }

.btn-row {
    display: flex;
    flex-direction: row;
    align-items: center; 
    gap: 10px; 
    margin-bottom: 20px; 
}

.btn-equal {
    flex: 1 1 0;
    display: flex !important; /* gleiche Layout-Logik für <button> & <a> */
    align-items: center !important;
    justify-content: center !important;
    padding: 0.65rem 1rem !important;
    min-height: 48px; /* gleiche Mindesthöhe */
    margin: 0 !important; /* 🔥 verhindert verrutschte Buttons */
    text-decoration: none !important;
}


/* ====== Burger-Menü ====== */
.burger-menu {
    position: relative;
}

.burger-button {
    background: none;
    border: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
}

.menu-content {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    margin-top: 10px;
    overflow: hidden;
    z-index: 200;
}

    .menu-content a {
        display: block;
        padding: 12px 16px;
        text-decoration: none;
        color: #333;
        border-bottom: 1px solid #eee;
    }

        .menu-content a:hover {
            background: #f2f2f2;
        }

/* ====== Dashboard-Begrüßung ====== */
.welcome {
    text-align: center;
    margin-top: 30px;
    font-size: 20px;
}

/* ====== Responsive Optimierung ====== */
@media (max-width: 600px) {
    header, footer {
        flex-direction: row;
        justify-content: space-between;
        text-align: center;
        width: 100%;
    }

    .form-container {
        width: 90%;
        margin: 15px auto;
    }

    input, button {
        font-size: 16px;
    }

    .menu-content {
        position: fixed;
        top: 60px; /* unterhalb des Headers */
        right: 0;
        left: 0;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid #eee;
        z-index: 999;
    }

        .menu-content a {
            padding: 16px;
            font-size: 18px;
            text-align: center;
            border-bottom: 1px solid #ddd;
        }

            .menu-content a:last-child {
                border-bottom: none;
            }

    /* Burgerbutton etwas größer auf Mobil */
    .burger-button {
        font-size: 32px;
    }
}


/*QRCODE*/
.qr-container {
    max-width: 400px;
    margin: 40px auto;
    text-align: center;
}

#reader {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.status {
    margin-top: 20px;
    font-size: 1.1em;
}

/* Verleihvorgänge*/

.loan-list {
    margin: 20px auto;
    max-width: 600px;
}

.loan-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 12px;
    padding: 12px;
    font-size: 15px;
}

    .loan-item strong {
        color: #007bff;
    }

.loan-status {
    font-weight: bold;
    border-radius: 5px;
    padding: 3px 7px;
    display: inline-block;
    font-size: 13px;
    margin-top: 5px;
}

.status-lend {
    background: #ffeeba;
    color: #856404;
}

.status-back {
    background: #d4edda;
    color: #155724;
}

h3.section-title {
    text-align: center;
    margin-top: 25px;
}
