/*
Theme Name: Warten 26 v6
*/

/* Lora Font */
@font-face {
    font-family: "Lora";
    font-style: normal;
    font-weight: 400;
    src: local("Lora"), local("Lora-Regular"), url("fonts/lora-v17-latin-regular.woff2") format("woff2"), url("fonts/lora-v17-latin-regular.woff") format("woff");
}

@font-face {
    font-family: "Lora";
    font-style: normal;
    font-weight: 700;
    src: local("Lora Bold"), local("Lora-Bold"), url("fonts/lora-v17-latin-700.woff2") format("woff2"), url("fonts/lora-v17-latin-700.woff") format("woff");
}

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

body {
    background: #000;
    font-family: "Lora", serif;
}

/* Carousel Container */
.carousel-inner {
    max-width: 600px;
    margin: 20px auto;
}

/* Carousel Item */
.carousel-item {
    position: relative;
    height: 500px;
    perspective: 1000px;
    text-align: center;
}

/* Card Container */
.card {
    position: relative;
    width: 90%;
    max-width: 300px;
    height: auto;
    transition: transform 1s ease;
    transform-style: preserve-3d;
    margin: 0 auto;
}

/* Card Front - RESPONSIVE */
.card-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 85vw;
    height: auto;
    aspect-ratio: 280 / 477;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background: url(img/ticket3.svg) no-repeat center center;
    background-size: cover;
    z-index: 2;
}

/* Card Back - RESPONSIVE */
.card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 85vw;
    height: auto;
    aspect-ratio: 280 / 477;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background: url(img/ticket3.svg) no-repeat center center;
    background-size: cover;
    transform: rotateY(180deg);
    z-index: 1;
    color: #000;
}

/* Flip State */
.flip .card {
    transform: rotateY(-180deg);
}

.resetflip img {
    max-height: 25px;
    width: auto;
}

/* Card Span - Content Container */
.cardspan {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
}

/* Header Row */
.header {
    display: flex;
    justify-content: space-between;
    padding: 10px;
}

.logo img {
    height: 35px;
}

.flip-trigger {
    cursor: pointer;
}

.flip-trigger img {
    height: 25px;
}

/* Content */
.content {
    padding: 20px;
    text-align: center;
}

.vorzeile {
    color: #333;
    font-size: 14px;
    margin-bottom: 10px;
}

.schlagzeile {
    font-size: 24px;
    font-weight: bold;
    color: #000;
}

.thumbnail {
    width: 100%;
    height: 150px;
    background: #ccc;
    margin: 20px 0;
}

/* Ensure mobile-offcanvas nav is positioned correctly */
@media (max-width: 991.98px) {
    .mobile-offcanvas {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        z-index: 1050;
        overflow-y: auto;
        background-color: #fff;
        display: none;
        /* Let JS handle toggle */
    }

    .offcanvas-active {
        overflow: hidden;
    }
}