/**
 * Hexagon Navigator Frontend Styles
 * Version: 1.0.0
 */

/* === Grundlegende Container-Styles === */
.hexnav-container {
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 80px 20px;
    box-sizing: border-box;
}

.hexnav-container button {
background:none;
padding:0px;
}


button.hexnav-chat-example, button:hover.hexnav-chat-example{
    background: grey;
    padding: 10px;
    font-size: 12px;
    margin-bottom: 10px;
    border-radius: 5px;
}


.hexnav-container * {
    box-sizing: border-box;
}

.hexnav-container.hexnav-fullscreen {
    max-width: 100%;
    min-height: calc(100vh - 120px);
    padding: 0;
}

.hexnav-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

/* === UI-Container === */
.hexnav-ui-container {
    position: relative;
    margin-bottom: 20px;
}

/* === Toolbar === */
.hexnav-toolbar {
    display: none; /* Toolbar ausblenden */
}

.hexnav-view-toggle {
    display: flex;
    gap: 5px;
}

.hexnav-view-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    color: #666;
    transition: all 0.2s ease;
}

.hexnav-view-button:hover,
.hexnav-view-button.active {
    background-color: #00aeef;
    color: white;
}

.hexnav-filter-button,
.hexnav-filter-button *,
.hexnav-filter-button *:before,
.hexnav-filter-button *:after {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.hexnav-chat-button {
    background-color: #00aeef;
    color: white;
}

.hexnav-chat-button:hover {
    background-color: #008ec1;
}

/* === Filter-Panel === */
.hexnav-filter-panel {
    position: absolute;
    top: 60px;
    right: 0;
    width: 300px;
    max-width: 90%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.3s ease;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-20px) scale(0.98);
    transition: opacity 0.4s cubic-bezier(.4,0,.2,1), transform 0.4s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
}

.hexnav-filter-panel.hexnav-visible,
.hexnav-filter-panel:not(.hexnav-hidden) {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.hexnav-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    background: #062655 !important;
    color: #fff !important;
}

.hexnav-filter-footer {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-top: 1px solid #eee;
    background: #062655 !important;
    color: #fff !important;
}

.hexnav-filter-option {
    background: #f0f0f0 !important;
    color: #333 !important;
}

.hexnav-filter-option.active {
    background: #00aeef !important;
    color: #fff !important;
}

.hexnav-filter-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.hexnav-filter-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
}

.hexnav-filter-close:hover {
    color: #333;
}

.hexnav-filter-body {
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
}

.hexnav-filter-section {
    margin-bottom: 20px;
}

.hexnav-filter-section h4 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 500;
    color: #555;
}

.hexnav-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hexnav-filter-option {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    background-color: #f0f0f0;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hexnav-filter-option.active {
    background-color: #00aeef;
    color: white;
}

.hexnav-filter-option:hover {
    background-color: #e0e0e0;
}

.hexnav-filter-option.active:hover {
    background-color: #008ec1;
}

.hexnav-filter-footer {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-top: 1px solid #eee;
}

.hexnav-filter-reset {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
    font-size: 14px;
}

.hexnav-filter-reset:hover {
    color: #333;
    text-decoration: underline;
}

.hexnav-filter-apply {
    padding: 6px 12px;
    background-color: #00aeef;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.hexnav-filter-apply:hover {
    background-color: #008ec1;
}

/* === Chat-Panel === */
.hexnav-chat-panel {
    position: absolute;
    top: 60px;
    right: 0;
    width: 350px;
    max-width: 90%;
    height: 500px;
    max-height: 80vh;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    overflow: hidden;
}

.hexnav-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #062655 !important;
    color: #fff !important;
}

.hexnav-chat-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff !important;
}

.hexnav-chat-close {
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    transition: opacity 0.2s ease;
}

.hexnav-chat-close:hover {
    opacity: 0.8;
}

.hexnav-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: #f9f9f9;
}

.hexnav-chat-welcome {
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    margin-bottom: 15px;
}

.hexnav-chat-welcome h4 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.hexnav-chat-welcome p {
    margin: 0 0 15px;
    font-size: 14px;
    color: #666;
}

.hexnav-chat-examples {
    font-size: 13px;
}

.hexnav-chat-example {
    display: inline-block;
    background: none;
    border: none;
    padding: 3px 0;
    color: #00aeef;
    cursor: pointer;
    font-size: 13px;
    text-align: left;
    transition: color 0.2s ease;
}

