﻿/* ========================================================================== */
/* TopSitesDanke – Site Header */
/* ========================================================================== */

.tsd-header {
    background: var(--tsd-white);
    border-bottom: 2px solid var(--tsd-blue-light);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 12px rgba(26, 86, 219, 0.07);
}

.tsd-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 32px;
}

.tsd-header__brand {
    flex-shrink: 0;
}

.tsd-header__logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity var(--tsd-transition);
}

.tsd-header__logo:hover {
    opacity: 0.85;
}

.tsd-header__logo-icon {
    font-size: 26px;
    color: var(--tsd-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tsd-header__logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--tsd-blue);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.tsd-header__logo-text span {
    color: var(--tsd-blue-dark);
}

.tsd-nav {
    flex: 1;
}

.tsd-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 4px;
}

.tsd-nav__link {
    color: var(--tsd-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 14px;
    border-radius: var(--tsd-radius);
    transition: color var(--tsd-transition), background var(--tsd-transition);
    display: block;
}

.tsd-nav__link:hover {
    color: var(--tsd-blue);
    background: var(--tsd-blue-bg);
}

.tsd-header__actions {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
    align-items: center;
}

.tsd-header__secondary-link {
    color: var(--tsd-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color var(--tsd-transition);
    font-weight: 500;
}

.tsd-header__secondary-link:hover {
    color: var(--tsd-blue);
}

.tsd-header__cta-btn {
    background: var(--tsd-blue);
    color: var(--tsd-white);
    padding: 10px 20px;
    border-radius: var(--tsd-radius);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--tsd-transition);
    white-space: nowrap;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(26, 86, 219, 0.2);
}

.tsd-header__cta-btn:hover {
    background: var(--tsd-blue-dark);
    box-shadow: 0 4px 12px rgba(26, 86, 219, 0.3);
    transform: translateY(-1px);
}

/* Mobile Toggle */
.tsd-mobile-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    z-index: 300;
}

.tsd-mobile-toggle__bar {
    width: 22px;
    height: 2px;
    background-color: var(--tsd-text);
    transition: all 0.25s ease;
    display: block;
    border-radius: 2px;
}

.tsd-mobile-toggle[aria-expanded="true"] .tsd-mobile-toggle__bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.tsd-mobile-toggle[aria-expanded="true"] .tsd-mobile-toggle__bar:nth-child(2) {
    opacity: 0;
}

.tsd-mobile-toggle[aria-expanded="true"] .tsd-mobile-toggle__bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive */
@media (max-width: 768px) {
    .tsd-header__inner {
        padding: 0 16px;
        height: 60px;
        position: relative;
    }

    .tsd-mobile-toggle {
        display: flex;
        order: 3;
    }

    .tsd-nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--tsd-white);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 2px solid var(--tsd-blue-light);
        box-shadow: 0 6px 16px rgba(26, 86, 219, 0.1);
    }

    .tsd-nav.active {
        max-height: 280px;
    }

    .tsd-nav__list {
        flex-direction: column;
        gap: 0;
        padding: 12px 16px;
    }

    .tsd-nav__link {
        padding: 12px 10px;
        border-left: 3px solid transparent;
        border-radius: 0;
        font-size: 15px;
    }

    .tsd-nav__link:hover {
        border-left-color: var(--tsd-blue);
        background: var(--tsd-blue-bg);
    }

    .tsd-header__actions {
        display: none;
    }

    .tsd-header__logo-text {
        font-size: 18px;
    }

    .tsd-header__logo-icon {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .tsd-header__inner {
        padding: 0 12px;
    }

    .tsd-header__logo-text {
        font-size: 16px;
    }

    .tsd-header__logo-icon {
        font-size: 20px;
    }
}

