:root {
    /* Light Theme Variablen (Standard) */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --sidebar-bg: #111827;
    --sidebar-hover: #1f2937;
    --text-light: #9ca3af;
    --text-dark: #111827;
    --white: #ffffff;
    --body-bg: #f3f4f6;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;

    /* Dark Theme */
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --sidebar-bg: #111827;
    --sidebar-hover: #1f2937;
    --text-light: #d1d5db;
    --text-dark: #f9fafb;
    --white: #ffffff;
    --body-bg: #111827;
    --card-bg: #1f2937;
    --border-color: #4b5563;
    --input-bg: #2a3441;
    --input-text: #f9fafb;
    --input-placeholder: #d1d5db;
    --dropdown-bg: #2a3441;
    --dropdown-hover: #374151;
    --error-bg: #991b1b;
    --success-bg: #065f46;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.w-50 {
    width: 50%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    background-color: var(--body-bg);
    min-height: 100vh;
    color: var(--text-dark);
}

.auth-logo {
    position: absolute;
    top: 2rem;
    left: 2rem;
    height: 40px;
}

.auth-logo img {
    height: 100%;
    width: auto;
}

.auth-container {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    min-height: 100vh;
    position: relative;
}

.auth-image {
    background: linear-gradient(rgba(17, 24, 39, 0.6), rgba(17, 24, 39, 0.6)),
                url('/img/login-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 4rem;
    color: var(--white);
}

.auth-image h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.auth-image p {
    font-size: 1.125rem;
    max-width: 500px;
    opacity: 0.9;
}

.auth-form {
    background-color: var(--card-bg);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-container {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.form-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.form-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.form-header p {
    color: var(--text-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.875rem;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: var(--input-text);
    background-color: var(--input-bg);
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

input::placeholder {
    color: var(--input-placeholder);
}

button {
    width: 100%;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.875rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.primary-btn {
    width: 100%;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.875rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.error {
    color: #dc2626;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    font-size: 0.875rem;
}

.form-footer {
    margin-top: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

@media (max-width: 768px) {
    /* Ausnahmen für Auth-Seiten */
    .auth-container .mobile-overlay {
        display: none;
    }

    .auth-container ~ .mobile-toggle-btn {
        display: none;
    }

    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-image {
        display: none;
    }
    
    .auth-form {
        padding: 2rem;
    }

    .auth-logo {
        position: relative;
        top: 1rem;
        left: 1rem;
        margin-bottom: 1rem;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 1000;
        transform: translateX(0);
    }

    .sidebar.collapsed {
        transform: translateX(-100%);
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    color: var(--white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar.collapsed {
    width: 80px;
    overflow-y: auto;
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    height: 70px;
}

.logo-container {
    height: 40px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.logo {
    height: 100%;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo-expanded {
    display: block;
    width: 60%;
}

.logo-collapsed {
    display: none;
}

.sidebar.collapsed .logo-container {
    flex: 0;
    width: 40px;
    justify-content: center;
}

.sidebar.collapsed .logo {
    height: 80%;
}

.sidebar.collapsed .logo-expanded {
    display: none;
}

.sidebar.collapsed .logo-collapsed {
    display: block;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--sidebar-hover);
    margin-top: auto;
}

.credits-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.credits-display:hover {
    background-color: var(--sidebar-hover);
    color: var(--white);
}

.credits-display i {
    color: #fbbf24;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.credits-display span {
    font-size: 0.875rem;
}

.credits-display.active {
    background-color: var(--primary);
    color: var(--white);
}

.credits-display.active:hover {
    background-color: var(--primary-hover);
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    border-bottom: none;
    margin: 0;
}

.user-email {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.user-email:hover {
    background-color: var(--sidebar-hover);
    color: var(--white);
}

.user-email.active {
    background-color: var(--primary);
    color: var(--white);
}

.user-email i {
    flex-shrink: 0;
    font-size: 1.1rem;
}

/* Anpassungen für eingeklappte Sidebar */
.sidebar.collapsed .user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar.collapsed .user-email {
    justify-content: center;
    width: 48px;
    padding: 0.75rem;
}

.sidebar.collapsed .user-email span {
    display: none;
}

.sidebar.collapsed .user-email i {
    margin: 0;
    font-size: 1.5rem;
}

/* Aktiver Zustand auch in eingeklappter Sidebar */
.sidebar.collapsed .user-email.active {
    background-color: var(--primary);
    color: var(--white);
}

.toggle-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.75rem;
    width: 48px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
}

.toggle-btn:hover {
    color: var(--white);
    background-color: var(--sidebar-hover);
}

.toggle-btn i {
    font-size: 1.5rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.sidebar.collapsed .toggle-btn {
    padding: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
}

.sidebar.collapsed .toggle-btn i {
    transform: rotate(180deg);
}

.sidebar-nav {
    padding: 1rem 0;
    overflow-y: auto;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 1rem;
    margin: 0.25rem 0.5rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 0.875rem;
    margin: 0.25rem auto;
    width: 48px;
}

.nav-item:hover {
    background-color: var(--sidebar-hover);
    color: var(--white);
}

.nav-item.active {
    background-color: var(--primary);
    color: var(--white);
}

.nav-item.active:hover {
    background-color: var(--primary-hover);
}

.nav-item i {
    font-size: 1.35rem;
    min-width: 24px;
    text-align: center;
}

.sidebar.collapsed .nav-item i {
    min-width: unset;
    margin: 0;
}

.sidebar.collapsed .nav-item span {
    opacity: 0;
    width: 0;
    overflow: hidden;
    display: none;
}

.main-content {
    flex: 1;
    background-color: rgba(39, 39, 39, 0.516);
    padding: 2rem;
    margin-left: 280px;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

.sidebar.collapsed + .main-content {
    margin-left: 80px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background-color: var(--card-bg);
    border-radius: 12px;
    /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); */
}

.no-bg {
    background-color: transparent;
}

.content-header h1 {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

.content-body {
    border-radius: 12px;
}

.enrichment-container {
    display: flex;
    gap: 2rem;
    position: relative;
}

.enrichment-form {
    width: 400px;
    min-width: 400px;
    margin-right: 2rem;
}

.map-container {
    flex: 1;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    position: relative;
    position: sticky;
    top: 2rem;
}

#map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.label-text {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.label-desc {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.custom-select {
    position: relative;
    width: 100%;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.25rem;
}

#citySearch {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background-color: var(--input-bg);
    letter-spacing: 1px;
}

#citySearch:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
    outline: none;
}

.cities-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--dropdown-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.cities-list {
    padding: 0.5rem;
}

.city-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: var(--text-dark);
}

.city-item:hover {
    background-color: var(--dropdown-hover);
    color: var(--white);
}

.city-item.no-results {
    color: var(--text-light);
    cursor: default;
    font-style: italic;
}

.city-item.no-results:hover {
    background-color: transparent;
    color: var(--text-light);
}

.selected-city {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
}

.city-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.city-coordinates {
    font-size: 0.85rem;
    opacity: 0.9;
}

.remove-city {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    width: auto;
}

.remove-city:hover {
    opacity: 1;
    background: none;
    transform: none;
}

/* Custom Scrollbar für die gesamte Anwendung */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--card-bg);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
    border: 2px solid var(--card-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--card-bg);
}

/* Spezielle Scrollbars für Dropdowns */
.cities-dropdown::-webkit-scrollbar,
.categories-dropdown::-webkit-scrollbar {
    width: 8px;
}

.cities-dropdown::-webkit-scrollbar-track,
.categories-dropdown::-webkit-scrollbar-track {
    background: var(--input-bg);
    border-radius: 4px;
}

.cities-dropdown::-webkit-scrollbar-thumb,
.categories-dropdown::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
    border: 2px solid var(--input-bg);
}

.cities-dropdown::-webkit-scrollbar-thumb:hover,
.categories-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

@media (max-width: 1024px) {
    .enrichment-container {
        flex-direction: column;
    }

    .enrichment-form {
        width: 100%;
        margin-right: 0;
        margin-bottom: 2rem;
    }

    .map-container {
        position: relative;
        top: 0;
    }
}

.radius-control {
    margin-top: 1.5rem;
}

.radius-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

#radius-input {
    padding-right: 3rem;
    width: 100%;
}

.radius-unit {
    position: absolute;
    right: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    pointer-events: none;
}

/* Styling für number input */
input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.location-toggle {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.location-toggle .toggle-btn {
    flex: 1;
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.location-toggle .toggle-btn i {
    font-size: 1.25rem;
}

.location-toggle .toggle-btn:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
    background: var(--dropdown-hover);
}

.location-toggle .toggle-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.categories-control {
    margin-top: 1.5rem;
}

/* Spezifisches Styling für Kategorie-Suche */
.categories-control .search-container {
    position: relative;
    width: 100%;
}

.categories-control .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.25rem;
    z-index: 1;
}

.categories-control #categorySearch {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background-color: var(--input-bg);
    color: var(--input-text);
}

.categories-control #categorySearch::placeholder {
    color: var(--input-placeholder);
}

.categories-control #categorySearch:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
    outline: none;
}

.categories-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--dropdown-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.categories-list {
    padding: 0.5rem;
}

.category-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.category-count {
    background-color: var(--border-color);
    color: var(--text-dark);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.category-item:hover {
    background-color: var(--dropdown-hover);
    color: var(--white);
}

.category-item:hover .category-count {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.selected-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.category-tag {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-tag button {
    background: none;
    border: none;
    color: var(--white);
    padding: 0;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.category-tag button:hover {
    opacity: 1;
    background: none;
    transform: none;
}

/* Zielgruppen-Styling */
.target-group-control {
    margin-top: 1.5rem;
}

.target-group-container {
    position: relative;
}

#target-group {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 120px;
    transition: all 0.2s ease;
    line-height: 1.5;
    color: var(--input-text);
    background-color: var(--input-bg);
}

#target-group:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
    outline: none;
}

#target-group::placeholder {
    color: var(--text-light);
    font-size: 0.9rem;
}

.char-counter {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-light);
    background-color: var(--input-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    pointer-events: none;
}

.char-counter.limit-reached {
    color: #ef4444;
}

/* Datenmenge Styling */
.data-amount-control {
    margin-top: 1.5rem;
}

.data-amount-container {
    position: relative;
    display: flex;
    align-items: center;
}

#data-amount {
    width: 100%;
    padding: 0.875rem 1rem;
    padding-right: 6rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background-color: var(--input-bg);
}

#data-amount:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
    outline: none;
}

.data-unit {
    position: absolute;
    right: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    pointer-events: none;
}

.credits-warning {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

.credits-warning.show {
    display: block;
}

.submit-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.submit-btn {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    width: auto;
}

.submit-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.submit-btn i {
    font-size: 1.25rem;
}

/* Popup Styling */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.confirmation-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-bg);
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    z-index: 1000;
    overflow: hidden;
}

@keyframes slideIn {
    from {
        transform: translate(-90%, -50%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -60%);
        opacity: 1;
    }
}

.popup-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 1.5rem 2rem;
}

