.page-loading-overlay {
    position: fixed;
    top: calc(var(--header-height) + 130px);
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loading-spinner {
    width: 50px;
    height: 50px;
    animation: pageSpinnerSpin 1s linear infinite;
}

@keyframes pageSpinnerSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

:root {
    --primary-color: #255879;
    --primary: #255879;
    --primary-dark: #1a3f57;
    --primary-light: #3a7a9e;
    --primary-hover: rgba(37, 88, 121, 0.1);
    --font-main: 'Poppins', sans-serif;
    --font: 'Poppins', sans-serif;
    --background-gray: #f5f5f7;
    --bg-light: #f5f5f7;
    --bg-white: #ffffff;
    --text-gray: #6e6e73;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --border: rgba(0, 0, 0, 0.08);
    --header-height: 8vh;
    --header-h: 60px;
    --filter-top: 125px;
    --results-bar-height: 25px;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.1);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Safari-Performance-Optimierung: CSS-Klassen für Favoriten-Hearts */
.favorite-heart-active {
    color: #e74c3c !important;
    font-size: 20px;
    cursor: pointer;
    transition: transform 120ms ease;
}

.favorite-heart-inactive {
    color: #ccc !important;
    font-size: 20px;
    cursor: pointer;
    transition: transform 120ms ease;
}

.favorite-heart-scale {
    transform: scale(1.2) !important;
}

/* Safari-Performance-Optimierung: Marker-Clustering Styles */
.cluster-marker-container {
    background: transparent !important;
    border: none !important;
}

.cluster-marker {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #255879, #1e4a66);
    border: 3px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(37, 88, 121, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.cluster-marker:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(37, 88, 121, 0.4);
}

.cluster-content {
    color: white;
    font-weight: bold;
    font-size: 14px;
    font-family: var(--font-main);
}

/* Cluster-Popup Styles */
.cluster-popup .leaflet-popup-content {
    margin: 0 !important;
    padding: 0 !important;
}

.cluster-popup-header {
    background: linear-gradient(135deg, #255879, #1e4a66);
    color: white;
    padding: 12px 16px;
    margin: 0;
    font-size: 14px;
    border-radius: 4px 4px 0 0;
}

.cluster-popup-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 0;
}

.cluster-popup-item {
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cluster-popup-item:hover {
    background-color: #f8f9fa;
}

.cluster-popup-item:last-child {
    border-bottom: none;
}

.cluster-popup-name {
    font-weight: 600;
    color: #255879;
    font-size: 13px;
    margin-bottom: 2px;
}

.cluster-popup-location {
    font-size: 11px;
    color: #666;
}

.cluster-popup-more {
    padding: 8px 16px;
    font-style: italic;
    color: #888;
    font-size: 12px;
    text-align: center;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Verhindere Textmarkierung und Ziehen */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

/* Spezielle Regeln für Bilder und SVGs */
img, svg {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: auto; /* Behalte Klick-Events */
}

/* Verhindere Kontextmenü auf Bildern */
img, svg {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Standard-Cursor für alle Elemente */
* {
    cursor: default;
}

/* Pointer-Cursor für alle interaktiven Elemente */
button, a, .menu-toggle, .user-profile, .dropdown-item, .menu-dropdown-item, 
.login-button, .add-entry-header-btn, .profile-name,
.profile-avatar, .menu-toggle svg, h1[onclick],
.header-logo, .header-logo img, .view-toggle-btn,
.multi-select-display, .multi-select-option, .category-checkbox,
.world-icon, .table-website, .favorites-filter-btn, .favorites-filter-btn span, .verified-filter-btn {
    cursor: pointer !important;
}

/* Text-Cursor für Eingabefelder */
input[type="text"], input[type="search"], textarea, .certification-search-input, .facility-search-input {
    cursor: text !important;
}

html {
    overflow: hidden;
    width: 100vw;
    max-width: 100%;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: #333;
    background-color: white;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100vw;
    max-width: 100%;
}

header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: var(--header-height);
    background-color: var(--primary);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: white;
    padding: 0 2vw;
    margin: 0;
    border-bottom: 0.1vh solid rgba(204, 204, 204, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

.header-left {
    justify-self: start;
}

.header-right {
    justify-self: end;
    position: relative;
}

.add-entry-header-btn {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 20px; /* Festes Padding */
    border-radius: 6px; /* Fester Border-Radius */
    font-family: var(--font-main);
    cursor: pointer;
    font-size: 16px; /* Feste Schriftgröße */
    transition: all 0.3s ease;
    display: none;
    backdrop-filter: blur(5px);
}

.add-entry-header-btn:hover {
    background-color: rgba(242, 242, 242, 0.95);
}

.header-left {
    justify-self: start;
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    transition: background 0.18s ease;
}
.menu-toggle:hover { background: rgba(255, 255, 255, 0.12); }
.menu-toggle:active { background: rgba(255, 255, 255, 0.08); }
.menu-toggle svg {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
}

.menu-dropdown {
    position: fixed;
    top: 8vh;
    left: 0;
    right: 0;
    width: 100%;
    background: white;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 2000; /* Viel höher als Filter (998) und Results-Counter (999) */
    display: none;
    padding: 4vh 0;
}

.menu-dropdown.show {
    display: flex;
    justify-content: center;
}

/* Hover-Effekt für Desktop */
@media (min-width: 769px) {
    .header-left:hover .menu-dropdown {
        display: flex !important;
        justify-content: center !important;
    }
}

.menu-dropdown-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 11vw;
    padding: 0 2vw;
    position: relative;
}

.menu-dropdown-column {
    padding: 0;
}

.menu-dropdown-column-title {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 18px;
    padding: 1.5vh 0 1vh 0;
    margin-bottom: 0.5vh;
}

.menu-dropdown-item {
    padding: 0.8vh 0;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 16px;
    transition: color 0.2s ease;
    color: #555;
    display: block;
    line-height: 1.4;
    font-weight: 500;
}

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

.menu-dropdown-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.menu-dropdown-footer {
    position: absolute;
    bottom: 2vh;
    right: 2vw;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.8vh;
}

.menu-dropdown-social {
    display: flex;
    gap: 15px;
}

.menu-dropdown-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #255879 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.menu-dropdown-social-icon:hover {
    background-color: #1e4a5f !important;
    transform: scale(1.1);
}

.menu-dropdown-social-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Separater Block für rechtliche Links - in neuer Struktur nicht mehr direkt benötigt aber behalten für Kompatibilität */
.menu-dropdown-separator {
    display: none;
}

.menu-dropdown-legal {
    display: contents;
}

.login-button {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    white-space: nowrap;
    width: 90px;
    text-align: center;
}

.login-button:hover {
    background-color: rgba(37, 88, 121, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    padding: 8px 26px 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    position: relative;
}
.user-profile:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.8);
}
.user-profile:active {
    background: rgba(245, 245, 247, 0.95);
    transform: scale(0.97);
}

.profile-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.01em;
    overflow: visible;
    position: relative;
    flex-shrink: 0;
    box-sizing: border-box;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 3.5px var(--primary-color);
}
.profile-avatar > * { border-radius: 50%; overflow: hidden; }
.profile-avatar.has-image {
    background: #e8eef2;
    font-size: 0;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 50%;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.profile-avatar.wide-image img {
    max-width: 90%;
    max-height: 60%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
}

.profile-name {
    color: var(--primary-color) !important;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.01em;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(250, 250, 252, 0.88);
    backdrop-filter: blur(40px) saturate(1.8);
    -webkit-backdrop-filter: blur(40px) saturate(1.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.04),
        0 12px 40px rgba(0, 0, 0, 0.16);
    min-width: 200px;
    z-index: 1000;
    display: none;
    overflow: hidden;
    padding: 6px 0;
}
.dropdown-menu.show { display: block; }
.dropdown-item {
    padding: 10px 18px;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 13.5px;
    font-family: var(--font-main);
    color: #1d1d1f;
    font-weight: 400;
    letter-spacing: -0.01em;
    transition: background-color 0.15s ease;
    border-radius: 0;
}
.dropdown-item:hover { background-color: rgba(0, 0, 0, 0.05); }
.dropdown-item:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.dropdown-item:last-child { color: #ff3b30; }

h1 {
    font-size: 2.5vw;
    font-weight: 700;
    color: var(--primary-color);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.1vw;
    text-decoration: none;
    color: white !important;
    font-size: 2.5vw;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.header-logo img:not(.header-logo-wordmark) {
    height: 34px;
    width: auto;
    image-rendering: smooth;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}
.header-logo-wordmark-wrap {
    height: 28px;
    width: 133px;
    background-image: url('https://xkdjylcywxpwdnuupqge.supabase.co/storage/v1/object/public/images/fillZone.png');
    background-size: auto 98px;
    background-position: -29px -35px;
    background-repeat: no-repeat;
}
.header-logo-wordmark {
    display: none;
}

main {
    flex: 1;
    padding: 0; /* Kein Padding */
    max-width: 1400px;
    /* Dynamisch positioniert: Header + results-counter + filter + Abstand */
    margin: calc(var(--header-height) + 130px) auto 0 auto;
    width: calc(100% - 4rem); /* Gleiche Breite wie Filter-Container */
    overflow-y: auto;
    overflow-x: visible;
    min-height: calc(100vh - var(--header-height) - 130px);
    
    /* Verstecke Scrollbar standardmäßig */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

/* Webkit Scrollbar für main verstecken (standardmäßig) */
main::-webkit-scrollbar {
    display: none;
}

/* Verstecke main Scrollbar in Tabellen-Ansicht */
main.table-view {
    overflow: hidden !important;
}

main.table-view::-webkit-scrollbar {
    display: none !important;
}

/* Clipping-Bereich nur für Firmeneinträge */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Clipping-Overlay für korrekten Flipping-Point */
.profiles-grid::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* Dynamisch: Header + results-counter + filter + kleiner Abstand */
    height: calc(var(--header-height) + 136px);
    background: white;
    z-index: 500; /* Über den Kacheln, aber unter Header/Filter */
    pointer-events: none;
}

/* Verstecke native Scrollbar für Grid-Ansicht (verwende Custom Scrollbar) */
main.grid-view {
    overflow-y: auto !important;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* Internet Explorer 10+ */
    /* Dynamisch: 100vh - Header - results-counter - filter - Abstand */
    height: calc(100vh - var(--header-height) - 129px - 2.5rem) !important;
    max-height: calc(100vh - var(--header-height) - 129px - 2.5rem) !important;
    margin-top: calc(var(--header-height) + 129px + 2.5rem) !important;
    padding: 0 !important;
    background: white !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Grid-Container in Grid-Ansicht: Breite begrenzen und zentrieren */
main.grid-view .profiles-grid {
    max-width: 1400px !important;
    width: calc(100% - 4rem) !important;
    margin-top: 0.3rem !important;
    margin-bottom: 5rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
}

/* Webkit Scrollbar für Grid-Ansicht verstecken */
main.grid-view::-webkit-scrollbar {
    display: none !important;
}

/* Styling für "Keine Anbieter gefunden"-Nachricht */
.profiles-grid > p {
    grid-column: 1 / -1; /* Nimmt die gesamte Breite des Grids ein */
    text-align: center;
    padding: 2rem 3rem;
    margin: 2rem 0;
    width: 100%; /* Volle Breite des Grid-Containers */
    font-size: 1rem;
    color: var(--text-gray);
    background: white;
    border: 1px solid rgba(37, 88, 121, 0.3); /* Identisch zur profile-card */
    border-radius: 16px; /* Identisch zur profile-card */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Identisch zur profile-card */
    white-space: nowrap; /* Einzeilig */
}

.profile-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 2rem 1rem 2rem;
    box-shadow: none;
    border: 1px solid rgba(37, 88, 121, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: visible;
    min-height: 220px;
}

.no-results-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 1.5rem; /* Mehr Padding vertikal für bessere Lesbarkeit */
    border: 1px solid rgba(37, 88, 121, 0.3);
    text-align: center;
    color: #666;
    grid-column: 1 / -1;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: auto; /* Erlaubt dem Container zu wachsen */
}

.no-results-card p {
    margin: 0;
    line-height: 1.5;
    font-size: 1rem;
    width: 100%;
    word-wrap: break-word; /* Verhindert Überlaufen von langen Wörtern */
}

@media (hover: hover) {
    .profile-card:hover {
        transform: translateY(-5px);
        box-shadow: none;
    }
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    overflow: visible;
}

.company-logo-container {
    position: relative;
    flex-shrink: 0;
    overflow: visible;
}

.company-logo {
    width: 94px;
    height: 94px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 88, 121, 0.12), rgba(37, 88, 121, 0.08));
    border: 1.5px solid rgba(37, 88, 121, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #255879;
    font-weight: bold;
    font-size: 2.2rem;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.company-logo.has-image {
    background: linear-gradient(135deg, rgba(37, 88, 121, 0.12), rgba(37, 88, 121, 0.08));
    border: 2.5px solid #255879;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.company-logo img {
    /* Standard-Größe für normale Bilder */
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 50%;
    display: block;
    /* Absolute Positionierung für perfekte Zentrierung */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Spezielle Regel für breite Bilder - wird per JavaScript hinzugefügt */
.company-logo.wide-image img {
    max-width: 90%;
    max-height: 60%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
}

/* Verifizierungs-Icon Styles */
.verification-icon {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18), 0 0 0 2px rgba(255,255,255,0.9);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.verification-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(100%);
}

.favorite-heart-grid {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.favorite-heart-grid span {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    width: 32px;
    height: 32px;
    font-size: 1.4rem;
}

.favorite-heart-grid span:hover {
    transform: scale(1.1);
}

.company-info {
    flex: 1;
    min-width: 0;
    padding-right: 24px;
}

.company-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    line-height: 1.3;
    min-height: 2.6em;
    max-height: 2.6em; /* Maximal 2 Zeilen */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    word-wrap: break-word;
    text-overflow: ellipsis;
}

.company-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.company-website {
color: var(--primary-color);
font-size: 0.9rem;
display: flex;
align-items: center;
white-space: nowrap;
overflow: hidden;
}

/* Automatische Schriftverkleinerung für sehr lange E-Mail-Adressen */
.company-website.long-email {
font-size: 0.75rem;
}

.company-website a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
    pointer-events: auto;
}

.company-website a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.country-flag {
    width: 20px;
    height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border: 0.5px solid #cccccc;
    line-height: 1;
    padding: 0;
    box-sizing: border-box;
}

.company-sectors {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    margin-bottom: 0;
    /* gap entfernt, da space-evenly die Verteilung übernimmt */
}

.sector-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 8px;
    position: relative;
    cursor: pointer;
    background: linear-gradient(145deg, #e8f4f8, #ffffff);
    box-shadow: 
        4px 4px 8px rgba(37, 88, 121, 0.15),
        -4px -4px 8px rgba(255, 255, 255, 0.9),
        inset 0 0 0 1px rgba(37, 88, 121, 0.08);
}

.sector-icon.active {
    background: linear-gradient(145deg, #2a6a8f, #255879);
    box-shadow: 
        4px 4px 8px rgba(37, 88, 121, 0.25),
        -4px -4px 8px rgba(255, 255, 255, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.sector-icon.inactive {
    background: linear-gradient(145deg, #e8f4f8, #ffffff);
    box-shadow: 
        4px 4px 8px rgba(37, 88, 121, 0.15),
        -4px -4px 8px rgba(255, 255, 255, 0.9),
        inset 0 0 0 1px rgba(37, 88, 121, 0.08);
}

.sector-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.sector-icon.active img {
    filter: brightness(0) invert(1);
}

.sector-icon:hover {
    transform: scale(1.1);
}

.sector-icon .tooltip {
    visibility: hidden;
    width: 80px;
    background-color: rgba(51, 51, 51, 0.9);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    font-weight: normal;
    text-transform: capitalize;
}

.sector-icon .tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.sector-icon:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.error-message {
    color: #dc3545;
    text-align: center;
    padding: 2rem;
    font-weight: 500;
}



@media (max-width: 768px) {
    .menu-dropdown {
        top: 8vh !important;
        padding: 0 !important;
        height: auto !important;
        max-height: calc(100vh - 8vh) !important;
        overflow-y: auto !important;
        border-bottom: 1px solid rgba(204, 204, 204, 0.3) !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
        display: none;
        width: 100% !important;
        min-width: auto !important;
        left: 0 !important;
    }

    .menu-dropdown.show { display: flex !important; flex-direction: column !important; }

    .menu-dropdown-columns {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .menu-dropdown-column {
        width: 100% !important;
        border-bottom: 1px solid rgba(37, 88, 121, 0.1);
        padding: 0 !important;
    }

    .menu-dropdown-column:last-child {
        border-bottom: none !important;
    }

    .menu-dropdown-column-title {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        cursor: pointer !important;
        padding: 15px 20px !important;
        margin: 0 !important;
        font-size: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .menu-dropdown-column-title::after {
        content: '▼';
        font-size: 10px;
        transition: transform 0.3s ease;
        color: #255879;
    }

    .menu-dropdown-column.active .menu-dropdown-column-title::after {
        transform: rotate(180deg);
    }

    .menu-dropdown-item {
        display: none !important;
        padding: 12px 30px !important;
        font-size: 14px !important;
        text-align: left !important;
        width: 100% !important;
        background: transparent !important;
        border: none !important;
        color: #555 !important;
    }

    .menu-dropdown-column.active .menu-dropdown-item {
        display: block !important;
    }

    .menu-dropdown-footer {
        display: none !important;
    }

    header {
        grid-template-columns: 1fr auto 1fr;
        padding: 0 15px;
        z-index: 1000 !important;
    }

    /* Center logo in mobile view */
    h1 {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Hide fillZone text in mobile view, keep only logo */
    .header-logo {
        font-size: 0;
    }

    .header-logo img {
        font-size: initial;
    }

    .menu-toggle svg {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        min-height: 20px !important;
    }

    .profile-name { display: none !important; }

    .profile-avatar {
        width: 22px !important;
        height: 22px !important;
        font-size: 10px !important;
        box-shadow: 0 0 0 2px #ffffff, 0 0 0 3.5px var(--primary-color) !important;
    }

    .user-profile {
        padding: 3px !important;
        gap: 0 !important;
    }

    .user-profile:hover {
        background: rgba(255, 255, 255, 1) !important;
    }

    /* Hide view toggle buttons, plus button, and counter in mobile view */
    .results-counter-top {
        display: none !important;
    }

    .view-toggle {
        display: none !important;
    }

    .add-provider-container {
        display: none !important;
    }

    .results-badge {
        display: none !important;
    }

    /* Force grid view in mobile */
    .profiles-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    /* Custom Scrollbars in Mobile verstecken */
    .grid-scrollbar-container,
    .table-scrollbar-container,
    .grid-scrollbar-track,
    .table-scrollbar-track,
    .grid-scrollbar-thumb,
    .table-scrollbar-thumb {
        display: none !important;
    }

    /* Standard Scrollbar verstecken für Mobile */
    main {
        scrollbar-width: none !important; /* Firefox */
        -ms-overflow-style: none !important;  /* IE/Edge */
    }
    main::-webkit-scrollbar {
        display: none !important; /* Chrome, Safari, Opera */
    }

    .profiles-table-container {
        display: none !important;
    }

    .profiles-map-container {
        display: none !important;
    }

    /* Show search, sector, and favorites in a single row on mobile */
    .filter-row {
        grid-template-columns: 1fr 1fr auto !important;
        gap: 8px !important;
        align-items: center !important;
        padding: 0 1rem !important; /* Exakt gleicher Abstand zum Rand wie das darunterliegende Grid */
    }

    .filter-row .filter-group:not(:first-child):not(:nth-child(3)):not(:nth-child(6)) {
        display: none !important;
    }

    .filter-row .filter-group:first-child {
        grid-column: auto !important;
        width: 100% !important;
    }

    /* Reduce font size for mobile filters in single row */
    .filter-input, .multi-select-display {
        font-size: 13px !important;
        padding: 0 10px !important;
        height: 40px !important;
    }

    .filter-input {
        padding-left: 40px !important; /* Platz für das Lupen-Icon schaffen */
    }

    .search-icon {
        left: 12px !important;
        width: 18px !important;
        height: 18px !important;
    }

    .filter-row .filter-group:nth-child(3) {
        display: flex !important;
    }

    .filter-row .filter-group:nth-child(6) {
        display: flex !important;
        justify-self: end !important;
    }

    /* Smaller favorites button for single row */
    .favorites-filter-btn {
        width: 40px !important;
        height: 40px !important;
        padding: 4px !important;
    }

    .favorites-filter-btn span {
        font-size: 20px !important;
    }

    /* Ensure dropdowns fit on mobile screen */
    .multi-select-dropdown {
        max-width: calc(100vw - 2rem) !important;
        min-width: auto !important;
    }

    /* Hide filter descriptions (labels with lines) in mobile */
    .filter-description {
        display: none !important;
    }

    /* Reduce spacing between header and filter in mobile */
    .filter-container {
        top: calc(8vh + 10px) !important;
        padding: 0.75rem 0 !important; /* Kein horizontaler Abstand mehr */
        width: 100% !important; /* Volle Breite */
        margin-bottom: 0 !important;
        height: auto !important;
        left: 0 !important; /* Links bündig */
        transform: none !important;
        z-index: 998 !important;
        border-radius: 0 !important; /* Kanten aufheben für Full-Width Look */
    }

    main {
        margin-top: 0 !important;
        padding: 0 1rem 60px 1rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; /* Zentriert das Grid horizontal */
        justify-content: flex-start !important;
        min-height: 100vh !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        scrollbar-width: none !important; /* Firefox */
        -ms-overflow-style: none !important;  /* IE/Edge */
        box-sizing: border-box !important;
    }
    
    main::-webkit-scrollbar {
        display: none !important; /* Chrome, Safari, Opera */
    }

    /* Platzhalter oben im Main um Überlappung mit festem Filter zu vermeiden */
    main::before {
        content: "";
        display: block;
        min-height: calc(8vh + 95px); /* Header + Filter Höhe (Single Row) */
        width: 100%;
        flex-shrink: 0;
    }

    /* Override grid-view specific rules for mobile */
    main.grid-view {
        margin-top: 0 !important;
        padding: 0 1rem 60px 1rem !important;
        height: auto !important;
        min-height: 100vh !important;
        max-height: none !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
    }

    /* Increase gap between cards for mobile without changing card height */
    .profiles-grid {
        gap: 2.0rem !important;
        margin-top: 0 !important;
        padding-top: 0 !important; /* Entfernt, da durch main::before ersetzt */
    }

    /* More specific selector to override desktop grid-view rule */
    main.grid-view .profiles-grid {
        width: 100% !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* Mobile clipping overlay - cards flip under filter when scrolling */
    .profiles-grid::before {
        content: '' !important;
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: calc(8vh + 85px) !important;
        background: white !important;
        z-index: 500 !important;
        pointer-events: none !important;
    }

    /* Optimized profile cards for mobile */
    .profile-card {
        padding: 0 1rem !important;
        border-radius: 12px;
        box-shadow: none !important;
        min-height: 220px;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Verhindert Inhalts-Überlauf */
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        gap: 0.75rem !important;
    }

    /* Smaller company logo for mobile */
    .company-logo-container {
        width: 72px;
        height: 72px;
    }

    .company-logo {
        width: 72px;
        height: 72px;
        font-size: 1.6rem;
    }

    /* Adjust company info text sizes and spacing */
    .company-name {
        font-size: 0.95rem;
        margin-bottom: 0.6rem; /* Erhöht von 0.4rem für etwas mehr Luft */
        height: auto;
        min-height: 2.4em;
        max-height: 2.4em;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        white-space: normal;
        word-wrap: break-word;
    }

    .company-location {
        font-size: 0.8rem;
        margin-bottom: 0.6rem; /* Erhöht von 0.4rem für etwas mehr Luft */
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .company-website {
        font-size: 0.75rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .company-website.long-email {
        font-size: 0.7rem;
    }

    /* Smaller sector icons for mobile */
    .sector-icon {
        width: 36px;
        height: 36px;
        padding: 7px;
    }

    .sector-icon img {
        width: 22px;
        height: 22px;
    }

    /* Adjust sectors container spacing */
    .company-sectors {
        padding: 1rem 0;
        margin-top: 0;
        border-top: 1px solid #eee;
    }

    /* Smaller favorite heart for mobile */
    .favorite-heart-grid {
        top: 12px;
        right: 12px;
    }

    .favorite-heart-grid span {
        width: 18px;
        height: 18px;
        line-height: 18px;
        font-size: 18px;
    }

    /* Smaller verification icon for mobile */
    .verification-icon {
        width: 22px;
        height: 22px;
        bottom: 1px;
        right: 1px;
    }

    .verification-icon img {
        width: 15px;
        height: 15px;
    }

    /* Adjust profile header spacing */
    .profile-header {
        gap: 0.65rem;
        margin-bottom: 0;
    }
    
    /* Optimize company info container */
    .company-info {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        padding-right: 30px;
    }

    /* Smaller country flag */
    .country-flag {
        width: 16px;
        height: 12px;
        flex-shrink: 0;
        border: 0.5px solid #cccccc;
        line-height: 1;
        padding: 0;
        box-sizing: border-box;
    }

    /* Hide profile name in mobile view, show only avatar */
    .user-profile {
        padding: 0;
        gap: 0;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    .user-profile:hover {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .profile-name {
        display: none !important;
    }

    /* Adjust avatar size for mobile */
    .profile-avatar {
        width: 36px !important;
        height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
        font-size: 14px;
    }

    /* Adjust dropdown menu font sizes for mobile */
    .menu-dropdown-item {
        font-size: 14px !important;
        padding: 1.5vh 4vw;
    }

    .menu-dropdown-item svg {
        width: 18px !important;
        height: 18px !important;
    }

    .dropdown-item {
        font-size: 14px !important;
        padding: 12px 18px;
    }

    .dropdown-menu {
        min-width: 190px !important;
    }
    
    /* Mobile Scrollbar Adjustments */
    .grid-scrollbar-container {
        top: calc(8vh + 85px + 0.3rem) !important;
        right: 8px !important;
        width: 12px !important;
        height: calc(100vh - 8vh - 85px - 0.3rem - 10px) !important;
        z-index: 999 !important;
    }
    
    .grid-scrollbar-track {
        background: rgba(200, 200, 200, 0.4) !important;
        border-radius: 6px !important;
        width: 12px !important;
    }
    
    .grid-scrollbar-thumb {
        background: #255879 !important;
        border: none !important;
        border-radius: 6px !important;
        min-height: 60px !important;
        opacity: 1 !important;
        width: 12px !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    }
    
    .table-scrollbar-container {
        top: calc(8vh + 85px + 0.3rem) !important;
        right: 8px !important;
        width: 12px !important;
        height: calc(100vh - 8vh - 85px - 0.3rem - 10px) !important;
        z-index: 999 !important;
    }
    
    .table-scrollbar-track {
        background: rgba(200, 200, 200, 0.4) !important;
        border-radius: 6px !important;
        width: 12px !important;
    }
    
    .table-scrollbar-thumb {
        background: #255879 !important;
        border: none !important;
        border-radius: 6px !important;
        min-height: 60px !important;
        opacity: 1 !important;
        width: 12px !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.country-flag {
width: 20px;
height: 15px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 2px;
object-fit: cover;
border: 0.5px solid #cccccc;
line-height: 1;
padding: 0;
box-sizing: border-box;
}





/* Scrollbar für alle Elemente ausblenden */
* {
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* Internet Explorer 10+ */
}

*::-webkit-scrollbar {
display: none;
width: 0;
height: 0;
background: transparent;
}

/* Spezifisch für html und body */
html, body {
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* Internet Explorer 10+ */
overflow-x: hidden; /* Verhindert horizontale Scrollbar */
}

html::-webkit-scrollbar, 
body::-webkit-scrollbar {
display: none;
width: 0;
height: 0;
background: transparent;
}

/* Ihr main Element */
main {
flex: 1;
/* Dynamisch positioniert: Header + results-counter + filter + Abstand */
padding: calc(var(--header-height) + 130px) 0 2rem 0;
max-width: 1400px;
margin: 0 auto;
width: calc(100% - 4rem); /* Gleiche Breite wie Filter-Container */
overflow-y: auto;
overflow-x: hidden;

/* Verstecke Scrollbar */
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* Internet Explorer 10+ */

/* Verhindere Scroll-Jumping durch Klicks */
scroll-behavior: smooth; /* Sanftes Scrollen */
}

main::-webkit-scrollbar {
display: none;
width: 0;
height: 0;
background: transparent;
pointer-events: none; /* Verhindere Klicks auf Scrollbar-Bereich */
}


/* Filterleiste Styles */
.filter-container {
background: transparent;
padding: 0.2rem 0; /* minimales Padding - Elemente nach oben geschoben */
margin-bottom: 2rem;

position: fixed;
/* Dynamisch positioniert: Header-Höhe + gleichmäßiger Abstand + Höhe der results-counter-top */
top: calc(var(--header-height) + 20px + 32px + 20px);
left: 50%;
transform: translateX(-50%);
max-width: 1400px;
width: calc(100% - 4rem);
z-index: 998;
}

.filter-container::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
border: 2px solid white; /* Umrandung in weiß, identisch zum Hintergrund */
border-radius: 0; /* Ecken eckig statt rund */
background: white; /* Hintergrund komplett weiß wie die Seite */
backdrop-filter: none; /* Keine Unschärfe für nahtlosen Hintergrund */
box-shadow: none; /* Kein Schatten, damit es vollständig verschmilzt */
z-index: -1;
}

.filter-row {
display: grid;
grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)) max-content max-content;
align-items: center;
justify-items: stretch;
padding: 0; /* links/rechts bündig zu den Kacheln */
width: 100%;
gap: 1rem;
}

/* Gleichmäßige Verteilung: Spalten und Inhalte auf volle Breite strecken */
.filter-row > .filter-group {
 margin-right: 0;
 width: 100%;
 min-width: 0;
}
.filter-row > .filter-group > .search-input-wrapper,
.filter-row > .filter-group > .multi-select-container {
 width: 100%;
}

/* Last two filter groups (favorites and verified) centered in max-content columns */
.filter-row > .filter-group:nth-last-child(-n+2) {
 width: auto;
 justify-self: center;
}

/* View-Toggles sind oben neben der Treffer-Anzeige; der Platzhalter entfällt */
.view-toggle {
 margin-left: 0;
}

.filter-group {
display: flex;
flex-direction: column;
min-width: 0; /* erlaubt Inhalt zu schrumpfen, verhindert overflow */
}

/* Trennstrich entfernt */
.spacer { display: none; }
.spacer::before { display: none; content: none; }

/* Treffer-Anzeige über dem Filter-Container */
.results-counter-top {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Plus-Button links, View-Toggle zentriert, Zähler rechts */
    font-size: 1.05rem;
    font-family: var(--font-main);
    font-weight: 600;
    color: var(--primary-color);
    position: fixed;
    /* Dynamisch positioniert: Header-Höhe + gleichmäßiger Abstand */
    top: calc(var(--header-height) + 20px);
    left: 2rem;
    right: 2rem;
    z-index: 999;
}

.results-counter-top .count {
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 0.3rem;
}

/* Schiebt die Zähler-Gruppe (Zahl + Wort) nach rechts, ohne sie zu trennen */
.results-counter-top .count + span {
    margin-left: 0.25rem; /* engerer Abstand zwischen Zahl und Wort */
}

/* View-Toggle-Buttons zentriert positionieren */
.results-counter-top .view-toggle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001; /* über dem Zähler klickbar */
}

/* Zähler-Badge rechts positionieren */
.results-counter-top .results-badge {
    display: inline-flex;
    align-items: baseline; /* Zahl und Wort auf eine Linie */
    gap: 0.4rem;
}

/* Flip-Counter Stil für Zähler - Corporate Design */
.results-badge {
    display: inline-flex;
    align-items: baseline; /* Baseline-Ausrichtung für perfekte Textlinie */
    gap: 0.5rem;
    height: 32px; /* Gleiche Höhe wie die Flip-Digits */
    box-sizing: border-box;
    line-height: 1;
}

.results-badge .count {
    display: inline-flex; /* Flex für horizontale Anordnung */
    align-items: center; /* Vertikale Zentrierung */
    gap: 0.5rem; /* Abstand zwischen Ziffern und "Treffer" */
    height: 32px;
}

/* Container für die Flip-Digits */
.results-badge .count .digits {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    height: 32px;
}

/* "Treffer" Text innerhalb des Count-Containers */
.results-badge .count .treffer-text {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    height: 32px;
    line-height: 32px;
    display: flex;
    align-items: center;
}

/* Einzelne Ziffer im Flip-Counter-Stil */
.flip-digit {
    width: 24px;
    height: 32px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border: 1.5px solid var(--primary-color);
    border-radius: 4px;
    display: flex; /* Flex für Zentrierung des Inhalts */
    align-items: center;
    justify-content: center;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    box-shadow: 
        0 2px 4px rgba(37, 88, 121, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(37, 88, 121, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    perspective: 200px;
}

/* Mittellinie für authentischen Flip-Counter-Look */
.flip-digit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 2px;
    right: 2px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(37, 88, 121, 0.15) 20%, 
        rgba(37, 88, 121, 0.25) 50%, 
        rgba(37, 88, 121, 0.15) 80%, 
        transparent 100%);
    transform: translateY(-0.5px);
    z-index: 1;
}

/* Mechanischer Flip-Counter mit durchlaufenden Zahlen */
.flip-digit {
    overflow: hidden;
}

.flip-digit .digit-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-digit .digit-roll {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
    will-change: transform;
}

.flip-digit .digit-number {
    width: 100%;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Animation für aufsteigende Zahlen (0→1→2→3...) */
@keyframes rollUp {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-320px); /* -32px * 10 Zahlen */
    }
}

/* Animation für absteigende Zahlen (9→8→7→6...) */
@keyframes rollDown {
    from {
        transform: translateY(-320px);
    }
    to {
        transform: translateY(0);
    }
}

/* Klassen für die Roll-Animationen */
.flip-digit.rolling-up .digit-roll {
    animation: rollUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.flip-digit.rolling-down .digit-roll {
    animation: rollDown 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Während der Animation - verstärkter 3D-Effekt */
.flip-digit.rolling-up,
.flip-digit.rolling-down {
    box-shadow: 
        0 4px 12px rgba(37, 88, 121, 0.25),
        inset 0 2px 0 rgba(255, 255, 255, 0.9),
        inset 0 -2px 0 rgba(37, 88, 121, 0.1);
    transform: scale(1.02);
}

/* Hover-Effekt für interaktive Elemente */
.flip-digit:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 8px rgba(37, 88, 121, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(37, 88, 121, 0.08);
}

/* Altes CSS für separaten "Treffer"-Text entfernt - jetzt innerhalb des Count-Containers */

/* Plus-Button Container linksbündig */
.add-provider-container {
    display: flex;
    align-items: center;
}

/* Plus-Button gleiche Größe wie kompakte View-Toggle-Buttons */
.add-provider-container .view-toggle-btn {
    width: 34px;   /* gleiche Größe wie kompakte Buttons */
    height: 34px;  /* gleiche Größe wie kompakte Buttons */
    padding: 3px;  /* gleiche Padding wie kompakte Buttons */
}

.add-provider-container .view-toggle-btn svg {
    width: 16px;  /* gleiche Icon-Größe wie kompakte Buttons */
    height: 16px;
}

/* Doppelte Regel entfernt - bereits oben definiert */

.filter-label {
font-weight: 600;
color: white;
margin-bottom: 0.5rem;
font-size: 0.95rem;
text-align: center;  /* Zentriert die Labels */
}

.filter-select {
padding: 0.75rem;
border: 1px solid #ddd;
border-radius: 8px;
font-size: 1rem;
font-family: var(--font-main);
transition: all 0.3s ease;
background-color: white !important;  /* !important hinzufügen */
background-image: none !important;   /* Browser-Gradients entfernen */
background: white !important;        /* Zusätzliche Sicherheit */
height: 48px;
box-sizing: border-box;
cursor: pointer;
-webkit-appearance: none;            /* Safari/Chrome Styling entfernen */
-moz-appearance: none;               /* Firefox Styling entfernen */
appearance: none;                    /* Standard Styling entfernen */
text-align: center; /* Zentriert den ausgewählten Text */
text-align-last: center; /* Zentriert den Text in Firefox */
}

.filter-input:focus, .filter-select:focus {
outline: none;
border-color: var(--primary-color);
background-color: white;
box-shadow: 0 0 0 3px rgba(37, 88, 121, 0.1);
}

.filter-input::placeholder {
color: #6b7280; /* etwas dunkler auf weiß */
}

.filter-select {
cursor: pointer;
}

.filter-select option {
font-family: var(--font-main);
font-size: 1rem;
color: #333;                /* konsistent zum Suchfeld */
}

/* Filter-Beschreibung Styles */
.filter-description {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)) max-content max-content;
    align-items: center;
    justify-items: stretch;
    padding: 0;
    width: 100%;
    gap: 1rem;
    margin-top: 0.1rem;
    position: relative;
}

.filter-description-item {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 2rem;
    padding: 0 0.5rem;
}

/* Letzte zwei Spalten (Favoriten und Verifiziert) - synchronisiert mit Button-Breite */
.filter-description-item:nth-last-child(-n+2) {
    width: 100%;
    min-width: 48px;
    justify-self: center;
    align-self: center;
}

/* Entferne Linien bei letzten zwei Items */
.filter-description-item:nth-last-child(-n+2)::before {
    display: none !important;
}

.filter-description-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 2px;
    background-color: var(--primary-color);
    transform: translate(-50%, -50%);
    z-index: 1;
}

.filter-description-text {
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--primary-color);
    line-height: 1;
    white-space: nowrap;
    text-align: center;
    background-color: white;
    padding: 0 0.25rem;
    position: relative;
    z-index: 2;
    display: inline-block;
    margin: 0;
    height: auto;
}

/* Override text styling for last two labels - no background */
.filter-description-item:nth-last-child(-n+2) .filter-description-text {
    padding: 0 0.25rem;
    background-color: transparent;
    display: inline-block;
    margin: 0;
}

/* Responsive Anpassung für Filter-Beschreibung */
@media (max-width: 768px) {
    .filter-description {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .filter-description-item {
        justify-content: center;
        padding: 0.25rem 0;
    }
}

@media (max-width: 768px) {
.filter-container {
padding: 1rem;
}

.filter-row {
grid-template-columns: 1fr;
gap: 1rem;
max-width: none;
}

/* Responsive Anpassung für Treffer-Anzeige */
.results-counter-top {
    justify-content: flex-start; /* konsistent mit Desktop */
    left: 1rem;
    right: 1rem;
    padding-right: 0;
}

/* Zähler-Gruppe auch mobil zusammen rechts halten */
.results-counter-top > :nth-child(2) {
    margin-left: auto;
}

.view-toggle {
justify-self: flex-start;
margin-top: 1rem;
}


}

.world-icon {
filter: brightness(0) saturate(100%) invert(22%) sepia(40%) saturate(1203%) hue-rotate(169deg) brightness(91%) contrast(89%);
cursor: pointer !important;
pointer-events: auto !important;
position: relative;
z-index: 999;
display: inline-block;
}

/* Grid: Weltkugel-Icon minimal nach links verschieben */
.profiles-grid .world-icon {
 margin-left: -2px; /* Feinjustierung; bei Bedarf -2px oder -4px */
}

/* Verhindert, dass die Tabellenzeile den Cursor des Icons überschreibt */
.profiles-table tbody tr:hover .world-icon {
cursor: pointer !important;
}

.filter-input, .filter-select {
width: 100%; /* füllt die Spalte */
padding: 0.75rem;
border: 1.5px solid var(--primary-color);
border-radius: 24px; /* deutlich größerer Radius (pill) */
font-size: 1rem;
font-family: var(--font-main);
font-weight: 400;
color: #333;               /* dunkler Text auf weiß */
transition: all 0.3s ease;
background-color: #fff;    /* weißer Hintergrund */
height: 48px;
box-sizing: border-box;
caret-color: #333;         /* dunkler Caret für bessere Lesbarkeit */
}

.filter-select {
cursor: pointer;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-image: none !important;
}


.search-input-wrapper {
position: relative;
display: flex;
align-items: center;
width: 100%; /* dehnt sich innerhalb der Spalte */
}

.filter-input {
width: 100%;
padding-left: 40px; /* Platz für das Icon schaffen */
padding-right: 36px; /* Platz für den Clear-Button */
}

.search-icon {
position: absolute;
left: 12px;
width: 25px;                /* Größer */
height: 25px;               /* Größer */
opacity: 1;                 /* Volle Deckkraft für Farbe */
z-index: 1;
pointer-events: none;
transform: scaleX(-1);      /* Horizontal spiegeln */
filter: brightness(0) saturate(100%) invert(22%) sepia(40%) saturate(1203%) hue-rotate(169deg) brightness(91%) contrast(89%); /* Blau der Webseite */
}

.clear-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: #dc3545;
    z-index: 2;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.clear-search-btn:hover {
    color: #b02a37;
    transform: translateY(-50%) scale(1.2);
}

/* Multi-Select Dropdown Styles */
.multi-select-container {
position: relative;
width: 100%; /* füllt die Grid-Spalte */
min-width: 0;
max-width: none;
}

.multi-select-display {
width: 100%; /* füllt die Spalte */
padding: 0.75rem 2rem; /* zusätzlicher Platz links/rechts für Chevron, Text bleibt zentriert */
border: 1.5px solid var(--primary-color);
border-radius: 24px; /* deutlich größerer Radius (pill) */
font-size: 1rem;
font-family: var(--font-main);
font-weight: 400;
color: #6b7280;            /* Platzhalter-Farbe wie Suchfeld */
transition: all 0.3s ease;
background-color: #fff;    /* weißer Hintergrund */
height: 48px;
box-sizing: border-box;
cursor: pointer;
text-align: center;
text-align-last: center;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
position: relative;        /* für Chevron-Icon */
}

/* Chevron-Icon rechts einblenden, Text bleibt zentriert */
.multi-select-display::after {
  content: '▾';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px; /* größerer Chevron */
  line-height: 1;
  color: var(--primary-color);
  pointer-events: none; /* Klickbereich bleibt auf dem Button */
}

/* X-Symbol zum Löschen des Filters (nur bei ausgewählten Werten) */
.multi-select-display::before {
  content: '×';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  line-height: 1;
  color: #dc3545;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 10;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* X-Symbol nur bei ausgewählten Werten anzeigen */
.multi-select-display.has-value::before {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Hover-Effekt für X-Symbol */
.multi-select-display.has-value::before:hover {
  transform: translateY(-50%) scale(1.2);
  color: #b02a37;
}

/* Wenn Werte ausgewählt sind, Textfarbe wieder dunkel wie Eingabetext */
.multi-select-display.has-value {
  color: #333;
}

/* Aktiver Zustand: Chevron nach oben drehen */
.multi-select-container.active .multi-select-display::after {
  transform: translateY(-50%) rotate(180deg);
}

.multi-select-display:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(37, 88, 121, 0.1);
}

.multi-select-display:hover {
border-color: rgba(37, 88, 121, 0.5);
}

/* Styles für ausgewählte Flaggen im Filter */
.selected-flags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.selected-flags .country-flag {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(37, 88, 121, 0.2);
}

/* Styles für ausgewählte Sektor-Icons im Filter */
.selected-sectors {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.filter-sector-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    flex-shrink: 0;
}

.filter-sector-icon img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1); /* Macht die Icons weiß */
}

/* Styles für ausgewählte Anlagen-Icons im Filter */
.selected-facilities {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.filter-facility-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    flex-shrink: 0;
}

.filter-facility-icon img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1); /* Macht die Icons weiß */
}

/* Styles für "Alle auswählen" Option */
.select-all-option {
    font-weight: bold;
    background-color: rgba(37, 88, 121, 0.05);
    border-radius: 4px;
    margin-bottom: 4px;
}

.select-all-option:hover {
    background-color: rgba(37, 88, 121, 0.1) !important;
}

/* Trennlinie zwischen "Alle auswählen" und einzelnen Optionen */
.category-separator {
    height: 1px;
    background-color: rgba(37, 88, 121, 0.2);
    margin: 8px 12px;
}

/* Category Checkbox Styling - now uses same design as multi-select checkboxes */
.category-checkbox {
    margin-right: 8px;
}

.category-checkbox:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 88, 121, 0.1);
    transform: scale(1.05);
}

.category-checkbox.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 6px rgba(37, 88, 121, 0.25);
}

.category-checkbox::after {
    content: '✓';
    font-size: 12px;
    font-weight: bold;
    color: white;
    opacity: 0;
    transition: all 0.2s ease;
    transform: scale(0.3);
    line-height: 1;
}

.category-checkbox.selected::after {
    opacity: 1;
    transform: scale(1);
}

.multi-select-container.active .multi-select-display {
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(37, 88, 121, 0.1);
background-color: white;
}

.multi-select-dropdown {
position: absolute;
top: 100%;
left: 0;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid rgba(37, 88, 121, 0.15);
border-top: none;
border-radius: 16px;
max-height: 250px;
overflow-y: auto;
overflow-x: hidden;
z-index: 9999;
display: none;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
min-width: 250px;
width: max-content;
max-width: 400px;
margin-top: 4px;
}

.multi-select-dropdown.show {
display: block;
}

/* Zertifikate-Dropdown leicht nach links verschieben */
#certificationsFilterDropdown {
    left: -80px;
    max-height: 300px;
    background: white !important;
    width: 400px !important;
}

#certificationsFilterDropdown .multi-select-option {
    background: white !important;
}

#certificationsFilterDropdown .multi-select-option:hover {
    background: linear-gradient(135deg, rgba(37, 88, 121, 0.08), rgba(37, 88, 121, 0.12)) !important;
    transform: translateY(-1px);
}

.multi-select-option {
padding: 14px 20px;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 12px;
font-size: 15px;
font-family: var(--font-main);
font-weight: 400;
position: relative;
z-index: 1001;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
border-radius: 8px;
margin: 4px 8px;
color: var(--text-gray);
}

.multi-select-option:hover {
background: linear-gradient(135deg, rgba(37, 88, 121, 0.08), rgba(37, 88, 121, 0.12));
transform: translateY(-1px);
}

.multi-select-option.selected {
background: linear-gradient(135deg, rgba(37, 88, 121, 0.15), rgba(37, 88, 121, 0.2));
color: var(--primary-color);
font-weight: 500;
}

.multi-select-option.selected:hover {
background: linear-gradient(135deg, rgba(37, 88, 121, 0.2), rgba(37, 88, 121, 0.25));
transform: translateY(-1px);
}

.multi-select-checkbox {
width: 18px;
height: 18px;
border: 2px solid var(--primary-color);
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
flex-shrink: 0;
background: white;
position: relative;
cursor: pointer;
}

.multi-select-checkbox:hover {
border-color: var(--primary-color);
box-shadow: 0 0 0 2px rgba(37, 88, 121, 0.1);
transform: scale(1.05);
}

.multi-select-option.selected .multi-select-checkbox {
background: var(--primary-color);
border-color: var(--primary-color);
color: white;
box-shadow: 0 2px 6px rgba(37, 88, 121, 0.25);
}

.multi-select-checkbox::after {
content: '✓';
font-size: 12px;
font-weight: bold;
color: white;
opacity: 0;
transition: all 0.2s ease;
transform: scale(0.3);
line-height: 1;
}

.multi-select-option.selected .multi-select-checkbox::after {
opacity: 1;
transform: scale(1);
}

/* Scrollbar für Dropdowns - immer sichtbar als visueller Hinweis */
.multi-select-dropdown {
scrollbar-width: thin !important; /* Firefox - überschreibt globales "none" */
-ms-overflow-style: auto !important; /* Internet Explorer 10+ */
overflow-y: scroll !important; /* Erzwingt immer sichtbare Scrollbar */
}

.multi-select-dropdown::-webkit-scrollbar {
display: block !important; /* Überschreibt globales "display: none" */
width: 6px !important;
background: rgba(0, 0, 0, 0.03) !important; /* Leicht sichtbarer Track */
}

.multi-select-dropdown::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.05) !important;
border-radius: 3px;
}

.multi-select-dropdown::-webkit-scrollbar-thumb {
background: linear-gradient(135deg, rgba(37, 88, 121, 0.4), rgba(37, 88, 121, 0.6)) !important;
border-radius: 3px;
transition: all 0.3s ease;
min-height: 20px !important; /* Mindesthöhe für bessere Sichtbarkeit */
}

.multi-select-dropdown::-webkit-scrollbar-thumb:hover {
background: linear-gradient(135deg, rgba(37, 88, 121, 0.6), rgba(37, 88, 121, 0.8)) !important;
}

/* Erste und letzte Option spezielle Border-Radius */
.multi-select-option:first-child {
margin-top: 8px;
}

.multi-select-option:last-child {
margin-bottom: 8px;
}

/* Certification Search Field Styles */
.certification-search-wrapper {
    padding: 12px 16px 8px 16px;
    position: sticky;
    top: -1px;
    background: #ffffff;
    z-index: 10000;
    border-bottom: 1px solid rgba(37, 88, 121, 0.1);
    border-radius: 16px 16px 0 0;
    margin: -1px -1px 0 -1px;
}

.certification-search-input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1.5px solid var(--primary-color);
    border-radius: 24px;
    font-size: 14px;
    font-family: var(--font-main);
    font-weight: 400;
    color: #333;
    background-color: #fff;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%23255879" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><g transform="scale(-1,1) translate(-24,0)"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/></g></svg>');
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 16px 16px;
    transition: all 0.3s ease;
    outline: none;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.certification-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 88, 121, 0.15);
}