.hexnav-chat-example:hover {
    color: #008ec1;
    text-decoration: underline;
}

.hexnav-chat-messages {
    display: flex;
    flex-direction: column;
}

.hexnav-chat-message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
    font-size: 14px;
}

.hexnav-chat-message.user {
    align-self: flex-end;
    background-color: #00aeef;
    color: white;
    border-bottom-right-radius: 4px;
}

.hexnav-chat-message.bot {
    align-self: flex-start;
    background-color: white;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hexnav-chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.hexnav-chat-suggestion {
    font-size: 12px;
    padding: 4px 8px;
    background-color: #f0f0f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hexnav-chat-suggestion:hover {
    background-color: #e0e0e0;
}

/* Leistungen-Liste im Chat */
.hexnav-chat-leistungen {
    margin-top: 10px;
    padding: 10px;
    background-color: rgba(0, 174, 239, 0.1);
    border-radius: 8px;
    border-left: 3px solid #00aeef;
}

.hexnav-chat-leistungen-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Anklickbare Leistungslinks im Chat */
.hexnav-chat-leistung-link {
    cursor: pointer !important;
    color: #00aeef !important;
    transition: all 0.3s ease;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 6px;
    display: block;
    user-select: none;
    margin: 4px 0;
    background-color: rgba(0, 174, 239, 0.1);
    border: 1px solid rgba(0, 174, 239, 0.3);
    position: relative;
    overflow: hidden;
}

.hexnav-chat-leistung-link:hover,
.hexnav-chat-leistung-link.hover {
    color: #008ec1 !important;
    text-decoration: none !important;
    background-color: rgba(0, 174, 239, 0.2) !important;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 174, 239, 0.3);
}

.hexnav-chat-leistung-link:active,
.hexnav-chat-leistung-link.clicked {
    background-color: rgba(0, 174, 239, 0.3) !important;
    transform: translateX(6px) scale(0.98);
    box-shadow: 0 1px 4px rgba(0, 174, 239, 0.4);
}

/* Visueller Indikator für geklickte Links */
.hexnav-chat-leistung-link.clicked::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    animation: shimmer 0.6s ease-out;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.hexnav-chat-footer {
    padding: 10px 15px;
    border-top: 1px solid #eee;
}

.hexnav-chat-form {
    display: flex;
    gap: 10px;
}

.hexnav-chat-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.hexnav-chat-input:focus {
    border-color: #00aeef;
}

.hexnav-chat-submit {
    background: none;
    border: none;
    color: #00aeef;
    cursor: pointer;
    transition: color 0.2s ease;
}

.hexnav-chat-submit:hover {
    color: #008ec1;
}

/* === Hauptbereich für Hexagons === */
.hexnav-content {
    position: relative;
    margin-bottom: 40px;
    min-height: 400px;
}

/* Hexagon-Grid - kreisförmige Anordnung */
.hexnav-hexagon-grid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 800px; /* Vergrößerte Höhe für bessere Sichtbarkeit */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    /* Debug: roter Rand entfernt */
    border: none !important;
    overflow: visible; /* Sichtbarkeit für bessere Positionierung */
}

/* Desktop-Anpassungen für Bildschirme ab 600px */
@media (min-width: 600px) {
    .hexnav-hexagon-grid {
        top: 40% !important; /* Deutlich höher positioniert */
        left: 40% !important; /* Deutlich weiter nach links */
        transform: translate(-50%, -50%) !important;
    }
    
    /* Optimierte Schriftgröße für Desktop */
    .hexnav-hexagon-title {
        font-size: 15px !important; /* Feste Pixelgröße für Desktop */
        line-height: 1.3 !important; /* Ausreichend Platz für Unterlängen */
        max-height: 39px !important; /* 2.6 * 15px für zwei Zeilen */
    }
    
    /* Kompaktere Hexagon-Größen für Desktop */
    .hexnav-hexagon {
        width: 140px !important;
        height: 125px !important;
    }
    
    .hexnav-hexagon.weight-1, 
    .hexnav-hexagon.weight-2, 
    .hexnav-hexagon.weight-3,
    .hexnav-hexagon.weight-4, 
    .hexnav-hexagon.weight-5,
    .hexnav-hexagon.weight-6, 
    .hexnav-hexagon.weight-7, 
    .hexnav-hexagon.weight-8, 
    .hexnav-hexagon.weight-9, 
    .hexnav-hexagon.weight-10 {
        width: 120px !important;
        height: 110px !important;
    }
    
    /* Erhöhtes Padding für Desktop-Texte */
    .hexnav-hexagon-inner {
        padding: 15px !important;
    }
}

