@font-face {
    font-display: swap;
    font-family: 'Syne';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/syne/syne-v24-latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Syne';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/syne/syne-v24-latin-500.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Syne';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/syne/syne-v24-latin-600.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Syne';
    font-style: normal;
    font-weight: 800;
    src: url('../fonts/syne/syne-v24-latin-800.woff2') format('woff2');
}

:root {
    /* Farben */
    --green: #5F6860;
    --purple: #B09EA4;
    --yellow: #E4FC52;
    --white: #FAFAFA;
    --black: #000000;

    /* Typografie */
    --font-syne: 'Syne', sans-serif;

    /*mediaqueries*/
    --phoneLandescapeViewport: 480px;
    --tabletViewport: 768px;
    --tabletLandscapeViewport: 1024px;
    --dektopViewport: 1260px;
}

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

::selection {
    background-color: rgba(0, 0, 0, 0.1);
    color: yellow;
    text-decoration: line-through;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    position: relative;
    overflow-x: hidden;
    font-family: var(--font-syne);
    line-height: 1.4;
    color: var(--green);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--purple);
}

body::before {
    content: '';
    background-image: url('/assets/img/background-beim-franz.png');
    /* Fixed tile width instead of 100%: the source is a 3840px grain sheet, so
       scaling it to the viewport shrank the grain to ~10% on phones until it
       averaged out to nothing. max() keeps the wide-desktop look untouched
       while clamping the tile to a visible size on small screens. */
    background-size: max(100%, 1440px);
    background-repeat: repeat;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.36;
    mix-blend-mode: soft-light;
    pointer-events: none;
    /* Sits above the round buttons, the image slider and the green blocks
       (z-index 10) so the grain covers those — but below the header logo, claim
       and smiley (z-index 60), the newsletter badge (1000), the event modal
       (2000) and the back-to-top control (9999). */
    z-index: 50;
}

img, video, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

strong {
    font-weight: 800;
}

.boxed {
    position: relative;
    max-width: 1508px;
    padding: 0 50px;
    margin: 0 auto;
}

/*header*/
header .boxed {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    padding-top: 50px;
    padding-bottom: 100px;
    @media screen and (min-width: 1260px) {
        padding-top: 80px;
        padding-bottom: 130px;
    }
}

header .boxed .logo a img {
    position: relative;
    /* Above the grain texture (z-index 50) — logo, claim and smiley stay crisp. */
    z-index: 60;
    width: 170px;
    @media screen and (min-width: 1260px) {
        width: 230px;
    }
}
header .boxed .side-text img {
    position: relative;
    /* Above the grain texture (z-index 50). */
    z-index: 60;
    /* width:auto keeps the intrinsic aspect ratio — the width="100" HTML
       attribute would otherwise pin the box to 100px which, combined with the
       fixed height, squashed the claim. 70px height already from tablet up so
       landscape iPads get the layout's ~120x70. */
    width: auto;
    height: 51px;
    @media screen and (min-width: 768px) {
        height: 70px;
    }
}

/*header-block*/
.header-block {
    position: relative;
}
.header-block .headline-one {
    font-size: clamp(28px, calc((100vw - 100px) * 0.13), 120px);
    font-weight: 800;
    text-transform: uppercase;
    line-height: .84;
    overflow-wrap: break-word;
    @media screen and (min-width: 600px) and (max-width: 1259px) {
        font-size: 60px;
    }
    @media screen and (min-width: 1260px) and (max-width: 1350px) {
        font-size: 88px;
    }
    @media screen and (min-width: 1260px) {
        margin-left: -12px;
    }
}
.header-block .smiley-img {
    display: flex;
    position: absolute;
    bottom: -38px;
    right: 155px;
    /* Above the grain texture (z-index 50). */
    z-index: 60;
    @media screen and (min-width: 768px) {
        right: 90px;
        bottom: -75px;
    }
    @media screen and (min-width: 1260px) {
        right: 395px;
        bottom: -100px;
    }
    @media screen and (min-width: 1600px) {
        right: 395px;
        bottom: -130px;
    }
}
.header-block .smiley-img img {
    max-width: 100px;
    @media screen and (min-width: 768px) {
        max-width: 200px;
    }
    @media screen and (min-width: 1260px) {
        max-width: 280px;
    }
}