.popup-header h3 {
    font-size: 1.4rem;
    font-weight: 500;
}

.popup-content {
    padding: 2rem;
}

.popup-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.popup-details {
    background-color: var(--input-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
}

.popup-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popup-details li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.popup-details li span {
    font-size: 1rem;
    line-height: 1.5;
}

.popup-details li:last-child {
    border-bottom: none;
}

.popup-details li i {
    color: var(--primary);
    font-size: 1.25rem;
}

.popup-footer {
    background-color: var(--input-bg);
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
}

.popup-footer p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.popup-buttons {
    display: flex;
    gap: 1rem;
}

.popup-buttons button {
    flex: 1;
    padding: 1rem;
    font-size: 1rem;
}

.popup-buttons .cancel-btn {
    background-color: var(--input-bg);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    font-weight: 500;
}

.popup-buttons .confirm-btn {
    font-weight: 500;
}

.target-group-container.disabled textarea {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.target-group-hint {
    display: none;
    background-color: #1f2937;
    border: 1px solid #4b5563;
    color: var(--text-light);
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    align-items: center;
    gap: 0.5rem;
}

.target-group-hint.show {
    display: flex;
}

.target-group-hint i {
    font-size: 1.25rem;
    color: var(--text-light);
}

.error-header {
    background-color: var(--error-bg);
}

.warning-header {
    background-color: #eab308;
}

/* Spezielles Styling für "Auftrag in Bearbeitung" Fehler */
.error-header.processing-error {
    background-color: #eab308;  /* Gelb statt Rot für Warnungen */
}

.error-header h3 {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-header h3 i {
    font-size: 1.5rem;
    color: var(--white);
}

.error-popup .help-text {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.error-popup .confirm-btn {
    background-color: #dc2626;
}

.error-popup .confirm-btn:hover {
    background-color: #b91c1c;
}

.success-header {
    background-color: var(--success-bg);
}

.success-header h3 {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.success-header h3 i {
    font-size: 1.5rem;
    color: var(--white);
}

.success-btn {
    background-color: #059669;
}

.success-btn:hover {
    background-color: #047857;
}

.input-error {
    border-color: #dc2626 !important;
    background-color: #fef2f2;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.input-error:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

/* Map Styles anpassen */
.leaflet-container {
    background-color: #1f2937 !important;
}

.leaflet-tile {
    filter: brightness(0.6) invert(1) contrast(3) hue-rotate(200deg) saturate(0.3) brightness(0.7) !important;
}

/* Orders List Styling */
.orders-list {
    display: grid;
    gap: 1rem;
}

.order-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.order-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.order-details {
    display: grid;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.detail-item.target-description {
    align-items: flex-start;
    background: var(--input-bg);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.detail-item.target-description strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.detail-item i {
    color: var(--primary);
    font-size: 1.25rem;
}

.order-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.download-btn:hover {
    color: var(--primary-hover);
}

.no-orders {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    min-height: 300px;
}

.no-orders i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.no-orders p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.no-orders .primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.no-orders .primary-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.no-orders .primary-btn i {
    font-size: 1.25rem;
    margin: 0;
    color: white;
}

/* Dashboard Styles */
.dashboard-grid {
    display: grid;
    gap: 1.5rem;
    position: relative;
}

.date-navigation {
    position: absolute;
    top: 0;
    right: 0rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--input-bg);
    padding: 0.25rem;
    border-radius: 8px;
    z-index: 10;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3.5rem;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    background: var(--primary);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info h3 {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.chart-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: fit-content;
    min-height: 400px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.chart-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.chart-container h2 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    height: 40px;
}

.chart-navigation {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--input-bg);
    padding: 0.25rem;
    border-radius: 8px;
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: none;
}

.nav-btn i {
    font-size: 1.25rem;
}

.date-range {
    font-size: 0.9rem;
    color: var(--text-dark);
    padding: 0 0.5rem;
    white-space: nowrap;
}

/* Chart Grid Layout */
.charts-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
    width: 100%;
}

.chart-container .chart-wrapper {
    position: relative;
    height: calc(100% - 40px);
    width: 100%;
    min-height: 300px;
    max-width: 100%;
}

@media (max-width: 1024px) {
    .charts-row {
        grid-template-columns: 1fr;
    }

    .chart-container {
        min-height: 350px;
    }

    .chart-container .chart-wrapper {
        height: 350px;
    }
}

/* Profile Styles */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.profile-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.profile-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.profile-form {
    max-width: 400px;
}

.profile-form .form-group {
    margin-bottom: 1.5rem;
}

.profile-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.profile-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--input-text);
    transition: all 0.2s ease;
}

.profile-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.danger-zone {
    border-color: #dc2626;
}

.warning-text {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.delete-btn {
    background-color: #dc2626;
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    width: auto;
}

.delete-btn:hover {
    background-color: #b91c1c;
}

/* Feedback Styles */
.feedback-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.feedback-intro {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.feedback-form {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.star-rating {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    color: var(--text-light);
    font-size: 1.5rem;
    transition: all 0.2s ease;
}

/* Hover-Effekt: Aktueller Stern und alle vorherigen */
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #fbbf24;
}

/* Ausgewählter Stern und alle vorherigen */
.star-rating input:checked + label,
.star-rating input:checked + label ~ label {
    color: #fbbf24;
}

.star-rating input:checked ~ label,
.star-rating input:checked + label ~ label {
    color: #fbbf24;
}

.feedback-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--input-text);
    resize: vertical;
    min-height: 100px;
}

.feedback-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Feedback Custom Select */
.feedback-form .custom-select {
    position: relative;
}

.feedback-form .search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.feedback-form .search-container i {
    position: absolute;
    left: 1rem;
    color: var(--text-light);
    font-size: 1.25rem;
    pointer-events: none;
}

.feedback-form #categorySearch {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--input-text);
    cursor: pointer;
}

.feedback-form .categories-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--dropdown-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.feedback-form .category-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-dark);
}

.feedback-form .category-item:hover {
    background: var(--dropdown-hover);
    color: var(--white);
}

/* Previous Feedbacks */
.previous-feedbacks {
    margin-top: 3rem;
}

.previous-feedbacks h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.feedbacks-list {
    display: grid;
    gap: 1.5rem;
}

.feedback-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.feedback-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feedback-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.feedback-category {
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
}

.feedback-rating {
    display: flex;
    gap: 0.25rem;
}

.feedback-rating i {
    color: var(--text-light);
    font-size: 1.25rem;
}

.feedback-rating i.active {
    color: #fbbf24;
}

.feedback-section {
    margin-bottom: 1rem;
}

.feedback-section:last-child {
    margin-bottom: 0;
}

.feedback-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.feedback-section p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Einheitliche H1-Überschriften */
.main-content h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Categories Offcanvas */
.categories-offcanvas {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background-color: var(--card-bg);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.categories-offcanvas.active {
    right: 0;
}

.offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.offcanvas-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.close-offcanvas {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: auto;
    color: var(--text-dark);
}

.close-offcanvas:hover {
    color: var(--primary);
    background: none;
    transform: none;
}

.offcanvas-body {
    display: flex;
    height: calc(100vh - 60px);
}

.categories-index {
    width: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
}

.index-letter {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--text-light);
}

.index-letter:hover {
    color: var(--primary);
}

.categories-list-container {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.category-section {
    margin-bottom: 1.5rem;
}

.category-letter {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.25rem;
}

.category-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-item-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-dark);
}