/* ===== MOBILE ANPASSUNGEN ===== */
/* Grundlegende mobile Anpassungen für Tablets und größere Handys */
@media (max-width: 600px) and (min-width: 431px) {
    /* Container-Anpassungen */
    .hexnav-container {
        padding: 0;
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    /* Content-Bereich */
    .hexnav-content {
        min-height: 450px;
        margin-bottom: 10px;
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Hexagon-Grid */
    .hexnav-hexagon-grid {
        position: absolute !important;
        top: 35% !important;
        left: 35% !important;
        transform: translate(-50%, -50%) !important;
        height: 500px;
        width: 100%;
        max-width: 100vw;
        padding: 0;
        overflow: visible;
    }
}

/* Anpassungen für mittlere Handys (401px bis 430px) */
@media (max-width: 430px) and (min-width: 401px) {
    /* Container-Anpassungen */
    .hexnav-container {
        padding: 0;
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    /* Content-Bereich */
    .hexnav-content {
        min-height: 450px;
        margin-bottom: 10px;
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Hexagon-Grid weiter nach links */
    .hexnav-hexagon-grid {
        position: absolute !important;
        top: 35% !important;
        left: 40% !important;
        transform: translate(-50%, -50%) !important;
        height: 500px;
        width: 100%;
        max-width: 100vw;
        padding: 0;
        overflow: visible;
    }
    
    /* Allgemeine Hexagons - vergrößert für mittlere Handys */
    .hexnav-hexagon {
        width: 105px !important;
        height: 95px !important;
        transform-origin: center center;
    }
    
    /* KI-Hexagon (zentrales Element) */
    .hexnav-hexagon.hexnav-ai-hexagon {
        width: 115px !important;
        height: 104px !important;
        z-index: 10;
    }
    
    /* Gewichtete Hexagons */
    .hexnav-hexagon.weight-1, 
    .hexnav-hexagon.weight-2, 
    .hexnav-hexagon.weight-3,
    .hexnav-hexagon.weight-4, 
    .hexnav-hexagon.weight-5,
    .hexnav-hexagon.weight-6, 
    .hexnav-hexagon.weight-7, 
    .hexnav-hexagon.weight-8, 
    .hexnav-hexagon.weight-9, 
    .hexnav-hexagon.weight-10 {
        width: 100px !important;
        height: 91px !important;
    }
    
    /* Titel in Hexagons - leicht vergrößerte Schrift */
    .hexnav-hexagon-title {
        font-size: 0.45em;
        padding: 0 3px;
        line-height: 1.3;
    }
    
    /* Hover-Effekt für mobile Geräte optimieren */
    .hexnav-hexagon:hover {
        transform: scale(1.05) !important;
    }
}

/* Anpassungen für sehr kleine Handys (unter 400px) */
@media (max-width: 400px) {
    /* Container-Anpassungen für sehr kleine Bildschirme */
    .hexnav-container {
        padding: 0 5px !important;
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    /* Content-Bereich anpassen */
    .hexnav-content {
        min-height: 420px !important;
        margin-bottom: 10px;
        overflow-x: hidden;
        width: 100%;
        padding: 0 !important;
    }
    
    /* Hexagon-Grid weiter nach links */
    .hexnav-hexagon-grid {
        position: absolute !important;
        top: 35% !important;
        left: 35% !important;
        transform: translate(-50%, -50%) !important;
        height: 500px;
        width: 90% !important;
        max-width: 90vw !important;
        padding: 0;
        overflow: visible;
    }
}

.hexnav-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* === Hexagon-Elemente === */
.hexnav-hexagon {
    position: absolute; /* Absolut positionieren für kreisförmige Anordnung */
    width: 140px; /* Kompaktere Größe für bessere Darstellung */
    height: 125px; /* Kompaktere Größe für bessere Darstellung */
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 265.8 293.2'%3E%3Cpath fill='%2300aeef' d='M245.7,58.2L153.2,4.8c-11.1-6.4-29.3-6.4-40.4,0L20.2,58.2C9.1,64.6,0,80.4,0,93.2v106.8c0,12.8,9.1,28.6,20.2,35l92.5,53.4c11.1,6.4,29.3,6.4,40.4,0l92.5-53.4c11.1-6.4,20.2-22.2,20.2-35v-106.8c0-12.8-9.1-28.6-20.2-35h.1Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    animation: floatIdle 3s ease-in-out infinite;
}

/* Hexagon-Elemente für Tablets und größere Handys (431px bis 600px) */
@media (max-width: 600px) and (min-width: 431px) {
    /* Allgemeine Hexagons - vergrößert */
    .hexnav-hexagon {
        width: 110px !important;
        height: 100px !important;
        transform-origin: center center;
    }
    
    /* KI-Hexagon (zentrales Element) */
    .hexnav-hexagon.hexnav-ai-hexagon {
        width: 120px !important;
        height: 109px !important;
        z-index: 10;
    }
    
    /* Gewichtete Hexagons */
    .hexnav-hexagon.weight-1, 
    .hexnav-hexagon.weight-2, 
    .hexnav-hexagon.weight-3,
    .hexnav-hexagon.weight-4, 
    .hexnav-hexagon.weight-5,
    .hexnav-hexagon.weight-6, 
    .hexnav-hexagon.weight-7, 
    .hexnav-hexagon.weight-8, 
    .hexnav-hexagon.weight-9, 
    .hexnav-hexagon.weight-10 {
        width: 120px !important;
        height: 110px !important;
    }
    
    /* Titel in Hexagons - optimierte Schrift */
    .hexnav-hexagon-title {
        font-size: 1.1em;
        padding: 0 4px;
        line-height: 1.3;
    }
    
    /* Hover-Effekt für mobile Geräte optimieren */
    .hexnav-hexagon:hover {
        transform: scale(1.05) !important;
    }
}



/* Hexagon-Elemente für sehr kleine Handys (unter 400px) */
@media (max-width: 400px) {
    /* Allgemeine Hexagons - vergrößert für sehr kleine Bildschirme */
    .hexnav-hexagon {
        width: 100px !important;
        height: 91px !important;
        transform-origin: center center;
    }
    
    /* KI-Hexagon (zentrales Element) */
    .hexnav-hexagon.hexnav-ai-hexagon {
        width: 110px !important;
        height: 100px !important;
        z-index: 10;
    }
    
    /* Gewichtete Hexagons */
    .hexnav-hexagon.weight-1, 
    .hexnav-hexagon.weight-2, 
    .hexnav-hexagon.weight-3,
    .hexnav-hexagon.weight-4, 
    .hexnav-hexagon.weight-5,
    .hexnav-hexagon.weight-6, 
    .hexnav-hexagon.weight-7, 
    .hexnav-hexagon.weight-8, 
    .hexnav-hexagon.weight-9, 
    .hexnav-hexagon.weight-10 {
        width: 95px !important;
        height: 86px !important;
    }
    
    /* Titel in Hexagons - leicht vergrößerte Schrift */
    .hexnav-hexagon-title {
        font-size: 0.4em;
        padding: 0 2px;
        line-height: 1.3;
    }
    
    /* Hover-Effekt für mobile Geräte optimieren */
    .hexnav-hexagon:hover {
        transform: scale(1.05) !important;
    }
}

.hexnav-hexagon:hover {
    transform: scale(1.1) !important; /* Einheitliches Hover-Verhalten */
    z-index: 2;
    filter: brightness(1.2) saturate(1.2);
    animation: floatHover 1.5s ease-in-out infinite;
}

/* Schwebende Animation für Hexagone im Ruhezustand */
@keyframes floatIdle {
    0% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
    100% { transform: translateY(0); }
}

/* Verstärkte schwebende Animation für Hexagone beim Hover */
@keyframes floatHover {
    0% { transform: translateY(0) scale(1.1); }
    50% { transform: translateY(-6px) scale(1.1); }
    100% { transform: translateY(0) scale(1.1); }
}

.hexnav-hexagon-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
    color: white !important;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: transparent;
}

.hexnav-hexagon-title {
    color: #fff !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: auto;
    line-height: 1.3;
    max-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 1.0em; /* Vergrößerte Basis-Schriftgröße für Desktop ab 600px */
}

.hexnav-hexagon-description {
    display: none;
}

.hexnav-hexagon-image {
    max-width: 80%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hexnav-hexagon-badge {
    display: none;
}

/* Gewichtungsklassen - Mobile Media Queries haben Vorrang durch !important */
.hexnav-hexagon.weight-1, 
.hexnav-hexagon.weight-2, 
.hexnav-hexagon.weight-3, 
.hexnav-hexagon.weight-4, 
.hexnav-hexagon.weight-5,
.hexnav-hexagon.weight-6, 
.hexnav-hexagon.weight-7, 
.hexnav-hexagon.weight-8, 
.hexnav-hexagon.weight-9, 
.hexnav-hexagon.weight-10 {
    /* Desktop-Größe - wird von mobilen Media Queries überschrieben */
    width: 130px;
    height: 145px;
}

/* Alle Hauptbereiche einheitlich in Blau */
.hexnav-hexagon.main-area-guss,
.hexnav-hexagon.main-area-automatisierung,
.hexnav-hexagon.main-area-automotive,
.hexnav-hexagon.main-area-aerospace,
.hexnav-hexagon.main-area-sonderlösungen {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 265.8 293.2'%3E%3Cpath fill='%2300aeef' d='M245.7,58.2L153.2,4.8c-11.1-6.4-29.3-6.4-40.4,0L20.2,58.2C9.1,64.6,0,80.4,0,93.2v106.8c0,12.8,9.1,28.6,20.2,35l92.5,53.4c11.1,6.4,29.3,6.4,40.4,0l92.5-53.4c11.1-6.4,20.2-22.2,20.2-35v-106.8c0-12.8-9.1-28.6-20.2-35h.1Z'/%3E%3C/svg%3E");
}

/* Mobile Anpassungen für Hexagone - entfernt da bereits oben definiert */

/* Highlight für KI-gefundene Hexagons */
.hexnav-hexagon.ai-highlight {
    animation: hexnav-pulse 1.2s infinite alternate;
    z-index: 2;
}

@keyframes hexnav-pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.12);
    }
}

/* Listen-Ansicht */
.hexnav-list-view {
    padding: 20px 0;
}

.hexnav-list-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    cursor: pointer;
}

.hexnav-list-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hexnav-list-image {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.hexnav-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hexnav-list-content {
    flex: 1;
}

.hexnav-list-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px;
    color: #333;
}

.hexnav-list-description {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.hexnav-list-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.hexnav-list-tag {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    background-color: #f0f0f0;
    color: #555;
}

/* Detail-Modal */
.hexnav-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hexnav-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.hexnav-modal-content {
    position: relative;
    width: 80vw;
    max-width: 1200px;
    max-height: 90vh;
    background: #fff !important;
    box-shadow: none !important;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 101;
}

.hexnav-modal-header {
    position: relative;
    padding: 20px 20px 15px;
    background: #062655 !important;
    color: #fff !important;
}

.hexnav-modal-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    padding-right: 40px;
    color: #fff !important;
}

.hexnav-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.hexnav-modal-close:hover {
    transform: scale(1.1);
}

.hexnav-modal-close svg {
    width: 24px;
    height: 24px;
}

.hexnav-modal-close svg path {
    fill: white;
}

.hexnav-modal-close::before {
    display: none;
}

.hexnav-modal-close span {
    display: none;
}

.hexnav-modal-image {
    text-align: center;
    margin: 20px 0;
}

.hexnav-modal-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.hexnav-modal-text {
    padding: 20px;
    line-height: 1.6;
    color: #333;
    background: transparent !important;
    box-shadow: none !important;
    max-height: 60vh;
    overflow-y: auto;
}

.hexnav-modal-text p {
    margin-bottom: 15px;
}

.hexnav-modal-text h1, 
.hexnav-modal-text h2, 
.hexnav-modal-text h3, 
.hexnav-modal-text h4 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #00aeef;
}

