/* Logo Styles */

.header-logo-link {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header-logo-link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* CSS Logo Container */
.header-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Segelboot Icon (SVG) */
.header-logo-sail {
    position: relative;
    width: 32px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo-sail svg {
    width: 100%;
    height: 100%;
    transition: filter 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(158, 122, 255, 0.3));
}

/* SVG-Farben über CSS-Variablen */
.header-logo-sail .sailboat-hull {
    fill: var(--color-primary);
    stroke: var(--color-primary-dark);
    transition: fill 0.3s ease, stroke 0.3s ease;
}

.header-logo-sail .sailboat-mast {
    fill: var(--color-primary-dark);
    transition: fill 0.3s ease;
}

.header-logo-sail .sailboat-sail {
    fill: var(--color-primary-light);
    transition: fill 0.3s ease;
}

/* Hover-Effekte für Segelboot */
.header-logo-link:hover .header-logo-sail {
    transform: rotate(-3deg) translateY(-2px);
}

.header-logo-link:hover .header-logo-sail svg {
    filter: drop-shadow(0 4px 8px rgba(158, 122, 255, 0.5));
}

.header-logo-link:hover .header-logo-sail .sailboat-hull {
    fill: var(--color-primary-light);
    stroke: var(--color-primary);
}

.header-logo-link:hover .header-logo-sail .sailboat-mast {
    fill: var(--color-primary);
}

.header-logo-link:hover .header-logo-sail .sailboat-sail {
    fill: var(--color-primary);
}

/* Logo Text */
.header-logo-text {
    font-size: 18px;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: -0.5px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

/* Logo Character - Basis-Styles */
.header-logo-text .logo-char {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
                background 0.3s ease,
                -webkit-background-clip 0.3s ease,
                background-clip 0.3s ease;
    transform-origin: center bottom;
}

/* Logo Character Hover Animation - Wellen-Effekt */
.header-logo-link:hover .header-logo-text .logo-char {
    animation: logoCharBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Animation Delays für jeden Buchstaben - Wellen-Effekt */
.header-logo-link:hover .header-logo-text .logo-char:nth-child(1) { animation-delay: 0.00s; }
.header-logo-link:hover .header-logo-text .logo-char:nth-child(2) { animation-delay: 0.02s; }
.header-logo-link:hover .header-logo-text .logo-char:nth-child(3) { animation-delay: 0.04s; }
.header-logo-link:hover .header-logo-text .logo-char:nth-child(4) { animation-delay: 0.06s; }
.header-logo-link:hover .header-logo-text .logo-char:nth-child(5) { animation-delay: 0.08s; }
.header-logo-link:hover .header-logo-text .logo-char:nth-child(6) { animation-delay: 0.10s; }
.header-logo-link:hover .header-logo-text .logo-char:nth-child(7) { animation-delay: 0.12s; }
.header-logo-link:hover .header-logo-text .logo-char:nth-child(8) { animation-delay: 0.14s; }
.header-logo-link:hover .header-logo-text .logo-char:nth-child(9) { animation-delay: 0.16s; }
.header-logo-link:hover .header-logo-text .logo-char:nth-child(10) { animation-delay: 0.18s; }
.header-logo-link:hover .header-logo-text .logo-char:nth-child(11) { animation-delay: 0.20s; }
.header-logo-link:hover .header-logo-text .logo-char:nth-child(12) { animation-delay: 0.22s; }
.header-logo-link:hover .header-logo-text .logo-char:nth-child(13) { animation-delay: 0.24s; }

/* Keyframe Animation für Buchstaben-Bounce */
@keyframes logoCharBounce {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.1);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

/* Fallback für nicht-hover Zustand - Gradient zurück */
.header-logo-text .logo-char {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Mobile-First: Basis-Styles gelten für mobile Geräte */
.header-logo-image {
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Mobile-First: Responsive Design - Regel 022: 4 Breakpoints */
/* Basis-Styles gelten für mobile (max-width: 576px) - keine Media Query erforderlich */

/* Tablet/iPad (min-width: 600px) */
@media (min-width: 600px) {
    .header-logo-image {
        max-height: 45px;
    }
    
    .header-logo-sail {
        width: 36px;
        height: 28px;
    }
    
    .header-logo-text {
        font-size: 20px;
    }
}

/* Kleiner Desktop/13-Zoll (min-width: 1024px) */
@media (min-width: 1024px) {
    .header-logo-image {
        max-height: 50px;
    }
    
    .header-logo-sail {
        width: 40px;
        height: 32px;
    }
    
    .header-logo-text {
        font-size: 22px;
    }
}

/* Großer Desktop/Widescreen (min-width: 1440px) */
@media (min-width: 1440px) {
    .header-logo-image {
        max-height: 50px;
    }
    
    .header-logo-sail {
        width: 40px;
        height: 32px;
    }
    
    .header-logo-text {
        font-size: 22px;
    }
}