/*text-block*/
.text-block {
    margin: 90px 0 75px 0;
    @media screen and (min-width: 1260px) {
        margin: 100px 0 100px 0;
    }
}
.text-container {
    display: flex;
    flex-direction: column;
    gap: 85px;
    @media screen and (min-width: 1260px) {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: unset;
    }
}
.text-container .text {
    max-width: 700px;
    font-size: 20px;
    color: var(--black);
    font-weight: 600;
    @media screen and (min-width: 1260px) {
        font-size: 28px;
    }
}
.text-container .time {
    color: var(--black);
    display: flex;
    flex-direction: column;
    margin-top: 65px;
}
.text-container .time .time-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 20px;
    align-items: flex-start;
    margin-top: 20px;
    @media screen and (min-width: 1260px) {
        flex-direction: row;
        gap: 215px;
        align-items: flex-end;
        margin-top: unset;
    }
}
/* "Montag – Samstag / 8:30 – 18 Uhr" → Syne Bold (see @font-face note). The
   "* Frühstück to go …" note beside it stays regular. */
.text-container .time .time-container p:first-child {
    font-weight: 600;
}
.social-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    @media screen and (min-width: 1260px) {
        align-items: center;
        flex-direction: row;
    }
}
.social-container p {
    color: var(--black);
    font-size: 20px;
    @media screen and (min-width: 1260px) {
        font-size: 22px;
    }
}
.social-container .social-icons {
    position: relative;
}
.social-container .social-icons ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 15px;
}
.social-container .social-icons a svg  {
    transition: all .3s ease-in-out;
}
.social-container .social-icons a:hover svg {
    fill: var(--yellow);
}

/*image-block*/
.image-block {
    position: relative;
}
.image-block .img-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 700px;
    overflow: hidden;
    @media screen and (min-width: 1024px) {
        aspect-ratio: auto;
        height: 700px;
    }
}
.image-block .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.image-block-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .4s ease-in-out;
    z-index: 0;
}
.image-block-slide.is-active {
    opacity: 1;
    z-index: 1;
}
.image-block-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: none;
    background: none;
    color: var(--yellow);
    cursor: pointer;
    opacity: .85;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5));
    transition: opacity .2s ease-in-out;
}
.image-block-arrow:hover,
.image-block-arrow:focus-visible {
    opacity: 1;
}
.image-block-arrow-prev {
    left: 4px;
}
.image-block-arrow-prev svg {
    transform: scaleX(-1);
}
.image-block-arrow-next {
    right: 4px;
}
@media screen and (min-width: 1024px) {
    .image-block-slide {
        position: static;
        opacity: 1;
    }
    .image-block-slide:not(.is-active) {
        display: none;
    }
    .image-block-arrow {
        display: none;
    }
}

/*gallery-text-repeat-block*/
.gallery-text-repeat-block {
    position: relative;
    z-index: 1;
    background: var(--green);
}
.gallery-text-repeat-block .gallery {
    display: none;
    @media screen and (min-width: 1024px) {
        display: flex;
        flex-direction: row;
        gap: 30px;
        transform: translateY(-60px);
    }
}
.gallery-text-repeat-block .gallery .image-wrapper {
    width: 100%;
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}
.gallery-text-repeat-block .gallery .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-text-repeat-block .text-repeater {
    display: none;
    color: var(--purple);
    font-weight: 800;
    overflow: hidden;
    padding-bottom: 120px;
    @media screen and (min-width: 1024px) {
        display: block;
    }
}
.gallery-text-repeat-block .text-repeater-mobile {
    display: block;
    padding-top: 30px;
    @media screen and (min-width: 1024px) {
        display: none;
    }
}
.gallery-text-repeat-block .text-repeater p {
    white-space: nowrap;
    margin: 0;
    line-height: 0.85;
    text-transform: uppercase;
}
.gallery-text-repeat-block .text-repeater p:nth-child(1) {
    opacity: 1;
}
.gallery-text-repeat-block .text-repeater p:nth-child(2) {
    opacity: 0.75;
}
.gallery-text-repeat-block .text-repeater p:nth-child(3) {
    opacity: 0.55;
}
.gallery-text-repeat-block .text-repeater p:nth-child(4) {
    opacity: 0.35;
}
.gallery-text-repeat-block .text-repeater p:nth-child(5) {
    opacity: 0.2;
}
.gallery-text-repeat-block .text-repeater p:nth-child(6) {
    opacity: 0.1;
}
.gallery-text-repeat-block .text-repeater p:nth-child(7) {
    opacity: 0.05;
}