.category-item-link:hover {
    background-color: var(--dropdown-hover);
}

.category-item-link.selected {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.category-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-count {
    font-size: 0.75rem;
    color: var(--text-light);
}

.offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.offcanvas-overlay.active {
    display: block;
}

/* Styles für die Website-Eingabefelder */
.websites-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.website-input-container {
    display: flex;
    align-items: center;
    background-color: var(--input-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 0 0.75rem;
}

.website-input-container i {
    color: var(--text-light);
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

.website-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem 0;
    color: var(--input-text);
    font-size: 1rem;
}

.website-input:focus {
    outline: none;
}

.website-input-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* Styles für die Merkmal-Eingabefelder */
.features-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.feature-input-container {
    display: flex;
    align-items: center;
    background-color: var(--input-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 0 0.75rem;
}

.feature-input-container i {
    color: var(--text-light);
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

.feature-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem 0;
    color: var(--input-text);
    font-size: 1rem;
}

.feature-input:focus {
    outline: none;
}

.feature-input-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* Legal Pages */
.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.legal-container h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text-dark);
}

.legal-container h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: var(--text-dark);
}

.legal-container p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

.legal-container ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: var(--text-light);
}

.legal-container li {
    margin-bottom: 0.5rem;
}

/* Dashboard Footer */
.dashboard-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: right;
    padding-right: 2rem;
}

