/* Allgemeine Einstellungen */
body {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
    margin: 0;
    padding: 0;
}
/* Debug Modus */
.debug {
	color: red;
	font-style: bold;
}

/* Header */
header {
    background-color: #ffffff;
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center; /* Zentriert den gesamten Header-Inhalt */
}

header .header-container {
    display: flex;
    align-items: center;  /* Vertikale Ausrichtung von Logo und Navigation */
    justify-content: center;  /* Zentriert Logo und Navigation */
    width: 100%;
    position: relative; /* Für die Platzierung des Logos */
}
.user-info {
	color: #000;
	font-weight: bold;
	text-shadow: 3px 3px 4px black;
}
/* Logo im Header über die gesamte Breite */
header .logo {
    width: 481px;         /* Logo wird auf 100% der Breite des Containers gestreckt */
    height: 200px;        /* Höhe wird automatisch angepasst, um das Seitenverhältnis zu erhalten */
    display: block;      /* Block-Element für zentrierte Ausrichtung */
    margin: 0 auto;      /* Zentriert das Logo */
}


/* Stil für das Menü */
.main-nav {
    text-align: center;  /* Menü zentrieren */
    background-color: #333; /* Hintergrundfarbe des Menüs */
    padding: 10px 0;      /* Abstand oben und unten im Menü */
}

.main-nav ul {
    list-style-type: none;  /* Entfernt die Aufzählungszeichen */
    margin: 0;
    padding: 0;
}

.main-nav li {
    display: inline-block;  /* Setzt die Menüpunkte nebeneinander */
    margin: 0 10px;         /* Abstand zwischen den Menüpunkten */
}

.main-nav a {
    text-decoration: none;  /* Entfernt Unterstreichung von Links */
    color: white;           /* Textfarbe im Menü */
    font-size: 16px;        /* Schriftgröße */
    padding: 10px 20px;     /* Abstand um den Text */
    border-radius: 5px;     /* Abgerundete Ecken */
    border: 2px solid transparent; /* Transparente Umrandung als Basis */
    background-color: #555;  /* Hintergrundfarbe für den Button */
    transition: background-color 0.3s ease, border-color 0.3s ease; /* Übergangseffekt für Hover */
}

/* Hover-Effekt für die Menüpunkte */
.main-nav a:hover {
    background-color: red;  /* Hintergrundfarbe bei Hover */
    color: white;           /* Textfarbe bei Hover */
    border-color: white;    /* Weiße Umrandung bei Hover */
}


nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center; /* Zentriert die Navigation */
}

nav ul li {
    margin-right: 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: none;
}

/* Benutzername und Rolle im Menü */
nav ul li.user-info {
    font-style: italic;
    color: #ffcc00; /* Akzentfarbe für den Benutzername und Rolle */
}

/* Hauptinhalt */
main {
    padding: 20px;
    background-color: #fff;
}

.content-container {
    margin-left: 20px;
}

h1 {
	margin-left: 50px;
    color: #333;
}

h2 {
	text-align: center;
    color: #333;
}

h3 {
    color: #555;
}

/* Tabellenstil */
/* Zentrierte Kopfzeile */
.centered {
    text-align: center; /* Zentriert den Text in dieser Kopfzeile */
}
.table-container {
    display: flex;           /* Flexbox aktivieren */
    justify-content: center; /* Tabelle zentrieren */
    margin: 20px 10px;        /* Abstand oben und unten */
}

