/* Navigation */
.main-navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease;
    background: transparent;
}

.main-navigation.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.site-logo {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.3s;
}

.site-logo:hover {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--foreground);
}

.nav-link-primary {
    font-weight: 500;
    color: var(--primary);
}

.nav-link-primary:hover {
    color: var(--primary);
    opacity: 0.8;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background-color: var(--background);
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        hsla(200, 20%, 98%, 0.3),
        hsla(200, 20%, 98%, 0.1),
        hsla(200, 20%, 98%, 0.98)
    );
}

/* Produktfoto: Bild insgesamt transparenter, nach unten weiter auslaufend */
.hero-section--product .hero-bg-img {
    object-position: center 40%;
    opacity: 0.55;
    -webkit-mask-image: linear-gradient(
        to bottom,
        #000 0%,
        rgba(0, 0, 0, 0.85) 28%,
        rgba(0, 0, 0, 0.45) 58%,
        rgba(0, 0, 0, 0.12) 82%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        #000 0%,
        rgba(0, 0, 0, 0.85) 28%,
        rgba(0, 0, 0, 0.45) 58%,
        rgba(0, 0, 0, 0.12) 82%,
        transparent 100%
    );
}

.hero-section--product .hero-overlay {
    background: linear-gradient(
        to bottom,
        hsla(200, 20%, 98%, 0.18) 0%,
        hsla(200, 20%, 98%, 0.08) 40%,
        hsla(200, 20%, 98%, 0.45) 72%,
        hsla(200, 20%, 98%, 0.96) 100%
    );
}

/* Fliegendes Bienchen: Spur + Biene im selben SVG-Koordinatensystem */
.hero-bee-flight {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    overflow: hidden;
}

.hero-bee-svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.hero-bee-trail {
    stroke: hsl(35, 85%, 38%);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-dasharray: 5 15;
    opacity: 0.92;
}

.hero-bee-body {
    fill: var(--honey);
    stroke: hsl(35, 70%, 32%);
    stroke-width: 1;
}

.hero-bee-stripe {
    fill: none;
    stroke: hsl(220, 25%, 18%);
    stroke-width: 1.6;
    stroke-linecap: round;
}

.hero-bee-head {
    fill: hsl(43, 90%, 48%);
    stroke: hsl(35, 70%, 32%);
    stroke-width: 1;
}

.hero-bee-eye {
    fill: hsl(220, 25%, 15%);
}

.hero-bee-antenna {
    fill: none;
    stroke: hsl(220, 25%, 22%);
    stroke-width: 1.1;
    stroke-linecap: round;
}

.hero-bee-wing {
    fill: hsla(199, 85%, 92%, 0.85);
    stroke: hsla(199, 60%, 55%, 0.55);
    stroke-width: 0.8;
    transform-origin: center;
    animation: hero-bee-wing 0.18s ease-in-out infinite alternate;
}

.hero-bee-wing--left {
    transform-box: fill-box;
    transform-origin: right center;
}

.hero-bee-wing--right {
    transform-box: fill-box;
    transform-origin: left center;
    animation-delay: 0.09s;
}

@keyframes hero-bee-wing {
    from {
        transform: scaleY(1) rotate(-8deg);
    }
    to {
        transform: scaleY(0.55) rotate(10deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bee-flight {
        display: none;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding-top: clamp(9rem, 22vh, 14rem);
}

.hero-inner {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--foreground);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.swiss-flag {
    color: var(--swiss-red);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title .text-secondary {
    color: var(--secondary);
}

.hero-description {
    font-size: 1.125rem;
    color: hsla(220, 25%, 15%, 0.82);
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-mouse {
    width: 1.5rem;
    height: 2.5rem;
    border: 2px solid rgba(220, 25%, 15%, 0.3);
    border-radius: 9999px;
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
}

.scroll-wheel {
    width: 0.25rem;
    height: 0.75rem;
    background: rgba(220, 25%, 15%, 0.3);
    border-radius: 9999px;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background-color: var(--card);
}

.about-header {
    max-width: 48rem;
    margin: 0 auto 4rem;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.5rem;
}

.section-description {
    color: var(--muted-foreground);
    font-size: 1.125rem;
    line-height: 1.75;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 80rem;
    margin: 0 auto;
}

.value-card {
    background-color: var(--background);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: box-shadow 0.3s;
}

.value-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: var(--alpine-sky-light);
    border-radius: 9999px;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.value-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.value-description {
    color: var(--muted-foreground);
    line-height: 1.75;
}

/* Gallery Section */
.gallery-section {
    padding: 5rem 0;
    background-color: var(--background);
}

.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-width: 72rem;
    margin: 0 auto;
}

.gallery-item {
    margin: 0;
    overflow: hidden;
    aspect-ratio: 3 / 2;
}

.gallery-trigger {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    -webkit-tap-highlight-color: transparent;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-trigger:focus-visible img {
    transform: scale(1.03);
}

.gallery-trigger:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Gallery Lightbox */
body.honig-lightbox-open {
    overflow: hidden;
    touch-action: none;
}

.honig-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.honig-lightbox[hidden] {
    display: none;
}

.honig-lightbox.is-open {
    opacity: 1;
}

.honig-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 20, 25, 0.92);
}

.honig-lightbox__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(96vw, 1100px);
    max-height: 100dvh;
    padding: 3.5rem 0.75rem 1rem;
    box-sizing: border-box;
}

.honig-lightbox__stage {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
}

.honig-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: calc(100dvh - 7.5rem);
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.honig-lightbox__meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.75rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
}

.honig-lightbox__caption {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.4;
    max-width: 36rem;
}

.honig-lightbox__counter {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
}

.honig-lightbox__close,
.honig-lightbox__nav {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.honig-lightbox__close:hover,
.honig-lightbox__nav:hover,
.honig-lightbox__close:focus-visible,
.honig-lightbox__nav:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    outline: none;
}

.honig-lightbox__close {
    top: 0.75rem;
    right: 0.75rem;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.75rem;
    line-height: 1;
}

.honig-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
}