.legal-links {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    font-size: 0.8rem;
}

.legal-links a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
    opacity: 0.7;
}

.legal-links a:hover {
    color: var(--primary);
    text-decoration: underline;
    opacity: 1;
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--sidebar-bg);
    z-index: 9999;
    color: var(--white);
    padding: 2rem;
    text-align: center;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.mobile-overlay img {
    width: 200px;
    margin-bottom: 1rem;
}

.mobile-overlay h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.mobile-overlay p {
    color: var(--text-light);
    max-width: 400px;
    margin: 0 auto;
}

.mobile-overlay i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .mobile-overlay {
        display: flex;
    }

    /* Scrolling deaktivieren wenn Mobile-Overlay aktiv */
    html, body {
        overflow-x: hidden;
    }

    /* Ausnahme für Auth-Seiten */
    .auth-container ~ .mobile-overlay + html,
    .auth-container ~ .mobile-overlay + body {
        overflow: auto;
        position: static;
    }
}

/* Scrolling für Desktop wieder aktivieren */
@media (min-width: 769px) {
    html, body {
        overflow: auto;
        height: auto;
        position: static;
        width: auto;
    }


}

/* Credits in eingeklappter Sidebar ausblenden */
.sidebar.collapsed .credits-display {
    display: none;
}

/* Error Page */
.error-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: var(--body-bg);
}