.certification-search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* Facility (Abfüllform) Search Field Styles - identisch mit Certification Search */
.facility-search-wrapper {
    padding: 12px 16px 8px 16px;
    position: sticky;
    top: -1px;
    background: #ffffff;
    z-index: 10000;
    border-bottom: 1px solid rgba(37, 88, 121, 0.1);
    border-radius: 16px 16px 0 0;
    margin: -1px -1px 0 -1px;
}

.facility-search-input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1.5px solid var(--primary-color);
    border-radius: 24px;
    font-size: 14px;
    font-family: var(--font-main);
    font-weight: 400;
    color: #333;
    background-color: #fff;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%23255879" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><g transform="scale(-1,1) translate(-24,0)"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/></g></svg>');
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 16px 16px;
    transition: all 0.3s ease;
    outline: none;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.facility-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 88, 121, 0.15);
}

.facility-search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* Country option styling with flag */
.country-option-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
}

.country-name {
    flex: 1;
}

.country-option-content .country-flag {
    width: 20px;
    height: 15px;
    flex-shrink: 0;
    border-radius: 2px;
    overflow: hidden;
}

/* Sector option styling with icon */
.sector-option-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
}

.sector-name {
    flex: 1;
}

.sector-icon-container {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--primary-color);
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(37, 88, 121, 0.2);
}