.honig-lightbox__nav--prev {
    left: 0.25rem;
}

.honig-lightbox__nav--next {
    right: 0.25rem;
}

@media (min-width: 768px) {
    .honig-lightbox__panel {
        padding: 4rem 4.5rem 1.25rem;
    }

    .honig-lightbox__close {
        top: 1rem;
        right: 1rem;
    }

    .honig-lightbox__nav--prev {
        left: 0.5rem;
    }

    .honig-lightbox__nav--next {
        right: 0.5rem;
    }

    .honig-lightbox__img {
        max-height: calc(100dvh - 8rem);
    }
}

/* Order Section - Container only (used by both Custom Form and Gravity Forms) */
.order-section {
    padding: 6rem 0;
    background-color: var(--alpine-light);
}

.order-wrapper {
    max-width: 64rem;
    margin: 0 auto;
}

.order-header {
    text-align: center;
    margin-bottom: 3rem;
}

.order-card {
    background-color: var(--card);
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 2rem;
}

/* Footer */
.site-footer {
    background-color: var(--foreground);
    color: var(--background);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.footer-left {
    text-align: center;
}

.footer-title {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.footer-tagline {
    color: rgba(200, 20%, 98%, 0.6);
    font-size: 0.875rem;
}

.footer-right {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(200, 20%, 98%, 0.6);
}

.footer-copyright {
    margin-bottom: 0.25rem;
}

.footer-links {
    margin-top: 0.75rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-link {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Responsive - Layout only */
@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    
    .footer-content {
        flex-direction: row;
    }
    
    .footer-left {
        text-align: left;
    }
    
    .footer-right {
        text-align: right;
    }
}

/* Order Section Layout - muss immer verfügbar sein (auch für Gravity Forms) */
.order-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.order-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.honey-jar-img {
    width: 100%;
    max-width: 18rem;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    margin-bottom: 1rem;
}

.image-caption {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-align: center;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
    
    .order-content {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .order-image {
        width: 33.333333%;
        flex-shrink: 0;
    }
    
    .order-form {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
        min-width: 0;
    }
    
    .gravity-forms-wrapper.order-form {
        flex: 0 0 65%;
        max-width: 65%;
        min-width: 0;
    }
}

/* Legal Pages */
.legal-page {
    padding: 7rem 0 4rem;
    min-height: 70vh;
    background-color: var(--background);
}

.legal-article {
    max-width: 48rem;
    margin: 0 auto;
}

.legal-header {
    margin-bottom: 2rem;
}

.legal-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--foreground);
    margin: 0;
}

.legal-content {
    color: var(--foreground);
    line-height: 1.75;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 0.75rem;
}

.legal-content h3 {
    font-size: 1.125rem;
    margin: 1.75rem 0 0.5rem;
}

.legal-content p,
.legal-content ul {
    margin: 0 0 1rem;
    color: var(--muted-foreground);
}

.legal-content ul {
    padding-left: 1.25rem;
}

.legal-content li {
    margin-bottom: 0.35rem;
}

.legal-content a {
    color: var(--primary);
}

.legal-content em {
    color: #b45309;
    font-style: normal;
    font-weight: 600;
}

/* Utility Classes */
.hidden {
    position: absolute;
    left: -9999px;
}
