/* Grundlegende Stile */
body {
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    font-family: Arial, sans-serif;
    color: #333;
}

h1, h2, h3, h4, h5, h6{
    font-family: arial;
}

#blank{
    background-color: lightgray;
    padding: 30px;
    margin: 20px;
}

label{
    font-family: arial;
}


#logo {
    max-width: 60%;         /* Begrenzung der Logo-Größe */
    height: auto;
    padding: 20px;
}

.logo{
    max-width: 40%;         /* Begrenzung der Logo-Größe */
    height: auto;
   
} 


/* Login-Formular-Stile */
.form-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.form-container label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
    font-family: arial;
}

.form-container input[type="text"],
.form-container input[type="user"],
.form-container input[type="password"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

.form-container input[type="text"]:focus,
.form-container input[type="email"]:focus,
.form-container input[type="password"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.form-container button[type="submit"] {
    width: 100%;
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.form-container button[type="submit"]:hover {
    background-color: #2980b9;
}

.form-container #message {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #e74c3c;
}

.container {
    width: 90%;
    max-width: 1600px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.selection-row {
    display: flex;
    flex-direction: row;
    margin-bottom: 10px; /* Abstand zwischen den Zeilen */
}

.selection-group {
    margin-right: 10px; /* Abstand zwischen Maschinen- und Status-Auswahl */
}

select.eingabe{
    width: 30%;
}


.eingabe {
    width: 30%;
    height: auto;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

select#modal_status{
    height: 30px;
    width: 80%;
    margin: 5px;
}
/*input.php*/
#kategorie_select.eingabe{
    width: 30%;
}
#abteilung_select.eingabe{
    width: 30%;
}



select.eingabe.status, select.eingabe.devices, select.eingabe.delete, select.eingabe, #selection-row{
    width: 100%;
}

#searchStatus,
#searchAbteilung,
#delete-ausbildung,
#searchAusbildung,
#searchSeriennummer{
    width: 100px;
    height:40px;
    margin: 2px;
    float: left;
}



/*editsingle.php*/
#delete{
    background-color: orange;
    padding: 15px;
}

#dynamic-form{
    background-color: #464646;
    padding: 5px;
}

#sensitiv-form{
   background-color: #fff;
    padding: 5px;  
}


.filter-container {
    margin: 20px 0;
}
#maschinenFilter, 
#abteilungFilter, 
#statusFilter, 
#categoryFilter{
    width: 99%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
        }

#searchTerm

{
    width: 99%;
    height:40px;
    margin: 2px;
    
}

#filterbox{
    background-color: #464646;
    padding: 5px;
    border-radius: 5px;
}

button#suchen{
    margin: 2px;

}

p{
    font-size: 14px;
 
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

span.uebersicht{
    margin: 20px;
}

span.seriennummer{
    margin: 20px;
}

/* Allgemeine Eingabe-Stile */


/* Menü-Stile */
#menu, #front {
    background-color: #2c3e50;
    color: white;
    padding: 15px;
    text-align: center;
}

#menu a, #front a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

#menu a:hover, #front a:hover {
    text-decoration: underline;
}

/* Formular Ausgabe */
#formausgabe {
    background-color: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Zeige alles */
#showall {
    background-color: #3498db;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

/* Ausgabe-Include */
.ausgabeinclude {
    background-color: #e74c3c;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Ausgabe-Stile */
#output, #outputdelete {
    background-color: #e67e22;
    border: 1px solid #d35400;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: white;
    width: 100%;
}

/* Lösch-Button-Stil */
#loeschen {
    background-image: url(icon/cross.svg);
    background-repeat: no-repeat;
    background-position: left;
    padding-left: 20px;
    cursor: pointer;
}


/* Eingabe-Button-Stile */
.btn-aktualisieren{
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;

 
    
}

/* Eingabe-Button-Stile */
input[type="submit" i] {
    background-color: #F2790F;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
 ;   
}

.knopf{
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

input[type="submit" i]:hover {
    background-color: #F2AD2E;
}

input#knopf{
    margin: 5px;
}

/* Responsive Tabellen */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 12px;
    border: 1px solid #ddd;
}

th {
    background-color: #d93a3a;
    color: white;
    text-align: left;
}

@media (max-width: 768px) {
    th, td {
        white-space: nowrap;
    }
}



/* Navigation */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
}

/* Basisstil für das Menü */
#menu {
    background-color: #464646;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.nav-links li {
    position: relative;
}

/* Basisstil für Links */
.nav-links a {
    color: white;
    text-decoration: none;  /* Verhindert Standard-Unterstreichung */
    padding: 15px;
    display: inline-block;
    position: relative;
    transition: color 0.7s ease;
}

