/* Glückshäppchen Catering - style.css (Final, mit Bild-Hover-Effekt) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Lora:ital@0;1&display=swap');

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

:root {
    --primary-color: #623119;
    --primary-hover-color: #7a4529;
    --text-light: #f4f4f4;
    --bg-light: #FFFFFF;
    --bg-cream: #FDFBF5;
    --bg-beige: #F5F5DC;
    --border-color: #dcd6c8;
}

body {
    font-family: 'Lora', serif;
    line-height: 1.7;
    color: var(--primary-color);
    margin: 0;
    padding: 0;
    background-color: var(--bg-beige);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.container {
    max-width: 1100px;
    margin: auto;
    /* overflow: hidden; Removed to prevent clipping of mobile menu */
    padding: 0 2rem;
}

.main-header {
    background: var(--primary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(98, 49, 25, 0.1);
}

.main-header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* Ensure absolute positioning works for icon */
}

.header-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    z-index: 1001;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.header-icon img {
    height: 40px;
    /* Adjust size as needed, assumed reasonable default */
    width: auto;
    filter: brightness(0) invert(1);
    /* Invert color to white for visibility on dark background */
    /* animation: spin 10s linear infinite; REMOVED - User request: only on site change */
    animation: rotate-in 1s ease-out 1;
}

@keyframes rotate-in {
    from {
        transform: rotate(-180deg) scale(0.5);
        opacity: 0;
    }

    to {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}


.menu-toggle {
    display: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    display: flex;
    align-items: center;
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow: hidden;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--border-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: translateX(0);
}

/* Hide active underline when hovering over other menu items */
.main-nav:hover a.active:not(:hover)::after {
    transform: translateX(-100%);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--border-color);
}

.nav-icon {
    width: 1em;
    height: 1em;
    margin-right: 0.5rem;
    fill: currentColor;
}

.hero {
    height: 85vh;
    background: url('/public/header-bg.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
    border-bottom: 2px solid var(--border-color);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 245, 220, 0.85);
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease-out;
}

.logo {
    width: 500px;
    height: auto;
}

.hero-content h1,
.hero-content p {
    color: var(--primary-color);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.5rem;
    font-family: 'Montserrat', sans-serif;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delay utilities */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}


.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px rgba(98, 49, 25, 0.2);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    transform: translateX(-100%) skewX(-15deg);
    transition: transform 0.5s ease;
}

.btn:hover::after {
    transform: translateX(100%) skewX(-15deg);
}

.btn:hover {
    background: var(--primary-hover-color);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 15px rgba(98, 49, 25, 0.3);
}

.section {
    padding: 4rem 0;
    border-top: 2px solid var(--border-color);
    /* Removed animation: fadeIn 1s ease-out; as we will use scroll animation */
}

.section-light {
    background: var(--bg-beige);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: -2rem auto 4rem auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.image-duo {
    display: flex;
    gap: 1rem;
    height: 100%;
}

.image-duo img {
    width: 50%;
    height: 400px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.image-duo img:hover {
    transform: scale(1.05);
    z-index: 10;
}

.card {
    background: var(--bg-beige);
    padding: 2rem;
    border: none;
    border-radius: 12px;
    /* Slightly rounded */
    text-align: center;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect removed as requested */


.card p {
    flex-grow: 1;
}

.card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: transform 0.4s ease;
}

.card:hover img {
    transform: scale(1.05);
    /* Slight zoom */
}

.card h3 {
    color: var(--primary-color);
}

.responsive-img {
    width: 100%;
    height: 80%;
    border-radius: 5px;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--bg-cream);
    font-family: 'Lora', serif;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(98, 49, 25, 0.2);
}

.contact-form button {
    width: 100%;
}

.main-footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 3rem 0;
    text-align: center;
    border-top: 2px solid var(--border-color);
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.footer-nav li {
    display: inline;
    margin: 0 1rem;
}

.footer-nav a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--border-color);
    display: inline-block;
    transform: scale(1.1);
}

.legal-info {
    margin-top: 2rem;
    font-size: 0.9rem;
}

.legal-info a {
    color: var(--text-light);
    text-decoration: underline;
}

.text-center {
    text-align: center;
}

@media(max-width: 768px) {
    .main-header {
        position: relative;
        padding: 0.5rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .main-header .container {
        flex-direction: column;
        align-items: center;
        position: relative;
        min-height: 50px;
        justify-content: center;
    }

    /* Adjust icon for mobile if needed */
    .header-icon {
        left: 1.5rem;
        top: 25px;
        transform: translateY(-50%);
    }

    /* Menu Toggle Button */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: absolute;
        top: 25px;
        transform: translateY(-50%);
        right: 1.5rem;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 2000;
        padding: 0;
        width: 30px;
        height: 21px;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #f4f4f4;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* STANDARD X IMPLEMENTATION */
    .menu-toggle.active span {
        display: none;
        /* Hide hamburger lines */
    }

    .menu-toggle.active::after {
        content: '✕';
        /* Standard multiplication X */
        display: block;
        color: #f4f4f4;
        font-size: 2rem;
        font-family: sans-serif;
        line-height: 0.5;
        /* Vertical visual centering */
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        text-align: center;
    }

    /* Navigation Menu */
    .main-nav {
        width: 100%;
    }

    .main-nav ul {
        display: none;
        flex-direction: column;
        margin-top: 5rem;
        /* Increased to clear the icons */
        width: 100%;
        background-color: var(--primary-color);
        padding-bottom: 2rem;
        /* Add some bottom padding */
    }

    .main-nav ul.active {
        display: flex;
        animation: fadeIn 0.3s ease-out;
    }

    .main-nav li {
        text-align: center;
    }

    .main-nav a {
        padding: 1rem;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
    }

    .hero {
        height: 70vh;
    }

    .logo {
        width: 80%;
        max-width: 300px;
    }

    .hero h1,
    .section-title {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .image-duo {
        flex-direction: column;
    }

    .image-duo img {
        width: 100%;
        height: 300px;
    }
}