.sector-icon-small {
    width: 14px;
    height: 14px;
    /* White filter for the icon inside the blue circle */
    filter: brightness(0) saturate(100%) invert(100%);
}

.multi-select-option:hover .sector-icon-container {
    box-shadow: 0 2px 6px rgba(37, 88, 121, 0.3);
    transform: scale(1.05);
}

/* Hierarchical Facilities Filter Styles */
.facility-category-filter {
    margin: 4px 0;
}

/* Erste und letzte Kategorie - Abstand zum Dropdown-Rand */
.facility-category-filter:first-child .facility-category-header {
    margin-top: 8px;
}

.facility-category-filter:last-child .facility-category-header {
    margin-bottom: 8px;
}

/* Falls die letzte Kategorie geöffnet ist, Abstand für die letzte Option */
.facility-category-filter:last-child .facility-category-options .multi-select-option:last-child {
    margin-bottom: 8px;
}

.facility-category-header {
    padding: 14px 20px;
    cursor: default;
    background: white;
    border-radius: 8px;
    margin: 4px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    color: var(--text-gray);
    font-size: 15px;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.category-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
}

.category-name {
    flex: 1;
}

/* Die Icons verwenden jetzt die gleiche Struktur wie im Branche-Filter mit .sector-icon-container und .sector-icon-small */

