@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

:root {
    --col1: #160f29;
    --col2: #1a2b3e;
    --col3: #1d4653;
    --col4: #206268;
    --col5: #237d7d;
    --creme: #a2785b;
    --linen: #ece7e2;
    --inkwell: #2c3639;
    --lunar: #3f4e4f;
    --lait: #dcd7c9;
    --header-color: var(--lait);
    --main-color: var(--inkwell);
    --floating-color: var(--col5);
    --primary-color: var(--inkwell);
    --secondary-color: var(--lunar);
    --accent-color: var(--col5);
    --text-color-dark: var(--col5);
    --text-color-light: var(--lait);
    --muted-color: #888;
}

/* ===== Grundlayout ===== */
html,
body {
    margin: 0;
    padding: 0;
    background: var(--primary-color);
    color: var(--text-color-light);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

/* ===== Floating Logo ===== */
.floating-logo {
    position: fixed;
    top: 5vh;
    left: 2vw;
    z-index: 1000
}

.floating-logo img {
    height: 6vh;
    width: auto;
    max-width: 20vw;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, .4))
}

/* ===== Nav ===== */
.service-nav {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 80vw;
    margin: 1.5vh auto;
    height: 5vh;
    background: var(--primary-color);
    border-radius: 1vh;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    z-index: 1
}

.service-nav .nav-item {
    flex: 1;
    text-align: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: .25s;
    color: var(--text-color-light);
    background: var(--secondary-color);
    border: 0
}

.service-nav .nav-item:hover,
.service-nav .nav-item.active {
    background: var(--accent-color);
    color: var(--lait);
    font-weight: 600
}

.service-nav .nav-item:focus-visible {
    outline: .35vh solid var(--accent-color);
    outline-offset: -.2vh
}

/* ===== Slider-Container ===== */
#slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 90vh;
    position: relative;
    overflow: hidden
}

.slider-wrapper {
    position: relative;
    width: 100vw;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center
}

/* ===== Karten ===== */
.service-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: var(--secondary-color);
    color: var(--text-color-light);
    border-radius: 1.25vw;
    box-shadow: 0 0 2.5vh rgba(0, 0, 0, .5);
    padding: 2vh 2vw;
    overflow: auto;
    transition: transform .5s ease, opacity .3s ease, box-shadow .3s ease, width .5s ease, height .5s ease, left .5s ease, right .5s ease;
}

/* Aktive Karte – zentral, breiter */
.service-card.active {
    width: 60vw;
    height: 72vh;
    z-index: 5;
    left: 50%;
    transform: translateX(-50%) scale(1);
    box-shadow: 0 1.2rem 2.2rem rgba(0, 0, 0, .24);
}

/* CTA-Span */
.CTA {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.25s ease;
    font-size: 1.5rem;
}

/* Sidecards (sichtbar, kompakt) */
.service-card.prev,
.service-card.next {
    width: 12vw;
    height: 30vh;
    top: 30%;
    z-index: 4;
    opacity: 1;
    transform: none;
    box-shadow: 0 .6rem 1.2rem rgba(0, 0, 0, .20);
    cursor: pointer;
    pointer-events: auto;
    padding: 1.2vh 1vw;
}

.service-card.prev {
    left: 3vw;
}

.service-card.next {
    right: 3vw;
}

/* Inhaltstypen: Preview vs. Vollinhalt */
.service-preview {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    height: 100%
}

.service-preview img {
    width: 8vw;
    height: auto;
    max-height: 38vh;
    object-fit: cover;
    border-radius: 1rem;
}

.service-preview h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--lait)
}

.service-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
    width: 100%
}

.service-content h2 {
    font-size: 2rem;
    margin: .25rem 0;
    color: var(--lait)
}

.service-content h3 {
    font-size: 1.1rem;
    margin: .5rem 0 0;
    color: var(--lait)
}

.service-content p {
    line-height: 1.6;
    margin: 0;
    font-size: 1.3rem;
}

service-content ul {
    margin: .5rem 0 0 1.25rem;
    display: grid;
    gap: .25rem;
    font-size: 1.2rem;
}

.service-content li {
    list-style: disc
}

/* Sichtbarkeit umschalten: inaktive = Preview, aktive = Content */
.service-card:not(.active) .service-content {
    display: none
}

.service-card:not(.active) .service-preview {
    display: flex
}

/* Pfeile */
.slider-arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    font-size: 2.6rem;
    color: var(--accent-color);
    cursor: pointer;
    z-index: 10;
    user-select: none;
    padding: 1.2vh 1vw;
    line-height: 1;
    transition: transform .2s ease
}

.slider-arrow:hover {
    transform: translateY(-50%) scale(1.1)
}

.slider-arrow:focus-visible {
    outline: .35vh solid var(--accent-color);
    border-radius: .6vh
}

.arrow-left {
    left: 2vw
}

.arrow-right {
    right: 2vw
}

/* Kontakt-Link unten */
.contact-link {
    position: absolute;
    bottom: 2vh;
    width: 100%;
    text-align: center;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color-light);
    z-index: 10;
    text-shadow: 0 .4vh 1.2vh rgba(0, 0, 0, .35)
}

.contact-link a {
    display: inline-block;
    margin-top: .3vh;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    border-bottom: .3vh solid transparent;
    transition: .2s
}

.contact-link a:hover {
    border-bottom-color: currentColor
}

/* Floating-Buttons */
.floating-button {
    position: fixed;
    width: 18vw;
    min-width: 180px;
    padding: 1.5vh 1vw;
    font-size: .9rem;
    background: var(--accent-color);
    color: var(--text-color-light);
    border-radius: 1vh;
    text-decoration: none;
    box-shadow: 0 0 1.2vh rgba(0, 0, 0, .4);
    z-index: 100;
    transition: .3s;
    line-height: 1.4;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center
}

