@font-face {
    font-family: 'MyFont';
    src: url('/assets/fonts/Sergio Trendy Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MyFont';
    src: url('/assets/fonts/Sergio Trendy Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Agrandir';
    src: url('/assets/fonts/Agrandir-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Agrandir';
    src: url('/assets/fonts/Agrandir-TextBold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Agrandir';
    src: url('/assets/fonts/Agrandir-GrandLight.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Agrandir';
    src: url('/assets/fonts/Agrandir-Narrow.otf') format('opentype');
    font-weight: normal;
    font-stretch: condensed;
    font-style: normal;
}

:root {

    --color-light-green: #f2f5cb;
    --color-uv-green: #dfff00;
    --color-dark-green: #39492c;

    --color-pink: #facad0;
    --color-orange: #ec6b2d;
    --color-blue: #a4bfe4;
    --sbw: calc(100vw - 100%);
    /* scrollBarWidth – fallback a scrollbar miatti jobbra-csúszás ellen */
}

.flexCenter {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
}


body {
    width: 100%;
    min-height: 100vh;

    margin: 0;
    padding: 0;



    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;


    background-color: var(--color-light-green);

}

html,
body {
    overflow-x: hidden;
}

h1 {
    font-family: 'MyFont', serif;
    color: var(--color-dark-green);
    font-size: larger;
    text-align: left;
}

h2 {
    font-family: 'Agrandir';
    color: var(--color-dark-green);
    font-weight: normal;
    text-align: center;
    font-size: medium;
    margin-bottom: 0;
}

p {
    font-family: 'Agrandir';
    font-stretch: condensed;
}





/*  DVLP STYLE SECTION  S T A R T */
.section-main-v2 {
    height: 20%;
}

.logo-dvlp {
    margin-top: 20px;
    gap: 50px;
    width: 100%;
    height: auto;
}

.flip-card-dvlp {
    background-color: transparent;
    width: 250px;
    height: 250px;
    perspective: 1000px;

    touch-action: pan-y;
}


.dvlp-page .dvlp-header {
    width: 100%;
    padding: clamp(0.75rem, 3vw, 1.5rem) clamp(1rem, 6vw, 3rem);
    box-sizing: border-box;
    background-color: var(--color-light-green);
    position: relative;
    z-index: 30;
}

.dvlp-page .dvlp-header__bar {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-inline: auto;
}

.dvlp-page .dvlp-header__desktop {
    width: 100%;
    max-width: 1080px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-items: center;
    align-items: center;
    column-gap: clamp(1.5rem, 4vw, 6rem);
    height: 130px;
}

.dvlp-page .dvlp-header__group {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 2.5rem);
    justify-self: stretch;
}

.dvlp-page .dvlp-header__group--left,
.dvlp-page .dvlp-header__group--right {
    width: 100%;
}

.dvlp-page .dvlp-header__group--left {
    justify-content: flex-end;
}

.dvlp-page .dvlp-header__group--right {
    justify-content: flex-start;
}

.dvlp-page .dvlp-header__group .dvlp-header__item {
    display: flex;
}

.dvlp-page .dvlp-header__logo {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-column: 2;
    justify-self: center;
}

.dvlp-page .dvlp-header__logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
}

.dvlp-page .flip-card-dvlp--nav {
    width: clamp(56px, 16vw, 92px);
    height: clamp(56px, 16vw, 92px);
}

.dvlp-page .flip-card-dvlp--nav .logo-dvlp {
    width: 150px;
    height: auto;
    margin-top: 0;
}

@media (max-width: 700px) {
    /*
    .dvlp-page .dvlp-header__desktop {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        justify-items: center;
    }

    .dvlp-page .dvlp-header__group {
        display: block;
        visibility: hidden;
        margin: 0;
        padding: 0;
        height: 0;
    }

    .dvlp-page .dvlp-header__logo {
        grid-column: 2;
        justify-self: center;
        justify-content: center;
        align-items: center;
        margin: 0;
    }
    */
}

.dvlp-page .dvlp-header__toggle {
    position: absolute;
    right: clamp(1rem, 5vw, 3rem);
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.dvlp-page .dvlp-header__toggle-line {
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background-color: var(--color-dark-green);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.dvlp-page .dvlp-header__mobile {
    position: fixed;
    top: 0;
    right: 0;
    width: min(75vw, 320px);
    height: 100vh;
    background-color: var(--color-dark-green);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    padding: clamp(2rem, 10vh, 3.5rem) clamp(1.5rem, 5vw, 2.5rem);
    box-sizing: border-box;
    z-index: 40;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dvlp-page .dvlp-header__drawer {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 3vh, 1.5rem);
}

.dvlp-page .dvlp-header__mobile-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 3vh, 1.75rem);
}

.dvlp-page .dvlp-header__item {
    list-style: none;
}

.dvlp-page .dvlp-header__link {
    font-family: 'Agrandir';
    text-decoration: none;
    color: var(--color-dark-green);
    font-size: clamp(0.85rem, 0.8vw + 0.6rem, 1rem);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.2s ease;
}

.dvlp-page .dvlp-header__mobile .dvlp-header__link {
    color: var(--color-light-green);
    font-size: clamp(1.1rem, 3vw, 1.4rem);
}

.dvlp-page .dvlp-header__link:hover,
.dvlp-page .dvlp-header__link:focus-visible {
    font-weight: bolder;
}

.dvlp-page .dvlp-header__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 35;
}

body.dvlp-page.dvlp-page--menu-open {
    overflow: hidden;
}

.dvlp-page .dvlp-header--open .dvlp-header__mobile {
    transform: translateX(0);
}

.dvlp-page .dvlp-header--open .dvlp-header__backdrop {
    opacity: 1;
    pointer-events: auto;
}

.dvlp-page .dvlp-header--open .dvlp-header__toggle-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.dvlp-page .dvlp-header--open .dvlp-header__toggle-line:nth-child(2) {
    opacity: 0;
}

.dvlp-page .dvlp-header--open .dvlp-header__toggle-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (min-width: 768px) {
    .dvlp-page .dvlp-header__desktop {
        justify-items: stretch;
    }

    .dvlp-page .dvlp-header__logo {
        grid-column: 2;
        display: flex;
    }

    .dvlp-page .dvlp-header__group {
        display: flex;
    }

    .dvlp-page .dvlp-header__toggle {
        display: none;
    }

    .dvlp-page .dvlp-header__mobile,
    .dvlp-page .dvlp-header__backdrop {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .dvlp-page .dvlp-header__mobile,
    .dvlp-page .dvlp-header__backdrop,
    .dvlp-page .dvlp-header__toggle-line {
        transition: none;
    }
}

.dvlp-page .section-main-v2 {
    width: 100%;
}

.dvlp-page .section-main-v2 .theme {
    align-items: center;
}

.dvlp-page .section-main-v2 .flip-card-dvlp {
    margin: 0 auto;
}



/*  DVLP STYLE SECTION  E N D */

.privacy-container {
    text-align: left;
}

.section-main,
.theme.flexCenter {
    flex: 1 0 auto;
}

.section-main {
    padding-top: 25px;
    height: 20%;
    padding-bottom: 25px;

}



.big-title {
    font-family: 'MyFont', serif;
    font-size: x-large;
}

.text-motto {
    width: 300px;
}

.textBox {
    margin-top: 40px;

}

h1.textBox {
    text-align: center;

}

.logo {
    gap: 50px;
    width: 140px;
    height: auto;
}


.flip-card {
    background-color: transparent;
    width: 280px;
    height: 140px;
    perspective: 1000px;

    touch-action: pan-y;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;

    /* sima átmenet a JS/CSS által beállított célra */
    transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);

    /* pontos 4–4 mp oldalanként + 0,8–0,8 mp fordulások -> 9,6s ciklus */
    animation: autoFlip 9.6s infinite both;


    -webkit-transform-style: preserve-3d;
    /* WebKit */
    transform: translateZ(0);
    /* kompozitálás, simább anim */
}

/* Amikor JS irányítja a forgást, tiltsuk az automata animációt */
.flip-card-inner.manual-flip {
    animation: none !important;
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;

    -webkit-backface-visibility: hidden;
    /* iOS/Safari stabilizálás */
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-card-front img,
.flip-card-back img {
    margin: 0;
}

.flip-card-front {
    z-index: 2;
}

.flip-card-back {
    transform: rotateY(180deg);
}



.loading {
    margin-top: 10px;
    width: 80px;
    height: auto;
}

/* Book-a-Table Button */

.res-button-container {
    display: block;

    /* background-color: var(--color-blue); */
    padding-top: 5px;
    padding-bottom: 30px;
    width: 100%;
    height: auto;
    /* margin-top: 50px; */
}

.dashedLine {
    width: 100%;
    height: 1px;
    margin: 12px auto 16px;
    border-top: 2px dashed var(--color-dark-green);
}

.res-button-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;


    /* background-color: var(--color-pink); */

}

.res-button-wrapper>p {
    padding-left: 20px;
    padding-right: 20px;
}

.dvlp-page .menu-link-section {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0 3rem;
    padding: 0 1rem;
}

.dvlp-page .menu-link-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(244, 143, 177, 0.95), rgba(240, 98, 146, 0.95));
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 16px 28px rgba(240, 98, 146, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dvlp-page .menu-link-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(244, 143, 177, 0.32);
}

.dvlp-page .menu-link-button span {
    font-size: 0.95rem;
    opacity: 0.85;
}

.dvlp-page .menu-section {
    transition: box-shadow 0.24s ease;
}

.dvlp-page .menu-section.is-open {
    box-shadow: 0 26px 48px rgba(31, 27, 44, 0.12);
}

.cta-text {
    margin-bottom: 15px;
}

#button1 {
    width: 220px;
    height: auto;
    white-space: nowrap;
}