.facility-category-header:hover {
    background: linear-gradient(135deg, rgba(37, 88, 121, 0.08), rgba(37, 88, 121, 0.12));
    transform: translateY(-1px);
}

.category-toggle-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
    color: var(--primary-color);
    font-weight: normal;
    width: 12px;
    display: inline-block;
    cursor: pointer !important;
}

.category-name {
    cursor: pointer !important;
}

.facility-category-header .sector-icon-container {
    cursor: pointer !important;
}

/* Keine CSS-Rotation mehr nötig, da wir das Icon direkt ändern */

.facility-category-options {
    padding-left: 0;
    margin-top: 4px;
    margin-left: 20px;
}

.facility-category-options .multi-select-option {
    padding: 14px 20px;
    margin: 4px 8px;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-gray);
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.facility-category-options .multi-select-option:hover {
    background: linear-gradient(135deg, rgba(37, 88, 121, 0.08), rgba(37, 88, 121, 0.12));
    transform: translateY(-1px);
}

.facility-category-options .multi-select-option.selected {
    background: linear-gradient(135deg, rgba(37, 88, 121, 0.15), rgba(37, 88, 121, 0.2));
    color: var(--primary-color);
    font-weight: 500;
}

.facility-category-options .multi-select-option.selected:hover {
    background: linear-gradient(135deg, rgba(37, 88, 121, 0.2), rgba(37, 88, 121, 0.25));
    transform: translateY(-1px);
}

