/* Grundstil für die Tabelle */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 6px 10px;  /* Weniger Polsterung für kleinere Abstände */
    text-align: left;
    border-bottom: 1px solid #ddd;
    
    color: black;
    line-height: 30px;  /* Setze die Zeilenhöhe auf 30px, um die Höhe der Zeilen zu stabilisieren */
}

/* Zeile normal */
tr.normal {
    background-color: white;
}

.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
    margin: 0 5px; /* Abstand zwischen Beschriftungen */
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 10px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(14px);
}


.footer {
    background-color: #333; /* Hintergrundfarbe */
    color: white; /* Textfarbe */
    display: flex; /* Flexbox für Layout */
    justify-content: space-between; /* Platz zwischen Elementen */
    align-items: center; /* Zentrierte Buttons und Text */
    padding: 0px 0px; /* Weniger Innenabstand, um die Höhe zu reduzieren */
    font-size: 14px; /* Kleinere Schriftgröße */
    position: fixed; /* Fixiert am unteren Rand */
    bottom: 0; /* Footer bleibt unten */
    width: 100%; /* Volle Breite */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); /* Schatten oben */
    z-index: 1000; /* Sicherstellen, dass der Footer sichtbar bleibt */
}

.footer p {
    margin: 0; /* Entfernt unnötige Abstände */
    font-size: 14px; /* Kleinere Schrift */
}

/* Linke und rechte Bereiche im Footer */
.footer-left,
.footer-right {
    display: flex;
    align-items: center;
    gap: 20px; /* Abstand zwischen den Elementen */
    margin-right: 30px;
}

/* Footer-Buttons */
.footer-button {
    text-decoration: none; /* Kein Unterstrich */
    color: white; /* Textfarbe */
    background-color: #4CAF50; /* Hintergrundfarbe */
    padding: 5px 10px; /* Kleinere Buttons */
    border-radius: 4px; /* Abgerundete Ecken */
    font-size: 12px; /* Kleinere Schriftgröße */
    transition: background-color 0.3s; /* Hover-Effekt */
}

/* Footer-Buttons */
.footer-button-back{
    text-decoration: none; /* Kein Unterstrich */
    color: white; /* Textfarbe */
    background-color: #f44336; /* Hintergrundfarbe */
    padding: 7px 13px; /* Innenabstand */
    border-radius: 4px; /* Abgerundete Ecken */
    font-size: 14px; /* Schriftgröße */
    transition: background-color 0.3s; /* Hover-Effekt */
    border: none; /* Entfernt den Standard-Button-Rahmen */
    cursor: pointer; /* Zeigt den Mauszeiger wie bei Links */
}
.footer-button:hover {
    background-color: #45a049; /* Dunklere Farbe beim Hover */
}

.footer-button-back:hover {
    background-color: #d83b30; /* Dunklere Farbe beim Hover */
}

.container {
    padding-bottom: 100px; /* Platz für den Footer schaffen */
}

/* Haupt-Footer-Styling */
.footer-big {
    background-color: #333; /* Hintergrundfarbe */
    color: white; /* Textfarbe */
    display: flex; /* Flexbox für Layout */
    justify-content: space-between; /* Abstand zwischen den Elementen */
    align-items: center; /* Vertikale Zentrierung der Elemente */
    padding: 10px 20px; /* Innenabstand */
    position: fixed; /* Fixiert den Footer am unteren Rand */
    bottom: 0; /* Position unten */
    width: 100%; /* Über die gesamte Breite */
    font-size: 14px; /* Schriftgröße */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); /* Schatten oben */
    z-index: 1000; /* Sicherstellen, dass der Footer über anderen Inhalten bleibt */
}

/* Linke Seite des Footers */
.footer-left-big {
    display: flex; /* Flexbox für nebeneinanderliegende Elemente */
    align-items: center; /* Vertikale Zentrierung */
    gap: 10px; /* Abstand zwischen Button und Text */
    margin: 0; /* Entfernt unnötigen Abstand */
}

/* Rechte Seite des Footers */
.footer-right-big {
    display: flex; /* Flexbox für Elemente auf der rechten Seite */
    align-items: center; /* Vertikale Zentrierung */
    margin-right: 50px; /* Entfernt unnötigen Abstand */
}

/* Zurück-Button */
.footer-button-back-big {
    text-decoration: none; /* Kein Unterstrich */
    color: white; /* Textfarbe */
    background-color: #f44336; /* Hintergrundfarbe */
    padding: 7px 14px; /* Innenabstand für Button */
    border-radius: 5px; /* Abgerundete Ecken */
    font-size: 14px; /* Schriftgröße */
    border: none; /* Kein Rahmen */
    cursor: pointer; /* Zeigt den Mauszeiger wie bei Links */
    transition: background-color 0.3s; /* Weicher Übergang für Hover-Effekt */
}

/* Hover-Effekt für Zurück-Button */
.footer-button-back-big:hover {
    background-color: #d32f2f; /* Dunklere Farbe beim Hover */
}

/* Impressum-Button */
.footer-button-big {
    text-decoration: none; /* Kein Unterstrich */
    color: white; /* Textfarbe */
    background-color: #4CAF50; /* Hintergrundfarbe */
    padding: 8px 15px; /* Innenabstand für Button */
    border-radius: 5px; /* Abgerundete Ecken */
    font-size: 14px; /* Schriftgröße */
    border: none; /* Kein Rahmen */
    cursor: pointer; /* Zeigt den Mauszeiger wie bei Links */
    transition: background-color 0.3s; /* Weicher Übergang für Hover-Effekt */
}