/* Voucher CTA Section */
.gutschein-section {
    width: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: clamp(24px, 5vw, 56px);
    padding-bottom: clamp(16px, 4vw, 40px);
    padding-left: calc(clamp(12px, 4vw, 36px) + var(--sbw) / 2);
    padding-right: calc(clamp(12px, 4vw, 36px) + var(--sbw) / 2);
    margin: 20px 0;
    gap: clamp(16px, 2vw, 24px);
    position: relative;
}

.hero-carousel {
    position: relative;
    width: 100%;
    display: grid;
}

.hero-carousel__slide {
    grid-area: 1 / 1 / 2 / 2;
    width: 100%;
    display: flex;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateX(4%);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-carousel__slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.hero-carousel__dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.hero-carousel__dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: none;
    background-color: rgba(57, 73, 44, 0.28);
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-carousel__dot:focus-visible {
    outline: 2px solid var(--color-dark-green);
    outline-offset: 2px;
}

.hero-carousel__dot.is-active {
    background-color: var(--color-dark-green);
    transform: scale(1.1);
}


/* --- Voucher: egyszerűsített grid: media | content --- */
.gutschein-section__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
        "media head"
        "media body";
    column-gap: 0;
    row-gap: 0;
    align-items: center;
    justify-items: stretch;
    /* max-height: 450px; */

}