/* Unterstrich-Effekt beim Hover */
.nav-links a::after {
    content: "";
    display: block;
    width: calc(100% - 30px);  /* Breite des Unterstrichs ohne Padding */
    height: 6px;
    background-color: orange;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.7s ease;
}

.nav-links a:hover::after {
    opacity: 1;
}

/* Dropdown-Menü */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #444;
    padding: 0;
    list-style: none;
}

.dropdown-menu li a {
    padding: 10px;
    color: white;
    text-decoration: none;
    white-space: nowrap;
}

/* Dropdown-Menü anzeigen beim Hover */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Zusätzlicher Stil zur Entfernung aller Unterstreichungen bei Hover */
.nav-links a:hover, .dropdown-menu li a:hover {
    text-decoration: none !important;
}


/* Menü-Schaltfläche für Mobilgeräte */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 4px 0;
    transition: transform 0.3s;
}

#footer {
    background-color: #464646; /* Dunkler Hintergrund */
    color: white;              /* Weißer Text */
    padding: 40px 20px;       /* Polsterung oben und unten */
}

.footer-container {
    display: flex;             /* Flexbox für die Anordnung */
    justify-content: space-between; /* Verteilt die Links gleichmäßig */
    flex-wrap: wrap;          /* Erlaubt Zeilenumbruch bei kleinen Bildschirmen */
}

.footer-links {
    flex: 1;                  /* Flex-Gewicht */
    margin: 10px;            /* Abstand zwischen den Link-Abschnitten */
}

.footer-links h3 {
    margin-bottom: 15px;      /* Abstand unter der Überschrift */
}

.footer-links ul {
    list-style: none;         /* Keine Aufzählungszeichen */
    padding: 0;              /* Keine Polsterung */
}

.footer-links ul li {
    margin-bottom: 10px;      /* Abstand zwischen den Listenelementen */
}

.footer-links a {
    color: white;             /* Linkfarbe */
    text-decoration: none;    /* Keine Unterstreichung */
    transition: color 0.3s;   /* Übergangseffekt */
}

.footer-links a:hover {
    color: orange;            /* Hover-Effekt */
}

.footer-social {
    flex: 1;                  /* Flex-Gewicht */
    text-align: center;       /* Zentriert die Icons */
}

.footer-social .social-icons {
    display: flex;            /* Flexbox für die Icons */
    justify-content: center;  /* Zentriert die Icons */
}

.footer-social a {
    margin: 0 10px;          /* Abstand zwischen den Icons */
}

.footer-bottom {
    text-align: center;       /* Zentriert den Text */
    margin-top: 20px;        /* Abstand nach oben */
    border-top: 1px solid #fff; /* Horizontale Linie oben */
    padding-top: 10px;       /* Abstand nach oben */
    font-size: 0.9em;        /* Kleinere Schriftgröße */
}


@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #2c3e50;
        position: absolute;
        top: 60px;
        left: 0;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-links.active {
        display: flex;
    }

    .dropdown-menu {
        display: none;
        position: static;
        background-color: #2c3e50;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }
}


    .update-group {
        display: flex;
        align-items: center;
        justify-content: space-between; /* Elemente gleichmäßig horizontal verteilen */
        margin-bottom: 10px;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f9f9f9;
    }

    .uebersicht {
        flex: 1; /* Flexibles Wachstum für die Ausbildung */
    }

    .status {
           flex: 1; /* Flexibles Wachstum für die Ausbildung */
    }
    
    .seriennummer {
           flex: 1; /* Flexibles Wachstum für die Ausbildung */
    }
 
    .btn-aktualisieren {
        padding: 8px 16px;
        background-color: #F2790F;
        color: #fff;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }
    .btn-aktualisieren:hover{
    background-color: #F2AD2E;
}



/* Buttons */

.btn-edit{
    display: inline-block;
    padding: 20px 20px;
    margin: 10px;
    background-color: #F2790F;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn-overview{
    display: inline-block;
    padding: 5px 10px;
    background-color: #F2790F;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn-overview:hover, .btn-edit:hover {
    background-color: #F2AD2E;
}

.btn-clear {
    display: inline-block;
    padding: 5px 10px;
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn-clear:hover {
    background-color: red;
}
.center-div {
    display: flex;
    justify-content: center; /* Zentriert das Logo horizontal */
    align-items: center;     /* Zentriert das Logo vertikal */
             
}

#logo {
    max-width: 60%;         /* Begrenzung der Logo-Größe */
    height: auto;
    padding: 20px;
}

.logo{
    max-width: 60%;         /* Begrenzung der Logo-Größe */
    height: auto;
   
}  







/* Grid Container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Grid Item */
.grid-item {
    background-color: #ffffff;
    padding: 18px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.grid-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.grid-item p {
    margin: 0 0 10px;
}

.grid-item p strong {
    display: block;
    font-size: 1.1em;
}