/* Hover-Effekt für Impressum-Button */
.footer-button-big:hover {
    background-color: #45a049; /* Dunklere Farbe beim Hover */
}

/* Copyright-Text */
.footer-left-big p {
    margin: 0; /* Entfernt unnötigen Abstand */
    font-size: 14px; /* Schriftgröße des Copyright-Textes */
}

/* Platz für Footer im Hauptinhalt */
.container {
    margin-bottom: 70px; /* Platz schaffen, damit der Footer den Inhalt nicht überlappt */
}


.logout button {
    background-color: red;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}


/* Zeile, wenn Artikel in einem Monat abläuft */
tr.orange {
    background-color: orange; /* Hintergrundfarbe orange für Artikel, die in einem Monat ablaufen */
    color: black; /* Textfarbe bleibt schwarz */
}

/* Zeile, wenn Artikel in zwei Wochen abläuft */
tr.rot {
    background-color: red; /* Hintergrundfarbe rot für Artikel, die in zwei Wochen ablaufen */
    color: black; /* Textfarbe bleibt schwarz */
}

/* Sicherstellen, dass die Schrift bei schwarzem Hintergrund weiß ist */
tr.schwarz {
    background-color: black !important; /* Schwarz als Hintergrund */
    color: white !important; /* Weiß als Schriftfarbe */
}
tr.schwarz td {
    color: white !important; /* Weiß auch für die Zellen */
}

tr.lilla{
    background-color: rgba(184, 8, 175, 0.541); /* Hintergrundfarbe rot für Artikel, die in zwei Wochen ablaufen */
    color: black; /* Textfarbe bleibt schwarz */
}

/* Tabellenkopf */
th {
    background-color: #0b5202;
    color: white;
}

/* Allgemeines Layout */
body {
    font-family: Arial, sans-serif;
    background-color: #97c8f2c5; 
    margin: 0;
    padding: 0;
}


/* Stil für den Container */
.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    margin-top: 1cm; /* Verschiebt den Inhalt um 1 cm nach unten */
}

/* Header-Stil */
h1 {
    text-align: center;
    color: #333;
}

/* Buttons stylen */
button {
    background-color: #4CAF50; /* Grün */
    color: white;
    border: none;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: #45a049; /* Dunkleres Grün bei Hover */
}

/* "Zurück"-Button */
.back-button {
    background-color: #f44336; /* Rot */
    color: white; /* Schriftfarbe weiß */
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 5px;
    position: fixed;
    bottom: 10px;  /* Positioniert den Button immer 10px vom unteren Rand */
    left: 20px;    /* Positioniert den Button 20px vom linken Rand */
    text-decoration: none; /* Entfernt die Unterstreichung */
}

.back-button:hover {
    background-color: #d32f2f; /* Dunkleres Rot bei Hover */
}

.no-date {
    color: #999; /* Grau für Artikel ohne Ablaufdatum */

}

.form-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 1px; /* Weniger Abstand */
}
.form-group {
    flex: 1;
}
.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 1px; /* Weniger Abstand */
}
.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.form-group-full {
    width: 100%;
    margin-top: 1px; /* Weniger Abstand */
}
.form-group-full input {
    width: 100%;
}

/* Formulareingaben */
input[type="text"], input[type="number"], input[type="date"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
}

label {
    font-weight: bold;
    margin-top: 10px;
    display: inline-block;
}

.input-field {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Stil für die Buttons */
.submit-button {
    background-color: #4CAF50; /* Grün */
    color: white;
    border: none;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.submit-button:hover {
    background-color: #45a049; /* Dunkleres Grün bei Hover */
}

/* Stil für kleinere Buttons */
.btn-klein {
    padding: 5px 10px; /* Kleinere Polsterung */
    font-size: 12px;    /* Kleinere Schriftgröße */
    width: auto;        /* Breite automatisch anpassen */
}


/* Stile für Buttons in Tabellenzellen */
td button {
    background-color: #4CAF50; /* Grün */
    color: white;
    border: none;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px;
    cursor: pointer;
    border-radius: 5px;
}

td button:hover {
    background-color: #45a049; /* Dunkleres Grün bei Hover */
}


/* Stil für den OK-Button */
.btn-klein {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4CAF50; /* Grün */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    text-align: center;
    margin-top: 20px;
}

.btn-klein:hover {
    background-color: #45a049; /* Dunkleres Grün bei Hover */
}

/* Für Tablets (Bildschirmbreite zwischen 768px und 1024px) */
@media (max-width: 1024px) {
    .container {
        width: 90%;
    }

    .button-container button {
        width: 35px; /* Kleinere Buttons */
        height: 35px;
        font-size: 14px;
    }

    select, input[type="text"], input[type="number"] {
        width: 100%; /* Eingabefelder nehmen die gesamte Breite ein */
    }
}

/* Für Smartphones (Bildschirmbreite kleiner als 768px) */
@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 10px;
    }

    h1 {
        font-size: 1.5rem; /* Kleinere Überschrift */
    }

    .button-container {
        display: grid;
        grid-template-columns: repeat(5, 1fr); /* 5 Buttons pro Zeile */
        gap: 5px; /* Abstand zwischen den Buttons */
    }

    .button-container button {
        width: auto;
        height: 40px;
        font-size: 14px;
    }

    select, input[type="text"], input[type="number"] {
        width: 100%;
        font-size: 16px;
    }
}