.gutschein-section__inner>* {
    min-width: 0;
}

.gutschein-section__media {
    grid-area: media;

}

.gutschein-section__media {
    justify-self: stretch;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
    flex: 1 1 auto;
    min-height: clamp(320px, 42vw, 560px);
    border-radius: 22px;
    /* box-shadow: 0 18px 45px rgba(57, 73, 44, 0.18); */
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

.gutschein-section__media img {
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 16px;
}


.gutschein-section__head {
    grid-area: head;
}

.gutschein-section__body {
    grid-area: body;
}

.gutschein-section__head,
.gutschein-section__body {
    /* padding: clamp(8px, 3vw, 24px); */
    display: grid;
    gap: 0;
    justify-items: center;
    text-align: center;
    max-inline-size: 60ch;
    margin-inline: auto;
    color: var(--color-dark-green);
    box-sizing: border-box;
    min-width: 80%;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.gutschein-section__eyebrow {
    font-family: 'Agrandir';
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
    font-size: 0.9rem;
}

.gutschein-section__title {
    font-family: 'MyFont', serif;
    font-size: clamp(1.8rem, 1.1rem + 1.4vw, 2.4rem);
    line-height: 1.16;
    letter-spacing: 0.005em;
    max-inline-size: 25ch;
    margin: 0;
    text-wrap: balance;
    width: 90%;
}

.gutschein-section__text {
    font-family: 'Agrandir';
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.58;
    margin: 0;
    max-inline-size: 52ch;
    overflow-wrap: anywhere;
    hyphens: auto;
    text-wrap: pretty;
    hyphens: none;
    padding-right: 5px;
}

.gutschein-section__text span[lang="de"] {
    font-style: italic;
}

.gutschein-section__list {
    margin: 8px 0 14px;
    padding-left: 18px;
    padding-top: 20px;
    display: grid;
    gap: 6px;
    text-align: left;
    align-self: flex-start;
    font-family: 'Agrandir';
    font-weight: bold;
    color: var(--color-dark-green);
}

.reserviation-section__title {
    margin: 8px 0 14px;
    padding-left: 18px;
    padding-top: 20px;
    display: grid;
    gap: 6px;
    text-align: left;

    font-family: 'MyFont', serif;
    font-size: clamp(1.8rem, 1.1rem + 1.4vw, 2.4rem);
    line-height: 1.16;
    font-weight: bold;
    color: var(--color-dark-green);
}

.gutschein-section__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.2rem;
    height: 47px;
    line-height: 47px;
    min-height: 47px;
    border: 2px solid var(--color-dark-green);
    border-radius: 10px;
    background-color: var(--color-orange);
    color: var(--color-light-green);
    text-decoration: none;
    font-family: 'Agrandir';
    font-weight: bold;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
    white-space: nowrap;
    margin-top: 20px;
}

.gutschein-section__button:hover,
.gutschein-section__button:focus-visible {
    background-color: var(--color-uv-green);
    color: var(--color-dark-green);
    border: 2px solid var(--color-dark-green);
    outline: none;
}

.gutschein-section__button:active {
    background-color: var(--color-dark-green);
    color: var(--color-light-green);
}


@media (max-width: 780px) {
    .gutschein-section__inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "head"
            "media"
            "body";
        row-gap: 0;
        align-items: stretch;
    }

    .gutschein-section__media {
        min-height: clamp(260px, 65vw, 420px);
        height: clamp(260px, 65vw, 420px);
        aspect-ratio: auto;
    }

    .gutschein-section__head,
    .gutschein-section__body {
        padding: clamp(12px, 7vw, 22px);
        max-inline-size: 65ch;
    }
}

