[data-hero-slider] {
    height: min(70vh, 600px);
}

[data-hero-slider] .hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 700ms ease-in-out;
    pointer-events: none;
}

[data-hero-slider] .hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

[data-hero-slider] .hero-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.6);
    transition: all 300ms;
    border: 0;
    padding: 0;
    cursor: pointer;
}

[data-hero-slider] .hero-dot.is-active {
    background-color: rgb(255, 255, 255);
    width: 2rem;
}

[data-hero-slider] .hero-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.has-dropdown {
    position: relative;
}

.has-dropdown > .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.25rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(228, 228, 231, 0.7);
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 150ms ease, transform 150ms ease, visibility 150ms;
    z-index: 40;
}

.has-dropdown:hover > .dropdown-menu,
.has-dropdown:focus-within > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

[data-mobile-menu] {
    display: none;
}

[data-mobile-menu].is-open {
    display: block;
}

[data-scroll-top] {
    opacity: 0;
    transform: translateY(1rem);
    pointer-events: none;
    transition: opacity 300ms ease, transform 300ms ease;
}

[data-scroll-top].is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.map-frame {
    border: 0;
    display: block;
    width: 100%;
    height: 100%;
}

/* Scroll-Reveal: Inhalte faden beim Sichtbarwerden sanft nach oben ein.
   Der versteckte Ausgangszustand greift nur, wenn JavaScript aktiv ist
   (.js am <html>), damit Inhalte ohne JS immer sichtbar bleiben. */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 700ms ease-out, transform 700ms ease-out;
    will-change: opacity, transform;
}

.js [data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.js [data-reveal-delay="1"] { transition-delay: 100ms; }
.js [data-reveal-delay="2"] { transition-delay: 200ms; }
.js [data-reveal-delay="3"] { transition-delay: 300ms; }
.js [data-reveal-delay="4"] { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
    .js [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Fliesstext aus dem Backend-WYSIWYG (Startseite, Impressum). */
.prose-cms {
    font-family: var(--font-body);
    color: oklch(var(--foreground-700));
    line-height: 1.625;
}
.prose-cms > :first-child { margin-top: 0; }
.prose-cms > :last-child { margin-bottom: 0; }
.prose-cms p {
    font-size: 1rem;
    margin: 0 0 1rem;
}
@media (min-width: 768px) {
    .prose-cms p { font-size: 1.125rem; }
}
.prose-cms h2 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: oklch(var(--foreground-950));
    font-size: 1.25rem;
    margin: 1.75rem 0 0.75rem;
}
@media (min-width: 768px) {
    .prose-cms h2 { font-size: 1.5rem; }
}
.prose-cms a {
    color: oklch(var(--primary-600));
    text-decoration: underline;
}
.prose-cms a:hover { color: oklch(var(--primary-700)); }
.prose-cms ul,
.prose-cms ol {
    margin: 0 0 1rem;
    padding-left: 1.4rem;
}
.prose-cms ul { list-style: disc; }
.prose-cms ol { list-style: decimal; }
.prose-cms li { margin-bottom: 0.35rem; }
.prose-cms strong { font-weight: 600; color: oklch(var(--foreground-900)); }

/* Cookie-Consent-Banner: kompakter & filigraner; alle drei Buttons in Primaerfarbe.
   !important, weil die Bibliothek ihr CSS zur Laufzeit einspeist (nach site.css). */
.privacypolicies-com---nb-simple {
    max-width: min(400px, 92vw) !important;
}

.privacypolicies-com---nb .cc-nb-main-container {
    padding: 1.15rem 1.25rem 1rem !important;
}

.privacypolicies-com---nb .cc-nb-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    margin-bottom: 0.35rem !important;
}

.privacypolicies-com---nb .cc-nb-text {
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    margin: 0 0 0.85rem 0 !important;
}

.privacypolicies-com---nb .cc-nb-okagree,
.privacypolicies-com---nb .cc-nb-reject,
.privacypolicies-com---nb .cc-nb-changep {
    display: inline-block !important;
    width: auto !important;
    font-weight: 500 !important;
    font-size: 12px !important;
    padding: 0.45rem 0.9rem !important;
    background-color: oklch(var(--primary-500)) !important;
    color: oklch(var(--background-50)) !important;
}

@media (max-width: 480px) {
    .privacypolicies-com---nb-simple {
        height: auto !important;
        max-height: 85vh !important;
    }
}

/* Referenzen: Kategorie-Filter */
.gallery-filter__btn {
    font-family: var(--font-label);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid oklch(var(--background-200));
    background-color: #ffffff;
    color: oklch(var(--foreground-700));
    cursor: pointer;
    transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease;
    white-space: nowrap;
}

.gallery-filter__btn:hover {
    color: oklch(var(--primary-600));
    border-color: oklch(var(--primary-300));
}

.gallery-filter__btn.is-active {
    background-color: oklch(var(--primary-500));
    border-color: oklch(var(--primary-500));
    color: oklch(var(--background-50));
}

/* Referenzen: Galerie-Kachel mit Zoom-Overlay */
.gallery-item {
    position: relative;
    cursor: pointer;
}

/* Vom Filter ausgeblendete Kacheln. Höhere Spezifität als die .block-Utility,
   damit das hidden-Attribut die Kachel wirklich verbirgt. */
.gallery-item[hidden] {
    display: none;
}

.gallery-item__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background-color: oklch(var(--foreground-950) / 0);
    opacity: 0;
    transition: background-color 300ms ease, opacity 300ms ease;
    pointer-events: none;
}

.gallery-item:hover .gallery-item__overlay {
    background-color: oklch(var(--foreground-950) / 0.4);
    opacity: 1;
}

/* Lightbox / Diashow */
body.no-scroll {
    overflow: hidden;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.92);
    opacity: 0;
    transition: opacity 250ms ease;
}

.lightbox.is-open {
    opacity: 1;
}

.lightbox[hidden] {
    display: none;
}

.lightbox__stage {
    margin: 0;
    max-width: min(92vw, 1100px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.lightbox__img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.375rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background-color: #111111;
    transition: opacity 200ms ease;
}

.lightbox__img.is-loading {
    opacity: 0;
}

.lightbox__caption {
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--font-label);
    font-size: 0.9rem;
    text-align: center;
    max-width: 60ch;
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.12);
    border: 0;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 200ms ease;
}

.lightbox__close:hover,
.lightbox__nav:hover {
    background-color: rgba(255, 255, 255, 0.26);
}

.lightbox__close {
    top: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.5rem;
}

.lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    font-size: 1.75rem;
}

.lightbox__nav--prev {
    left: 1rem;
}

.lightbox__nav--next {
    right: 1rem;
}

.lightbox__counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-label);
    font-size: 0.8rem;
}

@media (max-width: 640px) {
    .lightbox__nav {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }
    .lightbox__nav--prev {
        left: 0.5rem;
    }
    .lightbox__nav--next {
        right: 0.5rem;
    }
    .lightbox__img {
        max-height: 72vh;
    }
}
