/* --- CSS VARIABLES & RESET --- */
:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --bg-light: #f4f7f6;
    --text-dark: #333;
    --white: #ffffff;
    --padding-section: 80px 20px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- NAVIGATION --- */
header {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    background-color: white;
}

.logo img {
    height: 36px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Mobile Menu Toggle */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- HERO SECTION --- */
#home {
    height: 100vh;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0)), url('public/sil-pack-servietten-auf-paletten.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-content h1 {
    color: black;
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.btn {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 10px 30px;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn:hover {
    background: #2980b9;
}

/* --- SECTIONS GENERAL --- */
section {
    padding: var(--padding-section);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

/* --- SHOP SECTION --- */
#shop {
    background-color: var(--bg-light);
}

/* Container for the sliding area */
.product-carousel {
    display: flex;
    /* Arranges items in a row */
    overflow-x: auto;
    /* Allows horizontal scrolling */
    scroll-snap-type: x mandatory;
    /* Forces the scroll to snap to cards */
    gap: 20px;
    /* Space between cards */
    padding-bottom: 20px;
    /* Space for scrollbar */
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling for iOS */
}

/* Individual Card Styling */
.product-card {
    /* --- CAROUSEL LOGIC (New) --- */
    flex: 0 0 auto;
    /* Prevents the card from shrinking */
    width: 280px;
    /* Sets a fixed width for every card */
    scroll-snap-align: start;
    /* Aligns card to the left when scrolling stops */

    /* --- VISUAL STYLING (Kept from your old code) --- */
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

    /* These two lines keep your text centered and add space at bottom */
    text-align: center;
    padding-bottom: 20px;
}

.product-card img {
    width: 100%;       /* Force image to match the card width */
    height: 180px;     /* FORCE a shorter height (adjust this number as needed) */
    object-fit: cover; /* CRITICAL: Crops the image so it doesn't look squished/stretched */
    display: block;    /* Removes tiny gap at bottom of image */
}

/* Optional: Hide the scrollbar for a cleaner look */
.product-carousel::-webkit-scrollbar {
    height: 8px;
}

.product-carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.product-carousel::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.product-carousel::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.product-info {
    padding: 15px;
}

.price {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
    display: block;
    margin: 10px 0;
}

/* --- ABOUT US SECTION --- */
#about {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.about-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('public/silpack-uberuns.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    padding: 60px 24px;
    margin: 0 auto 40px;
    max-width: 1100px;
    color: var(--white);
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.about-header .section-title {
    color: var(--white);
    margin-bottom: 24px;
}

.about-header .about-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 10px;
}

.about-header h3 {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    line-height: 1.7;
    font-weight: 500;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
    gap: 40px;
}

.about-img {
    flex: 1 1 400px;
}

.about-img img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.about-text {
    flex: 1 1 400px;
}

.about-text h3 {
    margin-bottom: 12px;
    color: var(--primary-color);
    font-size: 1.35rem;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: #4f5b66;
}

.owner-section {
    margin-top: 40px;
    padding: 24px;
    border-radius: 16px;
    background: #f5f9fc;
    box-shadow: inset 0 0 0 1px rgba(52, 152, 219, 0.08);
}

.owner-section .about-container {
    margin-top: 20px;
    gap: 32px;
}

.owner-section .about-img img {
    max-height: 420px;
}

.history-section {
    margin-top: 28px;
    padding: 24px;
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.history-section .section-title {
    margin-bottom: 20px;
}

.history-section .about-text {
    max-width: 100%;
}

.history-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: #4f5b66;
}

@media screen and (max-width: 768px) {
    .about-header {
        padding: 40px 16px;
        border-radius: 12px;
    }

    .about-container {
        gap: 24px;
    }

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

    .owner-section {
        padding: 20px 16px;
    }

    .owner-section .about-container {
        flex-direction: column;
    }

    .history-section {
        padding: 18px 14px;
    }

    .history-section p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

@media screen and (max-width: 480px) {
    #about {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .about-header {
        padding: 32px 12px;
    }

    .about-header h3 {
        font-size: 1rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .owner-section {
        padding: 16px 12px;
    }
}

/* --- CONTACT SECTION --- */
#contact {
    background-image: linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)), url('/public/silpack-uberuns.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 20px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto 28px;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mail-button-wrap {
    text-align: center;
    margin: 0 auto 28px;
}