@media (min-width: 781px) {


    .gutschein-section__inner {
        min-height: 360px;
        align-items: stretch;
        column-gap: 20px;
    }

    .gutschein-section__media {
        min-height: 360px;
        height: 100%;
        max-height: none;
        aspect-ratio: auto;
    }

    .gutschein-section__head,
    .gutschein-section__body {
        justify-items: start;
        text-align: left;
        align-content: start;
        align-items: start;
        gap: 0;

        margin-left: 0;
    }

    .gutschein-section__title {
        font-size: 2.2rem;
        text-align: left;
    }

    .gutschein-section__text {
        font-size: 1.1rem;
    }


}

@media (max-width: 780px) {
    .dvlp-page .flip-card-dvlp--nav .logo-dvlp {
        width: 150px;
        height: auto;
    }
}

/* Nesletter- Section */

.newsletter-section {


    /* display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; */

    display: grid;
    place-items: center;
    place-content: center;

    width: 100%;
    min-height: 260px;
    padding: clamp(28px, 6vw, 52px) clamp(14px, 5vw, 22px);
    /* fixed padding + px min-height keeps the block from stretching when the iOS toolbar hides */
    text-align: center;
    color: var(--color-dark-green);
    font-family: 'Agrandir';
    position: relative;
    overflow: hidden;
    --bg-shift: 0px;

}







