/* Allgemeine Seiteneinstellungen */
body {
    font-family: Arial,  sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Container-Design */
.container {
    width: 80%;
    margin: 50px auto;
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
}

/* Überschriften */
h2 {
    color: black;
    font-size: 24px;
}

/* Formular-Styling */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    text-align: left;
    font-weight: bold;
}

input {
    padding: 10px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Button-Design */
button, .btn {
    background-color: #CB6CE6;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: block;
    text-align: center;
    margin: 5px 0;
}

button:hover, .btn:hover {
    background-color: #CB6CE6;
}

/* Logout-Button mit anderer Farbe */
.btn.logout {
    background: red;
}

.btn.logout:hover {
    background: darkred;
}

/* Verbesserte Tabellen-Gestaltung */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    table-layout: fixed; /* Gleichmäßige Spaltenverteilung */
    overflow-x: auto; /* Ermöglicht horizontales Scrollen auf kleinen Bildschirmen */
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    word-wrap: break-word; /* Verhindert, dass Text überläuft */
    overflow: hidden;
    text-overflow: ellipsis;
    color: black;
}

/* Tabellenkopf-Stil */
th {
    background-color: #CB6CE6;
    color: white;
}

/* Bessere Darstellung für Spalten mit langen Texten (z. B. Barcode) */
td:nth-child(3) { /* Barcode-Spalte */
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Tabellen-Darstellung für kleine Bildschirme */
@media screen and (max-width: 768px) {
    .container {
        width: 90%;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Linklisten-Design */
.menu-container ul {
    list-style-type: none;
    padding: 0;
}

.menu-container ul li {
    margin: 10px 0;
}

.menu-container ul li a {
    display: block;
    padding: 10px;
    background: #CB6CE6;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    width: 60%;
    margin: 0 auto;
    text-align: center;
}

.menu-container ul li a:hover {
    background: #CB6CE6;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


header {
    width: 100%;
    padding: 16px 32px;
    display: flex;
    align-items: center;                            /*Richtet Elemente in der Mitte aus */
    justify-content: space-between;                 /*Verteilt Elemente mit gleichm��igem Abstand dazwischen*/
    background-color: #EAEAEA;
}


.logo {
    width: 200px;
    right: 200px;
}




body {
      display: flex;
      flex-direction: column;     /*ordnet sie untereinander in spalten*/
      align-items: center;         /*zentriert die Elemente des Containers */
      background-color: #9C9C9C;   
      color: black;
    }



.nav-links ul {
    display: flex;
    list-style-type: none;
}


.nav-links li {
    margin-right: 13px;
}



.nav-links a {
    background-color: #CB6CE6;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
}


.menu-checkbox {           /* Men� unsichtbar */
    display: none;
}


.dropbtn {                    /* Dropdown-Button */
    display: none;
    cursor: pointer;
}

.dropbtn img {
    width: 60px;  
    height: 60px; 
    border-radius: 15px;
}

.h {                                      /* Formular */
    max-width: 600px;
    width: 100%;
    background-color: #EAEAEA;
    padding: 32px;
    margin-top: 32px;
    text-align: center;
    border-radius: 8px;
}

.h p {
    font-size: 38px;
}

.f {
    margin: 16px 0;
    text-align: left;
    font-size: 20px;
}


input, textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
}



input:focus, textarea:focus {
    outline: none;                /* Entfernt die Standard-Umrandung */
    border: 2px solid #CB6CE6;
}

label {
      font-size: 18px;
      color: #555;
      display: block;
      margin-bottom: 6px;
    }


    

button {
    width: 100%;
    padding: 16px;
    background-color: #CB6CE6;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}


footer {
    width: 100%;
    background-color: #EAEAEA;
    padding: 32px 32px;
    margin-top: 32px;
    display: flex;
    justify-content: space-around;          /*Abst�nden um jedes Element*/
    font-size: 14px;
    color: #555;
}

/* Footer-Elemente */
.footer {
    display: flex;
    flex-direction: column;                    /*ordnet sie untereinander in spalten*/
    align-items: flex-start;                   /*richtet die Elemente am oberen Rand*/
}




 .footer h3 {
      margin-bottom: 16px;
      font-size: 16px;
    }

    .footer a {
      color: #555;
      text-decoration: none;
      margin: 8px 0;
    }

    .footer a:hover {
      color: #CB6CE6;
    }



.social-icons {
    display: flex;
    gap: 8px;                  /*abst�nde zwischen bilder*/
}

.social-icons img {
    width: 20px;
    height: 20px;
}


@media screen and (max-width: 768px) {
  
  @media screen and (max-width: 768px) {

    /* Navi ausblenden */
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 10px;
        background: #EAEAEA;
        width: 200px;
        border-radius: 8px;
    }

    .nav-links ul {
        flex-direction: column;              /*ordnet sie untereinander in spalten*/
        text-align: center;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .nav-links a {
    display: block;  /* Macht den gesamten Link klickbar */
    text-decoration: none; /* Entfernt den Unterstrich */
    margin-right: 20px;
    margin-left: 20px;

}

    /* Button anzeigen */
    .dropbtn {
        display: block;
    }

    /* Men� einblenden, wenn die Checkbox aktiv ist */
    .menu-checkbox:checked ~ .nav-links {                   /*Wenn .menu-checkbox angeklickt wird, wird .mobile-menu sichtbar*/
        display: block;
    }






   
}
}