:root {
    --site-slider-blue: #1d3f7e;
    --site-slider-yellow: #ffcc00;
    --site-slider-white: #ffffff;
}

.site-slider {
    position: relative;
    width: calc(100% - 20px);
    min-height: clamp(34rem, 45vw, 52rem);
    overflow: hidden;
    background: var(--site-slider-blue);
    color: var(--site-slider-white);
    isolation: isolate;
    touch-action: pan-y;
    margin:0 10px;
    border-radius:30px;
    border-top:10px solid #ffcc00;
}

.site-slider__viewport,
.site-slider__slide,
.site-slider__media,
.site-slider__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.site-slider__slide {
    z-index: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 650ms ease, visibility 650ms ease;
}

.site-slider__slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.site-slider__media {
    display: block;
}

.site-slider__image {
    display: block;
    object-fit: cover;
    object-position: center;
}

.site-slider__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 48, 105, 0.88) 0%, rgba(10, 48, 105, 0.8) 20%, rgba(10, 48, 105, 0.48) 48%, rgba(10, 48, 105, 0.16) 68%, rgba(10, 48, 105, 0) 86%),
        linear-gradient(0deg, rgba(5, 24, 58, 0.32) 0%, transparent 42%);
}

/*
 * Kompakter Seitenheader: Das Element folgt dem in TYPO3 gepflegten
 * Desktop-Zuschnitt (21:9), bleibt auf kleinen Viewports aber gut nutzbar.
 */
.site-slider--header {
    height: min(42.857vw, 600px);
    min-height: 20rem;
    max-height: 600px;
    aspect-ratio: auto;
}

.site-slider--header .site-slider__inner {
    padding-block: 3.5rem 5rem;
}

.site-slider--header .site-slider__content h1,
.site-slider--header .site-slider__content h2,
.site-slider--header .site-slider__content h3 {
    font-size: 3rem;
    line-height: 3.4rem;
}

.site-slider__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items:flex-end;
    width: 100%;
    max-width:1200px;
    height: 100%;
    margin-inline: auto;
    padding-block: 5rem 7rem;
}

.site-slider__content {
    width: min(100%, 48rem);
    text-wrap: balance;
}

.site-slider__content h1,
.site-slider__content h2,
.site-slider__content h3 {
    max-width: 16ch;
    margin: 0 0 1.25rem;
    color: var(--site-slider-white);
    font-size: clamp(2.7rem, 5vw, 5.4rem);
    font-weight: 650;
    line-height: 1.03;
    letter-spacing: -0.035em;
}

.site-slider__content p {
    margin: 0 0 1rem;
    color: var(--site-slider-white);
    font-size: 3rem;
    line-height: 3.4rem;
}

.site-slider__content p.ce-eyebrow {
    color: #ffcc00;
    text-transform: none;
    letter-spacing: 0.1rem;
    font-size: 1.3rem;
    margin-bottom: 0;
    font-weight: 600;
}

.site-slider--header .site-slider__content p.ce-eyebrow {
    font-size: 0.9rem;
    line-height:1.4rem;
    margin-bottom:18px;
}

.site-slider__content a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
    margin: 1rem 0.7rem 0 0;
    padding: 0.8rem 1.65rem;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    color: var(--site-slider-white);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.site-slider__content a:first-of-type {
    border-color: var(--site-slider-yellow);
    background: var(--site-slider-yellow);
    color: var(--site-slider-blue);
}

.site-slider__content a:hover {
    border-color: var(--site-slider-white);
    background: var(--site-slider-white);
    color: var(--site-slider-blue);
    transform: translateY(-2px);
}

.site-slider__content a:focus-visible,
.site-slider__arrow:focus-visible,
.site-slider__dot:focus-visible {
    outline: 3px solid var(--site-slider-yellow);
    outline-offset: 4px;
}

.site-slider__arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    display: grid;
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(5, 24, 58, 0.16);
    color: var(--site-slider-white);
    cursor: pointer;
    place-items: center;
    transform: translateY(-50%);
    transition: background-color 180ms ease;
}

.site-slider__arrow:hover {
    background: rgba(5, 24, 58, 0.52);
}

.site-slider__arrow svg {
    width: 2rem;
    height: 2rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.site-slider__arrow--previous {
    left: 1rem;
}

.site-slider__arrow--next {
    right: 1rem;
}

.site-slider__pagination {
    position: absolute;
    z-index: 4;
    bottom: 2rem;
    left: 50%;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    transform: translateX(-50%);
}

.site-slider__dot {
    width: 0.85rem;
    height: 0.85rem;
    padding: 0;
    border: 2px solid var(--site-slider-white);
    border-radius: 50%;
    background: var(--site-slider-white);
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.site-slider__dot.is-active {
    border-color: var(--site-slider-yellow);
    background: var(--site-slider-yellow);
    transform: scale(1.18);
}

.site-slider__status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
@media (max-width: 1200px) {

    .site-slider__content {
        padding-left:30px;   
    }   
    
}

@media (max-width: 767px) {
    
    .site-slider__image {
    object-position: bottom;
}
    
    .site-slider__content {
        padding-left:0px;   
    } 
    
    .site-slider {
        min-height: min(47rem, 78svh);
    }

    .site-slider__shade {
        background:
            linear-gradient(0deg, rgba(8, 39, 91, 0.96) 0%, rgba(8, 39, 91, 0.78) 45%, rgba(8, 39, 91, 0.08) 78%),
            linear-gradient(90deg, rgba(8, 39, 91, 0.25), transparent 80%);
    }

    .site-slider--header {
        height: min(125vw, 400px);
        min-height: 24rem;
        max-height: 400px;
        aspect-ratio: auto;
    }

    .site-slider--header .site-slider__inner {
        padding-block: 3rem 5.5rem;
    }

    .site-slider__inner {
        align-items: flex-end;
        width: 100%;
        padding: 0 30px 2rem;
    }

    .site-slider__content h1,
    .site-slider__content h2,
    .site-slider__content h3 {
        max-width: 18ch;
        font-size: clamp(2.2rem, 11vw, 3.6rem);
    }

    .site-slider__content p {
        font-size: 2rem;
        line-height: 2.6rem;
    }

    .site-slider__content a {
        margin-right: 0;
    }

    .site-slider__arrow {
        top: auto;
        bottom: 1.3rem;
        width: 2.75rem;
        height: 2.75rem;
        transform: none;
    }

    .site-slider__arrow--previous {
        left: 1.25rem;
    }

    .site-slider__arrow--next {
        right: 1.25rem;
    }

    .site-slider__pagination {
        bottom: 2.15rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-slider__slide,
    .site-slider__content a,
    .site-slider__arrow,
    .site-slider__dot {
        transition: none;
    }
}
