/* Petrushka – layout */

.scene {
    min-height: 650px;
    padding: 5vh 7vw;
    display: flex;
    align-items: center;
    gap: 7vw;
    position: relative;
    overflow-wrap: anywhere;
}

.scene-copy {
    flex: 1;
    min-width: 0;
}

.eyebrow {
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 24px;
}

h1 {
    font-size: clamp(42px,5.8vw,90px);
    line-height: .98;
    letter-spacing: -.065em;
    margin: 0 0 32px;
    font-weight: 900;
}

h2 {
    font-size: clamp(42px,5.8vw,90px);
    line-height: .98;
    letter-spacing: -.065em;
    margin: 0 0 32px;
    font-weight: 900;
}

h3 {
    font-size: 26px;
    letter-spacing: -1px;
}

.small {
    font-size: 12px;
    line-height: 1.5;
}

.scene-menu {
    background: var(--paper);
    color: var(--forest);
}

.scene-reservation {
    background: var(--lime);
    color: var(--black);
}

.graphic {
    width: 38%;
    max-width: 420px;
    position: relative;
    flex-shrink: 0;
}

.menu-poster {
    width: 43%;
    font-size: clamp(26px,4.1vw,64px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.06em;
    border-top: 4px solid var(--forest);
    border-bottom: 4px solid var(--forest);
    padding: 26px 0;
    transform: rotate(-5deg);
    position: relative;
}

.menu-poster span {
    display: block;
}

.menu-poster b {
    color: var(--lime);
    font-size: 120px;
    line-height: .7;
    display: block;
    margin-top: 30px;
}

.reservation-slot {
    width: 44%;
}

.reservation-slot p {
    font-size: 15px;
    line-height: 1.6;
}

.slot-symbol {
    font-size: 60px;
    line-height: 1;
}

.visit-details {
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
}

.visit-details p {
    margin: 0;
}

.dialog-top button {
    border: 1px solid currentColor;
    background: transparent;
    color: inherit;
    width: 42px;
    height: 38px;
    font-size: 24px;
}

.site-footer nav {
    display: flex;
    gap: 24px;
}

.site-footer a {
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

html.has-scenes {
    overflow: hidden;
}

.has-scenes body.home {
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.has-scenes .site-header {
    flex: 0 0 auto;
}

.has-scenes .scene.is-before {
    transform: translateX(-110%);
}

.has-scenes .scene.is-active {
    transform: translateX(0);
    visibility: visible;
    z-index: 1;
}

.has-scenes .site-footer {
    flex: 0 0 auto;
}

.has-scenes body.admin-bar {
    height: calc(100dvh - 32px);
}

.document {
    max-width: 1000px;
    margin: 50px auto;
    padding: 30px;
    color: var(--paper);
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.document h1 {
    font-size: clamp(36px,5vw,64px);
}

.document h2 {
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.legal-dialog {
    width: min(800px,calc(100% - 32px));
    max-height: 85dvh;
    padding: 0;
    border: 0;
    background: var(--paper);
    color: black;
    overscroll-behavior: contain;
}

.legal-dialog::backdrop {
    background: #000b;
}

.dialog-top {
    position: sticky;
    top: 0;
    background: var(--paper);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 28px;
    border-bottom: 1px solid #0003;
    z-index: 1;
}

.dialog-top h2 {
    font-size: 26px;
    letter-spacing: -1px;
    margin: 0;
}

.legal-content {
    padding: 8px 28px 28px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.legal-content h2 {
    font-size: 24px;
    letter-spacing: -.5px;
    line-height: 1.3;
    margin: 24px 0 12px;
}

.legal-content h3 {
    font-size: 24px;
    letter-spacing: -.5px;
    line-height: 1.3;
    margin: 24px 0 12px;
}

.reservation-slot input {
    max-width: 100%;
}

.reservation-slot textarea {
    max-width: 100%;
}

.reservation-slot select {
    max-width: 100%;
}

@media(max-width:782px) {
    .has-scenes body.admin-bar {
        height: calc(100dvh - 46px);
    }
}

@media(max-width:650px) {
    .site-header {
        padding: 14px 6vw;
        flex-direction: column;
        gap: 8px;
        min-height: 0;
    }
}

@media(max-width:650px) {
    .scene {
        padding: 32px 7vw;
        min-height: 620px;
        gap: 24px;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
    }
}

@media(max-width:650px) {
    .scene-copy {
        flex: 0 0 auto;
    }
}

@media(max-width:650px) {
    h1 {
        font-size: clamp(42px,11vw,64px);
        margin-bottom: 24px;
    }
}

@media(max-width:650px) {
    h2 {
        font-size: clamp(42px,11vw,64px);
        margin-bottom: 24px;
    }
}

@media(max-width:650px) {
    .eyebrow {
        margin-bottom: 16px;
        font-size: 10px;
    }
}

@media(max-width:650px) {
    .graphic {
        width: 43%;
        max-width: 180px;
        align-self: flex-end;
        margin: -6px 10px 0 0;
    }
}

@media(max-width:650px) {
    .menu-poster {
        width: 65%;
        align-self: flex-end;
        padding: 14px 0;
        font-size: 28px;
    }
}

@media(max-width:650px) {
    .menu-poster b {
        position: absolute;
        right: 0;
        bottom: 12px;
        font-size: 80px;
        margin: 0;
    }
}

@media(max-width:650px) {
    .reservation-slot {
        width: 100%;
    }
}

@media(max-width:650px) {
    .slot-symbol {
        display: none;
    }
}

@media(max-width:650px) {
    .reservation-slot h3 {
        font-size: 20px;
        margin: 0 0 10px;
    }
}

@media(max-width:650px) {
    .reservation-slot p {
        margin: 0;
    }
}

@media(max-width:650px) {
    .visit-details {
        font-size: 12px;
        gap: 10px;
    }
}

@media(max-width:650px) {
    .site-footer {
        font-size: 9px;
        padding: 10px 6vw;
        gap: 12px;
    }
}

@media(max-width:650px) {
    .site-footer nav {
        gap: 16px;
    }
}

@media(max-width:650px) {
    .has-scenes .scene {
        justify-content: flex-start;
        padding-block: 24px;
    }
}

@media(max-height:690px) and (min-width:651px) {
    h1 {
        font-size: clamp(40px,5.6vw,70px);
        margin-bottom: 22px;
    }
}

@media(max-height:690px) and (min-width:651px) {
    h2 {
        font-size: clamp(40px,5.6vw,70px);
        margin-bottom: 22px;
    }
}

@media(max-height:690px) and (min-width:651px) {
    .graphic {
        max-width: 280px;
    }
}

@media(max-height:690px) and (min-width:651px) {
    .eyebrow {
        margin-bottom: 16px;
    }
}

@media(max-height:690px) and (min-width:651px) {
    .site-header {
        min-height: 80px;
        padding-block: 14px;
    }
}

@media(max-height:740px) and (max-width:650px) {
    .graphic {
        display: none;
    }
}

@media(max-height:740px) and (max-width:650px) {
    .menu-poster {
        font-size: 24px;
        padding: 10px 0;
    }
}

@media(max-height:740px) and (max-width:650px) {
    .menu-poster b {
        font-size: 64px;
    }
}

@media(max-height:740px) and (max-width:650px) {
    .scene {
        gap: 18px;
    }
}

@media(max-height:740px) and (max-width:650px) {
    .has-scenes .scene {
        padding-block: 20px;
    }
}

@media(max-height:740px) and (max-width:650px) {
    h1 {
        font-size: 42px;
        margin-bottom: 20px;
    }
}

@media(max-height:740px) and (max-width:650px) {
    h2 {
        font-size: 42px;
        margin-bottom: 20px;
    }
}

@media(prefers-reduced-motion:reduce) {
    .has-scenes .scene {
        transition: none;
    }
}

.graphic>.parsley-leaf {
    display: block;
    width: 100%;
    height: auto;
    max-height: 370px;
    color: var(--lime);
}

.menu-poster .poster-leaf {
    display: block;
    width: 92px;
    height: 120px;
    margin-top: 24px;
    font-size: inherit;
    line-height: 1;
}

.poster-leaf .parsley-leaf {
    display: block;
    width: 100%;
    height: 100%;
    color: var(--lime);
}

@media(max-width:650px) {
    .graphic>.parsley-leaf {
        max-height: 130px;
    }
}

@media(max-width:650px) {
    .menu-poster .poster-leaf {
        position: absolute;
        right: 0;
        bottom: 12px;
        width: 54px;
        height: 70px;
        margin: 0;
    }
}

@media(max-height:740px) and (max-width:650px) {
    .scene-start .graphic {
        display: block;
        width: 78px;
        align-self: flex-end;
        margin: 0 12px 0 0;
    }
}

@media(max-height:740px) and (max-width:650px) {
    .graphic>.parsley-leaf {
        max-height: 95px;
    }
}

@media(max-height:740px) and (max-width:650px) {
    .menu-poster .poster-leaf {
        width: 44px;
        height: 58px;
    }
}

.site-header {
    min-height: var(--header);
    padding: 24px 5vw;
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    background: var(--forest);
    color: var(--paper);
    border-bottom: 1px solid #eeeeee33;
    background-color: var(--forest);
    background-image: linear-gradient(rgba(0,25,0,.32),rgba(0,25,0,.32)),url('../images/tapete.svg');
    background-repeat: repeat;
    background-size: auto,640px 640px;
    background-position: center top;
}

.site-footer {
    min-height: var(--footer);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 5vw;
    background: var(--forest);
    color: var(--paper);
    font-size: 10px;
    letter-spacing: .5px;
    border-top: 1px solid #eeeeee33;
    background-color: var(--forest);
    background-image: linear-gradient(rgba(0,25,0,.32),rgba(0,25,0,.32)),url('../images/tapete.svg');
    background-repeat: repeat;
    background-size: auto,640px 640px;
    background-position: center top;
    text-shadow: 0 1px 3px #000;
}

.has-scenes .scenes {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    container-type: size;
}

.has-scenes .scene {
    position: absolute;
    inset: 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(110%);
    visibility: hidden;
    transition: transform .55s cubic-bezier(.22,.7,.25,1),visibility .55s;
    padding-block: 24px;
    touch-action: pan-y pinch-zoom;
    overflow-x: hidden;
}

@media(min-width:651px) {
    .has-scenes .scene-menu .menu-poster {
        font-size: clamp(22px,min(4.1vw,6vh),64px);
        padding-block: clamp(8px,2vh,26px);
    }
}

@media(min-width:651px) {
    .has-scenes .scene-menu .poster-leaf {
        height: clamp(30px,12vh,120px);
        width: clamp(24px,9vh,92px);
        margin-top: clamp(8px,2vh,24px);
    }
}

@supports(height:1cqh) {
    @media(min-width:651px) {
        .has-scenes .scene-menu .menu-poster {
            font-size: clamp(20px,min(4.1vw,10cqh),64px);
            padding-block: clamp(8px,3cqh,26px);
        }
    }
}

@supports(height:1cqh) {
    @media(min-width:651px) {
        .has-scenes .scene-menu .poster-leaf {
            height: clamp(30px,22cqh,120px);
            width: clamp(24px,17cqh,92px);
            margin-top: clamp(8px,3cqh,24px);
        }
    }
}

@container(height < 280px) {
    .has-scenes .scene-menu .menu-poster {
        display: none;
    }
}

@container(height < 280px) {
    .has-scenes .scene-start .graphic {
        display: none;
    }
}

@container(height < 280px) {
    .has-scenes .scene-menu h2 {
        font-size: clamp(30px,16cqh,48px);
        margin-bottom: 16px;
    }
}

@container(height < 280px) {
    .has-scenes .scene-start h1 {
        font-size: clamp(30px,16cqh,48px);
        margin-bottom: 16px;
    }
}

@container(height < 280px) {
    .has-scenes .scene .eyebrow {
        margin-bottom: 12px;
    }
}

.scene-reservation .reservation-slot {
    min-width: 0;
}

.has-scenes .scene-reservation .reservation-slot {
    border: 0;
    box-shadow: none;
    padding: 0;
    min-width: 0;
}

.has-scenes .scene-reservation {
    padding-block: 16px;
}

@media(max-width:650px) {
    .has-scenes .scene-reservation {
        gap: 14px;
    }
}





@media(max-width:650px) {
    .scene-reservation .eyebrow {
        margin-bottom: 8px;
    }
}

@container(height < 480px) {
    .has-scenes .scene-reservation {
        padding-block: 12px;
        gap: 12px;
    }
}



@media(max-width:650px) {
    @container(height < 480px) {
        .scene-reservation .scene-copy .eyebrow {
            display: none;
        }
    }
}



@media(max-width:650px) {
    @container(height < 480px) {
        .scene-reservation .visit-details:empty {
            display: none;
        }
    }
}

/* Startmotiv bleibt vollständig innerhalb der verfügbaren Szenenhöhe. */
.has-scenes .scene-start .graphic {
    min-height: 0;
    height: min(370px, 52vh);
    max-height: 100%;
}
.has-scenes .scene-start .graphic > .parsley-leaf {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
}
@supports (height: 1cqh) {
    .has-scenes .scene-start .graphic {
        height: min(370px, 70cqh);
    }
}
@media (max-width: 650px) {
    .has-scenes .scene-start .graphic {
        height: min(95px, 15vh);
        margin-top: 0;
        margin-bottom: 0;
    }
    @supports (height: 1cqh) {
        .has-scenes .scene-start .graphic {
            height: min(95px, 18cqh);
        }
    }
}

/* Gleiche Größenstaffelung wie die Überschriften der übrigen Szenen. */
@container(height < 280px) {
    .has-scenes .scene-reservation h2 {
        font-size: clamp(30px,16cqh,48px);
        margin-bottom: 16px;
    }
}
