/* --------------------------------------------- */
/* GLOBAL */
/* --------------------------------------------- */

body {
    margin: 0;
    padding: 0;
    background: #000;
}

/* Mini-Oval Logo-Button oben links */
.mini-oval {
    position: fixed;
    top: 20px;
    left: 20px;

    width: 140px;
    height: 80px;

    background: rgb(100, 100, 100);
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 999;
    text-decoration: none;
    transition: 0.25s ease;
}

.mini-oval:hover {
    background: rgb(120, 120, 120);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* Logo im Mini-Oval */
.mini-oval-icon {
    height: 120%;
    width: auto;
    object-fit: contain;
    opacity: 0.95;
}

/* Dice&Screen Hintergrund */
.dice-screen-page {
    min-height: 100vh;
    width: 100%;
    padding: 60px 0;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column-reverse;
}

#wall-grid {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    display: grid;
    grid-auto-rows: 400px;
    min-height: 200vh;
}

#wall-grid div {
    width: 400px;
    height: 400px;
    background-size: cover;
}
.timeline-block.center {
    display: flex;
    justify-content: center;
}

.timeline-block.center .text-cell {
    width: 100%;
    max-width: 900px;
}

.features-cta-wrap {
    display: flex;
    justify-content: center;
    margin: 10px 0 40px;
    position: relative;
    z-index: 3;
}

.features-cta-link {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 999px;
    border: 1px solid rgba(240, 227, 189, 0.45);
    background:
        linear-gradient(180deg, rgba(64, 52, 33, 0.92), rgba(42, 33, 20, 0.92));
    color: #f0e3bd;
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.65);
    box-shadow:
        0 8px 14px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.features-cta-link:hover {
    transform: translateY(-2px);
    background:
        linear-gradient(180deg, rgba(86, 70, 44, 0.95), rgba(52, 41, 24, 0.95));
    box-shadow:
        0 12px 18px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.features-cta-link:focus-visible {
    outline: 2px solid rgba(240, 227, 189, 0.85);
    outline-offset: 3px;
}


/* --------------------------------------------- */
/* TIMELINE BLOCKS – echte Mittelachse */
/* --------------------------------------------- */

.timeline-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;        /* Zellen oben ausrichten */
    justify-items: center;
    margin: clamp(30px, 10vw, 250px) 0;
}

/* Neue Struktur: jede Seite hat eine eigene Zelle */
.image-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 0 40px;

    width: fit-content;      /* <<< verhindert riesige Bilder */
    max-width: 550px;        /* <<< optional */
}
.text-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 0 40px;

    width: 650px;            /* <<< exakt wie die Tafel */
}


/* Left/Right Umschaltung */
.timeline-block.left .image-cell { grid-column: 1; }
.timeline-block.left .text-cell  { grid-column: 2; }

.timeline-block.right .image-cell { grid-column: 2; }
.timeline-block.right .text-cell  { grid-column: 1; }

/* --------------------------------------------- */
/* BILD + FENSTERRAHMEN */
/* --------------------------------------------- */

