/* © 2025 Benjamin Zandt – www.zandt-benjamin.de  
Alle Rechte vorbehalten.  

Dieser Quellcode ist urheberrechtlich geschützt nach deutschem Urheberrecht.  
Jegliche Nutzung, Vervielfältigung, Veränderung oder Weitergabe ist ohne die 
ausdrückliche, schriftliche Genehmigung des Urhebers untersagt.  
Zuwiderhandlungen werden rechtlich verfolgt. */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    display: grid;
    place-content: center;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background: darkgray;
}

.flipbook {
    width: 900px;
    height: 650px;
}

/* Umschlagseiten */
.flipbook .hard {
    background: transparent;
    color: #fff;
    font-weight: bold;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flipbook .hard small {
    font-style: italic;
    font-weight: lighter;
    opacity: 0.7;
    font-size: 14px;
}

/* Inhaltsseiten */
.flipbook .page {
    background-color: transparent; /* verhindert Lücken bei 'contain' */
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Bilder */
.page img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Optionaler Text */
.flipbook .page small {
    font-size: 14px;
    margin-bottom: 10px;
}




/* ------------------------------
   RESPONSIVE BREAKPOINTS
   ------------------------------ */

/* Tablets quer (max. 1024px) */
@media (max-width: 1024px) {
    .flipbook {
        width: 80vw;
        height: calc(80vw * 650 / 900); /* Höhe proportional zur Breite */
    }
}

/* Tablets hoch / große Smartphones (max. 768px) */
@media (max-width: 768px) {
    .flipbook {
        width: 95vw;
        height: calc(95vw * 650 / 900);
    }
}

/* Smartphones hoch (max. 480px) */
@media (max-width: 480px) {
    body {
        background: black; /* besserer Kontrast auf kleinen Screens */
    }

    .flipbook {
        width: 100vw;
        height: calc(100vw * 650 / 900);
    }

    .flipbook .hard small,
    .flipbook .page small {
        font-size: 12px; /* Lesbarkeit auf kleinen Screens */
    }
}