.error-logo {
    height: 40px;
    margin-bottom: 3rem;
}

.error-content {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.error-content i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.error-content h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.error-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    justify-content: center;
}

/* Support Page */

.help-box {
    margin-bottom: 1rem;
    color: var(--text-light);
    background-color: var(--body-bg);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}

.help-box a {
    color: var(--primary);
    text-decoration: none;
}

.support-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.support-section {
    margin-bottom: 3rem;
}

.support-section h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.support-section h2 i {
    color: var(--primary);
}

.support-section > p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.support-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.support-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.support-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.support-card a {
  i {
    font-size: 16px;
    margin-bottom: 0;
  }
}

.support-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.support-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.support-link {
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.support-link:hover {
    transform: translateX(5px);
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-color);
}

.contact-option i {
    font-size: 1.5rem;
    color: var(--primary);
}

.contact-option h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.contact-option p {
    color: var(--text-light);
    font-size: 0.9rem;
}

a.contact-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Documentation Pages */
.docs-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.header-breadcrumb {
    margin-bottom: 1rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.breadcrumb-item:hover {
    color: var(--primary);
}

.docs-section {
    margin-bottom: 3rem;
}

.docs-section > h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.docs-section > p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.docs-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.docs-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.docs-card h3 i {
    color: var(--primary);
}

.docs-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.docs-card ul {
    list-style: none;
    padding: 0;
}

.docs-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.docs-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary);
}

