/* Aktiver Navigationslink */
.nav-link-active,
.nav-links a:focus,
.nav-links a:active {
    color: #f2c44c !important; /* brand-gold */
}
/* ================================================
   Fischereiservice Stitz — Functional CSS
   Design handled by Tailwind utility classes.
   This file: animations, interactive states,
   and functional styles only.
   ================================================ */

/* ===== Skip Link ===== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    z-index: 9999;
    transition: top 0.3s ease;
}
.skip-link:focus {
    top: 0;
}

/* ===== Glass Effect ===== */
.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* ===== Hero Text Shadow ===== */
.hero-text-shadow {
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ===== Mobile Menu ===== */
.nav-links {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.nav-links.open {
    transform: translateX(0);
}

/* Menu Button Icon Toggle */
.menu-btn.open .menu-icon-bars { display: none !important; }
.menu-btn.open .menu-icon-close { display: inline-block !important; }

/* Desktop: always visible inline */
@media (min-width: 768px) {
    .nav-links {
        position: static !important;
        display: flex !important;
        flex-direction: row !important;
        transform: none !important;
        background: transparent !important;
        inset: auto !important;
        padding: 0 !important;
        z-index: auto !important;
        gap: 2rem !important;
        align-items: center !important;
    }
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

.slide-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: var(--delay, 0s);
}
.slide-in.in {
    opacity: 1;
    transform: translateY(0);
}

.underline {
    position: relative;
    display: inline-block;
}
.underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    height: 3px;
    width: 48px;
    background: #0b5d66;
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease 0.15s;
}
.underline.in::after {
    transform: scaleX(1);
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 4vw;
    z-index: 9999;
}
.lightbox.open {
    display: flex;
}

/* ===== Form Banner ===== */
.form-banner {
    position: fixed;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    min-width: min(420px, 90vw);
    padding: 16px 24px;
    text-align: center;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.5s ease;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.form-banner.show {
    top: 20px;
    opacity: 1;
    pointer-events: auto;
}
.form-banner.success {
    background: #0f9d58;
    color: #fff;
}
.form-banner.error {
    background: #d93025;
    color: #fff;
}

/* ===== Scroll to Top (mobile) ===== */
@media (max-width: 767px) {
    #toTop {
        position: fixed;
        right: 1.5rem;
        bottom: 6rem;
        z-index: 40;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(5,26,38,0.9);
        color: #fff;
        border: 1px solid rgba(255,255,255,0.2);
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        text-decoration: none;
    }
    #toTop.show {
        opacity: 1;
        pointer-events: auto;
    }
}

/* ===== Hide Scrollbar ===== */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    .reveal { transition: none; transform: none; opacity: 1; }
    .slide-in, .slide-in.in { transform: none; opacity: 1; transition: none; }
    .underline::after { transition: none; transform: scaleX(1); }
}
