/* 
 * Navigation & Sticky Elements
 * public/css/krypto-boersen-navigation.css
 */

/* Content Navigation */
.content-navigation {
    background: white;
    border-bottom: 1px solid var(--kb-border);
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    box-shadow: none;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.content-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.content-tabs::-webkit-scrollbar {
    display: none;
}

/* Reiter immer einzeilig (Nutzerentscheidung 06.10.2026: die Leiste darf nie zweizeilig werden). Passen
   nicht alle Reiter hinein, scrollt die Leiste waagerecht; Pfeile links/rechts (initTabArrows) zeigen, dass
   es weitere Reiter gibt. */
.content-tabs {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    min-width: 0;
    position: relative;
    scroll-behavior: smooth;
}

.kb-tabs-wrap {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
}

.kb-tabs-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 40px;
    padding: 0;
    border: 0;
    cursor: pointer;
}

.kb-tabs-arrow[hidden] {
    display: none;
}

.kb-tabs-arrow--prev {
    left: 0;
    background: linear-gradient(to right, #fff 55%, rgba(255, 255, 255, 0));
}

.kb-tabs-arrow--next {
    right: 0;
    background: linear-gradient(to left, #fff 55%, rgba(255, 255, 255, 0));
}

.kb-tabs-arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--kb-text);
    border-right: 2px solid var(--kb-text);
}

.kb-tabs-arrow--next::before {
    right: 14px;
    transform: translateY(-50%) rotate(45deg);
}

.kb-tabs-arrow--prev::before {
    left: 14px;
    transform: translateY(-50%) rotate(-135deg);
}

.all-boersen-button {
    flex-shrink: 0;
    margin-left: 16px;
}

.all-boersen-button .btn-outline {
    white-space: nowrap;
}

.tab-link {
    padding: 16px 12px;
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    font-size: 0.8125rem;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.tab-link:hover {
    color: #374151;
    background: #f9fafb;
}

.tab-link.active {
    color: var(--kb-accent);
    border-bottom-color: var(--kb-accent);
    background: #eff6ff;
}

.all-boersen-button .btn-outline {
    background: white;
    color: var(--kb-accent);
    border: 2px solid var(--kb-accent);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.all-boersen-button .btn-outline:hover {
    background: var(--kb-accent);
    color: white;
    text-decoration: none;
}

/* STICKY FOOTER BAR */
.sticky-footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--kb-border);
    box-shadow: none;
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    padding: 12px 0;
}

.sticky-footer-bar.visible {
    transform: translateY(0);
}

.sticky-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    min-height: 60px;
}

.sticky-footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.sticky-logo .sticky-logo-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.sticky-title {
    font-weight: 700;
    color: var(--kb-text);
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-footer-right {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.btn-sticky-primary {
    background: var(--kb-cta);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-sticky-primary:hover {
    background: var(--kb-cta-hover);
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

.btn-sticky-secondary {
    background: white;
    color: #374151;
    border: 2px solid #d1d5db;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-sticky-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Sticky Bars für Vergleichsseiten */



.current-comparison {
    display: flex;
    align-items: center;
    gap: 12px;
}


.comparison-pair {
    display: flex;
    align-items: center;
    gap: 8px;
}

.boerse-name {
    font-weight: 600;
    color: var(--kb-text);
}

.vs-separator {
    color: #9ca3af;
    font-weight: 500;
}












/* Responsive Navigation */
@media (max-width: 1024px) {
    /* auch hier einzeilig: Reiter links (wischbar), Knopf rechts */
    .nav-container {
        flex-direction: row;
        gap: 0;
        padding: 0 20px;
    }
    
    .content-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .sticky-footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .sticky-footer-bar {
        padding: 16px 0;
    }
    
    .bottom-cta-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* MOBILE: Kompakte Navigation */
    .nav-container {
        flex-direction: row;
        justify-content: flex-start;
        padding: 0 16px;
        gap: 0;
    }

    .content-tabs {
        flex: 1;
        min-width: 0;
        overflow-x: scroll;
        scroll-behavior: smooth;
    }

    .tab-link {
        font-size: 0.875rem;
        padding: 14px 16px;
        text-align: center;
        min-width: auto;
        flex-shrink: 0;
    }
    
    /* MOBILE: Alle Börsen Button ausblenden */
    .all-boersen-button {
        display: none;
    }
    
    /* MOBILE: Kompakte Sticky Footer */
    .sticky-footer-bar {
        padding: 10px 0;
    }

    .sticky-footer-content {
        flex-direction: row;
        gap: 8px;
        padding: 0 16px;
        min-height: 56px;
    }

    .sticky-footer-left {
        gap: 8px;
        flex: 1;
        min-width: 0;
    }

    .sticky-logo .sticky-logo-image {
        width: 36px;
        height: 36px;
    }

    .sticky-title {
        font-size: 0.9375rem;
        max-width: 120px;
    }

    .sticky-footer-right {
        gap: 8px;
        flex-shrink: 0;
    }

    .btn-sticky-primary,
    .btn-sticky-secondary {
        padding: 8px 14px;
        font-size: 0.8125rem;
        min-width: 75px;
    }
}

@media (max-width: 480px) {
    /* MOBILE: Sehr kompakte Navigation */
    .tab-link {
        font-size: 0.8125rem;
        padding: 12px 14px;
        min-width: auto;
        flex-shrink: 0;
    }
    
    /* MOBILE: Sehr kompakte Sticky Footer */
    .sticky-footer-bar {
        padding: 8px 0;
    }

    .sticky-footer-content {
        min-height: 52px;
    }

    .sticky-logo .sticky-logo-image {
        width: 32px;
        height: 32px;
    }

    .sticky-title {
        font-size: 0.875rem;
        max-width: 100px;
    }

    .btn-sticky-primary,
    .btn-sticky-secondary {
        padding: 7px 12px;
        font-size: 0.75rem;
        min-width: 70px;
    }
}
/* Tablet (769–1024 px): kompakte Reiterleiste wie mobil – eine wischbare Zeile ohne „Alle Börsen“-Knopf.
   Vorher standen Reiter und Knopf untereinander, die Sticky-Leiste war bis zu 210 px hoch. */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-container {
        flex-direction: row;
        justify-content: flex-start;
        gap: 0;
        padding: 0 16px;
    }

    .content-tabs {
        flex: 1;
        min-width: 0;
        overflow-x: auto;
    }

    .all-boersen-button {
        display: none;
    }
}

/* Knöpfe der Sticky-Leisten immer einzeilig */
.btn-sticky-primary,
.btn-sticky-secondary {
    white-space: nowrap;
}

/* Angemeldet: Reiterleiste unter der WordPress-Adminleiste statt dahinter */
.admin-bar .content-navigation {
    top: 32px !important;
}

@media (max-width: 782px) {
    .admin-bar .content-navigation {
        top: 46px !important;
    }
}

@media (max-width: 600px) {
    .admin-bar .content-navigation {
        top: 0 !important;
    }
}