table {
    width: 90%;             /* Breite der Tabelle auf 90% setzen */
    border-collapse: collapse; /* Verhindert unnötige Abstände zwischen den Zellen */
    margin-top: 20px auto;      /* Abstand oben zur Tabelle */
	margin: 0px auto;
}
table td.inputF {
    width: 70%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
/* Standard Hover-Effekt für alle Tabellenzeilen mit der Klasse 'hover' */
table tr.hover:hover {
    background-color: #f4f4f4; /* Standard Hover-Effekt */
}

/* Verhindern des Hover-Effekts für Zeilen mit 'no-felgen' und 'empty-lagerort' */
table tr.no-felgen.hover:hover,
table tr.empty-lagerort.hover:hover {
    background-color: transparent !important; /* Kein Hintergrund beim Hover */
    cursor: default !important; /* Kein Hover-Cursor */
    pointer-events: none !important; /* Deaktiviert Hover-Ereignisse */
} 

/* Kopfzeilen */
th {
    padding: 8px 10px;     /* Weniger Abstand in den Kopfzeilen */
    text-align: left;
    background-color: #f1f1f1;
    font-weight: bold;
    border-bottom: 2px solid #ddd;
	border-right: 1px solid #ddd;
}

/* Zellen der Tabelle */
td {
    padding: 6px 10px;     /* Weniger Abstand in den Zellen */
    border-bottom: 1px solid #ddd;
	border-right: 1px solid #ddd;
}
/* Die Datenbankdaten links ausrichten */
#td3 {
	text-align: left;

}
#td2 {
	font-weight: bold;
	text-align: right;
	width: 300px;
}

/* Zeilen ohne Felgen rot einfärben */
.no-felgen {
    background-color: #ff6666; /* Rot für Reifen ohne Felgen */
	
}
/* Zeilen Leerer Lagerorte grüb einfärben */
.empty-lagerort {
	background-color: green;
}



/* Login-Stil */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.login-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 15px;
}

.login-container input[type="text"], input[type="password"] {
    width: 70%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #575757;
}

.error {
    color: red;
    text-align: center;
    margin-bottom: 15px;
}

/* Stil für die Seitennavigation */
.pagination {
    text-align: center;
    margin-top: 20px;
	margin-bottom: 20px;
}

/* Standardstil für die Links in der Pagination */
.pagination a {
    margin: 0 5px;
    padding: 8px 10px;
    text-decoration: none;
    color: #333; /* Standardfarbe */
    background-color: #f1f1f1; /* Hintergrundfarbe */
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Stil für die aktuelle Seite (rot) */
.pagination a.active {
    background-color: #ff6666; /* Rot */
    color: white;
}

/* Stil für Hover-Effekte (grün) */
.pagination a:hover {
    background-color: #4caf50; /* Grün */
    color: white;
}

/* Stil für Links ohne Klick-Interaktion (Deaktiviert) */
.pagination a.disabled {
    background-color: #ddd; /* Grau für deaktivierte Seiten */
    color: #999;
    pointer-events: none;
}

.lager-container {
	width: 90%;
	margin: 0px auto;
    display: grid;
    grid-template-columns: repeat(25, 60px);
    gap: 5px;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.lagerort {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 15px;
    font-weight: bold;
    color: white;
    font-size: 14px;
    padding: 1px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.belegt {
    background-color: darkred;
}

.frei {
    background-color: green;
}

.lagerort:hover {
    background-color: darkgray;
}

a {
    color: inherit; /* Erbt die Farbe vom umgebenden Text */
    text-decoration: none; /* Entfernt die Unterstreichung */
}

a:hover, a:focus {
    text-decoration: none; /* Auch beim Hover keine Unterstreichung */
    color: orange; /* Farbe bleibt gleich */
}

/* Aktivierungsstil für das Textfeld (fokusiert) */
input[type="text"]:focus {
    border: 1px solid red;       /* Roter Rand, wenn das Feld aktiv ist */
    box-shadow: 2px 2px 5px rgba(255, 0, 0, 0.3); /* Leichter roter Schatten */
    outline: none;               /* Entfernt die Standardumrandung im Browser */
}

/* Container für die user-info-container */
.user-info-container {
	background-color: white;
    padding: 20px;
    height: 295px;
    border-radius: 10px; /* Abgerundete Ecken */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Leichter Schatten */
    text-align: center; /* Text zentrieren */
    width: auto; /* Breite des Formulars */
    box-sizing: border-box;
}
.user-info {
	color: #000;
	text-shadow: 3px 3px 4px black;
}
/* Container für das Formular */
searchform {
    background-color: white;
	margin: 0px auto;
    padding: 20px;
    border-radius: 10px; /* Abgerundete Ecken */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Leichter Schatten */
    text-align: center; /* Text zentrieren */
    width: 400px; /* Breite des Formulars */
    box-sizing: border-box;
}

.search-container {
    display: block;
	margin: 0px auto;
    align-items: center;
    gap: 8px; /* Abstand zwischen den Elementen */
}

.search-input {
    width: 250px; /* Feste Breite von 200px */
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: red; /* Rote Umrandung bei Aktivierung */
    outline: none; /* Entfernt den Standard-Fokusrahmen */
}

.search-button {
    padding: 8px 12px;
    font-size: 16px;
    border: none;
    background-color: #808080; /* Mittleres Grau */
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: red; /* Rot beim Hovern */
}

/* Allgemeine Seitengestaltung */

/* Überschrift */
h1 {
    color: #333;
}

/* Allgemeine Einstellungen für das Container-Element */
.chart-container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}
canvas {
    margin: 30px 0;
}


/* Stil für das Balkendiagramm */
#barChart {
    max-width: 500px; /* Maximale Breite für das Balkendiagramm */
    max-height: 300px; /* Höhe des Diagramms */
    border: 1px solid #ccc; /* Rahmen um das Diagramm */
    border-radius: 8px; /* Abgerundete Ecken */
	margin-top: 5px;
    background-color: rgba(255, 255, 255, 0.8); /* Heller Hintergrund */
    display: block; /* Blockanzeige, um den Raum korrekt zu nutzen */

}

/* Stil für das Kreisdiagramm */
#pieChart {
    max-width: 400px; /* Maximale Breite für das Kreisdiagramm */
	max-height: 600px;
    border: 1px solid #ccc; /* Rahmen um das Diagramm */
    border-radius: 8px; /* Abgerundete Ecken */
    background-color: rgba(255, 255, 255, 0.8); /* Heller Hintergrund */
    display: block; /* Blockanzeige, um den Raum korrekt zu nutzen */
}

