/* HOCH5 Custom Styles */

.navbar-nav > .user-menu > .dropdown-menu > li.user-header > img{

    background: #ffffff;
    border: 0;

}

/* Footer Styles */
.footer-links a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Avatar-Größen */
.avatar-xs {
    width: 25px;
    height: 25px;
    object-fit: cover;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    object-fit: cover;
}

.avatar-md {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.avatar-lg {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

/* Text-Abschneidung für Notifications */
.notification-text {
    max-width: 200px;
    display: inline-block;
}

/* AJAX Loading Animations */
.churn-loading {
    opacity: 0.5;
    transition: opacity 0.3s ease-in-out;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Smooth table updates */
#churnTableContainer {
    transition: opacity 0.3s ease-in-out;
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.loading-overlay {
    position: relative;
}

.loading-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Sortable Table Styles */
.sortable {
    cursor: pointer !important;
    user-select: none;
    transition: background-color 0.2s ease;
}

.sortable:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.sort-icon {
    margin-left: 5px;
    color: #ccc;
    transition: color 0.2s ease;
}

.sort-icon.active {
    color: #007bff;
}

.sortable:hover .sort-icon {
    color: #666;
}

.sortable:hover .sort-icon.active {
    color: #0056b3;
}

.activity-description {
    max-width: 300px;
}

/* Badge-Sichtbarkeit */
.badge-hidden {
    display: none !important;
}

.badge-visible {
    display: inline !important;
}

/* Versteckte Felder */
.field-hidden {
    display: none;
}

/* Inline-Formulare */
.form-inline {
    display: inline;
}

/* Progress-Bar Höhe */
.progress-tall {
    height: 25px;
}

/* Sortiereingang für Ad-Formate */
.sort-input {
    width: 80px;
}

/* Modal-Details-Sektion */
.modal-details-hidden {
    display: none !important;
}

/* Object-fit für alle Avatar-Bilder */
.avatar-xs, .avatar-sm, .avatar-md, .avatar-lg {
    object-fit: cover;
}

/* Standard-Avatar für Listen */
.list-avatar {
    object-fit: cover;
}

/* Select2 Custom Styles */
.select2-container--bootstrap-5 .select2-selection {
    border-color: #ced4da;
}

.select2-container--bootstrap-5 .select2-selection--single {
    height: calc(2.25rem + 2px);
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    line-height: calc(2.25rem);
    padding-left: 0.75rem;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    height: calc(2.25rem);
    right: 0.75rem;
}

/* Select2 in Modals */
.modal .select2-container {
    z-index: 1060;
}

.select2-dropdown {
    z-index: 1061;
}

/* Select2 Search Input Fix */
.select2-search--dropdown .select2-search__field {
    background-color: #fff !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.25rem !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    color: #212529 !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: text !important;
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
    appearance: none !important;
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    z-index: 9999 !important;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
    outline: none !important;
}

.select2-search--dropdown .select2-search__field::placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
}

/* Inline Search Fix */
.select2-search--inline .select2-search__field {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: text !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
    appearance: none !important;
}

/* Selection Container Fix */
.select2-selection__rendered {
    cursor: text !important;
}

/* Sicherstellen dass der Container klickbar ist */
.select2-container--bootstrap-5 .select2-selection {
    cursor: pointer !important;
}

.select2-container--bootstrap-5.select2-container--open .select2-selection {
    cursor: text !important;
}

/* ===========================
   TABELLEN-SORTIERUNG STYLES
   =========================== */

/* Sortierbare Spalten-Header */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    background-color: #f8f9fa;
    transition: background-color 0.2s;
    padding: 12px 8px !important;
    white-space: nowrap;
}

.sortable:hover {
    background-color: #e9ecef;
}

.sortable.sorted-asc,
.sortable.sorted-desc {
    background-color: #d1ecf1;
    font-weight: 600;
}

/* Sortierung-Icons */
.sort-icon {
    margin-left: 8px;
    opacity: 0.3;
    font-size: 0.8em;
    transition: opacity 0.2s;
}

.sortable:hover .sort-icon {
    opacity: 0.6;
}

.sortable.sorted-asc .sort-icon,
.sortable.sorted-desc .sort-icon {
    opacity: 1;
    color: #0c5460;
}

.sortable.sorted-asc .sort-icon:before {
    content: "\f0de"; /* fa-sort-up */
}

.sortable.sorted-desc .sort-icon:before {
    content: "\f0dd"; /* fa-sort-down */
}

/* ===================================
   TAG SYSTEM STYLES
   =================================== */

.tags-container {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    min-height: 42px;
    padding: 0.375rem;
    background-color: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
    cursor: text;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.tags-container:focus-within {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.tags-display {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.tag-item {
    background: #007bff;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
    user-select: none;
}

.tag-item:hover {
    background: #0056b3;
}

.tag-item.tag-filter {
    background: #28a745;
}

.tag-item.tag-filter:hover {
    background: #1e7e34;
}

.tag-remove {
    cursor: pointer;
    font-weight: bold;
    margin-left: 0.25rem;
    opacity: 0.8;
}

.tag-remove:hover {
    opacity: 1;
}

.tags-input {
    border: none;
    outline: none;
    flex-grow: 1;
    min-width: 120px;
    padding: 0.25rem;
    background: transparent;
    font-family: inherit;
}

.tags-container .tags-input {
    min-height: 20px;
}

.tag-suggestions {
    border: 1px solid #ccc;
    border-radius: 0.375rem;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 200px;
    overflow-y: auto;
    z-index: 9999 !important;
    position: absolute !important;
    min-width: 200px;
    border-top: 1px solid #007bff;
}

.tag-suggestion {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.15s ease-in-out;
    font-size: 0.9rem;
    color: #333;
}

.tag-suggestion:hover {
    background-color: #007bff !important;
    color: white !important;
}

.tag-suggestion:last-child {
    border-bottom: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tags-container {
        min-height: 38px;
    }
    
    .tag-item {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
    
    .tags-input {
        min-width: 80px;
    }
}

.c-logo__wortmarke{

    display: block;
    width: 60%;
    height: auto;
    margin: 20px auto;

}

.c-logo__wortmarke path{

    fill: #ffffff;

}

/* ===== ANALYTICS DASHBOARD STYLES ===== */

/* Enhanced Tabs - Schlichte Optik mit smooth Effekten */
.enhanced-tabs {
    border-bottom: 1px solid #dee2e6;
}

.enhanced-tab-link {
    border: 1px solid transparent !important;
    border-bottom: none !important;
    padding: 15px 20px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    min-height: 70px;
}

.enhanced-tab-link:hover {
    border-color: #e9ecef !important;
    background-color: #f8f9fa !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.enhanced-tab-link.active {
    background-color: #fff !important;
    border-color: #dee2e6 #dee2e6 #fff !important;
    color: #0d6efd !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

.enhanced-tab-link.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #6610f2);
    border-radius: 0 0 2px 2px;
}

.tab-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    text-align: left;
}

.tab-text strong {
    font-size: 14px;
    margin-bottom: 2px;
}

.tab-text small {
    font-size: 11px;
    opacity: 0.7;
}

.enhanced-tab-link .badge {
    transition: all 0.3s ease;
}

.enhanced-tab-link:hover .badge {
    transform: scale(1.1);
}

.enhanced-tab-content {
    background: #fff;
}

.enhanced-tab-content .tab-pane {
    animation: fadeInUp 0.4s ease-out;
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .enhanced-tab-link {
        padding: 12px 15px !important;
        min-height: auto;
        flex-wrap: wrap;
    }
    
    .tab-text small {
        display: none;
    }
    
    .enhanced-tab-link .badge {
        margin-left: auto;
        margin-top: 0;
    }
}

/* Analytics Comparison Controls */
.comparison-type-container {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.comparison-type-container select {
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.d-flex.align-items-center.gap-3 {
    gap: 1rem !important;
}

.form-check-label {
    font-weight: 500;
}

.form-check-label i {
    margin-right: 5px;
    color: #007bff;
}

/* Gelöschte Kunden in Buchungen */
.deleted-customer-booking {
    opacity: 0.5;
    background-color: #f8f9fa;
}

.deleted-customer-booking:hover {
    opacity: 0.7;
}

.deleted-customer-booking td {
    color: #6c757d;
}