.mail-button {
    display: inline-block;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 999px;
    min-width: 260px;
    text-align: center;
}

.contact-info-grid {
    max-width: 1100px;
    margin: 0 auto 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 20px;
}

.info-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 20px 18px;
    text-align: left;
}

.info-card h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    color: var(--primary-color);
}

.info-card p {
    margin: 0;
    line-height: 1.7;
    color: #333;
}

.faq-box {
    max-width: 1100px;
    margin: 0 auto 28px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.faq-box h3 {
    margin: 0 0 10px;
    font-size: 2rem;
    text-align: center;
    color: var(--primary-color);
}

.faq-box > p {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.faq-box h4 {
    margin: 24px 0 12px;
    font-size: 1.4rem;
    color: #222;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-item p {
    margin: 0 0 8px;
    line-height: 1.7;
}

.map-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 10px;
}

@media screen and (max-width: 768px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* --- LOGO SECTION --- */
#logo {
    background: var(--primary-color);
    padding: 40px 20px;
    text-align: center;
}

#logo div {
    max-width: 280px;
    margin: 0 auto;
}

#logo img {
    display: block;
    width: 100%;
    height: auto;
}

@media screen and (max-width: 480px) {
    #logo {
        padding: 30px 16px;
    }

    #logo div {
        max-width: 220px;
    }
}

/* --- FOOTER --- */
footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 0.8;
}

/* --- RESPONSIVE MOBILE --- */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    }

    .nav-links li {
        opacity: 0;
    }

    .burger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }

        to {
            opacity: 1;
            transform: translateX(0px);
        }
    }

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

#product-detail {
    padding: 96px 20px 48px;
    max-width: 1100px;
    margin: 0 auto;
}

.product-detail-card {
  background: var(--white);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
    padding: 24px;
  display: grid;
    gap: 24px;
    align-items: center;
}

.product-detail-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5fbff 0%, #edf5ff 100%);
    border-radius: 16px;
    padding: 16px;
}

.product-detail-image img {
  width: 100%;
    max-height: 520px;
    object-fit: cover;
  border-radius: 12px;
  display: block;
}

.product-detail-content {
  display: grid;
    gap: 16px;
    align-content: center;
}

.product-detail-badge {
    display: inline-block;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(12, 110, 184, 0.08);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.product-detail-content h1 {
  font-size: clamp(1.8rem, 2.5vw, 3rem);
  color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
}

.product-detail-content p {
  line-height: 1.8;
  color: var(--text-dark);
    margin: 0;
    font-size: 1rem;
}

.product-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

@media (min-width: 900px) {
  .product-detail-card {
    grid-template-columns: 1.3fr 1fr;
        align-items: center;
    }
}

@media (max-width: 767px) {
    #product-detail {
        padding-top: 72px;
    }

    .product-detail-card {
        padding: 18px;
        gap: 18px;
    }

    .product-detail-image {
        padding: 12px;
    }

    .product-detail-image img {
        max-height: 340px;
    }

    .product-detail-content {
        gap: 12px;
    }

    .product-detail-actions .btn {
        width: 100%;
        text-align: center;
  }
}

/* --- FEATURES SECTION --- */
.features-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #e3f2fd;
}

.feature {
    flex: 1 1 0;
    text-align: center;
    padding: 10px 20px;
}

.feature-icon {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: #eaf6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px auto;
    box-shadow: 0 6px 18px rgba(11,118,201,0.08);
}

.feature-icon svg {
    width: 36px;
    height: 36px;
}

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.feature p {
    color: #55606a;
    line-height: 1.6;
    font-size: 0.98rem;
}

@media screen and (max-width: 900px) {
    .features-container {
        flex-direction: column;
        gap: 28px;
    }
}

/* --- INSTAGRAM SECTION --- */
#instagram {
    background: var(--white);
    padding: 40px 20px;
    text-align: center;
}

#instagram h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 18px;
    font-weight: 600;
}

#instagram .instagram-handle {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
}

#instagram .instagram-handle:hover {
    text-decoration: underline;
}

#instagram .instagram-grid {
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

#instagram .instagram-grid img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

@media screen and (max-width: 900px) {
    #instagram h1 { font-size: 1.25rem; }
    #instagram .instagram-grid img { width: calc(50% - 12px); height: auto; }
}

@media screen and (max-width: 480px) {
    #instagram .instagram-grid img { width: 100%; }
    section { padding: 40px 12px; }
}