.newsletter-section input[type="email"] {
    padding: 0.5rem;
    min-width: 250px;
    margin: 0.5rem 0;
}

.newsletter-section button {
    padding: 0.5rem 1rem;
    padding-top: 0.7rem;
    background-color: var(--color-orange);
    color: var(--color-light-green);
    border: 2px solid var(--color-dark-green);
    cursor: pointer;

    font-family: 'Agrandir';
    font-weight: bold;
    font-size: 1.05rem;
    letter-spacing: 0.02em;

}

.newsletter-section button:hover {
    background-color: var(--color-uv-green);
    color: var(--color-dark-green);
    border: 2px solid var(--color-dark-green);
}

.newsletter-section label a {
    color: var(--color-dark-green);
    text-decoration: underline;
}



#newsletter-form {

    display: inline-block;

    font-family: 'Agrandir';
    position: relative;
    z-index: 1;

    width: min(100%, 550px);

    padding: 40px;

    margin: 0 auto;
    /* valódi középre igazítás, felül 20px */
    box-sizing: border-box;

    /* align-self: center; */
    /* flex-szülőben is középre ül */
    text-align: center;
    /* belső inline elemek középre */

    margin-top: 40px;
}

.newsletter-section * {
    box-sizing: border-box;
    /* gyerekek ne lógjanak ki padding miatt */
}

@media (max-width: 700px) {
    /*
    #newsletter-form {
        margin-top: 30px;
        padding: 24px;
        max-width: 420px;
        text-align: center;
    }
    */
}



.subscribe {
    margin-top: 20px;
    border: none;
    border-radius: 10px;
}

.input-field {
    border: solid 2px var(--color-dark-green);
    border-radius: 7px;
    font-family: 'Agrandir';
    font-weight: condensed;
    letter-spacing: 1px;
    text-align: center;


}

.success-message {
    margin-top: 20px;
    font-family: 'MyFont', serif;
    color: var(--color-dark-green);
    font-size: 1.05rem;
    text-align: center;
    position: relative;
    /* ensure above ::before/::after */
    z-index: 1;
    /* same stacking as the form */
    display: block;
    /* explicitly render when set to block */
    white-space: pre-line;
    /* render \n as line breaks */

    /* only the message box gets spacing/decoration */
    padding: 16px 24px;
    background: var(--color-pink);

    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}




.privacy-container {
    width: 60%;
    max-width: 600px;
    height: 90%;
    padding: 2rem;
    font-family: 'MyFont', serif;
    color: var(--color-dark-green);
    overflow-y: auto;
}

.privacy-container h1,
.privacy-container h2 {
    margin-bottom: 1rem;
}

.privacy-container p {
    margin-bottom: 1rem;
    line-height: 1.5;
}



/* Cookie banner */
#cookie-banner {

    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: var(--color-dark-green);
    color: var(--color-light-green);
    padding: 1em;
    text-align: center;
    z-index: 1000;
    font-size: 1em;
    box-sizing: border-box;

}

#cookie-banner a {
    color: var(--color-uv-green);
    text-decoration: underline;
}

#cookie-accept {
    margin-left: 1em;
    padding: 0.4em 1.2em;
    border: none;
    background: var(--color-uv-green);
    color: var(--color-dark-green);
    border-radius: 1em;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

#cookie-accept:hover {
    background: var(--color-light-green);
}


/* Footer - Section */
.section-footer {
    width: 100%;
    position: relative;

    background: var(--color-dark-green);
    color: var(--color-light-green);
    transition: background 0.3s;


    font-family: 'Agrandir';
    font-weight: normal;
    font-size: small;

    line-height: 30px;
}

.footer-bar {
    width: 100%;
    background-color: var(--color-dark-green);
    color: var(--color-light-green);
    text-align: center;
    padding: 12px 0;
    font-size: 1.1em;
}

.footer-impressum-link {
    cursor: pointer;
    text-decoration: none;
}

