/********** Template CSS **********/
:root {
    --primary: #009CFF;
    --light: #F3F6F9;
    --dark: #191C24;
	--base-font-size: 14px;
}
body {
    font-size: var(--base-font-size); /* Globale Schriftgröße anwenden */
	margin: 0;
}

/* Verwende Flexbox, um den Inhalt und Footer zu positionieren */
.container {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* Footer am unteren Rand ausrichten */
.footer {
	margin-top: auto; /* Stellt sicher, dass der Footer immer unten bleibt */
}


.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/* Allgemeine Button-Einstellungen */
.btn {
    transition: .5s;
    display: inline-flex; /* Flexbox-Anordnung für alle Buttons */
    align-items: center;  /* Vertikal zentrieren */
    justify-content: center; /* Horizontal zentrieren */
	font-size: 14px;
}

/* Primäre Buttons */
.btn.btn-primary {
    color: #FFFFFF;
	font-size: 14px;

}

/* Quadratische Buttons mit fester Größe */
.btn-square {
    width: 38px;
    height: 38px;
	font-size: 14px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
	font-size: 14px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
	font-size: 14px;
}

/* Zentrierung und Padding für quadratische Buttons */
.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: inline-flex;
    align-items: center;  /* Vertikal zentriert */
    justify-content: center; /* Horizontal zentriert */
    font-weight: normal;
    border-radius: 50px;
	font-size: 14px;
}

/* Falls die Buttons innerhalb von Tabellenzellen immer zentriert sein sollen */
td {
    vertical-align: middle;
}


/*** Layout ***/
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    height: 100vh;
    overflow-y: auto;
    background: var(--light);
    transition: 0.5s;
    z-index: 999;
	font-size: 16px;
	
}

.content {
    margin-left: 250px;
    min-height: 100vh;
    background: #FFFFFF;
    transition: 0.5s;
}

@media (min-width: 992px) {
    .sidebar {
        margin-left: 0;
    }

    .sidebar.open {
        margin-left: -250px;
    }

    .content {
        width: calc(100% - 250px);
    }

    .content.open {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        margin-left: -250px;
    }

    .sidebar.open {
        margin-left: 0;
    }

    .content {
        width: 100%;
        margin-left: 0;
    }
}


/*** Navbar ***/
.sidebar .navbar .navbar-nav .nav-link {
    padding: 7px 20px;
    color: var(--dark);
    font-weight: 500;
    border-left: 3px solid var(--light);
    border-radius: 0 30px 30px 0;
    outline: none;
	
	
}

.sidebar .navbar .navbar-nav .nav-link:hover,
.sidebar .navbar .navbar-nav .nav-link.active {
    color: var(--primary);
    background: #FFFFFF;
    border-color: var(--primary);
}

.sidebar .navbar .navbar-nav .nav-link i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 40px;
}

.sidebar .navbar .navbar-nav .nav-link:hover i,
.sidebar .navbar .navbar-nav .nav-link.active i {
    background: var(--light);
}

.sidebar .navbar .dropdown-toggle::after {
    position: absolute;
    top: 15px;
    right: 15px;
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: .5s;
}

.sidebar .navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

.sidebar .navbar .dropdown-item {
    padding-left: 25px;
    border-radius: 0 30px 30px 0;
	font-size: 14px;
}

.content .navbar .navbar-nav .nav-link {
    margin-left: 25px;
    padding: 12px 0;
    color: var(--dark);
    outline: none;
}

.content .navbar .navbar-nav .nav-link:hover,
.content .navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.content .navbar .sidebar-toggler,
.content .navbar .navbar-nav .nav-link i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 40px;
}

.content .navbar .dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: middle;
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: .5s;
}

.content .navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

@media (max-width: 575.98px) {
    .content .navbar .navbar-nav .nav-link {
        margin-left: 15px;
    }
}


/*** Date Picker ***/
.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--primary);
}

/*** Tables ***/
.min-width {
    min-width: 1%;
}

.table {
    width: 100%; /* Optional: Stelle sicher, dass die Tabelle die volle Breite einnimmt */
}

table th,
.table td {
    font-size: 14px;
    border: 0.5px solid #dee2e6 !important;
    padding: 8px;
}

/* Für den speziellen Fall, dass du den unteren Rand der td weiterhin haben möchtest */
.table tbody td {
    border-bottom: 0.5px solid #dee2e6 !important; /* Zusätzlicher unterer Rand für td */
}

.table tbody tr:hover {
    background-color: #f8f9fa; /* Hellerer Hintergrund bei Hover */
}

.table th {
    background-color: #f1f1f1; /* Heller Hintergrund für Header */
    font-weight: bold; /* Fettdruck für Header */
}

/* Responsive Design für Bildschirme kleiner als 768px */
@media (max-width: 768px) {
    .table th,
    .table td {
        font-size: 14px; /* Kleinere Schriftgröße */
        padding: 6px; /* Weniger Padding */
    }
}

/* Responsive Design für Bildschirme kleiner als 480px */
@media (max-width: 480px) {
    .table th,
    .table td {
        font-size: 12px; /* Noch kleinere Schriftgröße */
        padding: 4px; /* Noch weniger Padding */
    }
}

.table td .button-group {
    display: flex;
    gap: 5px; /* Abstand zwischen den Buttons */
	justify-content: center; /* Zentriert die Buttons horizontal */
    align-items: center; /* Zentriert die Buttons vertikal */
    width: 100%; /* Nimmt die volle Breite der Zelle ein */
}

.table td .button-group form {
    display: inline; /* Sicherstellen, dass Formulare nebeneinander sind */
}

.table td .button-group button {
    flex: 1 1 auto; /* Gleiche Breite für alle Buttons */
}

/*** Testimonial ***/
.progress .progress-bar {
    width: 0px;
    transition: 2s;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 5px solid var(--primary);
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--dark);
    border-color: var(--primary);
}

/* Horizontales Menü Drawing-Editor */
.menu-container {
    margin: 20px;
    overflow-x: auto; /* Falls das Menü zu breit ist */
}

.horizontal-menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: nowrap; /* Verhindert das Umbruch auf die nächste Zeile */
    justify-content: space-between; /* Gleichmäßige Verteilung */
}

.horizontal-menu li {
    margin-right: 20px; /* Abstand zwischen den Menüpunkten */
}

.horizontal-menu li a {
    text-decoration: none;
    color: #333;
    padding: 10px 15px;
    background-color: #f0f0f0;
    border-radius: 5px;
    transition: background-color 0.3s;
    white-space: nowrap; /* Verhindert Umbruch in den Menüelementen */
}

.horizontal-menu li a:hover {
    background-color: #ddd;
}

/* Container für den Schalter */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

/* Versteckt das Standard-Checkbox-Feld */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Gestaltet den Schieberegler */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

/* Kreis im Schieberegler */
.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

/* Farbe und Position bei aktivierter Checkbox */
input:checked + .slider {
    background-color: #4CAF50;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.custom-label {
    margin-bottom: 5px; /* Verringert den Abstand nach unten */
    line-height: 0.5;   /* Reduziert die Zeilenhöhe */
}

