/* ============================================================
   GENERAL SETUP & ROOT
   ============================================================ */
:root {
    --primary-wood: #3e2f1c;
    --accent-gold: #a68a56;
    --bg-warm: #faf9f6;
    --text-dark: #2d2d2d;
    --white: #ffffff;
}

body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-warm);
    /* Subtile Holzmaserung */
    background-image: 
        repeating-linear-gradient(
            90deg,
            rgba(62, 47, 28, 0.015) 0px,
            rgba(62, 47, 28, 0.015) 2px,
            transparent 2px,
            transparent 6px
        );
}

h1, h2, h3, h4 {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: var(--primary-wood);
}

/* ============================================================
   HEADER
   ============================================================ */
header {
    background: linear-gradient(rgba(62, 47, 28, 0.9), rgba(62, 47, 28, 0.9)), 
                url('media/header/header_1.jpg') center/cover;
    color: var(--white);
    padding: 40px 20px 80px;
    text-align: center;
    position: relative;
}

header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--bg-warm));
}

header h1 {
    margin: 0; 
    font-size: clamp(2rem, 6vw, 4rem);
    letter-spacing: 3px;
    text-transform: uppercase;
    color: white;
}

.tagline {
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin: 10px 0 5px;
    color: rgba(255, 255, 255, 0.85);
}

.hero-subline {
    font-size: clamp(0.95rem, 0.4vw + 0.9rem, 1.1rem);
    max-width: 60ch;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

/* ============================================================
   TYPOGRAPHY (HEADINGS IN MAIN)
   ============================================================ */
main h3 {
    
    color: white;
    background: var(--primary-wood);
    padding: 16px 20px;
    border-radius: 8px;
    margin: 40px 0 20px;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

main h3::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.08), transparent);
    pointer-events: none;
}

main h3:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

/* ============================================================
   CONTAINER & HERO GALLERY
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.hero-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    height: 400px;
    margin-bottom: 60px;
}

.main-img { grid-row: span 2; }

.hero-gallery div {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.hero-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Foggy Overlay */
.hero-gallery div::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 60%, rgba(250, 249, 246, 0.4) 85%, rgba(250, 249, 246, 0.7) 100%);
    pointer-events: none;
}

@media (min-width: 900px) {
    .hero-gallery {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: 1fr;
        height: auto;
    }
    .main-img { grid-row: auto; }
    .hero-gallery img { aspect-ratio: 4 / 3; }
}

/* ============================================================
   PRODUCTS
   ============================================================ */
.product-group { margin-bottom: 50px; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body { padding: 20px; }
.card-body h4 { margin: 0 0 10px 0; font-size: 1.2rem; }

.product-spec {
    margin-bottom: 25px;
    padding: 18px 22px;
    background: #f6f3ee;
    border-left: 4px solid var(--accent-gold);
    border-radius: 8px;
}

.product-spec h4 {
    margin: 12px 0 4px;
    font-size: 0.95rem;
    color: var(--primary-wood);
    letter-spacing: 0.3px;
}

.product-spec p {
    margin: 0 0 10px;
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.spec-toggle {
    margin-top: 10px;
    background: none;
    border: none;
    color: var(--accent-gold);
    cursor: pointer;
    font-weight: 500;
    padding: 0;
}

.spec-toggle:hover { text-decoration: underline; }
.spec-hidden { display: none; margin-top: 10px; }

.price {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.price-note {
    margin-top: -10px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
}

.disclaimer {
    background: #e9e4de;
    padding: 20px;
    border-left: 5px solid var(--accent-gold);
    margin: 40px 0;
    font-size: 0.9rem;
}

/* ============================================================
   OVERLAY (LIGHTBOX)
   ============================================================ */
#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    padding: 20px;
}

#overlay img {
    max-width: 90%;
    max-height: 75vh;
    border-radius: 8px;
}

#overlay-caption {
    margin-top: 15px;
    color: white;
    text-align: center;
    max-width: 600px;
}

#overlay-title {
    margin: 0;
    font-size: 1.3rem;
    color: var(--accent-gold);
}

#overlay-text {
    margin-top: 5px;
    opacity: 0.85;
    line-height: 1.4;
}

#overlay-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

#prev, #next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 6px;
}

#prev { left: 20px; }
#next { right: 20px; }
#prev:hover, #next:hover { background: rgba(0,0,0,0.7); }

/* ============================================================
   FOOTER (ENHANCED STYLE)
   ============================================================ */
footer {
    background-color: var(--primary-wood);
    color: #d1c7bc;
    padding: 60px 20px 20px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.footer-col {
    background: rgba(255,255,255,0.03);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: 0.3s ease;
}

.footer-col:hover {
    transform: translateY(-3px);
}

footer h3 {
    color: var(--white);
    margin: 0 0 20px;
    font-size: 1.4rem;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}

.contact-item .icon {
    width: 18px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: 0.2s ease;
}

.contact-item a:hover {
    color: var(--white);
    transform: translateX(2px);
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
}

.outlet-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 0;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s ease;

    border-top: 1px solid rgba(166, 138, 86, 0.35);
    border-bottom: 1px solid rgba(166, 138, 86, 0.35);
}

.outlet-link:hover {
    color: var(--primary-wood);
    transform: translateX(2px);
    border-top-color: rgba(62, 47, 28, 0.6);
    border-bottom-color: rgba(62, 47, 28, 0.6);
}