/*fullwidth-image-with-text-buttons-block*/
.fullwidth-image-with-text-buttons-block {
    width: 100%;
    position: relative;
    color: var(--purple);
    background: var(--green);
    @media screen and (min-width: 1024px) {
        min-height: 700px;
    }
}
.fullwidth-image-with-text-buttons-block img {
    height: 320px;
    width: 100%;
    object-fit: cover;
    object-position: right center;
    @media screen and (min-width: 1024px) {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        z-index: 0;
    }
}
.fullwidth-image-with-text-buttons-block .boxed {
    position: relative;
    z-index: 1;
}
.fullwidth-image-with-text-buttons-block .round-buttons {
    position: absolute;
    top: 0;
    left: 50%;
    width: max-content;
    z-index: 2;
    --slide-x: 0px;
    transform: translate(calc(-50% + var(--slide-x)), -70%);
    transition: transform .4s ease-in-out;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 10px;
    @media screen and (min-width: 768px) {
        gap: 20px;
    }
    @media screen and (min-width: 1260px) {
        gap: 30px;
    }
}
/*round-button (shared component, used in fullwidth-image + text-image-button blocks)*/
.round-button {
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 210px;
    height: 210px;
    padding: 16px;
    border: none;
    background: none;
    text-align: center;
    line-height: 1.4;
    font-family: var(--font-syne);
    font-size: 22px;
    font-weight: 500;
    color: var(--black);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.round-button::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 50%;
    transition: background-color .3s ease-in-out, inset .3s ease-in-out;
}
.round-button strong {
    display: block;
    font-weight: 800;
}
.round-button-yellow::before {
    background: var(--yellow);
}
.round-button-yellow:hover::before,
.round-button-yellow:focus-visible::before,
.round-button-yellow:active::before {
    background: var(--white);
    inset: -6px;
}
.round-button-white::before {
    background: var(--white);
}
.round-button-white:hover::before,
.round-button-white:focus-visible::before,
.round-button-white:active::before {
    background: var(--purple);
    inset: -6px;
}
.round-button-clone {
    display: none;
}
.round-buttons.is-sliding .round-button-clone {
    display: flex;
}
/* Hand the horizontal gesture to the JS swipe handler while keeping vertical
   page scroll native, so the sticky button row does not trap the finger. */
.round-buttons.is-sliding {
    touch-action: pan-y;
}

.headline-two {
    font-size: 40px;
    line-height: 1;
    text-transform: uppercase;
    font-weight: 800;
    padding: 135px 0 5px 0;
    max-width: 450px;
    @media screen and (min-width: 1024px) {
        font-size: 42px;
        padding: 17% 0 5px 0;
    }
}
.fullwidth-image-with-text-buttons-block .text-wrapper {
    margin-bottom: 60px;
    @media screen and (min-width: 1024px) {
        margin-bottom: unset;
    }
}
.fullwidth-image-with-text-buttons-block .headline-two {
    max-width: unset;
}
.fullwidth-image-with-text-buttons-block .headline-two .br-mobile {
    @media screen and (min-width: 1024px) {
        display: none;
    }
}
.fullwidth-image-with-text-buttons-block .headline-two .br-desktop {
    display: none;
    @media screen and (min-width: 1024px) {
        display: initial;
    }
}
.fullwidth-image-with-text-buttons-block .headline-two .keep-together {
    white-space: nowrap;
    @media screen and (min-width: 1024px) {
        white-space: normal;
    }
}
.fullwidth-image-with-text-buttons-block .boxed p {
    margin-top: 23px;
    color: var(--black);
    /* "Du findest uns hier" address line → Syne Medium. The "direkt an der
       Persiluhr:" line above stays bold through its own <strong>. */
    font-weight: 500;
    @media screen and (min-width: 768px) {
        font-size: 22px;
    }
    @media screen and (min-width: 1024px) {
        color: var(--purple);
    }
}
.fullwidth-image-with-text-buttons-block .boxed p:has(strong) {
    margin-top: 8px;
}