/* Zusätzliche Stile für Responsivität */
@media (max-width: 768px) {
    .chart-container {
        flex-direction: column; /* Diagramme untereinander anordnen bei kleinen Bildschirmen */
        align-items: center; /* Zentrieren */
    }

    #barChart, #pieChart {
        max-width: 90%; /* Maximale Breite für kleine Bildschirme */
    }
}
/* Container für die News-Seite */
.news-container {
    width: 80%; /* Nimmt 80% der Seite ein */
    margin: 0 auto; /* Zentriert den Container horizontal */
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
/* Container für die News-Eintragung */
.admin-container {
    width: 80%; /* Nimmt 80% der Seite ein */
    margin: 0 auto; /* Zentriert den Container horizontal */
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
/* News-Listen */
.news-list {
    list-style-type: none;
    padding: 0;
}

.news-list li {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.news-list h4 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.news-list p {
    font-size: 1em;
    color: #666;
    line-height: 1.6;
}

.news-list small {
    font-size: 0.9em;
    color: #888;
}

.news-list .actions {
    margin-top: 10px;
}

.news-list .actions button {
    background-color: #e3342f;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.news-list .actions button:hover {
    background-color: #c42d21;
}

/* Toast */
.toast {
    background-color: #28a745;
    color: white;
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px;
    border-radius: 4px;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.toast.error {
    background-color: #dc3545;
}

/* Erfolgreich hinzugefügt / Fehler */
.success {
    background-color: #28a745;
    color: white;
    padding: 10px;
    border-radius: 5px;
}

.error {
    background-color: #dc3545;
    color: white;
    padding: 10px;
    border-radius: 5px;
}

/* Standard-Button-Stil */
.button {
    display: inline-block;
    text-decoration: none;
    color: white;
    font-size: 18px;
    padding: 10px 20px;
    border-radius: 8px;
    background-color: #555;
    border: 2px solid transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    outline: none;
    border: none;
    margin-right: 15px; /* Abstand zwischen den Buttons */
    margin-bottom: 10px; /* Abstand nach unten */
}

/* Hover-Effekt */
.button:hover {
    background: red;
    color: white;
    transform: scale(1.0);
}

/* Alternative Button-Farbe */
.button.secondary {
    background-color: #555;
}

.button.secondary:hover {
    background: #555;
}

/* Roter Warn-Button */
.button.danger {
    background: red;
}

.button.danger:hover {
    background: darkred;
}

/* Responsive Anpassung für kleinere Bildschirme */
@media (max-width: 768px) {
    .button {
        font-size: 16px;
        padding: 10px 20px;
        width: 100%;
        margin-right: 0; /* Auf mobilen Geräten keine horizontalen Abstände */
        margin-bottom: 15px; /* Größerer Abstand nach unten */
    }
}

/* Das Formular zentrieren und breiter machen */
.formuser {
    margin: 0 auto; /* Zentriert das Formular horizontal */
    padding: 20px; /* Innenabstand */
    border: 1px solid #ccc; /* Rand um das Formular */
    border-radius: 10px; /* Abgerundete Ecken */
    background-color: #f9f9f9; /* Hintergrundfarbe */
}

/* Flexbox für das Layout der Felder */
.form-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

/* Formularfelder größer machen */
form input[type="text"], 
form input[type="number"], 
form input[type="email"], 
form select,
form textarea {
    padding: 5px; /* Innenabstand in den Feldern */
    margin: 10px 0; /* Abstand zwischen den Feldern */
    border: 1px solid #ccc; /* Rand */
    border-radius: 5px; /* Abgerundete Ecken */
    box-sizing: border-box; /* Box-Modell berücksichtigen */
}

/* Labels einheitlich und oben ausgerichtet */
form label {
    display: block; /* Jedes Label auf einer neuen Zeile */
    margin-bottom: 5px; /* Abstand nach unten */
    font-weight: bold;
}

/* Formularfelder nebeneinander anordnen */
form .half-width {
    width: 48%; /* Felder nebeneinander, mit Abstand */
}

/* Button-Styling */
form button {
    display: inline-block;
    width: auto;
    padding: 12px 20px;
    background-color: #555;
    border: 2px solid transparent;
    color: white;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    margin-top: 20px;
}

form button:hover {
    background: red;
}

/* Responsive Anpassung für kleinere Bildschirme */
@media (max-width: 768px) {
    form {
        width: 95%; /* Formular auf 95% der Breite setzen bei kleinen Bildschirmen */
    }
    
    /* Für kleinere Bildschirme die Felder untereinander anordnen */
    form .form-row {
        flex-direction: column;
    }

    form .half-width {
        width: 100%; /* Alle Felder bei kleinen Bildschirmen auf 100% setzen */
    }
}
.success-message {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    text-align: center;
    margin: 10px 0;
    border-radius: 5px;
    font-weight: bold;
}
#table-wrapper {
    display: flex;
    justify-content: center;
    height: 100vh; /* Höhe des Viewports */
    margin: 0 auto;
}

#table {
    width: 90%; /* Optional: Setze die Breite der Tabelle, um sie schöner darzustellen */
    max-width: 1200px; /* Optional: Setze ein Maximum, damit die Tabelle bei sehr großen Bildschirmen nicht zu breit wird */
}

#deleteMessage {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    text-align: center;
    margin-bottom: 20px;
}

/* Erstelle einen benutzerdefinierten Stil für die Checkbox */
input[type="checkbox"] + label {
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 18px;
    line-height: 20px;
    user-select: none;
}

/* Der benutzerdefinierte Checkmark-Box-Container */
input[type="checkbox"] + label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #007bff; /* Blaue Randfarbe */
    border-radius: 5px;
    background-color: white;
    transition: background-color 0.3s, border-color 0.3s;
}

