/* Explain: Styles for various UI components including product image zoom and lightbox. */
.eyebrow {
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hero-cinematic {
    position: relative;
    z-index: 70;
    isolation: isolate;
}

.brand-badge {
    border-radius: 54% 46% 62% 38% / 52% 58% 42% 48%;
}

.bubble-orb {
    position: absolute;
    border-radius: 999px;
    background: color-mix(in srgb, var(--cream-color) 72%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary-color) 42%, transparent);
    box-shadow: inset 0 0 2rem color-mix(in srgb, var(--primary-color) 18%, transparent);
    animation: bubbleDrift 7s ease-in-out infinite;
}

.bubble-orb:nth-child(2n) {
    animation-delay: -2s;
}

.bubble-orb:nth-child(3n) {
    animation-delay: -4s;
}

.bubble-icon {
    animation: iconWiggle 2.6s ease-in-out infinite;
    transform-origin: center;
}

.request-card {
    position: relative;
    z-index: 75;
    width: min(36rem, 100%);
    min-height: auto;
    border: 8px solid color-mix(in srgb, var(--cream-color) 86%, transparent);
    border-radius: 3.5rem;
    background:
        radial-gradient(circle at 16% 12%, color-mix(in srgb, var(--secondary-color) 58%, transparent), transparent 9rem),
        radial-gradient(circle at 92% 90%, color-mix(in srgb, var(--primary-color) 18%, transparent), transparent 10rem),
        color-mix(in srgb, var(--cream-color) 96%, transparent);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.ivory-panel {
    position: relative;
    border: 1px solid color-mix(in srgb, var(--primary-color) 18%, transparent);
    border-radius: 2rem;
    background: color-mix(in srgb, var(--surface-color) 84%, transparent);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.credibility-item {
    display: flex;
    min-height: 4rem;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-radius: 999px;
    color: var(--charcoal-color);
    font-size: 0.92rem;
    font-weight: 900;
}

.service-card,
.timeline-card,
.faq-card,
.benefit-card,
.gallery-card {
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    background: color-mix(in srgb, var(--surface-color) 88%, transparent);
    box-shadow: var(--shadow-card);
    transition: transform 300ms ease, border-color 300ms ease, background 300ms ease;
}

.review-card {
    border: 1px solid color-mix(in srgb, var(--cream-color) 20%, transparent);
    border-radius: 2rem;
    background: color-mix(in srgb, var(--cream-color) 12%, transparent);
    box-shadow: var(--shadow-card);
    transition: transform 300ms ease, border-color 300ms ease, background 300ms ease;
}

.service-card:hover,
.timeline-card:hover,
.benefit-card:hover,
.gallery-card:hover {
    transform: translateY(-0.35rem);
    border-color: color-mix(in srgb, var(--primary-color) 60%, transparent);
    background: color-mix(in srgb, var(--surface-color) 98%, transparent);
}

.review-card:hover {
    transform: translateY(-0.35rem);
    border-color: color-mix(in srgb, var(--secondary-color) 70%, transparent);
    background: color-mix(in srgb, var(--cream-color) 18%, transparent);
}

.floating-contact-open {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 950;
    display: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.75rem);
    box-shadow: 0 1.2rem 3rem color-mix(in srgb, var(--charcoal-color) 28%, transparent);
}

.floating-contact-open.is-visible {
    display: inline-flex;
    opacity: 0.98;
    pointer-events: auto;
    transform: translateY(0);
}

.service-dot {
    display: inline-flex;
    height: 3.25rem;
    width: 3.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: color-mix(in srgb, var(--secondary-color) 56%, var(--cream-color));
    color: var(--charcoal-color);
}

.service-dot.is-dark {
    background: color-mix(in srgb, var(--primary-color) 34%, transparent);
    border: 1px solid color-mix(in srgb, var(--secondary-color) 42%, transparent);
    color: var(--secondary-color);
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.promo-banner {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

.promo-banner:hover {
    transform: translateY(-0.35rem);
    box-shadow: var(--shadow-soft);
}

.promo-banner img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.request-status.success {
    display: block;
    border: 1px solid color-mix(in srgb, var(--primary-color) 50%, transparent);
    background: color-mix(in srgb, var(--primary-color) 16%, transparent);
    color: var(--charcoal-color);
}

.request-status.error {
    display: block;
    border: 1px solid color-mix(in srgb, var(--accent-color) 48%, transparent);
    background: color-mix(in srgb, var(--accent-color) 14%, transparent);
    color: var(--charcoal-color);
}

#instrumente,
#zubehoer,
#service,
#galerie,
#reviews,
#faq,
#beratung {
    scroll-margin-top: 6rem;
}

.request-modal {
    z-index: 1000;
}

.request-modal::backdrop {
    background: color-mix(in srgb, var(--charcoal-color) 52%, transparent);
    backdrop-filter: blur(8px);
}

@media (max-width: 1023px) {
    .request-card {
        position: relative;
        margin: 2rem auto 0;
    }
}

@media (max-width: 640px) {
    .request-card {
        width: min(28rem, 100%);
        border-width: 5px;
        border-radius: 2.5rem;
    }

    .floating-contact-open {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}

@keyframes bubbleDrift {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0.8rem, -1rem, 0) scale(1.06);
    }
}

@keyframes iconWiggle {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    35% {
        transform: rotate(-8deg) scale(1.08);
    }
    70% {
        transform: rotate(7deg) scale(1.04);
    }
}

.catalog-filter.is-active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--cream-color);
}