/*text-image-button-block*/
.text-image-button-block {
    padding: 80px 0 0 0;
    margin-bottom: -30px;
    @media screen and (min-width: 1260px) {
        padding: 115px 0;
        margin-bottom: unset;
    }
}
.text-image-button-block .boxed {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    position: relative;
    @media screen and (min-width: 1024px) {
        display: block;
    }
}
.text-image-button-block .image-wrapper {
    display: none;
    @media screen and (min-width: 1024px) {
        display: flex;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 450px;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
}
.text-image-button-block .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.text-image-button-block .text-wrapper {
    max-width: 820px;
    color: var(--black);
    @media screen and (min-width: 1024px) {
        margin-left: 440px;
    }
    @media screen and (min-width: 1400px) {
        margin-left: 550px;
    }
}
.text-image-button-block .text-wrapper .headline-two {
    margin: 25px 0;
    padding: 0;
    max-width: unset;
    color: var(--green);
    @media screen and (min-width: 1260px) {
        font-size: 64px;
    }
}
.text-image-button-block .text-wrapper p,
.text-image-button-block .text-wrapper span,
.text-image-button-block .text-wrapper li {
    font-size: 18px;
    @media screen and (min-width: 1260px) {
        font-size: 22px;
    }
}
.text-image-button-block .text-wrapper p {
    font-weight: 500;
    max-width: 570px;
    margin-bottom: 25px;
}
.text-image-button-block .text-wrapper li {
    position: relative;
    padding-left: 1.3em;
    font-weight: 500;
    margin: 15px 0;
    @media screen and (min-width: 1260px) {
        margin: 10px 0;
    }
}
.text-image-button-block .text-wrapper ul {
    padding-left: 20px;
}
/* Custom "*" bullet via ::before, not ::marker { content } — Safari/WebKit
   ignores the content property on ::marker, so the list rendered unmarked. */
.text-image-button-block .text-wrapper li::before {
    content: '*';
    position: absolute;
    left: 0;
    font-weight: 700;
}
.text-image-button-block .round-button {
    align-self: center;
    position: relative;
    z-index: 10;
    @media screen and (min-width: 1024px) {
        align-self: unset;
        position: absolute;
        right: 0;
        bottom: 55px;
    }
}

/*text-banner-block*/
.text-banner-block {
    height: 700px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
}
.text-banner-block > img {
    width: 100%;
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    z-index: 0;
}
.text-banner-block .wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: fit-content;
    gap: 95px;
    padding: 270px 0 0 0;
    position: relative;
    z-index: 1;
}
.text-banner-block .wrapper svg {
    width: min(270px, 72vw);
    height: auto;
    @media screen and (min-width: 1024px) {
        width: auto;
    }
}
.text-banner-block .wrapper img {
    display: none;
    @media screen and (min-width: 768px) {
        display: block;
    }
}
.text-banner-block .headline-two {
    color: var(--yellow);
    max-width: 280px;
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0;
}

/*spinning-link*/
/* total: 11s — 0.5s drehen, 5s halten, 0.5s zurück, 5s halten */
@keyframes autospin-a {
    0%    { transform: translateX(var(--spin-x)) rotate(0deg);   animation-timing-function: ease-in-out; }
    5%    { transform: translateX(var(--spin-x)) rotate(180deg); }
    50%   { transform: translateX(var(--spin-x)) rotate(180deg); animation-timing-function: ease-in-out; }
    55%   { transform: translateX(var(--spin-x)) rotate(0deg); }
    100%  { transform: translateX(var(--spin-x)) rotate(0deg); }
}

@keyframes autospin-first {
    0%    { opacity: 1; animation-timing-function: ease-in-out; }
    5%    { opacity: 0; }
    50%   { opacity: 0; animation-timing-function: ease-in-out; }
    55%   { opacity: 1; }
    100%  { opacity: 1; }
}