.timeline-image {
    position: relative;
    display: inline-block;
    z-index: 2;
    filter:
        drop-shadow(0 10px 18px rgba(0,0,0,0.6))
        drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

.timeline-image img {
    display: block;
    width: 100%;
    max-width: 550px;
    max-height: 500px;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: inset 0 0 25px rgba(0,0,0,0.45);
}

.timeline-image::before {
    content: "";
    position: absolute;
    top: -9%;
    left: -9%;
    right: -9%;
    bottom: -9%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
}

/* Fensterrahmen Varianten */
.frame-1::before { background-image: url("../assets/frames/Windowframe_A1.png"); }
.frame-2::before { background-image: url("../assets/frames/Windowframe_A2.png"); }
.frame-3::before { background-image: url("../assets/frames/Windowframe_A3.png"); }
.frame-4::before { background-image: url("../assets/frames/Windowframe_A4.png"); }

/* --------------------------------------------- */
/* TAFEL / TEXTBEREICH */
/* --------------------------------------------- */

.timeline-text {
    width: 650px;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;

    padding: 40px 50px;
    box-sizing: border-box;

    border-radius: 12px;

    filter:
        drop-shadow(0 10px 18px rgba(0,0,0,0.6))
        drop-shadow(0 4px 8px rgba(0,0,0,0.4));

    color: #8f8772;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.timeline-text h3 {
    font-family: 'Cinzel Decorative', serif;
}

.timeline-text p,
.timeline-text h3 {
    text-align: center;
}

.timeline-text.texture-a {
    background-image: url("../assets/frames/Steintafel_A1.png");
}

.timeline-text.texture-b {
    background-image: url("../assets/frames/Steintafel_A2.png");
}
.timeline-text h3,
.timeline-text p {
    color: #f0e3bd;
    text-shadow:
        2px 2px 3px rgba(0,0,0,0.85),
        -2px -2px 2px rgba(255,255,255,0.15);
}
/* --------------------------------------------- */
/* RESPONSIVE */
/* --------------------------------------------- */

@media (max-width: 1200px) {
    .timeline-block {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .image-cell,
    .text-cell {
        margin: 20px 0;
    }
}
@media (max-width: 1200px) {

    /* 1. Timeline auf 1 Spalte */
    .timeline-block {
        grid-template-columns: 1fr;
        margin: 60px 0; /* viel kleiner */
        row-gap: 70px;
    }

    /* 2. Reihenfolge: Bild oben, Text unten */
    .timeline-block .image-cell {
        order: 1;
    }
    .timeline-block .text-cell {
        order: 2;
    }

    /* 3. Left/Right neutralisieren */
    .timeline-block.left .image-cell,
    .timeline-block.left .text-cell,
    .timeline-block.right .image-cell,
    .timeline-block.right .text-cell {
        grid-column: 1 !important;
    }

    /* 4. Bildgröße anpassen */
    .timeline-image img {
        max-width: 90vw;
        max-height: 60vh;
    }

    /* 5. Fensterrahmen skalieren */
    .timeline-image::before {
        top: -12%;
        left: -12%;
        right: -12%;
        bottom: -12%;
    }

    /* 6. Tafeln skalieren */
    .timeline-text {
        width: 90vw;
        padding: 25px 20px;
        background-size: cover;
    }

    /* 7. Textgröße anpassen */
    .timeline-text h3 {
        font-size: 1.4rem;
    }
    .timeline-text p {
        font-size: 1rem;
        line-height: 1.4;
    }

    /* 8. Zellenbreite */
    .image-cell,
    .text-cell {
        width: 100%;
        max-width: 90vw;
        margin: 16px 0;
    }

    .timeline-block .text-cell {
        margin-top: 24px;
    }
}
@media (max-width: 1200px) {

    .lightbox-overlay {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 16px;
        overflow: hidden;
    }

    .lightbox-overlay img {
        width: auto;
        height: auto;
        max-width: 94vw;
        max-height: calc(100dvh - 32px);
        object-fit: contain;
        margin: 0;
    }
}





/* --------------------------------------------- */
/* FOOTER */
/* --------------------------------------------- */

.footer {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 120px;
    margin-bottom: 60px;
}

.footer-board {
    width: 450px;
    height: 35px;
    padding: 30px 40px;

    background-image: url("../assets/frames/Steintafel_A1.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;

    color: #f5e9c8;
    text-align: center;
    border-radius: 12px;

    filter:
        drop-shadow(0 10px 18px rgba(0,0,0,0.6))
        drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

.footer-board p {
    margin: 0;
    font-size: 1.1rem;
}

.footer-board a {
    color: #fdffa0;
    text-decoration: none;
    font-weight: bold;
}

.footer-board a:hover {
    color: #b4e95f;
    text-decoration: underline;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100svh;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(0,0,0,0.85);
    display: grid;
    place-items: center;
    z-index: 9999;
    cursor: zoom-out;
}

.lightbox-overlay img {
    width: auto;
    height: auto;
    max-width: min(calc(100vw - 32px), 1400px);
    max-height: calc(100svh - 32px);
    display: block;
    margin: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
}
