/* 
 * Unser Kleiner Laden - Stylesheet
 * Fokus: Bio, Nachhaltigkeit, Herzlichkeit
 */

:root {
    --primary-color: #5d7a5a; /* Salbeigrün */
    --secondary-color: #f4f1ea; /* Warmes Beige */
    --accent-color: #d4a373; /* Sanftes Braun/Holz */
    --text-color: #333;
    --light-text: #fff;
    --dark-bg: #2d3a2b;
    --font-main: 'Source Sans 3', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px; /* Erhöht von 20px auf 25px für mehr Abstand */
}

.section-padding {
    padding: 80px 0; /* Padding oben/unten lassen, seitlich übernimmt .container */
}

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

.text-light {
    color: var(--light-text);
}

.bg-light {
    background-color: #fff;
}

.bg-dark {
    background-color: var(--dark-bg);
}

/* Header & Nav */
header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0; /* Etwas kompakter */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 40px;
    width: auto;
    margin-right: 15px;
    border-radius: 5px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px; /* Größere Klickfläche */
    z-index: 1100; /* Höherer z-index als nav ul */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background-color: var(--primary-color);
    margin-bottom: 4px;
    border-radius: 2px;
    pointer-events: none;
}

/* Hero Section */
#hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../img/unverpackt_laden_wide.jpeg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 20px; /* Sicherheitsabstand */
}

.hero-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

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

.slogan {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #4a6148;
}

/* Grid System */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

/* Images */
.image-wrapper img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 10px 10px 0 var(--primary-color);
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.image-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

/* Info Elements */
.intro-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
}


/* Table */
.opening-hours {
    width: 100%;
    border-collapse: collapse;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

footer {
    padding: 60px 0;
    background-color: var(--secondary-color);
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .section-padding {
        padding: 40px 0;
    }

    .container {
        padding: 0 20px;
    }

    .grid-2, .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .slogan {
        font-size: 1.2rem;
    }

    /* Navigation Mobile */
    .menu-toggle {
        display: flex;
    }

    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px 30px;
        z-index: 1001;
        overflow-y: auto;
        max-height: 80vh;
    }

    nav ul.active {
        display: flex !important;
        opacity: 1;
        visibility: visible;
    }

    nav ul li a {
        display: block;
        padding: 10px;
    }

    nav ul li {
        margin-left: 0;
    }

    .image-grid {
        grid-template-columns: 1fr;
    }

    .image-wrapper img {
        box-shadow: 5px 5px 0 var(--primary-color);
    }

    /* Adjust openings hours for small screens */
    .opening-hours td {
        font-size: 0.9rem;
    }

    .nav-logo {
        height: 30px;
        margin-right: 10px;
    }

    .logo {
        font-size: 1.2rem;
    }

    /* Product Grid stacking */
    .product-grid {
        grid-template-columns: 1fr;
    }

    /* 404 Error Page Adjustments */
    .error-title {
        font-size: 3rem;
    }
    .error-code {
        font-size: 5rem;
    }
    /* Footer Adjustment */
    footer {
        padding: 40px 0;
    }

    footer .container {
        padding: 0 20px;
    }
}

/* 404 Error Page Styles */
.error-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Order Banner */
.order-banner {
    background-color: #fff;
    padding: 60px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.banner-box {
    border: 1px solid var(--accent-color);
    padding: 40px;
    border-radius: 15px;
    display: inline-block;
}

.banner-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 0.5rem;
    font-family: var(--font-main);
    color: var(--primary-color);
}

.banner-title {
    font-size: 2rem;
    margin-bottom: 0;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .order-banner {
        padding: 40px 0;
    }
    .banner-title {
        font-size: 1.5rem;
    }
    .banner-text {
        font-size: 1.1rem;
    }
    .banner-box {
        padding: 25px;
        display: block;
        margin: 0 10px;
    }
}

.error-page main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-title {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 0;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 2rem;
    opacity: 0.3;
}