.hexnav-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}

.hexnav-button.hexnav-button-secondary {
    padding: 8px 16px;
    background: none;
    color: #333;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.hexnav-button.hexnav-button-secondary:hover {
    background: none;
    opacity: 0.8;
}

/* Breadcrumb-Navigation */
.hexnav-breadcrumb {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background-color: rgba(6, 38, 85, 0.95) !important;
    border-radius: 25px;
    margin-bottom: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.hexnav-breadcrumb-home,
.hexnav-breadcrumb-filter {
    color: #fff !important;
    fill: #fff !important;
}

.hexnav-breadcrumb-home svg,
.hexnav-breadcrumb-filter svg {
    color: #fff !important;
    fill: #fff !important;
}

.hexnav-breadcrumb-home {
    background: none;
    border: none;
    color: #00aeef;
    cursor: pointer;
    transition: color 0.2s ease;
}

.hexnav-breadcrumb-home:hover {
    color: #008ec1;
}

.hexnav-breadcrumb-items {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

/* Breadcrumb-Items verstecken, wenn keine Navigation vorhanden ist */
.hexnav-breadcrumb-items.hexnav-hidden {
    display: none;
}

.hexnav-breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.hexnav-breadcrumb-separator {
    color: #999;
}

.hexnav-breadcrumb-link {
    color: #00aeef;
    cursor: pointer;
    transition: color 0.2s ease;
}

.hexnav-breadcrumb-link:hover {
    color: #008ec1;
    text-decoration: underline;
}

.hexnav-breadcrumb-current {
    font-weight: 500;
    color: #fff !important;
}

/* Hilfsfunktionen */
.hexnav-hidden {
    display: none !important;
}

.hexnav-visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/* === Responsive Design === */
@media screen and (max-width: 768px) {
    .hexnav-container {
        padding: 10px;
    }
    
    .hexnav-title {
        font-size: 24px;
    }
    
    .hexnav-toolbar {
        flex-wrap: wrap;
    }
    
    .hexnav-filter-button span,
    .hexnav-chat-button span {
        display: none;
    }
    
    .hexnav-hexagon {
        width: 150px;
        height: 130px;
    }
    
    .hexnav-hexagon-title {
        font-size: 12px;
    }
    
    .hexnav-hexagon-description {
        font-size: 12px;
    }
    
    .hexnav-chat-panel {
        width: 100%;
        height: 400px;
    }
    
    .hexnav-modal-content {
        width: 95vw;
        max-height: 95vh;
    }
    
    .hexnav-modal-title {
        font-size: 20px;
    }
    
    .hexnav-modal-description {
        font-size: 14px;
    }
}

/* Problematische @media screen and (max-width: 600px) Regel entfernt - 
   überschrieb die spezifischeren mobilen Anpassungen */

/* iPhone-spezifische Media Queries entfernt - verwende allgemeine Breakpoints */



/* Zurück-Button im zentralen Hexagon */
.hexnav-back-button {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    transition: all 0.2s ease;
}

.hexnav-back-button:hover {
    background-color: #fff;
    transform: scale(1.1);
}

.hexnav-back-button svg {
    width: 24px;
    height: 24px;
    color: #333;
}

/* Zurück-Pfeil im zentralen Hexagon - angepasst für bessere Sichtbarkeit */
.hexnav-back-arrow {
    margin-top: -5px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    cursor: pointer !important;
}

/* Mobile Anpassungen für kompakteren Zurück-Pfeil */
@media (max-width: 600px) {
    .hexnav-back-arrow {
        margin-top: -10px;
    }
}

.hexnav-back-arrow svg {
    width: 28px;
    height: 28px;
    color: white;
    opacity: 0.9;
    transition: all 0.2s ease;
}

.hexnav-back-arrow svg:hover {
    transform: scale(1.2);
    opacity: 1;
}

.debug-parent-hexagon {
    cursor: pointer !important;
}

/* Verhindert Zeilenumbruch für "Automatisierung" */
.hexnav-hexagon-title.no-wrap {
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Subelement Button - ERSETZT DURCH Info-Button */
.hexnav-subelement-button {
    /* Alter Stil bleibt für Kompatibilität */
    display: none;
}

/* Info-Button */
.hexnav-info-button {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100; /* Sehr hoher z-index */
    transition: all 0.3s ease;
}

.hexnav-info-button:hover {
    transform: translateX(-50%) scale(1.2);
}

.hexnav-info-button svg {
    width: 24px;
    height: 24px;
    fill: white;
    color: white;
}

.hexnav-filter-panel * {
    color: #fff !important;
}
.hexnav-filter-header,
.hexnav-filter-footer {
    background: #062655 !important;
    color: #fff !important;
}
.hexnav-filter-option {
    background: rgba(0,0,0,0.3) !important;
    color: #fff !important;
}

.hexnav-breadcrumb-filter,
.hexnav-breadcrumb-filter:hover,
.hexnav-breadcrumb-filter:focus {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.hexnav-breadcrumb-filter {
    cursor: pointer !important;
}

   