/* ---------------------------------------------------------- */
/* Design-Variablen / Grundlayout                            */
/* ---------------------------------------------------------- */
:root {
    --bg-eggshell: #141413;           /* Seitenhintergrund (schwarz/dunkel) */
    --accent: #ff0000;                /* Akzentfarbe */
    --text-dark: #f8f2f2;             /* Text auf dunklem BG */

    --nav-title-color-default: rgb(248, 242, 242);
    --nav-title-size-default: 1.2rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-eggshell);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 0;              /* Abstand zum oberen Rand */
}

/* Wrapper für Logo + roten Bereich ------------------------- */
.page {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* ---------------------------------------------------------- */
/* Header-Logo im SCHWARZEN Bereich                          */
/* ---------------------------------------------------------- */
.header-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-logo img {
    width: 300px;           /* Logo-Grösse */
    height: auto;
    object-fit: contain;
}

/* ---------------------------------------------------------- */
/* Roter Hauptbereich (.frame)                               */
/* ---------------------------------------------------------- */
.frame {
    width: 90vw;
    max-width: 1200px;
    height: 80vh;
    max-height: 700px;
    padding: 40px 40px 60px;
    border-radius: 12px;
    background: #e70909; /* EIN rotes Panel */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    display: grid;
    grid-template-columns: 220px 1fr 220px; /* links – mitte – rechts */
    gap: 40px;
    align-items: center;
}

/* ---------------------------------------------------------- */
/* Seitliche Navigation (Puck-Buttons)                       */
/* ---------------------------------------------------------- */
.side-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.nav-item {
    text-align: center;
    text-decoration: none;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.03em;
}

.side-nav .nav-item {
    position: relative;
    display: inline-block;
}

/* Puck-Grafiken */
.side-nav .nav-item img {
    display: block;
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border-radius: 50%;
    object-fit: contain;
    background: transparent;
}

/* Titel zum Puck */
.side-nav .nav-item span {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: var(--nav-title-size, var(--nav-title-size-default));
    color: var(--nav-title-color, var(--nav-title-color-default));
    font-weight: 700;
    text-transform: uppercase;
    pointer-events: none;
    white-space: nowrap;
}

/* Hover-Effekt Pucks */
.side-nav .nav-item:hover img {
    transform: scale(1.10);
    transition: transform 0.20s ease-out;
}

/* ---------------------------------------------------------- */
/* Coverflow-Zentrum                                         */
/* ---------------------------------------------------------- */
.coverflow-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1600px;
}

.coverflow {
    position: relative;
    width: 100%;
    max-width: 720px;
    height: 260px;
}

/* Versteckte Bildquelle für das Karussell */
.cf-source {
    display: none;
}

/* Navigationstasten */
.cf-nav {
    position: relative;
    z-index: 10;
    border: none;
    background: rgba(0, 0, 0, 0.25);
    color: #f8f2f2;
    padding: 6px 12px;
    margin: 0 8px;
    border-radius: 999px;
    font-size: 2rem;
    cursor: pointer;
}

.cf-nav:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* Coverflow-Items (300 × 200 px quer) */
.cf-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 200px;
    transform-origin: center center;
    transform-style: preserve-3d;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    background: #000;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

/* Bilder im Coverflow */
.cf-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Positionen (5 Elemente sichtbar) */
.cf-left-2 {
    transform: translate(-310px, -50%) rotateY(55deg) scale(0.72);
    opacity: 0.3;
    z-index: 1;
}

.cf-left-1 {
    transform: translate(-180px, -50%) rotateY(35deg) scale(0.85);
    opacity: 0.65;
    z-index: 2;
}

.cf-center {
    transform: translate(-50%, -50%) rotateY(0deg) scale(1);
    opacity: 1;
    z-index: 3;
}

.cf-right-1 {
    transform: translate(80px, -50%) rotateY(-35deg) scale(0.85);
    opacity: 0.65;
    z-index: 2;
}

.cf-right-2 {
    transform: translate(190px, -50%) rotateY(-55deg) scale(0.72);
    opacity: 0.3;
    z-index: 1;
}

/* ---------------------------------------------------------- */
/* Responsiveness                                             */
/* ---------------------------------------------------------- */
@media (max-width: 980px) {
    .frame {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto; /* links – mitte – rechts */
        height: auto;
    }

    .side-nav {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }

    .side-nav .nav-item img {
        width: 140px;
        height: 140px;
    }

    .coverflow {
        height: 240px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .cf-item {
        width: 260px;
        height: 180px;
    }

    .cf-left-2 { transform: translate(-270px, -50%) rotateY(55deg) scale(0.72); }
    .cf-left-1 { transform: translate(-160px, -50%) rotateY(35deg) scale(0.85); }
    .cf-right-1 { transform: translate(70px, -50%)  rotateY(-35deg) scale(0.85); }
    .cf-right-2 { transform: translate(170px, -50%) rotateY(-55deg) scale(0.72); }
}

@media (max-width: 680px) {
    .frame {
        padding: 24px;
    }

    .side-nav {
        gap: 20px;
    }

    .side-nav .nav-item img {
        width: 110px;
        height: 110px;
    }

    .cf-item {
        width: 220px;
        height: 150px;
    }
}
