*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header,
footer {
    flex-shrink: 0;
}

.gallery-main,
.main-content {
    flex-grow: 1;
}

a {
    text-decoration: none;
    cursor: pointer;
}

/* Base Site Layout Styles */
nav {
    height: 6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    top: 0;
}

ul {
    list-style: none;
    height: 100%;
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 3rem;
    margin-right: 5rem;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo {
    height: 2.5rem;
    margin-left: 5rem;
    cursor: pointer;
}

.verlinkungen {
    font-family: "Roboto Flex", sans-serif;
    font-weight: 400;
    font-size: 0.92rem;
    color: #001C2E;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    cursor: pointer;
}

.verlinkungen:hover {
    cursor: pointer;
    color: #2c62834e;
}

/* Burger Menu Base Styles */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    margin-right: 5rem;
}

.burger span {
    width: 30px;
    height: 2px;
    background-color: #001C2E;
    transition: all 0.3s ease;
}



@media (max-width: 1024px) {
    ul {
        gap: 2rem;
        margin-right: 2rem;
    }

    .logo {
        margin-left: 2rem;
    }
}

@media (max-width: 768px) {
    nav {
        height: 5rem;
    }

    .burger {
        display: flex;
        z-index: 1001;
        margin-right: 1.5rem;
    }

    #nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: white;
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
        margin-right: 0;
        transition: 0.5s ease;
        z-index: 1000;
    }

    #nav-links.active {
        right: 0;
    }

    .logo {
        margin-left: 1.5rem;
        height: 1.8rem;
    }

    .gallery-header h1 {
        font-size: 2.2rem;
    }

    .search-container {
        /* Keep row layout on mobile if requested, or at least ensure it's consistent */
        padding: 0 1rem;
    }

    .event-card {
        padding: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }

    .gallery-main {
        padding: 40px 15px;
    }

    .footer {
        padding: 2rem 1.5rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

.footer {
    padding: 2rem 5rem;
    border-top: 1px solid #e5e5e5;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    font-family: "Roboto Flex", sans-serif;
    font-size: 0.79rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-family: "Roboto Flex", sans-serif;
    font-size: 0.79rem;
    color: #001C2E;
}

.instagram-link {
    font-weight: 400;
}

.instagram-link:hover {
    color: #2C6183;
}

/* Gallery Specific Styles */
.gallery-main {
    max-width: 90%;
    min-width: 70%;
    margin: 0 auto;
    padding: 60px 20px;
    min-height: 60vh;
}

.gallery-header {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 60px;
}

.gallery-header h1 {
    font-family: "Roboto Flex", sans-serif;
    font-weight: 300;
    font-size: 2.64rem;
    color: #001C2E;
    text-align: center;
    margin-bottom: 20px;
}

.gallery-header p {
    text-align: center;
    font-family: 'Roboto Flex', sans-serif;
    font-weight: 300;
    color: #666;
    font-size: 0.97rem;
    margin-bottom: 40px;
}

.search-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    max-width: 600px;
    margin: 0 auto;
    gap: 10px;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 0;
}

.suggestion-bar {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    padding: 5px 0;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    font-family: "Roboto Flex", sans-serif;
    font-size: 0.9rem;
    color: #001C2E;
    transition: background 0.2s ease;
    text-align: left;
}

.suggestion-item:hover {
    background: #f8f9fa;
}

.suggestion-item.active {
    background: #f0f4f8;
}

.review-reminder {
    margin: 30px auto 0;
    text-align: center;
    max-width: 600px;
}

.review-reminder p {
    font-family: "Roboto Flex", sans-serif;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.review-reminder a {
    color: #001C2E;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.review-reminder a:hover {
    color: #2C6183;
}

.search-container input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    font-family: "Roboto Flex", sans-serif;
    text-align: center;
    font-size: 0.88rem;
    transition: border-color 0.3s ease;
    background: white;
}

.search-container input:focus {
    outline: none;
    border-color: #2C6183;
}

.search-container button {
    flex-shrink: 0;
    padding: 16px 30px;
    background-color: #001C2E;
    color: white;
    border: none;
    border-radius: 4px;
    font-family: "Roboto Flex", sans-serif;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 10;
}

.search-container button:hover {
    background-color: #2C6183;
}

@media (max-width: 480px) {
    .search-container {
        flex-direction: column;
        align-items: stretch;
    }

    .search-container button {
        width: 100%;
    }

    .search-container input {
        width: 80%;
    }

    .gallery-header h1 {
        font-size: 1.8rem;
    }

    .event-info h2 {
        font-size: 1rem;
    }

    .event-action {
        font-size: 0.85rem;
    }
}

/* Event Cards */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-card {
    background: white;
    border: 1px solid #EFEFEF;
    border-radius: 8px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.event-info h2 {
    font-family: "Roboto Flex", sans-serif;
    font-weight: 400;
    font-size: 1.14rem;
    color: #001C2E;
    margin-bottom: 5px;
}

.event-info p {
    font-family: "Roboto Flex", sans-serif;
    font-weight: 300;
    color: #888;
    font-size: 0.79rem;
}

.event-action {
    color: #2C6183;
    font-family: "Roboto Flex", sans-serif;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-action svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #888;
    font-family: "Roboto Flex", sans-serif;
    font-weight: 300;
}

/* -- GLOBALS -- */
html, body {
    overflow-x: hidden;
}
img {
    max-width: 100%;
}