.catalog-hidden {
    display: none;
}

.product-zoom-trigger {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: hidden;
    cursor: zoom-in;
}

.product-zoom-trigger img {
    transition: transform 400ms ease;
}

.product-zoom-trigger:hover img {
    transform: scale(1.05);
}

.gallery-thumb {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: transform 300ms ease;
}

.gallery-thumb:hover {
    transform: translateY(-0.15rem);
}

.gallery-thumb img {
    transition: border-color 300ms ease, box-shadow 300ms ease;
}

.gallery-thumb:hover img {
    border-color: var(--primary-color);
}

.gallery-thumb.is-active img {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 38%, transparent);
}

.product-lightbox {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: hidden;
    color: var(--cream-color);
}

.product-lightbox::backdrop {
    background: color-mix(in srgb, var(--charcoal-color) 82%, transparent);
    backdrop-filter: blur(10px);
}

.product-lightbox__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 1rem;
}

.product-lightbox__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
}

.product-lightbox__stage img {
    max-width: 92vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-soft);
    opacity: 1;
    transition: opacity 300ms ease;
}

.product-lightbox.is-loaded .product-lightbox__stage img {
    opacity: 1;
}

.product-lightbox__spinner {
    position: absolute;
    font-size: 2rem;
    color: var(--cream-color);
}

.product-lightbox.is-loaded .product-lightbox__spinner {
    display: none;
}

.product-lightbox__close,
.product-lightbox__nav {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    width: 3rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--cream-color) 30%, transparent);
    background: color-mix(in srgb, var(--charcoal-color) 55%, transparent);
    color: var(--cream-color);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: background 300ms ease, border-color 300ms ease;
}

.product-lightbox__close {
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

.product-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.product-lightbox__nav[hidden] {
    display: none;
}

.product-lightbox__prev {
    left: 1rem;
}

.product-lightbox__next {
    right: 1rem;
}

.product-lightbox__close:hover,
.product-lightbox__nav:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.product-lightbox__caption {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90vw;
    margin: 0;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--charcoal-color) 62%, transparent);
    color: var(--cream-color);
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    backdrop-filter: blur(8px);
}

.product-lightbox__caption:empty {
    display: none;
}

@media (max-width: 640px) {
    .product-lightbox__nav {
        height: 2.5rem;
        width: 2.5rem;
    }

    .product-lightbox__prev {
        left: 0.5rem;
    }

    .product-lightbox__next {
        right: 0.5rem;
    }
}