/* =========================== */
/*           BASIS-STILE       */
/* =========================== */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #2b2d42;
    color: #8499B1;
    text-align: center;
}

/* =========================== */
/*           HEADER            */
/* =========================== */

header {
    background: #2b2d42;
    color: #8499B1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    position: relative;
    font-size: 30px;
}

header h1 {
    font-size: 24px;
    margin: 0;
}

.menu-toggle {
    font-size: 30px;
    cursor: pointer;
    margin-top: 10px;
    position: relative;
    align-self: flex-start;
}

/* =========================== */
/*        NAVIGATION           */
/* =========================== */

nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #2b2d42;
}

nav.active {
    display: block;
}

nav ul {
    list-style: none;
    padding: 0 20px;
    margin: 0;
    text-align: left;
}

nav ul li {
    margin: 10px 0;
}

nav ul li a {
    color: #8499B1;
    text-decoration: none;
    font-size: 18px;
}

/* =========================== */
/*           FOOTER            */
/* =========================== */

footer {
    background: #2b2d42;
    color: #8499B1;
    padding: 10px;
    position: fixed;
    width: 100%;
    bottom: 0;
    font-size: 14px;
}

/* =========================== */
/*       ADMIN DASHBOARD       */
/* =========================== */

.admin-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.admin-menu a {
    display: block;
    text-decoration: none;
    color: white;
    background-color: #8499B1;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 5px;
    width: 200px;
    text-align: center;
}

.admin-menu a:hover {
    background-color: #6d849f;
}

/* =========================== */
/*       TABELLENSTILE         */
/* =========================== */

table {
    width: 80%;
    margin: 20px auto;
    border-collapse: collapse;
}

table, th, td {
    border: 1px solid #8499B1;
}

th, td {
    padding: 10px;
    text-align: center;
}

th {
    background-color: #2b2d42;
    color: white;
}

/* =========================== */
/*   SPEZIELLE BUTTON-STILE   */
/* =========================== */

.btn-delete {
    display: inline-block;
    background-color: red;
    color: white;
    padding: 5px 12px; /* Reduziertes Padding für eine bessere Größe */
    border-radius: 5px;
    text-decoration: none;
    border: none;
    font-weight: bold;
    font-size: 14px; /* Kleinere Schriftgröße */
    line-height: 1;
}

.btn-delete:hover {
    background-color: darkred;
    opacity: 0.9;
}

.btn-edit {
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
}

.btn-edit:hover {
    background-color: #0056b3;
}

.btn-password {
    background-color: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
}

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

/* Fix für Buttons in der Benutzerverwaltung */
table th:nth-child(5), table td:nth-child(5) {
    min-width: 250px;
    white-space: nowrap;
}

/* =========================== */
/*     LINKS ALS BUTTONS       */
/* =========================== */

a.btn {
    display: inline-block;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

a.btn:hover {
    background-color: #0056b3;
}

/* =========================== */
/*         TINYMCE FIX         */
/* =========================== */

.tox .tox-tbtn {
    color: white !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.tox .tox-tbtn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.tox .tox-toolbar {
    background: #3b3f58 !important; /* Helleres Dunkelblau */
    border-bottom: 1px solid #8499B1 !important;
}

.tox .tox-statusbar {
    background: #3b3f58 !important;
    border-top: 1px solid #8499B1 !important;
}

.tox .tox-icon svg {
    fill: #ffffff !important; /* Icons in Weiß */
}

.tox .tox-mbtn {
    color: white !important;
}