@keyframes autospin-last {
    0%    { opacity: 0; animation-timing-function: ease-in-out; }
    5%    { opacity: 1; }
    50%   { opacity: 1; animation-timing-function: ease-in-out; }
    55%   { opacity: 0; }
    100%  { opacity: 0; }
}

@keyframes autoscale-last {
    0%    { transform: scale(1);    animation-timing-function: ease-in-out; }
    5%    { transform: scale(1.05); }
    50%   { transform: scale(1.05); animation-timing-function: ease-in-out; }
    55%   { transform: scale(1); }
    100%  { transform: scale(1); }
}

.spinning-link {
    position: relative;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinning-link a {
    position: absolute;
    --spin-x: -50%;
    left: 50%;
    bottom: -40px;
    width: 220px;
    height: 220px;
    will-change: transform;
    transform: translateX(var(--spin-x));
    transition: transform 0.25s ease-out;
    @media screen and (min-width: 768px) {
        --spin-x: 0%;
        bottom: unset;
        left: 75%;
    }
}

.spinning-link a:hover {
    transform: translateX(var(--spin-x)) rotate(180deg);
}

.spinning-link .first-circle,
.spinning-link .last-circle {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    padding: 24px;
    transition: opacity 0.1s ease-out 0.1s;
    font-weight: 400;
    color: var(--black);
    font-size: 22px;
    max-width: 220px;
    @media screen and (min-width: 1260px) {
        font-size: 24px;
    }
}
.spinning-link .first-circle strong,
.spinning-link .last-circle strong {
    font-size: 20px;
    @media screen and (min-width: 1260px) {
        font-size: 22px;
    }
}

.spinning-link .first-circle::after,
.spinning-link .last-circle::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    z-index: -1;
    transition: transform 0.25s ease-in-out;
}

.spinning-link .first-circle {
    opacity: 1;
}

.spinning-link .first-circle::after {
    background: var(--white);
}

.spinning-link .last-circle {
    opacity: 0;
    transform: rotate(180deg);
}

.spinning-link .last-circle::after {
    background: var(--yellow);
}

.spinning-link a:hover .first-circle {
    opacity: 0;
}

.spinning-link a:hover .first-circle::after {
    transform: scale(1); /* 220px */
}

.spinning-link a:hover .last-circle {
    opacity: 1;
}

.spinning-link a:hover .last-circle::after {
    transform: scale(1.05); /* 230px */
}

/* Mobile: kein Hover → simulierter Hover-Loop */
@media (hover: none) {
    .spinning-link a {
        animation: autospin-a 11s linear infinite;
    }
    .spinning-link .first-circle {
        animation: autospin-first 11s linear infinite;
        transition: none;
    }
    .spinning-link .last-circle {
        animation: autospin-last 11s linear infinite;
        transition: none;
    }
    .spinning-link .last-circle::after {
        animation: autoscale-last 11s linear infinite;
    }
}

/*footer*/
footer {
    background: var(--green);
    padding: 65px 0;
    color: var(--purple);
    @media screen and (min-width: 1260px) {
        padding: 65px 0 50px 0;
    }
}
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    @media screen and (min-width: 768px) {
        display: none;
    }
}
.footer-logo-img {
    width: 330px;
    height: auto;
}
footer .boxed {
    @media screen and (min-width: 900px) {
        display: grid;
        grid-template-columns: max-content max-content;
        grid-template-areas:
            'brand hours'
            'links hours'
            'icons hours';
        column-gap: 165px;
        row-gap: 20px;
        align-items: start;
    }
}
footer .text {
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
    @media screen and (min-width: 900px) {
        grid-area: brand;
    }
}
footer .footer-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 30px 0 60px 0;
    @media screen and (min-width: 900px) {
        grid-area: icons;
        justify-content: flex-start;
        margin-top: 20px;
        /* icons are the last thing in the left column; the footer's own
           padding-bottom already spaces them from the edge. */
        margin-bottom: 0;
    }
}
footer .footer-icons a {
    display: flex;
}
footer .footer-icons svg {
    width: 30px;
    height: auto;
}
footer .footer-icons .icon-base {
    fill: var(--purple);
    transition: opacity .2s ease-in-out;
}
footer .footer-icons .icon-hover {
    fill: var(--yellow);
    opacity: 0;
    transition: opacity .2s ease-in-out;
}
footer .footer-icons a:hover .icon-base {
    opacity: 0;
}
footer .footer-icons a:hover .icon-hover {
    opacity: 1;
}
footer .footer-icons-divider {
    width: 2px;
    height: 18px;
    background: currentColor;
    opacity: .5;
}
footer .opening-hours {
    margin: 30px 0 0 0;
    @media screen and (min-width: 900px) {
        grid-area: hours;
        margin-top: 0;
    }
}
footer .opening-hours-heading {
    font-weight: 800;
}
footer .opening-hours-body {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}
footer .opening-hours-labels,
footer .opening-hours-times {
    display: flex;
    flex-direction: column;
    font-weight: 500;
}
footer .opening-hours-days,
footer .opening-hours-range {
    margin-bottom: 1.4em;
    font-weight: 500;
}

