/* 
 * Cinematic Hero:
 * - Bildgröße kommt aus <img width height>
 * - Container passt sich Bildseitenverhältnis an
 * - Text bleibt mittig auf dem Bild
 */

.cinematic-hero {
    position: relative;
    width: 100%;
    max-width: var(--hero-width, 777px);
    aspect-ratio: var(--hero-ratio, 777 / 437);
    margin: 0 auto;
    overflow: hidden;
    isolation: isolate;
    background: transparent;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 55%, rgba(0, 0, 0, .85) 72%, rgba(0, 0, 0, 0) 100%);
    mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 55%, rgba(0, 0, 0, .85) 72%, rgba(0, 0, 0, 0) 100%);
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    transform: translateY(0) scale(1);
    transform-origin: center center;
    will-change: transform, filter, opacity;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .3), rgba(0, 0, 0, .6));
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
    transition: backdrop-filter .3s ease, -webkit-backdrop-filter .3s ease;
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 24px;
}

.hero-title,
.hero-subtitle,
.hero-text {
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    background: none;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    color: #f7f9ff;
    text-shadow: 0 0 6px rgba(140, 180, 255, .16), 0 0 14px rgba(140, 180, 255, .10);
}

.hero-title a {
    color: inherit;
    text-decoration: none;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.6rem);
    margin-bottom: 12px;
    color: rgba(255, 255, 255, .94);
}

.hero-text {
    font-size: clamp(.95rem, 1.4vw, 1.2rem);
    color: rgba(255, 255, 255, .86);
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}