/* ----- Font Family Global Definition ----- */
/* html,
body,
button,
input,
textarea {
    font-family: "Inter", Arial, sans-serif;
} */

/* ----- PC Standard Styles ----- */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    /* overflow-x: hidden; */
}

/* Reset margin and padding for all elements */
* {
    padding: 0;
    margin: 0;
}

body {
    background-color: #000000;
    visibility: hidden; /* Hide body until translations are loaded (prevents FOUT!) */
}

/* Header: fixed at the top, with semi-transparent background */
header {
    background-color: rgba(35, 28, 26, 0.8);
    height: 60px;
    width: 100%;
    position: fixed;
    display: flex;
    align-items: center; /* vertical center */
    z-index: 1000;
}
h1 {
    color: white;
    position: absolute;
    left: 120px;
    top: 0;
    line-height: 80px;
    /* background-image: url(images/logo); */
    background-repeat: no-repeat;
    background-position: center;
    width: 210px;
    text-indent: -9999px;
}

/* Navigation list inside the header */
header ul {
    position: absolute;
    right: 5vw;
    top: 0;
    line-height: 60px;
}
header li {
    display: inline;
    margin-right: 4vw;
}
header a {
    color: white;
    text-decoration: none;
}
header a:hover {
    text-decoration: underline;
}

/* Container for language switch in navigation */
.lang-switch {
    display: inline;
    /* margin-left: 20px; */
}

/* Language flag icon styling */
.flag-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    vertical-align: middle;
    display: inline-block;
}
.lang-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    margin-left: 6px;
    transition: filter 0.2s;
    padding: 0;
}
.lang-btn:hover,
.lang-btn.active {
    filter: brightness(0.8); /* Darken flag icon when hovered or active */
}

/* News/Banner section: background image with overlay, centered content */
.news {
    background-color: antiquewhite;
    color: white;
    height: 95vh;
    background-image: url("../images/evening_garden_party.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.news h2 {
    font-size: 60px;
    margin-top: 60px;
}
.news p {
    color: #fef7e6;
    font-size: 18px;
    margin: 25px 0;
}
.news a {
    color: white;
    /* font-weight: bold; */
    text-decoration: none;
    border: 3px solid #acacac;
    padding: 10px 20px;
    border-radius: 5px;
}

/* Slogan area: centered text, colored background */
.slogan {
    background-color: #485652;
    color: white;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    line-height: 1.8em;
}
.slogan blockquote {
    font-size: 1.8rem;
    line-height: 1.5;
    padding: 30px 10px; /* top/bottom and side spacing */
    font-weight: 360;
}
.slogan-text {
    text-align: center;
    font-size: 1.2em;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 700px;
}

/* Placeholder for layout spacing */
.filling {
    background-color: white;
    color: white;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    line-height: 1.8em;
}

/* Event info section: image + info side by side */
.event_info {
    display: flex;
    background: white;
}
.event_info img {
    width: 50%;
}
.event_info iframe {
    flex: 1;
    width: 100%;
    height: 634px;
    border: 0;
}

/* Text info area beside the image */
.info {
    width: 50%;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.info h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 30px;
}
.info p {
    max-width: 80%;
    text-align: center;
    line-height: 2em;
}
.info.left p {
    text-align: left;
}

/* Calendar buttons: icon + text side by side */
.calendar-btn {
    display: flex;
    align-items: center;
    gap: 8px; /* <-- Distance between icon and text */
    padding: 6px 12px;
    margin-top: 16px;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: filter 0.2s;
}
.info .calendar-btn:first-of-type {
    margin-top: 30px;
}
.calendar-btn.google {
    background: #2196f3;
}
.calendar-btn.apple {
    background: #5a5a5a;
}
.calendar-btn:hover {
    filter: brightness(1.1);
}

/* Highlights section: event highlights, side by side boxes */
.highlights {
    display: flex;
    background-color: #ede9db;
    justify-content: center;
    align-items: center;
    align-items: stretch; /* All children are raised equally */
    padding: 100px 120px 80px; /* top, left and right, bottom */
    gap: 12%;
}
.highlights div {
    width: 300px;
    text-align: center;
}
.highlights img {
    width: 100%;
    border-radius: 10px;
}
.highlights h3 {
    font-size: 20px;
    margin: 20px 0;
}
.highlights p {
    font-size: 14px;
    line-height: 1.6em;
}

/* RSVP (reply) section: form area for attendance */
.rsvp {
    background-color: #485652;
    color: white;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.rsvp .party-form {
    width: 100%;
    max-width: 420px;
}
.rsvp h2 {
    font-size: 40px;
    text-align: center;
    margin-bottom: 30px;
}
.rsvp p {
    text-align: center;
    line-height: 1.6em;
    margin-bottom: 20px;
}
.rsvp input,
.rsvp button {
    background-color: transparent;
    color: white;
    border: 1px solid #949d9a;
    padding: 9px 15px; /* vertical + lateral distance */
    border-radius: 5px;
}

.rsvp button {
    /* width: 80px; */
    cursor: pointer;
}
input::placeholder {
    color: #dddddd;
}
input:focus {
    outline: none; /* Remove focus effect */
    border-color: #e0e9a3; /* Border color when in focus */
}

/* RSVP form layout and styling */
form.party-form {
    max-width: 420px;
    margin: 40px auto;
    padding: 25px 30px;
    background-color: #2f3438;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    color: #eee;
    font-family: Arial, sans-serif;
}

form.party-form p {
    text-align: left;
    margin-bottom: 18px;
}

form.party-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 16px;
}
.party-form input[type="radio"] {
    margin-right: 8px;
}
.party-form label.radio-inline {
    margin-right: 18px;
}
.radio-group {
    display: flex;
    gap: 22px; /* Distance between yes and no */
    margin-top: 8px;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: bold;
}

.radio-group input[type="radio"] {
    margin-right: 3px; /* Distance between the radio button and the text */
}

form.party-form input[type="text"],
form.party-form input[type="email"],
form.party-form textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #555;
    background-color: #1e2225;
    color: #eee;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    resize: none;
}
form.party-form input[type="text"]:focus,
form.party-form input[type="email"]:focus,
form.party-form textarea:focus {
    border-color: #a6c8ff;
    outline: none;
    background-color: #2a2f34;
}