@media screen and (max-width: 899px) {
    footer .opening-hours-body {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 0 24px;
    }
    footer .opening-hours-labels,
    footer .opening-hours-times {
        display: contents;
    }
    footer .opening-hours-labels p {
        grid-column: 1;
    }
    footer .opening-hours-times p {
        grid-column: 2;
    }
    footer .opening-hours-labels p:nth-child(1),
    footer .opening-hours-times p:nth-child(1) {
        grid-row: 1;
    }
    footer .opening-hours-labels p:nth-child(2),
    footer .opening-hours-times p:nth-child(2) {
        grid-row: 2;
    }
    footer .opening-hours-labels p:nth-child(3),
    footer .opening-hours-times p:nth-child(3) {
        grid-row: 3;
    }
    footer .opening-hours-labels p:nth-child(4),
    footer .opening-hours-times p:nth-child(4) {
        grid-row: 4;
    }
}
footer .legal-links {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin: 30px 0 0 0;
    @media screen and (min-width: 900px) {
        gap: 30px;
        grid-area: links;
        margin-top: 0;
    }
}
footer .legal-links a {
    position: relative;
    font-weight: 500;
    transition: all .1s ease-in-out;
}
footer .legal-links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    opacity: 0;
    background: currentColor;
}
footer .legal-links a:hover {
    color: var(--yellow);
}
footer .legal-links a:hover::after {
    opacity: 1;
}
.back-to-top {
    position: fixed;
    z-index: 9999;
    bottom: 30px;
    right: 30px;
    color: var(--purple);
    line-height: 0;
    transition: transform .2s ease-in-out, color .2s ease-in-out;
}
.back-to-top:hover {
    transform: scale(1.2);
    color: var(--yellow);
}

/*event-modal*/
.event-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
    border: none;
    /* overflow-x must be pinned explicitly: once overflow-y is auto the browser
       promotes overflow-x from visible to auto too, which let the whole panel be
       dragged sideways on mobile whenever a child (e.g. the iOS date field) was
       a hair too wide. */
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--green);
    color: var(--purple);
}
.event-modal[open] {
    display: flex;
    align-items: safe center;
    justify-content: center;
}
.event-modal-inner {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 70px 0 60px 0;
}
/* The grain texture is anchored to .event-modal-inner (a normal-flow element that
   is exactly as tall as the scrollable content) instead of .event-modal itself
   (the scroll container), because an absolutely positioned inset:0 layer on the
   scroll container is sized to the visible viewport only and does not scroll with
   the content — it would stay pinned while the content scrolls past it. */