.facility-category-options .multi-select-option.selected .multi-select-checkbox {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Anpassung der Dropdown-Breite für Anlagen-Filter */
#facilitiesFilterDropdown {
    min-width: 300px;
    max-width: 400px;
    width: max-content;
    max-height: 400px;
    background: white !important;
}

/* View Toggle Buttons */
.view-toggle {
display: flex;
gap: 16px; /* mehr Abstand zwischen den Ansichts-Icons */
align-items: center;
justify-self: end;
}

/* kompakte Variante für den Header-Zähler */
.view-toggle-compact .view-toggle-btn {
width: 34px;   /* größer */
height: 34px;  /* größer */
padding: 3px;  /* leicht erhöht */
}
.view-toggle-compact .view-toggle-btn svg {
width: 16px;  /* Icon-Größe unverändert */
height: 16px;
}

/* Platzhalter für View-Toggles wird nicht mehr benötigt */
.view-toggle-placeholder { display: none; }

.view-toggle-btn {
padding: 6px 8px;
border: 1.5px solid var(--primary-color); /* blauer Rahmen für nicht aktive Icons */
border-radius: 8px;
background: white;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
width: 46px;  /* +4px */
height: 46px; /* +4px */
box-shadow: none;
color: var(--primary-color); /* Icons in Blau */
position: relative;
}

.view-toggle-btn:hover {
border-color: var(--primary-color);
background-color: rgba(255, 255, 255, 0.9);
transform: translateY(-1px);
box-shadow: none;
color: var(--primary-color);
}

.view-toggle-btn.active {
background-color: var(--primary-color);
border-color: var(--primary-color); /* aktives Icon ohne grauen Rahmen */
color: white;
box-shadow: none;
transform: scale(1.05);
}

.view-toggle-btn svg {
width: 22px;  /* +2px */
height: 22px; /* +2px */
fill: currentColor;
}

/* Tooltip Styles für View Toggle Buttons */
.view-toggle-btn::after {
content: attr(data-tooltip);
position: absolute;
bottom: -35px;
left: 50%;
transform: translateX(-50%);
background: rgba(0, 0, 0, 0.8);
color: white;
padding: 6px 10px;
border-radius: 4px;
font-size: 12px;
font-weight: 500;
white-space: nowrap;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
z-index: 1001;
pointer-events: none;
}

.view-toggle-btn::before {
content: '';
position: absolute;
bottom: -25px;
left: 50%;
transform: translateX(-50%);
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 5px solid rgba(0, 0, 0, 0.8);
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
z-index: 1001;
pointer-events: none;
}

.view-toggle-btn:hover::after,
.view-toggle-btn:hover::before {
opacity: 1;
visibility: visible;
}

/* Favoriten-Filter */
.favorites-filter-container {
display: flex;
align-items: center;
justify-content: center;
}

.favorites-filter-btn {
display: flex;
align-items: center;
justify-content: center;
width: 48px;
height: 48px;
padding: 8px;
border: 1.5px solid var(--primary-color);
border-radius: 24px; /* deutlich größerer Radius (pill) */
background: #fff;           /* weißer Hintergrund */
cursor: pointer;
transition: all 0.3s ease;
font-family: var(--font-main);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
color: var(--primary-color); /* Icon/Text in Primärfarbe */
}

.favorites-filter-btn:hover {
border-color: rgba(37, 88, 121, 0.5);
background-color: rgba(255, 255, 255, 0.9);
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
color: #666;
}

.favorites-filter-btn.active {
border-color: var(--primary-color);
background-color: #fff; /* Kreis bleibt weiß */
color: var(--primary-color); /* Text/Fallback in Primärfarbe */
box-shadow: 0 4px 12px rgba(37, 88, 121, 0.25);
}

.favorites-filter-btn span {
color: #ccc !important;
font-size: 24px;
transition: color 0.3s ease;
}

.favorites-filter-btn.active span {
color: var(--primary-color) !important; /* Herz wird blau */
}

/* Verified Filter Styles */
.verified-filter-container {
    display: flex;
    align-items: center;
    justify-content: center; /* mittig innerhalb der Spalte */
}

.verified-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 8px;
    border: 1.5px solid var(--primary-color);
    border-radius: 24px; /* deutlich größerer Radius (pill) */
    background: #fff;           /* weißer Hintergrund */
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.verified-filter-btn:hover {
    border-color: rgba(37, 88, 121, 0.5);
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.verified-filter-btn.active {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 88, 121, 0.25);
}

.verified-filter-btn img.verified-filter-icon {
    width: 32px;
    height: 32px;
    transition: filter 0.3s ease;
    filter: brightness(0) saturate(100%) invert(73%) sepia(11%) saturate(265%) hue-rotate(180deg) brightness(95%) contrast(85%);
}

.verified-filter-btn:hover img.verified-filter-icon {
    filter: brightness(0) saturate(100%) invert(22%) sepia(40%) saturate(1203%) hue-rotate(169deg) brightness(91%) contrast(89%);
}

.verified-filter-btn.active img.verified-filter-icon {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

/* Tabellenansicht Styles */
.profiles-table-container {
display: none;
background: transparent;
border-radius: 0;
overflow-y: auto;
overflow-x: hidden;
margin-top: 0.3rem;
height: calc(100vh - var(--header-height) - 129px - 2.5rem - 0.3rem);
position: fixed;
top: calc(var(--header-height) + 129px + 2.5rem + 0.3rem);
left: 50%;
transform: translateX(-50%);
width: calc(100% - 4rem);
max-width: 1400px;
z-index: 100;
scrollbar-width: none;
-ms-overflow-style: none;
-webkit-overflow-scrolling: auto;
}

/* Verstecke Webkit Scrollbar für Tabellen-Container */
.profiles-table-container::-webkit-scrollbar {
display: none;
}

/* Separater Scrollbar-Container für Tabellen-Ansicht */
.table-scrollbar-container {
display: none;
position: fixed;
top: calc(var(--header-height) + 129px + 2.5rem + 0.3rem);
right: calc((100vw - 1400px) / 2 - 10px); /* Dynamisch: zentrierter Content - 10px (weiter rechts) */
width: 12px;
height: calc(100vh - var(--header-height) - 129px - 2.5rem - 0.3rem - 10px); /* 20px Abstand zum unteren Bildschirmrand */
z-index: 101;
background: transparent;
}

.table-scrollbar-container.active {
display: block;
}

/* Custom Scrollbar Track */
.table-scrollbar-track {
width: 100%;
height: 100%;
background: #f1f1f1;
border-radius: 6px;
position: relative;
}

/* Custom Scrollbar Thumb */
.table-scrollbar-thumb {
width: 100%;
background: var(--primary-color);
border-radius: 6px;
border: 2px solid #f1f1f1;
position: absolute;
top: 0;
cursor: pointer;
transition: background-color 0.2s ease;
}

.table-scrollbar-thumb:hover {
background: #1a4a66;
}

/* Responsive Anpassung für kleinere Bildschirme */
@media (max-width: 1500px) {
.table-scrollbar-container {
    right: calc((100vw - 1400px) / 2 - 10px); /* Dynamisch berechnet */
}
}

/* Separater Scrollbar-Container für Grid-Ansicht */
.grid-scrollbar-container {
display: none;
position: fixed;
/* Dynamisch: Header + results-counter + filter + Abstand + Grid margin-top */
top: calc(var(--header-height) + 129px + 2.5rem + 0.3rem);
right: calc((100vw - 1400px) / 2 - 10px); /* Dynamisch: zentrierter Content - 10px (weiter rechts) */
width: 12px;
height: calc(100vh - var(--header-height) - 129px - 2.5rem - 0.3rem - 10px); /* 10px Abstand zum unteren Bildschirmrand */
z-index: 101;
background: transparent;
}

.grid-scrollbar-container.active {
display: block;
}

/* Custom Scrollbar Track für Grid */
.grid-scrollbar-track {
width: 100%;
height: 100%;
background: #f1f1f1;
border-radius: 6px;
position: relative;
}

/* Custom Scrollbar Thumb für Grid */
.grid-scrollbar-thumb {
width: 100%;
background: var(--primary-color);
border-radius: 6px;
border: 2px solid #f1f1f1;
position: absolute;
top: 0;
cursor: pointer;
transition: background-color 0.2s ease;
}

.grid-scrollbar-thumb:hover {
background: #1a4a66;
}

/* Responsive Anpassung für kleinere Bildschirme - Grid */
@media (max-width: 1500px) {
.grid-scrollbar-container {
    right: calc((100vw - 1400px) / 2 - 10px); /* Dynamisch berechnet */
}
}

.profiles-table-container.active {
display: block;
}

.profiles-table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
font-family: var(--font-main);
background: transparent;
}

.profiles-table thead {
display: table-header-group;
position: sticky !important;
top: 0 !important;
z-index: 200 !important;
will-change: position;
}

.profiles-table thead tr {
display: table;
width: 100%;
table-layout: fixed;
position: sticky !important;
top: 0 !important;
z-index: 200 !important;
}

.profiles-table tbody {
display: block;
}

.profiles-table th {
display: table-cell;
background: linear-gradient(135deg, var(--primary-color), #3498db);
color: white;
padding: 1.5rem 1rem; /* Erhöht von 1rem auf 1.5rem */
text-align: left;
font-weight: 600;
font-size: 0.95rem;
border: none;
position: relative;
height: 60px; /* Explizite Mindesthöhe hinzufügen */
vertical-align: middle; /* Vertikale Zentrierung */
font-family: var(--font-main);
cursor: pointer;
user-select: none;
}

.profiles-table th:nth-child(1) { width: 4%; text-align: center; } /* Logo */
.profiles-table th:nth-child(2) { width: 21%; text-align: left; } /* Anbieter */
.profiles-table th:nth-child(3) { width: 7%; text-align: center; } /* Land */
.profiles-table th:nth-child(4) { width: 8%; text-align: center; } /* PLZ */
.profiles-table th:nth-child(5) { width: 17%; text-align: left; padding-left: 1rem; } /* Stadt */
.profiles-table th:nth-child(6) { width: 5%; text-align: center; } /* Website */
.profiles-table th:nth-child(7) { width: 7%; } /* Pharma */
.profiles-table th:nth-child(8) { width: 7%; } /* Chemie */
.profiles-table th:nth-child(9) { width: 7%; } /* Food */
.profiles-table th:nth-child(10) { width: 7%; } /* Kosmetik */
.profiles-table th:nth-child(11) { width: 5%; } /* Favoriten */

.profiles-table th:first-child {
border-radius: 0;
}

.profiles-table th:last-child {
border-radius: 0;
}

/* Sortier-Symbole - nur bei aktiver Sortierung anzeigen */
.profiles-table th.sortable.sort-asc::after {
content: '';
position: absolute;
right: 8px;
top: 50%;
transform: translateY(-50%);
width: 0;
height: 0;
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-top: 6px solid white;
border-bottom: none;
}

.profiles-table th.sortable.sort-desc::after {
content: '';
position: absolute;
right: 8px;
top: 50%;
transform: translateY(-50%);
width: 0;
height: 0;
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-bottom: 6px solid white;
border-top: none;
}

.profiles-table tbody tr {
display: table;
width: 100%;
table-layout: fixed;
background: white;
border: 1px solid rgba(37, 88, 121, 0.3);
border-radius: 0;
transition: all 0.3s ease;
margin-bottom: 1rem;
box-shadow: none !important;
}

.profiles-table tbody tr:first-child {
margin-top: 1rem;
}

.profiles-table tbody tr:hover {
transform: translateY(-2px);
cursor: pointer;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
background-color: rgba(37, 88, 121, 0.08) !important; /* Sanftes Corporate Blau */
}

.profiles-table tbody tr td {
display: table-cell;
padding: 1.8rem 1rem;
vertical-align: middle;
font-size: 0.95rem;
border: none;
background: transparent;
line-height: 1.4;
color: #666;
font-family: var(--font-main);
}

.profiles-table tbody tr td:nth-child(1) { width: 4% !important; padding-left: 0.8rem !important; }  /* Logo-Spalte */
.profiles-table tbody tr td:nth-child(2) { width: 21% !important; padding-left: 1.5rem !important; } /* Anbieter-Spalte */
.profiles-table tbody tr td:nth-child(3) { width: 7%; text-align: center; } /* Land */
.profiles-table tbody tr td:nth-child(4) { width: 8%; text-align: center; } /* PLZ */
.profiles-table tbody tr td:nth-child(5) { width: 17%; text-align: left; padding-left: 1rem; } /* Stadt */
.profiles-table tbody tr td:nth-child(6) { width: 5%; text-align: center; } /* Website */
.profiles-table tbody tr td:nth-child(7) { width: 7%; } /* Pharma */
.profiles-table tbody tr td:nth-child(8) { width: 7%; } /* Chemie */
.profiles-table tbody tr td:nth-child(9) { width: 7%; } /* Food */
.profiles-table tbody tr td:nth-child(10) { width: 7%; } /* Kosmetik */
.profiles-table tbody tr td:nth-child(11) { width: 5%; } /* Favoriten */

/* Größere Flags in Tabellenansicht */
.profiles-table .country-flag {
    width: 26px;
    height: 19px;
}

/* Herz-Icons in Tabellen-Ansicht - verhindere Layout-Shifts */
.profiles-table tbody tr td span[onclick*="toggleFavorite"] {
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    /* Verhindere Layout-Shifts */
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
}

.profiles-table tbody tr td span[onclick*="toggleFavorite"]:hover {
    transform: scale(1.1);
}

/* Abgerundete Ecken für erste und letzte Zelle in jeder Zeile */
.profiles-table tbody tr td:first-child {
border-top-left-radius: 16px;
border-bottom-left-radius: 16px;
}

.profiles-table tbody tr td:last-child {
border-top-right-radius: 16px;
border-bottom-right-radius: 16px;
}



.table-company-info {
display: flex;
align-items: center;
gap: 2rem !important;
}

.table-company-logo {
width: 56px !important;
height: 56px !important;
border-radius: 50%;
background: linear-gradient(135deg, rgba(37, 88, 121, 0.12), rgba(37, 88, 121, 0.08));
border: 1.5px solid rgba(37, 88, 121, 0.25);
display: flex;
align-items: center;
justify-content: center;
color: #255879;
font-weight: bold;
font-size: 1rem !important;
flex-shrink: 0;
overflow: hidden;
}

.table-company-logo.has-image {
background: white;
border: 2px solid var(--primary-color);
padding: 0;
display: flex;
align-items: center;
justify-content: center;
/* Optimierung für Logo/Text-Bilder */
box-sizing: border-box;
position: relative;
overflow: hidden;
}

.table-company-logo img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 50%;
background: white;
/* Absolute Positionierung für perfekte Zentrierung */
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: block;
}