/* Wenn die Checkbox angeklickt wird, ändert sich die Farbe */
input[type="checkbox"]:checked + label:before {
    background-color: #007bff; /* Blaue Hintergrundfarbe */
    border-color: #007bff; /* Blaue Randfarbe */
}

/* Checkmark erscheint, wenn die Checkbox aktiviert ist */
input[type="checkbox"]:checked + label:after {
    content: '✔';
    position: absolute;
    left: 4px;
    top: -2px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    transition: opacity 0.3s;
}

/* Wenn die Checkbox nicht aktiviert ist, erscheint kein Häkchen */
input[type="checkbox"]:not(:checked) + label:after {
    content: '';
}
.status-dot {
            height: 12px;
            width: 12px;
            border-radius: 50%;
            display: inline-block;
        }
.online { background-color: green; }
.offline { background-color: red; }

/* Container für das Formular */
.container {
  max-width: 500px;
  margin: 40px auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Überschrift des Formulars */
h2 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: #333;
}

/* Form-Felder */
.form-label {
  font-weight: 500;
  margin-bottom: 4px;
  color: #555;
}

.form-control {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 15px;
}

.form-control:focus {
  border-color: #4CAF50;
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    text-align: center;
    width: 120px; /* Einheitliche Breite für alle Buttons */
    display: inline-block;
    text-decoration: none;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Container für die Adminansicht */
.container {
    max-width: 80%;
    margin: 40px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Tabelle Nutzerverwaltung */
.table {
    width: 90%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

.table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.table tbody tr:hover {
    background-color: #f1f1f1;
}

/* Status Punkt für Online/Offline */
.status-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background-color: green;
}

.status-dot.offline {
    background-color: gray;
}

/*Ansicht Einlagerung*/

.la-container {
	position: center;
	padding: 20px;
	background-color: #f3f3f3;
	border-radius: 12px 12px 12px 12px;
	margin-left: 50px;
	margin-bottom: 20px;
	width: 80%;
	border: 1px, solid, black;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.la-kunde {
	border: 1px solid black;
	width: 90%;               /* Beispielbreite für das innere div */
    padding: 20px;
	margin-bottom:10px;
	background-color: #f2f2f2;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.la-reifen {
	border: 1px solid black;
	width: 50%;               /* Beispielbreite für das innere div */
    padding: 20px;
	margin-bottom: 10px;
	background-color: #f2f2f2;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.la-container ul{
	list-style-type: none;
	padding-left: 0px;
}
.la-felgen {
	border: 1px solid black;
	width: 50%;               /* Beispielbreite für das innere div */
    padding: 20px;
	background-color: #f2f2f2;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.la-zubehoer {
	border: 1px solid black;
	width: 50%;               /* Beispielbreite für das innere div */
    padding: 20px;
	background-color: #f2f2f2;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.formul input[type="text"], input[type="email"] {
    max-width: 300px;
}
/* Container für mehrere Charts */
.chart-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 1rem 0;
}

/* Einzelnes Chart-Element */
.chart-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* Zentriert die Charts horizontal */
  gap: 1rem;
  margin: 0 auto;            /* Optional: zentriert den Container selbst, falls er eine feste Breite hat */
  max-width: 1000px;         /* Optional: begrenzt die maximale Breite */
}

.chart-box {
  flex: 1 1 45%;
  max-width: 45%;
  min-width: 250px;
  background-color: var(--background-secondary);
  padding: 5px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.chart-box:hover {
  transform: scale(1.01);
}

/* Sicherstellen, dass SVGs/Canvas-Charts responsiv sind */
.chart-box canvas,
.chart-box svg {
  width: 100% !important;
  height: auto !important;
}
/* Maximale Größe für pieChart*/

#pieChart {
  width: 400px !important;
  height: 400px !important;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

#barChart {
  width: 550px !important;
  height: 400px !important;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

#lagerortChart {
  width: 550px !important;
  height: 400px !important;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

#kundenChart {
  width: 550px !important;
  height: 400px !important;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

#alterChart {
  width: 400px !important;
  height: 400px !important;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

#profilChart {
  width: 550px !important;
  height: 400px !important;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.container {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Formulare und Abschnitte */
.form-section {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.form-section h2 {
  color: #333;
  font-size: 24px;
  margin-bottom: 10px;
}

.form-group {
  margin-bottom: 15px;
}

label {
  font-size: 14px;
  color: #555;
  display: block;
  margin-bottom: 5px;
}

.form-section input[type="text"], input[type="number"], textarea {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

input[type="text"]:focus, input[type="number"]:focus, textarea:focus {
  border-color: #5e9bff;
  outline: none;
}

textarea {
  resize: vertical;
}

/* Buttons */
.btn-submit, .btn-cancel {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-submit {
  background-color: #4CAF50;
  color: white;
}

.btn-submit:hover {
  background-color: #45a049;
}

.btn-cancel {
  background-color: #f44336;
  color: white;
}

.btn-cancel:hover {
  background-color: #e53935;
}

/* Abschnitte und Abstand */
.form-actions {
  text-align: right;
  margin-top: 20px;
}

.form-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-group input, .form-group textarea {
  width: 45%;
}

@media (max-width: 768px) {
  .form-group {
    flex-direction: column;
  }

  .form-group input, .form-group textarea {
    width: 100%;
  }
}
.la-box-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}
/*show.php*/

.la-box-container > div {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    flex: 1 1 300px; /* mind. 300px breit, wächst aber flexibel */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.la-box-container h2 {
    margin-top: 0;
    color: #2c3e50;
}

.la-box-container ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.la-box-container ul li {
    padding: 3px 0;
    border-bottom: 1px solid #eee;
}

.button-container {
    display: flex;
	justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    background-color: #f0f0f0;
    color: #333;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.2s;
	flex: 1 1 auto;       /* Buttons teilen sich den Platz gleichmäßig */
    max-width: 150px;     /* maximale Breite, damit sie nicht zu breit werden */
    text-align: center;
    white-space: nowrap;  /* Text bleibt in einer Zeile */
}

.btn:hover {
    background-color: #e0e0e0;
	color: #000;
	border: 1px, solid, wight;
}

/* Responsive für kleinere Bildschirme */
@media (max-width: 768px) {
    .la-box-container {
        flex-direction: column;
    }
    .la-box-container > div {
        flex: 1 1 100%;
    }
}
#notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 9999;
}
#notification.show {
    opacity: 1;
}
.modal {
  display: none; /* wichtig! */
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 12px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close {
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}
/*Reifenbilder in Show.php*/
.reifensh, .felgensh {
    display: flex;
    align-items: flex-start;
    
}
.reifenpi, .felgenpi {
    display: flex;
    height: 150px;
    width: 150px;
}
.reifenbilder-container,
.felgenbilder-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}

.bild-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 180px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.bild-block img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 8px;
}

.bild-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.bild-neu {
  margin-top: 20px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
}

input[type="checkbox"] {
  transform: scale(1.3);
  cursor: pointer;
}
/* edit.php */
.container.la-box-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Spalten */
    grid-template-rows: auto auto auto;    /* 3 Reihen */
    gap: 20px;                             /* Abstand zwischen Boxen */
}

/* Die ersten drei Boxen (Kunde, Reifen, Felgen) nebeneinander */
.container.la-box-container > .la-box:nth-child(1),
.container.la-box-container > .la-box:nth-child(2),
.container.la-box-container > .la-box:nth-child(3) {
    grid-column: auto;
}

/* 4. Box (Bilder) über gesamte Breite */
.container.la-box-container > .la-box:nth-child(4) {
    grid-column: 1 / -1;
}

/* 5. Box (Lagerung) über gesamte Breite */
.container.la-box-container > .la-box:nth-child(5) {
    grid-column: 1 / -1;
}

/* Optik */
.la-box {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    background: #fafafa;
}

.la-box h2 {
    margin-top: 0;
}

.la-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}


/* Responsiv: bei schmalem Bildschirm untereinander */
@media (max-width: 900px) {
    .container.la-box-container {
        grid-template-columns: 1fr; /* nur 1 Spalte */
    }
}