/* Allgemeine Stile */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    color: white;
    padding: 10px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgb(0 0 0 / 9%);
	background: #14889e0a;
}

/* Hauptinhalt */
main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    color: #14889e;
    text-align: center;
    margin-bottom: 20px;
}

/* Formulare */
form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 80%;
    margin: 20px auto;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

form input[type="text"],
form input[type="password"],
form input[type="date"],
form input[type="number"],
form textarea,
form select {
    width: 97%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

form button {
    padding: 10px;
    background-color: #14889e;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
margin-top: 20px;
}

form button:hover {
    background-color: #34495e;
}

	.form-group {
    padding-top: 20px;
}
	

/* Footer */
footer {
    color: white;
    padding: 10px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgb(0 0 0 / 9%);
	background: #14889e0a;
}

/* Sub-Menü */
.sub-menu ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.sub-menu ul li {
    margin: 0 10px;
}

.sub-menu ul li a {
    text-decoration: none;
    color: #14889e;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.sub-menu ul li a.active,
.sub-menu ul li a:hover {
    background-color: #14889e;
    color: white;
}

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

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

table th {
    background-color: #14889e;
    color: white;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

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

table a {
    color: #14889e;
    text-decoration: none;
    margin-right: 10px;
}

table a:hover {
    text-decoration: underline;
}

/* Menü */
nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center; /* Menü mittig ausrichten */
}

nav ul li {
        margin: 3px; /* Abstand zwischen den Menüpunkten */
border: solid 1px #ddd;
        padding-left: 7px;
        padding-right: 7px;
        padding-top: 10px;
        padding-bottom: 10px;
align-items: center;
        display: flex;
        justify-content: center;
border-radius: 5px;
background: #14889e;
}

nav ul li a {
    display: block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

nav ul li:hover {
    background-color: #0e5562;
}

nav ul li a:hover i {
    color: #efefef; /* Farbe beim Hover */
}

/* Dropdown-Menü */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #14889e;
    list-style-type: none;
    padding: 0;
    margin: 0;
    min-width: 150px;
    z-index: 1000;
}

.dropdown-menu li a {
    padding: 10px;
    display: flex;
    align-items: center;
}

.dropdown-menu li a i {
    margin-right: 10px;
}

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

/* Tab-Buttons */
.tab-buttons {
    margin-bottom: 20px;
    text-align: center;
}

.tab-buttons a {
    display: inline-block;
    padding: 10px 20px;
    margin-right: 10px;
    background-color: #e4e4e4;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.tab-buttons a.active,
.tab-buttons a:hover {
    background-color: #14889e;
    color: white;
}

/* Container für die Buttons */
.button-container {
    position: absolute;
    top: 20px; /* Abstand vom oberen Rand */
    right: 20px; /* Abstand vom rechten Rand */
    display: flex;
    gap: 10px; /* Abstand zwischen den Buttons */
}

/* Stil für die Buttons */
.button {
    padding: 10px 20px;
    background-color: #007bff; /* Hintergrundfarbe */
    color: white; /* Textfarbe */
    text-decoration: none; /* Unterstreichung entfernen */
    border: none;
    border-radius: 5px; /* Abgerundete Ecken */
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease; /* Animation beim Hover */
}

/* Stil für den aktiven Button */
.button.active {
    background-color: #0056b3; /* Dunklere Farbe für den aktiven Button */
}

/* Hover-Effekt */
.button:hover {
    background-color: #0056b3; /* Dunklere Farbe beim Hover */
}

/* Stil für die Buttons */
.button-right {
    padding: 10px 20px;
    background-color: #14889e; /* Hintergrundfarbe */
    color: white; /* Textfarbe */
    text-decoration: none; /* Unterstreichung entfernen */
    border: none;
    border-radius: 5px; /* Abgerundete Ecken */
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease; /* Animation beim Hover */
    float: right;
}

/* Stil für den aktiven Button */
.button-right.active {
    background-color: #ac842f; /* Dunklere Farbe für den aktiven Button */
}

/* Hover-Effekt */
.button-right:hover {
    background-color: #ac842f; /* Dunklere Farbe beim Hover */
}

    tr[data-href] {
        cursor: pointer;
    }
    tr[data-href]:hover {
        background-color: #f5f5f5;
    }
    .no-click {
        cursor: default !important;
    }

    /* Verhindere, dass die Aktionen-Zelle den Hover-Effekt übernimmt */
    tr[data-href] td:last-child {
        cursor: default;
    }





/* Responsive Design */
@media (max-width: 768px) {

    .permissions-table {
        font-size: 12px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .bulk-buttons {
        flex-direction: column;
    }
	
    header nav ul li, footer nav ul li {
        margin: 3px; /* Abstand zwischen den Menüpunkten */
border: solid 1px #ddd;
        padding-left: 7px;
        padding-right: 7px;
        padding-top: 10px;
        padding-bottom: 10px;
align-items: center;
        display: flex;
        justify-content: center;
border-radius: 5px;
    }
	
nav ul li a {
    padding: 0px;
}

	span.fas-span {
    font-size: 14px;
}
	
	i.fas {
    font-size: 20px;
}
	
    /* Dropdown-Menü für kleine Bildschirme */
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #34495e;
    }

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

    main {
        padding: 10px;
    }

    form {
        padding: 15px;
    }

    h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    form input[type="text"],
    form input[type="password"],
    form input[type="date"],
    form input[type="number"],
    form textarea,
    form select,
    form button {
        font-size: 16px;
    }

    h1 {
        font-size: 20px;
    }
}

/* Dropdown-Menü */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    list-style: none; /* Entfernt die Standard-Listenpunkte */
    padding: 0; /* Entfernt das Standard-Padding */
    margin: 0; /* Entfernt den Standard-Margin */
}

.dropdown-content li a {
    padding: 0px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content li a:hover {}

.dropdown:hover .dropdown-content {
    display: block;
}