/* Spezielle Regel für breite Bilder in Tabellen-Ansicht - wird per JavaScript hinzugefügt */
.table-company-logo.wide-image img {
max-width: 90%;
max-height: 60%;
width: auto;
height: auto;
object-fit: contain;
border-radius: 0;
}

/* Verifizierungs-Icon für Tabellen-Ansicht */
.table-company-logo-container {
    position: relative;
    overflow: visible;
}

.table-verification-icon {
    position: absolute;
    bottom: -6px;
    right: -14px;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.table-verification-icon img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(100%);
}

.table-company-details {
flex: 1;
min-width: 0;
}

.table-company-name {
font-weight: 600;
color: var(--primary-color);
margin-bottom: 0.2rem;
line-height: 1.3;
word-wrap: break-word;
overflow-wrap: break-word;
}

.table-location {
display: flex;
align-items: center;
gap: 0.5rem;
color: #666;
font-size: 0.95rem;
font-family: var(--font-main);
}

.table-website {
color: var(--primary-color);
text-decoration: none;
transition: all 0.2s ease;
font-size: 0.9rem;
font-family: var(--font-main);
}

.table-website:hover {
text-decoration: underline;
opacity: 0.8;
}

.table-sectors {
display: flex;
gap: 0.5rem;
align-items: center;
justify-content: center;
}

.table-sector-icon {
width: 36px;
height: 36px;
border-radius: 50%;
background: linear-gradient(145deg, #2a6a8f, #255879);
box-shadow: 
    4px 4px 8px rgba(37, 88, 121, 0.25),
    -4px -4px 8px rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
display: flex;
align-items: center;
justify-content: center;
position: relative;
transition: all 0.3s ease;
}

.table-sector-icon img {
width: 20px;
height: 20px;
object-fit: contain;
filter: brightness(0) invert(1);
}

.profiles-table .world-icon {
width: 30px !important;
height: 30px !important;
}

.table-certifications {
max-width: 180px;
}

.table-tags {
display: flex;
flex-wrap: wrap;
gap: 0.25rem;
max-height: 60px;
overflow: hidden;
}

.table-tag {
background: rgba(37, 88, 121, 0.1);
color: var(--primary-color);
padding: 0.2rem 0.5rem;
border-radius: 12px;
font-size: 0.75rem;
font-weight: 500;
white-space: nowrap;
}

.table-tag-more {
background: rgba(37, 88, 121, 0.2);
color: var(--primary-color);
padding: 0.2rem 0.5rem;
border-radius: 12px;
font-size: 0.75rem;
font-weight: 600;
cursor: pointer;
}

.table-country {
display: flex;
align-items: center;
gap: 0.5rem;
}

.table-postal-code, .table-location {
font-size: 0.9rem;
color: #333;
}

.table-industry-active {
display: flex;
align-items: center;
gap: 0.5rem;
color: var(--primary-color);
font-weight: 500;
}

.table-industry-active img {
width: 20px;
height: 20px;
object-fit: contain;
filter: brightness(0) saturate(100%) invert(22%) sepia(40%) saturate(1203%) hue-rotate(169deg) brightness(91%) contrast(89%);
}

.table-industry-inactive {
color: #999;
font-style: italic;
}

.industry-text {
font-size: 0.85rem;
}

/* Spezielle Spaltenbreiten für bessere Darstellung */
.profiles-table th:nth-child(1) { min-width: 300px; } /* Company (Logo + Name) */
.profiles-table th:nth-child(2) { min-width: 120px; } /* Country */
.profiles-table th:nth-child(3) { min-width: 100px; } /* Postal Code */
.profiles-table th:nth-child(4) { min-width: 150px; } /* Location */
.profiles-table th:nth-child(5) { min-width: 150px; } /* Website */
.profiles-table th:nth-child(6) { min-width: 100px; } /* Pharma */
.profiles-table th:nth-child(7) { min-width: 100px; } /* Chemie */
.profiles-table th:nth-child(8) { min-width: 100px; } /* Food */
.profiles-table th:nth-child(9) { min-width: 100px; } /* Kosmetik */
.profiles-table th:nth-child(10) { min-width: 80px; } /* Favoriten */

/* Entsprechende min-widths für Body-Zellen, damit Header exakt ausgerichtet ist */
.profiles-table tbody tr td:nth-child(3) { min-width: 120px; } /* Land -> th:nth-child(2) */
.profiles-table tbody tr td:nth-child(4) { min-width: 100px; } /* PLZ  -> th:nth-child(3) */
.profiles-table tbody tr td:nth-child(5) { min-width: 150px; } /* Stadt -> th:nth-child(4) */
.profiles-table tbody tr td:nth-child(6) { min-width: 150px; } /* Web   -> th:nth-child(5) */
.profiles-table tbody tr td:nth-child(7) { min-width: 100px; } /* Pharma*/
.profiles-table tbody tr td:nth-child(8) { min-width: 100px; } /* Chemie*/
.profiles-table tbody tr td:nth-child(9) { min-width: 100px; } /* Food  */
.profiles-table tbody tr td:nth-child(10) { min-width: 100px; } /* Kosmetik */
.profiles-table tbody tr td:nth-child(11) { min-width: 80px; } /* Favoriten */

/* Responsive Anpassungen für Tabelle */
@media (max-width: 1400px) {
.profiles-table th,
.profiles-table td {
padding: 0.75rem 0.4rem;
font-size: 0.85rem;
}

.table-certifications {
max-width: 150px;
}

.industry-text {
display: none; /* Verstecke "Yes" Text bei kleineren Bildschirmen */
}

/* Reduziere Gap leicht für bessere Darstellung */
.table-company-info {
gap: 1.5rem !important;
}

.table-company-logo {
width: 38px !important;
height: 38px !important;
font-size: 0.95rem !important;
}
}

@media (max-width: 1200px) {
.profiles-table th,
.profiles-table td {
padding: 0.6rem 0.3rem;
font-size: 0.8rem;
}

/* Verstecke Postleitzahl auf kleineren Bildschirmen */
.profiles-table th:nth-child(3), /* Postal Code */
.profiles-table td:nth-child(3) {
display: none;
}

/* Reduziere Gap und Logo-Größe für bessere Darstellung */
.table-company-info {
gap: 1rem !important;
}

.table-company-logo {
width: 36px !important;
height: 36px !important;
font-size: 0.9rem !important;
}
}

@media (max-width: 950px) {
.profiles-table th,
.profiles-table td {
padding: 0.5rem 0.25rem;
font-size: 0.75rem;
}

/* Weitere Reduzierung von Gap und Logo-Größe */
.table-company-info {
gap: 0.75rem !important;
}

.table-company-logo {
width: 32px !important;
height: 32px !important;
font-size: 0.85rem !important;
}

.table-company-name {
font-size: 0.9rem;
}

.table-location {
font-size: 0.85rem;
}
}

@media (max-width: 768px) {
.profiles-table-container {
margin: 1rem -1rem 0 -1rem;
border-radius: 0;
overflow-x: auto;
}

.profiles-table {
font-size: 0.75rem;
min-width: 800px; /* Mindestbreite für horizontales Scrollen */
}

.profiles-table th,
.profiles-table td {
padding: 0.5rem 0.25rem;
}

.table-company-info {
flex-direction: column;
align-items: flex-start;
gap: 0.3rem;
}

.table-company-logo {
width: 28px;
height: 28px;
font-size: 0.8rem;
}

.table-certifications {
max-width: 100px;
}

/* Verstecke weitere Spalten auf sehr kleinen Bildschirmen */
.profiles-table th:nth-child(4), /* Location */
.profiles-table td:nth-child(4) {
display: none;
}
}

/* Kartenansicht Styles */
.profiles-map-container {
    display: none;
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    height: calc(100vh - var(--header-height) - 129px - 2.5rem - 0.3rem - 32px);
    position: fixed;
    top: calc(var(--header-height) + 129px + 2.5rem + 0.3rem);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 4rem);
    max-width: 1400px;
    z-index: 100;
    margin-bottom: 32px;
    border: 1px solid rgba(37, 88, 121, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.profiles-map-container.active {
    display: block;
}

#mapContainer {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(37, 88, 121, 0.3);
}

/* Map Side Panel */
.map-side-panel {
    position: absolute;
    top: 50%;
    right: 22px;
    transform: translateY(-50%);
    width: 280px;
    height: fit-content;
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    overflow: hidden;
}

.map-side-panel::-webkit-scrollbar {
    display: none;
}

.map-side-panel.visible {
    display: flex;
}

.map-side-panel-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #255879;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s;
    flex-shrink: 0;
}

.map-side-panel-close:hover {
    background: rgba(37, 88, 121, 0.16);
}

.map-panel-logo-tile {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.10);
    padding: 0;
    display: block;
    position: relative;
    height: 150px;
    min-height: 150px;
    max-height: 150px;
    flex: 0 0 150px;
    box-sizing: border-box;
    overflow: hidden;
}

.map-panel-profile-link {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(37, 88, 121, 0.08);
    color: #255879;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.map-panel-profile-link:hover {
    background: rgba(37, 88, 121, 0.16);
}

.map-panel-logo {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 50%;
    background-color: rgba(37, 88, 121, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10), 0 0 0 1px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #255879;
    font-weight: bold;
    font-size: 1.2rem;
    overflow: hidden;
    font-family: var(--font-main);
    position: absolute;
    top: 18px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    margin: 0;
    z-index: 1;
}

.map-panel-logo.has-image {
    background: #ffffff;
}

.map-panel-logo img {
    width: 88%;
    height: 88%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    display: block;
}

.map-panel-verification-icon {
    position: absolute;
    left: calc(50% + 15px);
    top: 68px;
    width: 22px;
    height: 22px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18), 0 0 0 2px rgba(255,255,255,0.9);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.map-panel-verification-icon img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(100%);
}

.map-panel-company-name {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    text-align: center;
    font-family: var(--font-main);
    word-break: break-word;
    line-height: 1.35;
    overflow: hidden;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 52px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 6px 12px 0;
    box-sizing: border-box;
    margin: 0;
}

.map-panel-contact-tile {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.10);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
    flex-shrink: 0;
    box-sizing: border-box;
}

.map-panel-contact-tile h3 {
    font-size: 15px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 10px 0;
    font-family: var(--font-main);
}

.map-panel-contact-container {
    display: flex;
    flex-direction: column;
}

.map-panel-contact-tile .contact-info-box {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(37, 88, 121, 0.1);
    border-radius: 0;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.map-panel-contact-tile .contact-info-box:last-child {
    border-bottom: none;
}

.map-panel-contact-tile .contact-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-panel-contact-tile .contact-label {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.map-panel-contact-tile .contact-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.map-panel-contact-tile .contact-title {
    font-size: 13px;
    font-weight: 600;
    color: #000000;
    font-family: var(--font-main);
}

.map-panel-contact-tile .contact-value {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    word-break: break-word;
    margin-left: 26px;
    font-family: var(--font-main);
}

.map-panel-contact-tile .contact-value a {
    color: #255879;
    text-decoration: none;
}

.map-panel-contact-tile .contact-value a:hover {
    text-decoration: underline;
}

.map-panel-contact-tile .contact-address {
    display: block;
    margin-left: 26px;
}

.map-panel-contact-tile .contact-address div {
    font-size: 12px;
    color: #666;
    font-family: var(--font-main);
    padding-bottom: 6px;
    line-height: 1.4;
}

.map-panel-contact-tile .contact-address div:last-child {
    padding-bottom: 0;
}



/* Custom Marker Popup Styles */
.custom-popup {
    font-family: var(--font-main);
    width: 285px !important;
}

.custom-popup .leaflet-popup-content-wrapper {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13), 0 1.5px 6px rgba(0, 0, 0, 0.07);
    border: none;
    padding: 0 !important;
    overflow: hidden;
}

.custom-popup .leaflet-popup-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    line-height: normal !important;
    font-size: inherit !important;
    gap: 0 !important;
}

.custom-popup .leaflet-popup-tip {
    background: #ffffff;
    box-shadow: none;
}

.custom-popup .leaflet-popup-close-button {
    display: none !important;
}

.custom-popup .popup-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px 10px 14px;
}

.custom-popup .popup-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 88, 121, 0.1), rgba(37, 88, 121, 0.06));
    border: 1px solid rgba(37, 88, 121, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #255879;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.5px;
    flex-shrink: 0;
    overflow: hidden;
}

