:root {
    --container-width: 792px;
    --content-width: 768px;
    --ink: #1a1a1a;
    --paper: #ffffff;
    --bg: #d8d8d8;
    --rule: #4a4a4a;
    --font-body: "Roboto", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 1000px) and (min-height: 700px) {
    :root {
        --container-width: 1024px;
        --content-width: 1000px;
    }
}

* {
    box-sizing: border-box;
}

@font-face {
    font-family: "Roboto";
    src: url("fonts/Roboto-VariableFont_wdth,wght.woff2") format("woff2");
    font-weight: 400;
    /* font-style: normal; */
    font-display: swap;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body), sans-serif;
    color: var(--ink);
    background-color: var(--bg);
    /* Fallback for Browsers without image-set()-Support */
    background-image: url("images/hintergrund.jpg");
    /* Use WebP if supported, otherwise fall back to JPEG */
    background-image: image-set(
            url("images/hintergrund.webp") type("image/webp"),
            url("images/hintergrund.jpg") type("image/jpeg")
    );
    background-repeat: repeat;
    background-size: contain;
    /*min-height: 100vh;*/
}

img {
    display: block;
}

picture {
    display: block;
}

a {
    color: inherit;
}

a:hover {
    text-decoration: underline;
}

/* ---- page shell: white column centered on the patterned background ---- */

.page {
    max-width: var(--container-width);
    margin: 0 auto;
    background: var(--paper);
    /*min-height: 100vh;*/
    position: relative;
    box-shadow: 0 -25px 60px rgba(0, 0, 0, 0.4), 0 25px 60px rgba(0, 0, 0, 0.4),
    0 -10px 25px rgba(0, 0, 0, 0.2), 0 10px 25px rgba(0, 0, 0, 0.2);
}


.content-inner {
    max-width: var(--content-width);
    margin: 0 auto;
}

/* ---- header ---- */

.site-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 24px 20px;
}

.menu-toggle {
    align-self: flex-end;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    line-height: 0;
}

.menu-toggle img {
    width: 28px;
    height: 28px;
}

.logo {
    display: inline-block;
    line-height: 0;
    margin-top: 6px;
}

.logo-img {
    height: 120px;
    width: auto;
    align-self: center;
}

.site-nav {
    position: fixed;
    inset: 0;
    background: var(--paper);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    font-size: 22px;
    font-weight: 600;
    transform: translateY(-100%);
    transition: transform 0.25s ease;
}

.site-nav.open {
    transform: translateY(0);
}

.site-nav a {
    text-decoration: none;
}

.nav-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

/* ---- hero photo ---- */

.hero-photo {
    max-height: 100%;
    max-width: 97%;
    margin: 0 auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

@media (min-width: 1000px) {
    .hero-photo {
        max-width: 80%;
    }
}

.badge-row {
    text-align: center;
    margin: 20px 0;
}

.wortmarke {
    display: inline-block;
    height: 90px;
    width: auto;
    max-width: 90%;
}

.rule {
    margin: 20px auto;
    padding: 2%;
    line-height: 0;
}

.rule-img {
    width: 100%;
    height: auto;
}

/* ---- text block ---- */

.about {
    padding: 24px 24px 8px;
}

.about h1 {
    font-size: 17px;
    line-height: 1.35;
    margin: 0 0 14px;
}

.about p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 14px;
    color: #2a2a2a;
}

.event-details {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    margin: 20px 0 4px;
}

/* ---- image slider ---- */

.slider {
    position: relative;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.35s ease;
}

.slider-track picture {
    display: block;
    flex: 0 0 100%;
}

.slider-track img {
    max-width: 97%;
    margin: 0 auto;
    /*aspect-ratio: 4 / 5;*/
    object-fit: contain;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 16px 0;
}

.slider-controls button {
    width: 44px;
    height: 44px;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    line-height: 0;
}

.slider-controls img {
    width: 100%;
    height: 100%;
}

/* ---- video blocks ---- */

.video-block {
    position: relative;
    /*aspect-ratio: 16 / 10;*/
    /*display: block;*/
    /*flex: 0 0 100%;*/
}

.video-block img {
    max-width: 97%;
    max-height: 97%;
    margin: auto;
    padding-bottom: 0;
    object-fit: contain;
}

.video-block iframe {
    width: 97%;
    height: 97%;
    margin: auto;
    border: 0;
    display: block;
    object-fit: contain;
    aspect-ratio: 16/10;
}


.play-button {
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 0;
}

.play-button img {
    width: 100%;
    height: 100%;
}


/* ---- footer ---- */

.site-footer {
    padding: 28px 24px 40px;
    font-size: 13px;
    color: #555;
    display: flex;
    gap: 18px;
    justify-content: center;
}

.site-footer a {
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* ---- simple legal pages (Impressum / Datenschutz) ---- */

.legal {
    padding: 32px 24px 60px;
}

.legal h1 {
    font-size: 22px;
    margin-bottom: 20px;
}

.legal h2 {
    font-size: 16px;
    margin: 28px 0 8px;
}

.legal h3 {
    font-size: 14px;
    margin: 28px 0 8px;
}

.legal p,
.legal address,
.legal ul,
.legal li,
.legal.hosting {
    font-size: 14px;
    line-height: 1.6;
    font-style: normal;
    margin: 0 0 12px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 14px;
    text-decoration: none;
    color: var(--rule);
}

/* Error pages */

.error {
    padding: 24px 24px 8px;
}

.error h1 {
    font-size: 17px;
    line-height: 1.35;
    margin: 0 0 14px;
}

.error p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 14px;
    color: #2a2a2a;
}