.footer-impressum-link:hover {
    text-decoration: underline;
}

.footer-content {
    display: flex;
    flex-direction: row;

    align-items: flex-start;
    gap: 20px;

    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s, padding 0.5s;
    background: var(--color-dark-green);
    color: var(--color-light-green);
    /* padding: 0 2vw; */
    padding-left: 32px;
    padding-right: 12px;
    gap: 32px;
    text-align: left;
    font-size: 1em;
}

.language-switch {
    color: var(--color-light-green);
    text-decoration: none;
}

.lang-button {
    text-decoration: none;
    color: inherit;
}

.lang-button span {
    text-decoration: none;
}

.lang-button:hover span {
    text-decoration: underline;
}

.legal-text,
.legal-text-right {
    /* flex: 1 1 0; */
    max-width: 50%;
    min-width: 0;
    box-sizing: border-box;
}

.legal-text-right {
    word-break: break-word;
    white-space: normal;
}

.section-footer.expanded .footer-content {
    max-height: 400px;
    /* legyen elég nagy, hogy minden kiférjen */
    padding: 32px 2vw;
}

.mailto {
    color: var(--color-uv-green);
}

.btn-conf {
    background-color: var(--color-orange);
    color: var(--color-dark-green);
    border-radius: 30px;
    padding: 5px;
}

.btn-conf:hover {
    color: var(--color-dark-green);
    background-color: var(--color-uv-green);
}

.btn-title {
    text-decoration: none;
    color: var(--color-dark-green);
}



.waffle-teaser picture {
    flex: 1 1 300px;
    max-width: 600px;
}



.waffle-teaser img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#hoverText:hover {
    color: var(--color-uv-green);
}



/* --- Responsive --- */

/* Alapértelmezett konténer max szélesség */
.privacy-container,
.newsletter-section,
.theme {
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .privacy-container {
        padding: 1rem;
        font-size: 1rem;
    }

    .newsletter-section input[type="email"] {
        /* width: 90vw; */
        max-width: 350px;
    }
}

@supports (height: 1svh) {
    .newsletter-section {
        min-height: clamp(260px, 30svh, 320px);
    }
}

@media (max-width: 700px) {
    /*
    html,
    body {
        font-size: 16px;
        padding-top: 15px;
    }

    .logo,
    .flip-card,
    .flip-card-inner {
        width: 150px !important;
        height: 150px !important;
    }

    .res-button-container {
        margin-top: 15px;
        margin-bottom: 25px;
    }

    .newsletter-section {
        margin-top: 0;
        margin-bottom: 0;
        padding: 0;
        min-height: 260px;
    }

    .newsletter-section input[type="email"] {
        width: 92vw;
        max-width: 250px;
        min-width: 200px;
        box-sizing: border-box;
        font-size: 1em;
    }

    .privacy-container {
        padding: 0.6rem;
        font-size: 0.95rem;
    }

    h1 {
        font-size: 1.3em;
        margin-top: 20px;
    }

    h1.textBox {
        margin-top: 50px;
    }

    .success-message {
        font-size: 1em;
    }

    #cookie-banner {
        font-size: 0.95em;
        padding: 0.7em 0.6em;
    }

    .footer-content {
        flex-direction: row;
        padding-left: 16px;
        padding-right: 8px;
        gap: 10px;
    }

    .legal-text,
    .legal-text-right {
        max-width: 100%;
        width: 100%;
    }

    .bg-waves {
        height: 104%;
    }
    */
}

/* @media (max-width: 400px) {
    .privacy-container {
        font-size: 0.85rem;
    }

    .newsletter-section input[type="email"] {
        font-size: 0.95em;
    }

    #cookie-banner {
        font-size: 0.9em;
        padding: 0.7em 0.2em;
    }
} */