.custom-popup .popup-logo.has-image {
    background: #f8f8f8;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.custom-popup .popup-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
}

.custom-popup .popup-logo.wide-image img {
    max-width: 88%;
    max-height: 60%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
}

.custom-popup .popup-logo-container {
    position: relative;
    flex-shrink: 0;
}

.custom-popup .popup-logo-with-flag {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.custom-popup .popup-flag {
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-popup .popup-flag img {
    width: 22px;
    height: 14px;
    object-fit: contain;
    border-radius: 2px;
}

.custom-popup .popup-verification-icon {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 1.5px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.custom-popup .popup-verification-icon img {
    width: 11px;
    height: 11px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(100%);
}

.custom-popup .popup-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.custom-popup .popup-favorite {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2px;
    flex-shrink: 0;
}

.custom-popup .popup-favorite span {
    transition: transform 0.15s ease;
}

.custom-popup .popup-favorite span:hover {
    transform: scale(1.15);
}

.custom-popup .popup-company-name {
    font-weight: 600;
    color: #1d1d1f;
    font-size: 0.9rem;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

.custom-popup .popup-location {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 2px;
}

.custom-popup .popup-street {
    color: #6e6e73;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-popup .popup-city {
    color: #6e6e73;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-popup .popup-address-line {
    color: #6e6e73;
    font-size: 0.78rem;
    white-space: nowrap;
}

.custom-popup .popup-website {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.custom-popup .popup-website .world-icon {
    display: block;
    width: 12px !important;
    height: 12px !important;
    opacity: 0.5;
    flex-shrink: 0;
}

.custom-popup .popup-website a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.77rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.15s ease;
}

.custom-popup .popup-website a:hover {
    opacity: 0.7;
    text-decoration: none;
}

.custom-popup .popup-view-profile {
    display: block;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 9px 14px;
    margin: 0;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.2s ease;
    width: 100%;
    text-align: center;
    border-radius: 0 0 18px 18px;
}

.custom-popup .popup-view-profile:hover {
    background: var(--primary-dark);
}

/* Custom Marker Styles */
.custom-marker {
    background-color: var(--primary-color);
    border: 1px solid white;
    border-radius: 50%;
    width: 3px;
    height: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.custom-marker:hover {
    transform: scale(1.2);
    z-index: 1000;
}

.custom-marker-active-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-marker-active-inner {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #255879;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 88, 121, 0.35), 0 4px 20px rgba(37, 88, 121, 0.55);
    animation: markerPulse 1.6s ease-out forwards;
    box-sizing: border-box;
}

@keyframes markerPulse {
    0%   { box-shadow: 0 0 0 0px rgba(37, 88, 121, 0.6), 0 4px 20px rgba(37, 88, 121, 0.55); }
    60%  { box-shadow: 0 0 0 10px rgba(37, 88, 121, 0.05), 0 4px 20px rgba(37, 88, 121, 0.55); }
    100% { box-shadow: 0 0 0 3px rgba(37, 88, 121, 0.35), 0 4px 20px rgba(37, 88, 121, 0.55); }
}

/* Responsive Anpassungen für Kartenansicht */
@media (max-width: 768px) {
    .profiles-map-container {
        width: calc(100% - 2rem);
        top: 360px;
        height: calc(100vh - 392px); /* 360px (top) + 32px (bottom margin) */
        margin-bottom: 32px;
    }
    
    #mapContainer {
        border-radius: 12px;
    }
    
    .custom-popup .popup-header {
        gap: 10px;
        padding: 14px 14px 12px 14px;
    }
    
    .custom-popup .popup-logo {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        font-size: 0.88rem;
    }
}

/* Add Provider Pop-up Styles */
/* Plus-Button Pop-up - Cookie-Banner-Stil */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    padding: 20px;
    font-family: var(--font-main);
    overflow: auto;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    width: 600px;
    max-width: 90%;
    padding: 40px 50px;
    text-align: left;
    animation: slideIn 0.4s ease-out;
    display: flex;
    flex-direction: column;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-header {
    margin-bottom: 30px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    background: transparent;
    color: var(--primary-color);
    border-radius: 0;
}

.popup-header h3 {
    font-size: 24px;
    font-weight: 400;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: var(--font-main);
}

.popup-close {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 18px;
    font-weight: bold;
}

.popup-close:hover {
    background: rgba(37, 88, 121, 0.1);
    transform: scale(1.1);
}

.popup-content {
    margin-bottom: 25px;
    flex-shrink: 0;
    padding: 0;
    line-height: 1.7;
}

.popup-content p {
    margin: 0 0 16px 0;
    line-height: 1.7;
    font-size: 16px;
    color: #666;
    font-weight: 400;
    text-align: justify;
    font-family: var(--font-main);
}

.popup-content p:last-child {
    margin-bottom: 0;
}

.popup-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    background: transparent;
    border-radius: 0;
}

.popup-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    font-family: var(--font-main);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.popup-btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.popup-btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.popup-btn-primary {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.popup-btn-primary:hover {
    background: #1e4a66;
    border-color: #1e4a66;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 88, 121, 0.3);
}

/* Scrollbar Styling für Pop-up */
.popup-container::-webkit-scrollbar {
    width: 12px;
}

.popup-container::-webkit-scrollbar-track {
    background: #f8f8f8;
    border-radius: 6px;
    margin: 10px 0;
}

.popup-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 6px;
    border: 2px solid #f8f8f8;
}

.popup-container::-webkit-scrollbar-thumb:hover {
    background: #1e4a5f;
}

/* Responsive Pop-up */
@media (max-width: 768px) {
    .popup-container {
        width: 95%;
        padding: 30px 35px;
        margin: 10px;
    }
    
    .popup-header {
        margin-bottom: 25px;
    }
    
    .popup-header h3 {
        font-size: 20px;
    }
    
    .popup-content {
        margin-bottom: 20px;
    }
    
    .popup-content p {
        font-size: 15px;
    }
    
    .popup-footer {
        padding-top: 15px;
        flex-direction: column;
        gap: 15px;
    }
    
    .popup-btn {
        width: 100%;
        padding: 12px 25px;
    }
}

/* ========================================
   WICHTIG: Media Queries für große Bildschirme
   Diese Regeln müssen am Ende stehen, um alle anderen zu überschreiben
   ======================================== */

/* Für Bildschirme ab 1600px Breite */
@media (min-width: 1600px) {
    /* Profil Dropdown Breite */
    .dropdown-menu {
        min-width: 200px !important;
    }
    
    /* Results Counter Position */
    .results-counter-top {
        top: 125px !important;
        /* Gleiche Breite wie filter-container für perfekte Ausrichtung */
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        max-width: 1400px !important;
        width: calc(100% - 4rem) !important;
    }
    
    /* Filter Container Position */
    .filter-container {
        top: 138px !important;
    }
    
    /* Main Container Padding - genug Platz für Filter + Abstand */
    main {
        padding: 220px 0 2rem 0 !important;
    }
    
    /* Grid View spezifische Anpassungen */
    main.grid-view {
        margin-top: 260px !important;
        height: calc(100vh - 260px) !important;
        max-height: calc(100vh - 260px) !important;
    }
    
    /* Table View spezifische Anpassungen */
    main.table-view {
        margin-top: 260px !important;
        padding: 0 !important;
        min-height: calc(100vh - 260px) !important;
    }
    
    /* Weißer Hintergrund-Block über den Kacheln */
    .profiles-grid::before {
        height: 260px !important;
    }
    
    /* Tabellen-Container Position */
    .profiles-table-container {
        top: 260px !important;
        height: calc(100vh - 260px) !important;
    }
    
    /* Karten-Container Position */
    .profiles-map-container {
        top: 265px !important;
        height: calc(100vh - 265px - 32px) !important; /* 32px für bottom margin */
    }
    
    /* Scrollbar Anpassungen für große Monitore */
    /* Grid- und Table-Scrollbar beginnen beide bei: 260px (synchronisiert) */
    .grid-scrollbar-container {
        top: 260px !important;
        height: calc(100vh - 260px - 10px) !important;
        right: calc((100vw - 1400px) / 2 - 30px) !important; /* Dynamisch: zentrierter Content - 30px */
    }
    
    /* Table-Scrollbar - gleiche Position und Höhe wie Grid */
    .table-scrollbar-container {
        top: 260px !important;
        height: calc(100vh - 260px - 10px) !important;
        right: calc((100vw - 1400px) / 2 - 30px) !important; /* Dynamisch: zentrierter Content - 30px */
    }
}

/* Für Bildschirme ab 1920px Breite */
@media (min-width: 1920px) {
    /* Profil Dropdown Breite */
    .dropdown-menu {
        min-width: 220px !important;
    }
    
    /* Results Counter Position */
    .results-counter-top {
        top: 115px !important;
        /* Gleiche Breite wie filter-container für perfekte Ausrichtung */
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        max-width: 1400px !important;
        width: calc(100% - 4rem) !important;
    }
    
    /* Filter Container Position */
    .filter-container {
        top: 167px !important;
    }
    
    /* Main Container Padding - noch mehr Platz für sehr große Bildschirme */
    main {
        padding: 240px 0 2rem 0 !important;
    }
    
    /* Grid View spezifische Anpassungen */
    main.grid-view {
        margin-top: 280px !important;
        height: calc(100vh - 280px) !important;
        max-height: calc(100vh - 280px) !important;
    }
    
    /* Table View spezifische Anpassungen */
    main.table-view {
        margin-top: 280px !important;
        padding: 0 !important;
        min-height: calc(100vh - 280px) !important;
    }
    
    /* Weißer Hintergrund-Block über den Kacheln */
    .profiles-grid::before {
        height: 280px !important;
    }
    
    /* Tabellen-Container Position */
    .profiles-table-container {
        top: 280px !important;
        height: calc(100vh - 280px) !important;
    }
    
    /* Karten-Container Position */
    .profiles-map-container {
        top: 285px !important;
        height: calc(100vh - 285px - 48px) !important; /* 48px für bottom margin */
    }
    
    /* Scrollbar Anpassungen für sehr große Monitore */
    /* Grid- und Table-Scrollbar beginnen beide bei: 280px (synchronisiert) */
    .grid-scrollbar-container {
        top: 280px !important;
        height: calc(100vh - 280px - 10px) !important;
        right: calc((100vw - 1400px) / 2 - 30px) !important; /* Dynamisch: zentrierter Content - 30px */
    }
    
    /* Table-Scrollbar - gleiche Position und Höhe wie Grid */
    .table-scrollbar-container {
        top: 280px !important;
        height: calc(100vh - 280px - 10px) !important;
        right: calc((100vw - 1400px) / 2 - 30px) !important; /* Dynamisch: zentrierter Content - 30px */
    }
}

/* Für sehr große Bildschirme ab 2560px Breite */
@media (min-width: 2559px) {
    /* Results Counter Position - mehr Abstand zum Header */
    .results-counter-top {
        top: 150px !important;
    }
    
    /* Filter Container Position - mehr Abstand */
    .filter-container {
        top: 202px !important;
    }
    
    /* Main Container Padding - deutlich mehr Platz für sehr große Bildschirme */
    main {
        padding: 260px 0 2rem 0 !important;
    }
    
    /* Grid View spezifische Anpassungen */
    main.grid-view {
        margin-top: 300px !important;
        height: calc(100vh - 300px) !important;
        max-height: calc(100vh - 300px) !important;
    }
    
    /* Table View spezifische Anpassungen */
    main.table-view {
        margin-top: 300px !important;
        padding: 0 !important;
        min-height: calc(100vh - 300px) !important;
    }
    
    /* Weißer Hintergrund-Block über den Kacheln */
    .profiles-grid::before {
        height: 300px !important;
    }
    
    /* Tabellen-Container Position */
    .profiles-table-container {
        top: 300px !important;
        height: calc(100vh - 300px) !important;
    }
    
    /* Karten-Container Position - mit mehr Abstand zum unteren Rand */
    .profiles-map-container {
        top: 305px !important;
        height: calc(100vh - 305px - 60px) !important; /* 60px für bottom margin auf sehr großen Bildschirmen */
    }
    
    /* Scrollbar Anpassungen für sehr große Monitore */
    /* Grid- und Table-Scrollbar beginnen beide bei: 300px (synchronisiert) */
    .grid-scrollbar-container {
        top: 300px !important;
        height: calc(100vh - 300px - 10px) !important;
        right: calc((100vw - 1400px) / 2 - 30px) !important; /* Dynamisch: zentrierter Content - 30px */
    }
    
    /* Table-Scrollbar - gleiche Position und Höhe wie Grid */
    .table-scrollbar-container {
        top: 300px !important;
        height: calc(100vh - 300px - 10px) !important;
        right: calc((100vw - 1400px) / 2 - 30px) !important; /* Dynamisch: zentrierter Content - 30px */
    }
}
/* ─── FOOTER ─── */
.a-footer-section {
    background-color: white;
    position: relative;
    z-index: 100;
    width: 100%;
    height: auto;
    display: none;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--primary-color);
    width: 100%;
    padding: 60px 40px;
    box-sizing: border-box;
    position: relative;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    gap: 2vw;
    margin-bottom: 40px;
    flex-wrap: nowrap;
    padding: 0 5vw;
    width: 100%;
}

.footer-column {
    text-align: left;
    min-width: 0;
    flex: 1;
    max-width: 250px;
    color: white;
}

.footer-column h3 {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    border-bottom: 2px solid white;
    padding-bottom: 8px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 4px;
    color: white !important;
    font-size: 16px;
    opacity: 1 !important;
    line-height: 1.5;
}

.footer-column a {
    color: white !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
    opacity: 1 !important;
}

.footer-column a:hover {
    opacity: 1;
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    margin-top: 20px;
    width: 100%;
}

.footer-bottom p {
    color: white;
    font-size: 14px;
    margin: 0;
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    align-items: center;
    margin-top: 8px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    opacity: 1 !important;
    backdrop-filter: none !important;
    filter: none !important;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.8) !important;
    transform: scale(1.1);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--primary-color);
    opacity: 1;
}

