* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background: #000;
    color: #fff;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

.landing {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
            linear-gradient(
                    rgba(0, 0, 0, 0.18),
                    rgba(0, 0, 0, 0.78)
            ),
            url("../images/IndexStartbild.jpg") center center / cover no-repeat fixed;
}

/* ----- Navigation ----- */

.navigation {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    padding: 1.1rem 1rem;
    background: linear-gradient(
            rgba(0, 0, 0, 0.42),
            rgba(0, 0, 0, 0)
    );
    transition: background 0.35s ease, backdrop-filter 0.35s ease;
}

.navigation.scrolled {
    background: linear-gradient(
            rgba(0, 0, 0, 0.24),
            rgba(0, 0, 0, 0)
    );
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
}

.navigation a,
.footer-nav a,
.page-link {
    position: relative;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.75rem 1.1rem;
    border-radius: 999px;
    border: none;
    background: radial-gradient(
            circle at center,
            rgba(255, 255, 255, 0.16) 0%,
            rgba(255, 255, 255, 0.08) 42%,
            rgba(255, 255, 255, 0) 78%
    );
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition:
            background 0.25s ease,
            box-shadow 0.25s ease,
            transform 0.25s ease,
            backdrop-filter 0.35s ease;
}

.navigation.scrolled a {
    background: radial-gradient(
            circle at center,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.04) 42%,
            rgba(255, 255, 255, 0) 78%
    );
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    box-shadow: none;
}

.navigation a:hover,
.navigation a:focus,
.footer-nav a:hover,
.footer-nav a:focus,
.page-link:hover,
.page-link:focus {
    background: radial-gradient(
            circle at center,
            rgba(255, 255, 255, 0.24) 0%,
            rgba(255, 255, 255, 0.1) 45%,
            rgba(255, 255, 255, 0) 80%
    );
    box-shadow: 0 0 26px rgba(255, 255, 255, 0.24);
    transform: translateY(-2px);
}

/* ----- Hero-Content ----- */

.hero-content {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    width: min(90%, 980px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.9);
}

.hero-content h1 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.hero-content p {
    margin-top: 1.2rem;
    font-size: clamp(1.2rem, 2vw, 1.9rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ----- Scrolling-Sections ----- */

.scroll-sections {
    position: relative;
    z-index: 8;
    width: 100%;
}

.scroll-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 5vw 4rem;
    scroll-margin-top: 6rem;
}

.scroll-section.left {
    justify-content: flex-start;
}

.scroll-section.right {
    justify-content: flex-end;
}

.content-box {
    width: min(42vw, 560px);
    min-width: 300px;
    padding: 2rem;
    border-radius: 28px;
    background: rgba(0, 0, 0, 0.46);
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #f5f5f5;
    line-height: 1.7;
    opacity: 0;
    transition:
            opacity 0.7s ease,
            transform 0.7s ease;
}

.scroll-section.left .content-box {
    transform: translateX(-4rem);
}

.scroll-section.right .content-box {
    transform: translateX(4rem);
}

.scroll-section.visible .content-box {
    opacity: 1;
    transform: translateX(0);
}

/* ===== Any content-box ===== */

.content-box h2 {
    margin-bottom: 1.2rem;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.9);
}

.content-box h3 {
    margin-top: 1rem;
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
    line-height: 1.4;
}

.content-box p {
    font-size: 1.05rem;
}

.content-box a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* ----- Termine Content-Box ----- */

.termine-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: min(46vw, 620px);
    background: radial-gradient(
            circle at center,
            rgba(255, 255, 255, 0.09) 0%,
            rgba(0, 0, 0, 0.5) 48%,
            rgba(0, 0, 0, 0.38) 88%
    );
}

.termin-block {
    position: relative;
    padding: 2.65rem 1.35rem 1.25rem;
    border-radius: 22px;
    background: rgba(0, 0, 0, 0.48);
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.termin-date {
    position: absolute;
    top: 0.85rem;
    left: 0.95rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.termin-block.is-past {
    opacity: 0.68;
    background: rgba(28, 24, 18, 0.5);
    box-shadow: 0 0 16px rgba(230, 210, 170, 0.07);
    border: 1px solid rgba(230, 210, 170, 0.2);
}

.termin-block.is-past .termin-date {
    background: rgba(230, 210, 170, 0.14);
    color: rgba(245, 235, 215, 0.9);
}

.termin-block.is-cancelled {
    opacity: 0.55;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.22);
}

.termin-block.is-cancelled h3 {
    text-decoration: line-through;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.75);
}

.termin-block.is-cancelled .termin-date {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.55);
}

.termin-block.is-cancelled .termin-status {
    position: absolute;
    top: 0.85rem;
    right: 0.95rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ----- CUSTOM class ----- */

.termin-block.is-special {
    opacity: 0.65;
    background: rgba(22, 16, 30, 0.5);
    box-shadow: 0 0 16px rgba(178, 140, 255, 0.08);
    border: 1px solid rgba(178, 140, 255, 0.18);
}

.termin-block.is-special h3 {
    /*text-decoration: wavy underline;
    text-decoration-color: rgba(178, 140, 255, 0.5);*/
    color: rgba(255, 255, 255, 1.0);
}

.termin-block.is-special .termin-date {
    background: rgba(178, 140, 255, 0.14);
    color: rgba(255, 255, 255, 1.0);
}

.termin-block.is-special .termin-status {
    position: absolute;
    top: 0.85rem;
    right: 0.95rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(178, 140, 255, 0.16);
    color: #e6dcff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(178, 140, 255, 0.3);
}

.termin-divider {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.termin-divider::before,
.termin-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(
            90deg,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0.45),
            rgba(255, 255, 255, 0)
    );
}