/* Onboarding Styles */
.onboarding-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.onboarding-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    border: 1px solid var(--border-color);
}

.onboarding-form .form-group {
    margin-bottom: 1.5rem;
}

.onboarding-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.onboarding-form .label-desc {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.onboarding-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--input-bg);
    color: var(--input-text);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.onboarding-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.onboarding-form .other-input {
    width: 100%;
    padding: 0.75rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--input-bg);
    color: var(--input-text);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.onboarding-form .other-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.onboarding-form button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    width: auto;
    padding: 0.875rem 1.5rem;
}

/* Password Input Container */
.password-input-container {
    position: relative;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    width: auto;
    height: auto;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: var(--primary);
    background: none;
    transform: translateY(-50%);
}

.toggle-password i {
    font-size: 1.25rem;
}

.password-requirements {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.password-requirements li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.password-requirements li.valid {
    color: #10B981;
}

.password-requirements li.valid i {
    color: #10B981;
}

#password-match {
    color: #DC2626;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#password-match i {
    color: #DC2626;
}

/* Sidebar Navigation Divider */
.nav-divider {
    height: 1px;
    background-color: var(--sidebar-hover);
    margin: 1rem 1.5rem;
    opacity: 0.5;
}

/* Anpassung der User-Info für Logout */
.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    border-bottom: none;
    margin: 0;
}