/* ─── FOOTER RESPONSIVE ─── */
@media (max-width: 768px) {
    .a-footer-section {
        width: 100vw !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .footer-content {
        padding: 40px 20px;
        width: 100% !important;
    }

    .footer-links {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 40px !important;
        padding: 0 20px;
        width: 100% !important;
    }

    .footer-column {
        text-align: center !important;
        width: 100% !important;
        max-width: none !important;
    }

    .footer-column h3 {
        display: inline-block !important;
        width: auto !important;
        border-bottom: 2px solid white;
        padding-bottom: 8px;
        margin-bottom: 15px !important;
    }
}

/* ─── APPLE-MINIMAL DESIGN TWEAKS ─── */
/* Profile card - cleaner Apple-style */
.profile-card {
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: var(--transition, all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94));
}

@media (hover: hover) {
    .profile-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 30px rgba(0,0,0,0.08);
        border-color: rgba(37, 88, 121, 0.2);
    }
}

/* Scrollbar in footer/main visible area */
main.table-view .a-footer-section {
    display: none;
}

/* ─── HEADER LOGO CONTAINER (from index.css) ─── */
.header-logo-container { justify-self: center; }

/* ══════════════════════════════════════════════════════
   APPLE-MINIMAL DESIGN SYSTEM — COMPLETE OVERRIDES
   ══════════════════════════════════════════════════════ */

/* ─── CUSTOM SCROLLBARS: DEACTIVATE, USE BROWSER NATIVE ─── */
.grid-scrollbar-container,
.table-scrollbar-container {
    display: none !important;
}

/* Allow native scrollbar on main scrollable areas */
main {
    scrollbar-width: thin !important;
    -ms-overflow-style: auto !important;
}

.profiles-table-container {
    scrollbar-width: thin !important;
    -ms-overflow-style: auto !important;
}

main::-webkit-scrollbar {
    display: block !important;
    width: 6px !important;
}

main::-webkit-scrollbar-track {
    background: #f5f5f7 !important;
    border-radius: 3px;
}

main::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2) !important;
    border-radius: 3px;
}

main::-webkit-scrollbar-thumb:hover {
    background: rgba(37,88,121,0.5) !important;
}

.profiles-table-container::-webkit-scrollbar {
    display: block !important;
    height: 6px !important;
    width: 6px !important;
}

.profiles-table-container::-webkit-scrollbar-track {
    background: #f5f5f7 !important;
}

.profiles-table-container::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2) !important;
    border-radius: 3px;
}

/* ─── BODY & BACKGROUND ─── */
body {
    background-color: #f5f5f7 !important;
}

main.grid-view {
    background: #f5f5f7 !important;
}

/* Fix the white overlay pseudo-element to match */
.profiles-grid::before {
    background: #f5f5f7 !important;
}

/* ─── FILTER CONTAINER ─── */
.filter-container {
    background: transparent !important;
    padding: 0.5rem 0 !important;
}

.filter-container::before {
    background: #f5f5f7 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* ─── FILTER INPUTS — APPLE STYLE ─── */
.filter-input,
.multi-select-display {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 12px !important;
    color: #1d1d1f !important;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    height: 44px !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
}

.filter-input:focus {
    background-color: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(37,88,121,0.1), 0 1px 3px rgba(0,0,0,0.06) !important;
    outline: none !important;
}

.filter-input::placeholder {
    color: #86868b !important;
    font-weight: 400 !important;
}

.multi-select-display {
    color: #86868b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.multi-select-display.has-value {
    color: #1d1d1f !important;
}

.multi-select-container.active .multi-select-display {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(37,88,121,0.1), 0 1px 3px rgba(0,0,0,0.06) !important;
    background-color: #ffffff !important;
}

.multi-select-display::after {
    color: #86868b !important;
    font-size: 18px !important;
}

/* ─── FAVORITES & VERIFIED BUTTONS — APPLE STYLE ─── */
.favorites-filter-btn,
.verified-filter-btn {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
    width: 44px !important;
    height: 44px !important;
    transition: all 0.25s ease !important;
}

.favorites-filter-btn:hover,
.verified-filter-btn:hover {
    border-color: rgba(37,88,121,0.3) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    transform: translateY(-1px) !important;
}

.favorites-filter-btn.active {
    background: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(37,88,121,0.1), 0 1px 3px rgba(0,0,0,0.06) !important;
}

.verified-filter-btn.active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(37,88,121,0.1) !important;
}

/* ─── VIEW TOGGLE — APPLE SEGMENTED CONTROL STYLE ─── */
.view-toggle-compact {
    background: rgba(0,0,0,0.07) !important;
    border-radius: 12px !important;
    padding: 3px !important;
    gap: 2px !important;
    display: flex !important;
    align-items: center !important;
}

.view-toggle-compact .view-toggle-btn {
    border: none !important;
    background: transparent !important;
    border-radius: 9px !important;
    color: #6e6e73 !important;
    width: 36px !important;
    height: 36px !important;
    padding: 4px !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

.view-toggle-compact .view-toggle-btn:hover {
    background: rgba(255,255,255,0.7) !important;
    color: #1d1d1f !important;
    transform: none !important;
    box-shadow: none !important;
}

.view-toggle-compact .view-toggle-btn.active {
    background: #ffffff !important;
    color: var(--primary-color) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15) !important;
    transform: none !important;
}

/* ─── ADD PROVIDER BUTTON ─── */
.add-provider-container .view-toggle-btn {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.12) !important;
    border-radius: 10px !important;
    color: var(--primary-color) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
    width: 36px !important;
    height: 36px !important;
}

.add-provider-container .view-toggle-btn:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    transform: translateY(-1px) !important;
}

/* ─── RESULTS COUNTER ─── */
.flip-digit {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.12) !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
}

.treffer-text {
    color: #6e6e73 !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    font-family: var(--font-main) !important;
    letter-spacing: 0 !important;
}

/* ─── PROFILE CARDS — APPLE STYLE ─── */
.profiles-grid {
    gap: 1.25rem !important;
}

.profile-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 18px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    padding: 1.5rem !important;
}

@media (hover: hover) {
    .profile-card:hover {
        transform: translateY(-4px) scale(1.005) !important;
        box-shadow: 0 8px 30px rgba(0,0,0,0.1) !important;
        border-color: rgba(37,88,121,0.15) !important;
    }
}

/* Company logo — cleaner */
.company-logo {
    background: #f5f5f7 !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
}

.company-logo.has-image {
    background: #f5f5f7 !important;
    border: 1.5px solid rgba(37,88,121,0.2) !important;
}

/* Company name */
.company-name {
    color: #1d1d1f !important;
    font-weight: 600 !important;
}

/* Location */
.company-location {
    color: #6e6e73 !important;
    font-size: 0.875rem !important;
}

/* Website */
.company-website a {
    color: var(--primary-color) !important;
}

/* Sector icons — cleaner neumorphism */
.sector-icon {
    background: #f5f5f7 !important;
    box-shadow: none !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
}

.sector-icon.active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 2px 8px rgba(37,88,121,0.25) !important;
}

.sector-icon.inactive {
    background: #f5f5f7 !important;
    box-shadow: none !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
}

/* Company sectors divider */
.company-sectors {
    border-top: 1px solid rgba(0,0,0,0.06) !important;
}

/* ─── TABLE — APPLE STYLE ─── */
.profiles-table th {
    background: var(--primary-color) !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em !important;
}

.profiles-table tbody tr {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    border-radius: 12px !important;
    margin-bottom: 0.5rem !important;
    transition: all 0.2s ease !important;
}

.profiles-table tbody tr:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
    transform: translateY(-1px) !important;
    background-color: #fafafa !important;
}

.profiles-table-container {
    background: #f5f5f7 !important;
}

/* ─── MAP CONTAINER ─── */
#mapContainer,
.profiles-map-container {
    border: 1px solid rgba(0,0,0,0.08) !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
}

/* ─── DROPDOWN MENUS — APPLE STYLE ─── */
.multi-select-dropdown {
    background: rgba(255,255,255,0.98) !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.08) !important;
    margin-top: 6px !important;
    padding: 6px 0 !important;
}

.multi-select-option {
    color: #1d1d1f !important;
    font-size: 14px !important;
    border-radius: 8px !important;
    margin: 2px 6px !important;
}

.multi-select-option:hover {
    background: rgba(37,88,121,0.06) !important;
    transform: none !important;
}

.multi-select-option.selected {
    background: rgba(37,88,121,0.08) !important;
    color: var(--primary-color) !important;
}

/* ─── ADD PROVIDER POPUP — APPLE STYLE ─── */
.popup-overlay {
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    background: rgba(0,0,0,0.4) !important;
}

.popup-container {
    border-radius: 20px !important;
    box-shadow: 0 24px 60px rgba(0,0,0,0.2), 0 8px 20px rgba(0,0,0,0.1) !important;
}

.popup-btn-primary {
    border-radius: 10px !important;
    font-weight: 500 !important;
}

.popup-btn-secondary {
    border-radius: 10px !important;
    font-weight: 500 !important;
}

/* ─── FILTER DESCRIPTION — SIMPLER ─── */
.filter-description-item::before {
    background-color: rgba(0,0,0,0.12) !important;
    height: 1px !important;
}

.filter-description-text {
    color: #86868b !important;
    font-size: 0.78rem !important;
    background-color: #f5f5f7 !important;
}

.filter-description-item:nth-last-child(-n+2) .filter-description-text {
    background-color: transparent !important;
}

/* ─── NO-RESULTS CARD — APPLE STYLE ─── */
.no-results-card {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    border-radius: 18px !important;
    color: #6e6e73 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

/* ─── TABLE COMPANY LOGO ─── */
.table-company-logo {
    background: #f5f5f7 !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
}

.table-company-name {
    color: #1d1d1f !important;
}

/* ─── MOBILE: body background fix ─── */
@media (max-width: 768px) {
    main::before {
        background: #f5f5f7 !important;
    }
    .filter-container::before {
        background: #f5f5f7 !important;
    }
    .profiles-grid::before {
        background: #f5f5f7 !important;
    }
    .view-toggle-compact {
        display: none !important;
    }
}

/* ══════════════════════════════════════════════════════
   VISUAL POLISH — BLUE ACCENTS + ANIMATIONS
   ══════════════════════════════════════════════════════ */

/* ─── REMOVE ADD-PROVIDER BUTTON ─── */
.add-provider-container {
    display: none !important;
}

/* ─── RESULTS COUNTER: PUSH TO RIGHT ─── */
.results-counter-top {
    justify-content: flex-end !important;
}

/* ─── FILTER BORDERS: BLUE ─── */
.filter-input,
.multi-select-display {
    border: 1.5px solid var(--primary-color) !important;
}

.filter-input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(37,88,121,0.12), 0 1px 3px rgba(0,0,0,0.06) !important;
}

.multi-select-container.active .multi-select-display {
    border-color: var(--primary-color) !important;
}

.favorites-filter-btn,
.verified-filter-btn {
    border: 1.5px solid var(--primary-color) !important;
}

/* ─── FILTER DESCRIPTION: BLUE LABELS + LINES ─── */
.filter-description-item::before {
    background-color: var(--primary-color) !important;
    opacity: 1 !important;
    height: 1px !important;
}

.filter-description-text {
    color: var(--primary-color) !important;
    opacity: 1 !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    background-color: #f5f5f7 !important;
}

/* ─── DROPDOWN ARROWS: BLUE ─── */
.multi-select-display::after {
    color: var(--primary-color) !important;
}

/* ─── CATEGORY TOGGLE ICONS (▶): BLUE ─── */
.category-toggle-icon {
    color: var(--primary-color) !important;
}

/* ─── VERIFIED ICON: BLUE TINT ─── */
.verified-filter-btn img.verified-filter-icon {
    filter: brightness(0) saturate(100%) invert(22%) sepia(40%) saturate(1203%) hue-rotate(169deg) brightness(91%) contrast(89%) !important;
}

.verified-filter-btn.active img.verified-filter-icon {
    filter: brightness(0) saturate(100%) invert(100%) !important;
}

/* ─── FILTER DESCRIPTION: PERFECT CENTERING ─── */
.filter-description {
    grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)) 44px 44px !important;
}

.filter-description-item {
    padding: 0 !important;
}

.filter-description-item::before {
    width: 100% !important;
    left: 0 !important;
    transform: translateY(-50%) !important;
}

.filter-description-text {
    padding: 0 0.4rem !important;
}

.multi-select-container.coming-soon {
    pointer-events: none;
    overflow: hidden;
}

.multi-select-container.coming-soon .multi-select-display {
    opacity: 0.7;
    cursor: not-allowed;
}

.multi-select-container.coming-soon .coming-soon-filter-badge {
    position: absolute;
    top: 8px;
    right: -28px;
    background-color: #255879;
    color: white;
    padding: 3px 32px;
    font-size: 10px;
    font-weight: 600;
    transform: rotate(45deg);
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    letter-spacing: 0.5px;
    pointer-events: none;
}