#event-modal::before {
    content: none;
}
.event-modal::before,
.event-modal-inner::before {
    content: '';
    background-image: url('/assets/img/background-beim-franz.png');
    background-size: 100%;
    background-repeat: repeat;
    position: absolute;
    inset: 0;
    opacity: 0.36;
    mix-blend-mode: soft-light;
    pointer-events: none;
    z-index: 1;
}
html.modal-open {
    overflow-y: hidden;
}
.event-modal::backdrop {
    background: rgba(0, 0, 0, .6);
}
.event-modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--black);
    color: var(--white);
    cursor: pointer;
    transition: background-color .2s ease-in-out;
    @media screen and (min-width: 1260px) {
        top: 40px;
        right: 50px;
    }
}
.event-modal-close:hover,
.event-modal-close:focus-visible {
    background: var(--yellow);
    color: var(--black);
}
.event-modal-heading {
    color: var(--purple);
    max-width: unset;
    padding: 0 0 40px 0;
    @media screen and (min-width: 1260px) {
        font-size: 42px;
    }
}
.event-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 448px;
}
.event-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.event-form-field label {
    font-weight: 600;
    font-size: 16px;
    color: var(--black);
}
.event-form-field input,
.event-form-field textarea {
    width: 100%;
    border: none;
    border-radius: 0;
    padding: 16px 18px;
    background: var(--purple);
    color: var(--black);
    font-family: var(--font-syne);
    font-size: 16px;
    font-weight: 500;
    resize: vertical;
}
.event-form-field input {
    height: 64px;
    padding: 0 18px;
}
.event-form-field textarea {
    height: 319px;
}
.event-form-field input::placeholder,
.event-form-field textarea::placeholder {
    color: var(--black);
    opacity: 1;
}
.event-form-field input:focus-visible,
.event-form-field textarea:focus-visible {
    outline: none;
    background: var(--yellow);
}
.event-form-date-wrapper {
    position: relative;
}
.event-form-field-date input {
    padding-right: 68px;
    color: transparent;
    -webkit-text-fill-color: transparent;
    /* iOS Safari gives input[type=date] an intrinsic min-width and ignores
       width:100% unless appearance is reset — that made the date field wider
       than the other inputs on mobile. The native value is hidden anyway
       (transparent text + custom overlay span), so it is safe to neutralise. */
    -webkit-appearance: none;
    appearance: none;
    min-width: 0;
    max-width: 100%;
}
.event-form-field-date input::-webkit-calendar-picker-indicator {
    display: none;
}
.event-form-field-date input::-webkit-date-and-time-value {
    margin: 0;
    text-align: left;
}
.event-form-field-date input::-webkit-datetime-edit {
    padding: 0;
}
.event-form-date-display {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    color: var(--black);
    font-family: var(--font-syne);
    font-size: 16px;
    font-weight: 500;
    pointer-events: none;
}
.event-form-date-trigger {
    position: absolute;
    top: 50%;
    right: 31px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}
.event-form-date-icon {
    width: 28px;
    height: auto;
    pointer-events: none;
}
.event-form-date-trigger:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 2px;
    border-radius: 4px;
}
.event-form-consent {
    font-size: 14px;
    max-width: 480px;
    color: var(--black);
}
.event-form-consent a {
    color: var(--black);
    text-decoration: underline;
}
.event-form-submit {
    position: relative;
    align-self: flex-start;
    border: none;
    background: none;
    padding: 0;
    color: var(--yellow);
    font-family: var(--font-syne);
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}
.event-form-submit::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    color: var(--purple);
    pointer-events: none;
    transition: width .3s ease-in-out;
}
.event-form-submit:hover::after,
.event-form-submit:focus-visible::after {
    width: 100%;
}
.event-form-submit:disabled {
    opacity: .6;
    cursor: default;
}
.event-form-status {
    font-size: 16px;
    font-weight: 600;
    min-height: 1.4em;
}

/*event-thanks-modal (kleines Dank-Popup nach erfolgreichem Absenden)*/
.event-modal-small {
    inset: unset;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90%, 480px);
    height: auto;
    max-height: calc(100vh - 80px);
    padding: 56px 40px;
    border-radius: 4px;
}
.event-modal-small[open] {
    display: block;
}
.event-modal-small .event-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
}
.event-modal-small .event-modal-heading {
    padding-bottom: 16px;
    font-size: 32px;
}
.event-thanks-text {
    max-width: 380px;
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
}

/* Reduced-motion: the newsletter badge auto-spins indefinitely on touch devices
   (WCAG 2.2.2 — auto-starting motion that lasts >5s must be stoppable). Freeze it
   and drop non-essential transitions for users who ask for less motion. */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .spinning-link a,
    .spinning-link .first-circle,
    .spinning-link .last-circle,
    .spinning-link .last-circle::after {
        animation: none;
    }
    .image-block-slide {
        transition: none;
    }
}