@keyframes autoFlip {

    /* 0–4,0s: előlap (0deg) */
    0% {
        transform: rotateY(0deg);
    }

    41.666% {
        transform: rotateY(0deg);
    }

    /* 4,0–4,8s: átfordulás hátlapra */
    50% {
        transform: rotateY(180deg);
    }

    /* 4,8–8,8s: hátlap (180deg) */
    91.666% {
        transform: rotateY(180deg);
    }

    /* 8,8–9,6s: visszafordulás előlapszögre */
    100% {
        transform: rotateY(0deg);
    }
}




@media (prefers-reduced-motion: reduce) {
    .flip-card-inner {
        animation: none !important;
    }
}






/* --- Confirmation / Unsubscribed card (reuses palette + fonts) --- */
.confirmation-card {
    background: var(--color-pink);
    border: 2px solid var(--color-dark-green);
    border-radius: 16px;
    padding: 24px 28px;
    max-width: 560px;
    margin: 24px auto;
    box-sizing: border-box;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    z-index: 1;
    /* fölé a ::before/::after rétegeknek */
}

.confirmation-card h1 {
    font-family: 'MyFont', serif;
    /* már használt cím betű */
    color: var(--color-dark-green);
    text-align: center;
    /* felülírjuk a globális left-et */
    margin: 0 0 12px 0;
}

.confirmation-card p {
    font-family: 'Agrandir';
    color: var(--color-dark-green);
    margin: 0 0 12px 0;
    line-height: 1.5;
    text-align: center;
}

.confirmation-card .subscribe {
    margin-top: 12px;
    padding: 10px 16px;
    display: inline-block;
    /* gombként viselkedjen */
}


/* Mobile finomítások */
@media (max-width: 700px) {
    /*
    .confirmation-card {
        padding: 18px 20px;
        margin: 16px auto;
        max-width: 92vw;
    }

    .confirmation-card h1 {
        font-size: 1.15em;
    }
    */
}

#newsletter-form {
    grid-row: 2;
    /* a középső rácssorban ül a form */
    margin-top: 0;
    padding: 24px;
    max-width: 420px;
    text-align: center;
}

.theme-container {
    position: static;
    /* a section legyen a pozicionálási kontextus */
    width: 100%;
    display: grid;
    align-items: center;
    justify-items: center;
    gap: 0;
    padding: 0;
    min-height: 0;
    box-sizing: border-box;
    overflow: hidden;
}

/* Opcionális vertikális pozíciósegítők – paddinggel, fr egység nélkül */
.newsletter-section--higher {
    padding-top: clamp(22px, 5vw, 44px);
    padding-bottom: clamp(34px, 7vw, 60px);
}

.newsletter-section--lower {
    padding-top: clamp(34px, 7vw, 60px);
    padding-bottom: clamp(22px, 5vw, 44px);
}

/* SVG covers the whole newsletter section */
.bg-waves {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 104%;
    /* tiny overscan to avoid gaps on mobile */
    display: block;
    z-index: -1;
    /* always behind content */
    pointer-events: none;
    /* never intercept clicks */
    background: transparent;
    overflow: hidden;
}

/* Wave fill color from palette */
.wave {
    fill: var(--color-pink);
}

/* Two-tile, infinitely scrolling group (moved by keyframes) */
.waves {
    width: 300%;
    height: 100%;
    animation-name: wave-move;
    animation-duration: var(--wave-duration-active, 12s);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-play-state: paused;
    /* JS will toggle this to running on form focus */
    transform: translateX(0) translateZ(0);
    will-change: transform;
    transform-box: fill-box;
    /* ensure consistent bounds on mobile SVG engines */
    backface-visibility: hidden;
}

/* Scale from the bottom so the trough sits on the section bottom edge */
.waves-scale {
    transform-origin: left bottom;
    transform: scale(var(--wave-scaleX, 1), var(--wave-scaleY, 1));
    transform-box: fill-box;
}

/* Horizontal movement of the tiled group: from 0% to -33.333% (one of three tiles) */
@keyframes wave-move {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-33.333%);
    }
}

/* Respect reduced motion: keep paused by default (JS still ramps on explicit focus) */
@media (prefers-reduced-motion: reduce) {
    .waves {
        animation-play-state: paused;
    }
}