footer {
    background-color: #000000;
    color: #b7b7b7;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}

/* --- Desktop Navigation --- */
#main-nav {
    display: block;
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    opacity: 1;
}
/* --- Hamburger icon nur mobile anzeigen --- */
.hamburger {
    display: none;
}

/* ====== Tablet Optimization ====== */
@media screen and (min-width: 601px) and (max-width: 1025px) {
    /* Smooth scrolling on anchors */
    html {
        scroll-behavior: smooth;
    }

    /* Event info: stack vertically on tablet */
    .event_info {
        flex-direction: column;
        align-items: center; /* centers both */
        text-align: center; /* centered content for this section */
    }
    .event_info img {
        width: 100%;
        max-width: 100%;
        margin-bottom: 0px;
    }
    .event_info iframe {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 1 / 1; /* 1:1 square, modern way */
        height: auto;
        margin: 0 auto;
        display: block;
    }
    .info {
        width: 100%;
        max-width: 100%;
        padding: 20px 0px; /* vertical + lateral distance */
        text-align: center;
        margin: 0px 0;
    }
    .info h2 {
        font-size: 42px;
    }
    .info p {
        max-width: 80%;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    /* Highlights: stack vertically on tablet */
    .highlights {
        flex-direction: column;
        align-items: center; /* Centers the boxes horizontally */
        justify-content: center;
        padding: 60px 5vw 30px 5vw; /* top right bottom left */
    }
    .highlights div {
        margin-bottom: 66px; /* Distance between the individual boxes */
        width: 100%;
        max-width: 80%; /* Maximum as wide as the image */
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .highlights img {
        width: 100%;
        max-width: 72%; /* wide of the image */
        height: auto;
        margin: 0 auto;
        display: block;
    }
    .highlights h3 {
        font-size: 20px;
        margin: 20px 0;
    }
    .highlights p {
        font-size: 15px;
        line-height: 1.6em;
        max-width: 63%; /* <-- narrower than image */
        margin-left: auto;
        margin-right: auto;
        margin-top: 12px; /* distance from the title */
    }
}

/* ====== Mobile Optimization ====== */
@media screen and (max-width: 600px) {
    /* Smooth scrolling on anchors */
    html {
        scroll-behavior: smooth;
    }

    header {
        background-color: rgba(35, 28, 26, 0.8);
        height: 60px;
        width: 100%;
        position: fixed;
        display: flex;
        align-items: center; /* vertical center */
    }
    header ul {
        display: none;
    }
    header h1 {
        left: 50%;
        transform: translateX(-50%);
    }
    .news {
        padding: 0 10px;
        min-height: 100vh;
    }
    .news h2 {
        font-size: 2em;
        margin-top: 20px;
        word-break: break-word;
    }
    .news p {
        font-size: 1.1em;
        margin: 12px 0;
    }
    .news,
    .news h2,
    .news p {
        text-align: center;
    }

    /* Slogan: more compact on mobile */
    .slogan {
        font-size: 1.1em;
        height: auto;
        padding: 25px 0;
    }
    .slogan blockquote {
        font-size: 1.1em;
        padding: 0 12px;
        text-align: center;
    }
    .slogan-text {
        font-size: 1em;
        padding: 0 8px;
        text-align: center;
    }

    /* Placeholder for layout spacing */
    .filling {
        background-color: white;
        color: white;
        height: 60px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 20px;
        line-height: 1.8em;
    }

    /* Event info: stack vertically on mobile */
    .event_info {
        flex-direction: column;
        align-items: center; /* centers both */
        text-align: center; /* centered content for this section */
    }
    .event_info img {
        width: 100vw;
        max-width: 100vw;
        margin-bottom: 0px;
    }
    .event_info iframe {
        width: 100vw;
        max-width: 100vw;
        aspect-ratio: 1 / 1; /* 1:1 square, modern way */
        height: auto;
        margin: 0 auto;
        display: block;
    }
    .info {
        width: 100%;
        max-width: 100%;
        padding: 20px 0px; /* vertical + lateral distance */
        text-align: center;
        margin: 0px 0;
    }
    .info h2 {
        font-size: 33px;
        padding: 0px 12px; /* vertical + lateral distance */
    }
    .info p {
        max-width: 300px;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    /* Highlights: stack vertically on mobile */
    .highlights {
        flex-direction: column;
        align-items: center; /* Centers the boxes horizontally */
        justify-content: center;
        padding: 60px 5vw 30px 5vw; /* top right bottom left */
    }
    .highlights div {
        margin-bottom: 30px; /* Distance between the individual boxes */
        width: 100%;
        max-width: 300px; /* Maximum as wide as the image */
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .highlights img {
        width: 100%;
        max-width: 300px; /* wide of the image */
        height: auto;
        margin: 0 auto;
        display: block;
    }

    /* RSVP form is more narrow on mobile */
    .rsvp .party-form {
        max-width: 80vw;
        padding: 15px 6vw; /* a little more edge on the phone */
    }
    .rsvp {
        padding: 32px 8px;
    }
    .rsvp h2 {
        font-size: 1.3em;
        margin-bottom: 10px;
    }
    .rsvp p {
        font-size: 0.9em;
        margin-bottom: 10px;
    }
    .rsvp h2,
    .rsvp p {
        text-align: center;
    }
    footer {
        font-size: 12px;
        text-align: center;
        height: auto;
        padding: 16px 0;
    }

    /* Hamburger menu button visible and fixed in corner on mobile */
    .hamburger {
        display: block;
        position: fixed;
        right: 1%;
        z-index: 2000; /* higher than the menu (e.g. 2000 > 1100) */
    }

    /* Fullscreen Styles (mobile only) */
    #main-nav {
        display: none; /* Hide by default */
        position: fixed;
        inset: 0; /* Fill whole viewport */
        width: 100vw;
        height: 100vh;
        background: rgba(30, 30, 30, 0.97);
        justify-content: center;
        align-items: center;
        flex-direction: column;
        z-index: 1100;
        opacity: 0; /* initially invisible, is animated by GSAP */
        transition: none; /* Transition only via GSAP, no CSS transitions necessary */
    }
    #main-nav.open {
        display: flex; /* Show when menu is open */
        opacity: 1;
    }
    #main-nav ul {
        position: static;
        right: auto;
        top: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        margin-bottom: 60%;
        padding: 0;
        list-style: none;
    }
    #main-nav li {
        font-size: 1.8rem;
        margin-right: 0;
        margin-bottom: 0;
        line-height: 50px;
    }

    #main-nav a {
        color: #fff;
        text-decoration: none;
        font-weight: bold;
        transition: color 0.2s;
    }
    #main-nav a:hover {
        color: #f7c873;
    }

    /* Lock scroll when mobile menu is open */
    body.menu-open,
    html.menu-open {
        overflow: hidden;
    }
}
