body{
    background:#1a1a1a;
    color:white;
    font-family:Arial, Helvetica, sans-serif;
    margin:0;
    padding:30px;
}

/* =========================
   INDEX / STARTSEITE
========================= */
/* ===== BUTTONS ===== */
.menu-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    height:140px;
    font-size:22px;
    font-weight:bold;
    background:#2a2a2a;
    border-radius:12px;
    text-decoration:none;
    color:white;
    transition:all 0.2s;
}

.menu-btn:hover{
    background:#3a3a3a;
    transform:scale(1.03);
}

.menu-container{
    width:80%;
    max-width:800px;
    margin:60px auto;
    display:flex;
    flex-direction:column;
    gap:20px;
}

.menu-button{
    display:flex;
    align-items:center;
    justify-content:center;
    height:90px;
    font-size:20px;
    font-weight:bold;
    background:#2a2a2a;
    border-radius:10px;
    text-decoration:none;
    color:white;
    transition:all 0.2s;
}

.menu-button:hover{
    background:#3a3a3a;
    transform:scale(1.02);
}

body.index-page{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:0;
}

.container{
    width:80%;
    height:80vh;
    display:grid;
    grid-template-columns:1fr 1fr;
    grid-template-rows:1fr 1fr;
    gap:30px;
}

.menu-button{
    background:#333;
    color:white;
    font-size:40px;
    font-weight:bold;
    border-radius:15px;
    display:flex;
    justify-content:center;
    align-items:center;
    text-decoration:none;
    transition:0.2s;
}

.menu-button:hover{
    background:#555;
    transform:scale(1.03);
}

/* =========================
   GLOBAL
========================= */
h1,h2{
    text-align:center;
    margin:10px 0 15px 0;
}

.back{
    display:inline-block;
    margin-bottom:15px;
    font-size:18px;
    color:white;
    text-decoration:none;
}

.back:hover{
    text-decoration:underline;
}

/* =========================
   QR / INFO
========================= */
.qr{
    text-align:center;
    margin:10px 0 5px 0;
}

.info{
    text-align:center;
    margin-bottom:10px;
}

.info div{
    margin:2px 0;
}

/* =========================
   WARNUNG
========================= */
.warn{
    color:#ffcc00;
    font-weight:bold;
    margin-top:5px;
}

/* =========================
   BOXEN
========================= */
.box{
    background:#2a2a2a;
    width:700px;
    margin:10px auto;
    padding:15px;
    border-radius:10px;
}

.bemerkung{
    margin-top:10px;
    padding:12px;
    background:#333;
    border-radius:8px;
}

/* =========================
   LABEL / VALUE
========================= */
.row{
    display:flex;
    margin:6px 0;
}

.label{
    width:220px;
    font-weight:bold;
}

.value{
    flex:1;
}

/* =========================
   TABELLEN
========================= */
.box-table{
    width:700px;
    margin:20px auto;
    border-collapse:collapse;
    background:#2a2a2a;
}

.box-table th,
.box-table td{
    padding:10px;
    border-bottom:1px solid #444;
    text-align:left;
}

.box-table th{
    background:#333;
}

.box-table tr:hover{
    background:#444;
}

/* =========================
   LAGER / FILTER
========================= */
.treffer{
    text-align:center;
    margin-bottom:20px;
    font-size:18px;
}

.filter-form{
    width:70%;
    margin:auto;
    margin-bottom:20px;
    display:flex;
    gap:10px;
    justify-content:center;
    flex-wrap:wrap;
}

.filter-form input[type="text"],
.filter-form select,
.filter-form button{
    padding:10px;
    font-size:16px;
    border-radius:5px;
    border:none;
}

.filter-form input[type="text"]{
    min-width:260px;
}

.filter-form button{
    background:#333;
    color:white;
    cursor:pointer;
}

.filter-form button:hover{
    background:#555;
}

.reset-btn{
    display:inline-block;
    padding:10px 14px;
    background:#333;
    border-radius:5px;
    color:white;
    text-decoration:none;
}

.reset-btn:hover{
    background:#555;
}

.edit-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:40px;
    height:40px;
    background:#3a3a3a;
    border-radius:8px;
    color:white;
    text-decoration:none;
    font-size:18px;
}

.edit-btn:hover{
    background:#5a5a5a;
}
.order-btn{
    display:inline-block;
    padding:8px 12px;
    background:#cc6600;
    color:white;
    border-radius:6px;
    text-decoration:none;
    font-size:14px;
}

.order-btn:hover{
    background:#ff8800;
}

.order-btn{
    display:inline-block;
    padding:8px 12px;
    background:#cc6600;
    color:white;
    border-radius:6px;
    text-decoration:none;
    font-size:14px;
}

.order-btn:hover{
    background:#ff8800;
}

/* =========================
   FORMULARE ALLGEMEIN
========================= */
form.standard-form,
.search-form,
.inventory-form{
    width:700px;
    margin:20px auto;
    background:#2a2a2a;
    padding:25px;
    border-radius:10px;
}

label{
    display:block;
    margin-top:12px;
    margin-bottom:6px;
    font-weight:bold;
}

input,
select,
textarea,
button{
    width:100%;
    padding:10px;
    border:none;
    border-radius:6px;
    background:#333;
    color:white;
    font-size:16px;
    box-sizing:border-box;
}

textarea{
    min-height:100px;
    resize:vertical;
}

input[readonly]{
    background:#222;
    color:#bbb;
    cursor:not-allowed;
}

button{
    background:#444;
    cursor:pointer;
    margin-top:15px;
}

button:hover{
    background:#666;
}

.message{
    width:700px;
    margin:0 auto 20px auto;
    text-align:center;
    font-size:18px;
    font-weight:bold;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px){
    body{
        padding:15px;
    }

    .container{
        width:95%;
        height:auto;
        grid-template-columns:1fr;
        grid-template-rows:auto;
        gap:20px;
    }

    .menu-button{
        min-height:140px;
        font-size:28px;
    }

    .box,
    .box-table,
    .search-form,
    .inventory-form,
    .standard-form,
    .message{
        width:100%;
    }

    .filter-form{
        width:100%;
    }

    .filter-form input[type="text"],
    .filter-form select,
    .filter-form button{
        width:100%;
        min-width:0;
    }
}
.edit-top{
    position:absolute;
    top:20px;
    right:20px;
    font-size:26px;
    text-decoration:none;
    background:#333;
    padding:10px 14px;
    border-radius:10px;
    color:white;
}

.edit-top:hover{
    background:#555;
}
/* ===== Top Menü (Zahnrad) ===== */
.top-menu{
    position:absolute;
    top:20px;
    right:20px;
}

/* Zahnrad */
.gear{
    font-size:26px;
    background:#333;
    padding:10px 14px;
    border-radius:10px;
    cursor:pointer;
}

/* Dropdown */
.dropdown{
    display:none;
    position:absolute;
    right:0;
    top:50px;
    background:#2a2a2a;
    border-radius:10px;
    min-width:200px;
    box-shadow:0 0 10px rgba(0,0,0,0.5);
}

/* Links */
.dropdown a{
    display:block;
    padding:12px;
    color:white;
    text-decoration:none;
}

.dropdown a:hover{
    background:#444;
}

/* Hover öffnet Menü */
.top-menu:hover .dropdown{
    display:block;
}