/* ===== Sound Content-Box Media player ===== */

.sound-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: min(46vw, 620px);
    background: radial-gradient(
            circle at center,
            rgba(255, 255, 255, 0.09) 0%,
            rgba(0, 0, 0, 0.5) 48%,
            rgba(0, 0, 0, 0.38) 88%
    );
}

.track-category {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.8rem 0 0.5rem;
    padding: 0 0.6rem;
}

.track-category:first-child {
    margin-top: 0;
}

.track-category h4 {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

.track-category::before,
.track-category::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(
            90deg,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0.4),
            rgba(255, 255, 255, 0)
    );
}

.track {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.35rem 0.75rem 0.75rem;
    border-radius: 22px;
    background: rgba(0, 0, 0, 0.48);
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.25s ease;
}

.track:hover {
    background: rgba(0, 0, 0, 0.6);
}

.track .track-title {
    margin: 0; /* überschreibt .content-box h3 margin für die Flex-Zeile */
}

.track-play {
    position: relative;
    flex: none;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.track-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); /* Start bei 12 Uhr statt 3 Uhr */
    pointer-events: none;
}

.track-ring__bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.18);
    stroke-width: 2;
}

.track-ring__progress {
    fill: none;
    stroke: rgba(255, 255, 255, 0.35);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 169.6; /* 2 * PI * 27 (Radius), siehe JS */
    stroke-dashoffset: 169.6;
    transition: stroke-width 0.15s linear, stroke 0.15s linear;
}

.track-icon {
    position: relative;
    display: flex;
    width: 20px;
    height: 20px;
    color: #fff;
}

.track-icon svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.track-title {
    font-size: 1.05rem;
    color: #fff;
    letter-spacing: 0.02em;
}

.track.is-playing .track-play {
    background: rgba(0, 0, 0, 0.75);
}

/* ----- Bilder Content-Box Media Libary ----- */

.image-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: min(46vw, 620px);
    background: radial-gradient(
            circle at center,
            rgba(255, 255, 255, 0.09) 0%,
            rgba(0, 0, 0, 0.5) 48%,
            rgba(0, 0, 0, 0.38) 88%
    );
}

.gallery {
    border-radius: 22px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.48);
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.gallery-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.gallery-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
}

.gallery-image.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 2;
}

.gallery-arrow:hover {
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
}

.gallery-arrow svg {
    width: 20px;
    height: 20px;
}

.gallery-arrow--prev {
    left: 0.75rem;
}

.gallery-arrow--next {
    right: 0.75rem;
}

.gallery-counter {
    position: absolute;
    bottom: 0.85rem;
    right: 0.95rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    z-index: 2;
}

@media (max-width: 640px) {
    .image-box {
        width: 92vw;
    }
    .gallery-arrow {
        width: 38px;
        height: 38px;
    }
}


/* ===== Small blocks and bits ===== */
/* ----- Website-Crosslink blocks ----- */

.link-box {
    text-align: center;
}

.link-box p {
    margin-bottom: 1.5rem;
}

.page-link {
    display: inline-block;
    margin-top: 0.5rem;
}

/* ===== Footer ===== */

.footer-nav {
    position: relative;
    z-index: 9;
    width: 100%;
    margin-top: auto;
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    padding: 2.8rem 1rem 2rem;
    background: linear-gradient(
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 0.42)
    );
}

/* ===== ??? ===== */

@media (max-width: 960px) {
    .landing {
        background-attachment: scroll;
    }

    .scroll-section,
    .scroll-section.left,
    .scroll-section.right {
        justify-content: center;
        min-height: auto;
        padding: 7rem 1rem 3rem;
    }

    .content-box,
    .termine-box {
        width: min(92vw, 620px);
        min-width: 0;
    }

    .scroll-section.left .content-box,
    .scroll-section.right .content-box {
        transform: translateY(2rem);
    }

    .scroll-section.visible .content-box {
        transform: translateY(0);
    }
}

@media (max-width: 760px) {
    .navigation,
    .footer-nav {
        flex-wrap: wrap;
        gap: 0.55rem;
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }

    .navigation {
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
    }

    .footer-nav {
        padding-top: 2rem;
        padding-bottom: 1.4rem;
    }

    .navigation a,
    .footer-nav a {
        padding: 0.55rem 0.75rem;
        font-size: 0.82rem;
    }

    .hero-content h1 {
        font-size: clamp(2.6rem, 13vw, 4.5rem);
    }

    .hero-content p {
        font-size: 1rem;
    }

    .content-box {
        padding: 1.5rem;
    }

    .content-box p {
        font-size: 1rem;
    }
}