/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img,
svg,
video {
    max-width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fefefe;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header und Navigation */
header {
    background: linear-gradient(135deg, #f4a460 0%, #daa520 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: grid;
    grid-template-columns: minmax(180px, auto) minmax(0, 1fr) auto;
    align-items: center;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 4vw, 2rem);
    gap: clamp(0.75rem, 2vw, 1.5rem);
    min-height: 80px;
}

.logo h1 {
    color: white;
    font-size: clamp(1.05rem, 1.6vw, 1.5rem);
    line-height: 1.25;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    gap: clamp(0.5rem, 1.5vw, 1.5rem);
}

.language-switcher {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    list-style: none;
    flex-wrap: wrap;
}

.language-switcher a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(0.75rem, 1vw, 0.9rem);
    padding: 0.35rem 0.55rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.35);
}

.language-switcher a:hover,
.language-switcher a[aria-current="true"] {
    background-color: rgba(255,255,255,0.25);
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(0.72rem, 0.95vw, 0.95rem);
    transition: color 0.3s ease;
    padding: 0.45rem 0.65rem;
    border-radius: 25px;
}

.nav-links a:hover {
    background-color: rgba(255,255,255,0.2);
    color: #fff;
}

/* Main Content */
main {
    margin-top: 80px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #fff8dc 0%, #f5deb3 100%);
    padding: 4rem 2rem;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1,
.hero-content h2 {
    font-size: 3rem;
    color: #8b4513;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-top: 2rem;
}

/* About Section */
.about {
    padding: 4rem 2rem;
    background-color: #fff;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #8b4513;
    margin-bottom: 3rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.8;
}

.about-text {
    grid-column: 2;
}

.about-image {
    grid-column: 1;
    grid-row: 1;
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Facts Section */
.facts {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #fff8dc 0%, #f5deb3 100%);
}

.facts h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #8b4513;
    margin-bottom: 4rem;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.fact-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    border: 1px solid rgba(218, 165, 32, 0.1);
    position: relative;
    overflow: hidden;
}

.fact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #f4a460 0%, #daa520 100%);
}

.fact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    border-color: rgba(218, 165, 32, 0.3);
}

.fact-card h3 {
    font-size: 1.6rem;
    color: #8b4513;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.fact-card p {
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
}

.fact-link {
    display: inline-block;
    color: #daa520;
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border: 2px solid #daa520;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    background-color: transparent;
}

.fact-link:hover {
    background-color: #daa520;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.3);
    text-decoration: none;
}

.hero-content {
    max-width: 760px;
    width: 100%;
}

/* Gallery Section */
.gallery {
    padding: 4rem 2rem;
    background-color: #fff;
}

.gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #8b4513;
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    background: white;
}

.gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.gallery-item figcaption {
    padding: 1rem 1.25rem;
    color: #555;
    font-weight: 500;
    text-align: center;
}

/* Products Section */
.products {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #fff8dc 0%, #f5deb3 100%);
}

.products h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #8b4513;
    margin-bottom: 3rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 860px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.product-image {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.product-card h3 {
    font-size: 1.5rem;
    color: #8b4513;
    margin-bottom: 1rem;
}

.product-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.product-card.unavailable {
    filter: grayscale(1);
    opacity: 0.58;
    position: relative;
}

.product-card.unavailable:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.product-card.unavailable .product-image {
    opacity: 0.72;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #daa520;
    overflow-wrap: anywhere;
}

.availability {
    display: inline-block;
    color: #777;
    font-size: 1.05rem;
    font-weight: 700;
    border: 2px solid #aaa;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Contact Section */
.contact {
    padding: 4rem 2rem;
    background-color: #fff;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #8b4513;
    margin-bottom: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: #8b4513;
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: #555;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #daa520;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 0.8rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    overflow-wrap: anywhere;
}

.contact-link:hover {
    background-color: #fff8dc;
    text-decoration: none;
}

.contact-form h3 {
    font-size: 1.5rem;
    color: #8b4513;
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #daa520;
}

.contact-form button {
    background: linear-gradient(135deg, #f4a460 0%, #daa520 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(218, 165, 32, 0.4);
}

/* Footer */
footer {
    background-color: #8b4513;
    color: white;
    text-align: center;
    padding: 2rem;
}

[dir="rtl"] body {
    text-align: right;
}

[dir="rtl"] .hero,
[dir="rtl"] .about h2,
[dir="rtl"] .gallery h2,
[dir="rtl"] .facts h2,
[dir="rtl"] .products h2,
[dir="rtl"] .contact h2,
[dir="rtl"] .gallery-item figcaption,
[dir="rtl"] footer {
    text-align: center;
}

[dir="rtl"] .contact-link {
    direction: ltr;
}

/* Responsive Design */
@media (max-width: 1100px) {
    nav {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .nav-links {
        display: none;
    }

    .logo h1 {
        max-width: 18rem;
    }
}

@media (max-width: 768px) {
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
        min-height: 118px;
        padding: 0.75rem 1rem;
    }

    main {
        margin-top: 118px;
    }

    .language-switcher {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-content h1,
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-content {
        grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr);
        gap: 1.25rem;
        align-items: start;
    }
    
    .product-grid,
    .facts-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .logo h1 {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .container {
        padding: 0 15px;
    }

    .hero {
        min-height: auto;
        padding: 3rem 1rem;
    }

    .facts-grid {
        gap: 1.5rem;
    }

    .fact-card,
    .product-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    nav {
        min-height: 132px;
        padding: 0.75rem;
    }

    main {
        margin-top: 132px;
    }

    .hero {
        padding: 2rem 1rem;
    }
    
    .hero-content h1,
    .hero-content h2 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .about,
    .gallery,
    .products,
    .contact,
    .facts {
        padding: 2rem 0;
    }
    
    .about h2,
    .gallery h2,
    .products h2,
    .contact h2,
    .facts h2 {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .logo h1 {
        font-size: 1rem;
        line-height: 1.25;
        max-width: 300px;
    }

    .language-switcher a {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }

    .facts-grid,
    .product-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .fact-card h3,
    .product-card h3 {
        font-size: 1.25rem;
    }

    .gallery-grid {
        gap: 1rem;
    }

    .contact-info p,
    .about-text p {
        font-size: 1rem;
    }

    .about-content {
        grid-template-columns: minmax(96px, 0.75fr) minmax(0, 1.25fr);
        gap: 0.85rem;
    }

    .about-text h3 {
        font-size: 1.15rem;
        line-height: 1.2;
    }

    .about-text h4 {
        font-size: 0.95rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .about-text p {
        font-size: 0.88rem;
        line-height: 1.55;
        margin-bottom: 0.85rem;
    }

    .about-image {
        border-radius: 10px;
        align-self: start;
    }
}