.floating-button:hover {
    background: var(--secondary-color);
    transform: scale(1.05)
}

.floating-button:focus-visible {
    outline: .35vh solid var(--lait);
    outline-offset: .3vh
}

.floating-button strong {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: .4vh;
    color: var(--text-color-light)
}

.floating-button span {
    font-size: .8rem;
    color: var(--text-color-light)
}

.contact-float {
    bottom: 2vh;
    right: 2vw
}

.home-float {
    bottom: 2vh;
    left: 2vw
}

/* Download-Box */
.download-card {
    display: grid;
    gap: 0.6rem;
    padding: 1rem 1.25rem;
    border-radius: 0.8rem;
    background: transparent;
    backdrop-filter: blur(3px);
    margin-top: 0.5rem;
}

.download-card h3 {
    margin: 0;
    font-size: 1.05rem
}

.download-card p {
    margin: 0;
    opacity: .9
}

.download-card .dl-actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: stretch;
    gap: 1vw;
}

/* zwei sichtbare Buttons je 50% */
.download-card .dl-actions a {
    flex: 1 1 50%;
    max-width: 50%;
    text-align: center;
    justify-content: center;
}

.download-card .btn-dl,
.download-card .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6em 1.1em;
    border-radius: .6em;
    text-decoration: none;
    font-weight: 600;
    transition: transform .15s ease, filter .15s ease, background-color .2s ease
}

.download-card .btn-dl {
    background: var(--accent-color);
    color: var(--lait)
}

.download-card .btn-secondary {
    background: var(--lait);
    color: var(--accent-color);
    border: 1px solid rgba(255, 255, 255, .25)
}

.download-card .btn-dl:hover,
.download-card .btn-secondary:hover {
    transform: translateY(-.06em);
    filter: brightness(.98)
}

.download-card i {
    font-size: 1.2em;
    line-height: 1
}

/* Responsiv */
@media (max-width: 1024px) {
    .service-card.active {
        width: 78vw;
        height: 70vh
    }

    .service-card.prev,
    .service-card.next {
        width: 22vw;
        height: 56vh
    }

    .service-preview img {
        max-height: 32vh
    }
}

@media (max-width: 768px) {
    #slider-container {
        height: auto;
        min-height: 100vh
    }

    .slider-wrapper {
        height: calc(100vh - 20vh)
    }

    .service-card.active {
        width: 88vw;
        height: 68vh
    }

    .service-card.prev,
    .service-card.next {
        display: none
    }

    .slider-arrow {
        font-size: 2.2rem
    }

    .contact-link {
        font-size: .95rem;
        padding: 0 4vw
    }
}

/* Downloadbox am unteren Rand fixieren */
.service-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.service-content>*:not(.download-card) {
    flex-shrink: 0;
}

.service-content .download-card {
    margin-top: auto;
    align-self: stretch;
}

/* =========================
   ▼ Animations aus *_BAK ▼
   (leicht integriert, Layout bleibt deine aktuelle Version)
   ========================= */

/* Karten-Transitions / Will-change */
#slider-container .service-card {
    transition: opacity 420ms cubic-bezier(.2, .7, .2, 1),
        filter 420ms cubic-bezier(.2, .7, .2, 1),
        box-shadow 420ms cubic-bezier(.2, .7, .2, 1);
    will-change: opacity, filter, box-shadow;
}

/* Inaktive Sidecards: dezenter Blur & leichte Entsättigung (aus BAK) */
#slider-container .service-card.prev,
#slider-container .service-card.next {
    opacity: 0.86;
    /* filter: blur(1.6px) saturate(.92) contrast(.98); */
    transition: opacity 420ms cubic-bezier(.2, .7, .2, 1),
        filter 420ms cubic-bezier(.2, .7, .2, 1),
        box-shadow 420ms cubic-bezier(.2, .7, .2, 1);
    will-change: opacity, filter, box-shadow;
}

#slider-container .service-card.prev:hover,
#slider-container .service-card.next:hover {
    opacity: 0.92;
    /* filter: blur(1px) saturate(.96) contrast(1) !important; */
}

#slider-container .service-card.active {
    opacity: 1;
    filter: none !important;
    box-shadow: 0 1.2rem 2.2rem rgba(0, 0, 0, .24);
}

/* Inhalt der aktiven Karte: gestaffeltes Fade-Up (aus BAK) */
@keyframes vf-fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#slider-container .service-card.active .service-content>* {
    opacity: 0;
    transform: translateY(8px);
    animation: vf-fadeUp 480ms cubic-bezier(.2, .7, .2, 1) both;
}

#slider-container .service-card.active .service-content>*:nth-child(1) {
    animation-delay: .04s;
}

#slider-container .service-card.active .service-content>*:nth-child(2) {
    animation-delay: .08s;
}

#slider-container .service-card.active .service-content>*:nth-child(3) {
    animation-delay: .12s;
}

#slider-container .service-card.active .service-content>*:nth-child(4) {
    animation-delay: .16s;
}

#slider-container .service-card.active .service-content>*:nth-child(5) {
    animation-delay: .20s;
}

#slider-container .service-card.active .service-content>*:nth-child(6) {
    animation-delay: .24s;
}

#slider-container .service-card.active .service-content>*:nth-child(7) {
    animation-delay: .28s;
}

#slider-container .service-card.active .service-content>*:nth-child(8) {
    animation-delay: .32s;
}

/* Motion-Preference beachten */
@media (prefers-reduced-motion: reduce) {

    #slider-container .service-card,
    #slider-container .service-card.active .service-content>* {
        transition: none !important;
        animation: none !important;
    }
}