.user-info .nav-item {
    padding: 0.5rem;
    color: var(--text-light);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.user-info .nav-item:hover {
    opacity: 1;
    background-color: transparent;
}

/* Collapsed Sidebar Anpassungen */
.sidebar.collapsed .nav-divider {
    margin: 1rem 0.5rem;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    min-height: 300px;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.empty-state h2 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Show All Link für Kategorien */
.show-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 0.5rem;
    transition: all 0.2s ease;
}

.show-all-link:hover {
    text-decoration: underline;
    opacity: 0.9;
}

.show-all-link i {
    font-size: 1rem;
}

/* Error Dialog */
.error-dialog {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    animation: slideIn 0.3s ease-out forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.error-dialog-content {
    background-color: var(--card-bg);
    border-left: 4px solid #DC2626;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    width: 320px;
}

.error-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.error-header i {
    color: #DC2626;
    font-size: 1.5rem;
}

.error-header h3 {
    color: #DC2626;
    margin: 0;
    font-size: 1.1rem;
}

.error-dialog p {
    color: var(--text-dark);
    margin: 0.5rem 0 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.close-error-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem 1rem;
    color: var(--text-dark);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    margin-left: auto;
}

.close-error-btn:hover {
    background-color: var(--dropdown-hover);
    border-color: var(--dropdown-hover);
}

/* Credit Information Styles */
.credit-info-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.credit-card {
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.credit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.credit-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.credit-header i {
    font-size: 1.5rem;
    color: var(--primary);
}

.credit-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.credit-value {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.credit-value span {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.credit-description {
    text-align: center;
}

.credit-description p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.875rem;
}

.credit-info-text {
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.credit-info-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
}

.credit-info-text p {
    margin: 0 0 1rem 0;
    color: var(--text-dark);
    line-height: 1.6;
}

.credit-info-text p:last-child {
    margin-bottom: 0;
}

.credit-info-text strong {
    font-weight: 600;
    color: var(--primary);
}

@media (max-width: 768px) {
    .credit-info-container {
        grid-template-columns: 1fr;
    }
}

/* Map Consent Overlay */
.map-consent-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    border-radius: 0.5rem;
}

.consent-message {
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    padding: 2rem;
    max-width: 80%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.consent-message i {
    font-size: 3rem;
    color: var(--warning);
    margin-bottom: 1rem;
}

.consent-message h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.consent-message p {
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.consent-message button {
    margin-top: 1rem;
    align-items: center;
    justify-content: center;
    display: flex;


    i {
        margin-right: 0.5rem;
        font-size: 1.2rem;
        margin-bottom: 0;
    }
} 


.emailfinder-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.emailfinder-form {
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.emailfinder-results {
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.results-header {
    margin-bottom: 1.5rem;
}

.results-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.loading-indicator {
    margin-bottom: 1.5rem;
}

.progress-bar {
    height: 0.5rem;
    background-color: var(--bg-light);
    border-radius: 0.25rem;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

.loading-indicator p {
    font-size: 0.875rem;
    color: var(--text-light);
}

.valid-email-result, .no-valid-email-result {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.valid-email-result .result-icon {
    background-color: var(--success-light);
    color: var(--success);
}

.no-valid-email-result .result-icon {
    background-color: var(--error-light);
    color: var(--error);
}

.result-icon i {
    font-size: 1.25rem;
}

.result-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.result-content p {
    font-size: 1rem;
    color: var(--text-dark);
}

#validEmail {
    font-weight: 600;
    color: var(--primary);
}

.opener-container {
    
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

/* Plans Styles */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.plan-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.plan-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-header h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.plan-price .price {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.plan-price .period {
    color: var(--text-light);
    font-size: 1rem;
}

.plan-features {
    margin-bottom: 2rem;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.plan-features li i {
    color: var(--primary);
    font-size: 1.25rem;
}

.plan-button {
    width: 100%;
    padding: 0.875rem;
    border: none;
    border-radius: 8px;
    background-color: var(--primary);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.plan-button:hover {
    background-color: var(--primary-dark);
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.plan-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.billing-container {
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.abo-container {
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.grid-2-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.space-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fw{
    width: 100%;
}

.flex {
    display: flex;
    gap: 1rem;
}

.checkbox-group {
    margin-top: 1rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 0.5rem;
    width: auto;
    height: auto;
}

.checkbox-container label {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0;
}

.checkbox-container a {
    color: var(--primary);
    text-decoration: none;
}

.checkbox-container a:hover {
    text-decoration: underline;
}

.mobile-auth-logo {
    display: none;
}

.expand-toggle-btn {
    display: block!important;
}

.mobile-toggle-btn {
    display: none !important;
}

@media (max-width: 768px) {
    .auth-logo {
        display: none!important;
    }

    .main-content h1 {
        font-size: 1.2rem;
        margin-bottom: 0;
    }

    .location-toggle {
        display: block;
        margin-bottom: 1rem;
        button {
            width: 100%!important;
            margin-bottom: 1rem;
        }
    }

    .mobile-auth-logo {
        display: block;
        position: relative;
        background-color: var(--card-bg);
        padding: 1rem;
        border-radius: 12px;
        margin-bottom: 1rem;
    }
    .mobile-auth-logo img {
        width: 60%;
        height: auto;
    }

    .main-content {
        padding: 1rem;
        margin-left: 0;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar.collapsed + .main-content {
        margin-left: 0px;
    }

    .mobile-toggle-btn {
        display: flex !important;
        position: fixed;
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        background-color: var(--primary);
        color: var(--white);
        border: none;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1001;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
    }

    .mobile-toggle-btn:hover {
        background-color: var(--primary-hover);
        transform: scale(1.05);
    }

    .mobile-toggle-btn i {
        font-size: 1.5rem;
    }

    .date-navigation {
        width: 100%;
    }

    .date-range {
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }

    .mobile-toggle-btn.active {
        transform: translateX(80px);
    }

    .expand-toggle-btn {
        display: none!important;
    }

    .sidebar.active ~ .mobile-toggle-btn {
        left: 270px;
    }

    .sidebar.active ~ .mobile-toggle-btn i {
        transform: rotate(180deg);
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .sidebar.active .toggle-btn {
        transform: translateX(200px);
    }

    .sidebar.active .toggle-btn i {
        transform: rotate(180deg);
    }

    .enrichment-container {
        padding: 0;
        display: block;
        width: 80%;
    }
}


@media (max-width: 768px) {
    .enrichment-container {
        padding: 0;
        display: block;
        width: 100%;
    }

    .enrichment-form {
        width: 100%;
        min-width: unset;
        margin-right: 0;
        margin-bottom: 2rem;
    }

    .map-container {
        position: relative;
        top: 0;
    }
}