/* css/main-page.css */
.welcome-section { margin: 40px 0 80px 0; }

/* STAGE CAROUSEL */
.stage-gallery {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--gray-border);
    margin-bottom: 40px;
    background-color: var(--gray-light);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img, 
.carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background-color: #ffffff;
    transform: scale(1.2);
}

.welcome-text { max-width: 680px; margin: 0 auto; text-align: center; }
.welcome-text h1 { font-size: 2.2rem; font-weight: 400; letter-spacing: -0.03em; margin-bottom: 15px; }
.welcome-text p { color: var(--text-muted); font-size: 1.1rem; }

/* KATEGORIEN & RASTER */
.category-section { margin-bottom: 80px; }
.category-section.hidden { display: none; }
.category-title { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 30px; padding-bottom: 12px; border-bottom: 1px solid var(--gray-border); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }

/* KATEGORIE-TABS */
.category-tabs-wrap {
    position: sticky;
    top: 76px;                       /* direkt unter dem sticky Header (nav-Höhe 76px) */
    z-index: 90;                     /* unter dem Header (z-index 100) */
    margin-bottom: 36px;
    padding-top: 12px;
    /* Exakt der oberste Ton des Seitenverlaufs (#fffdf8). An der Sticky-Position
       (oben, unter dem Header) entspricht das genau dem Hintergrund dahinter. */
    background: #fffdf8;
    border-bottom: 1px solid var(--gray-border);
}
@media (max-width: 800px) {
    .category-tabs-wrap { top: 66px; }   /* Mobile: Header-nav ist 66px hoch */
}
.category-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;           /* Scrollbar ausblenden, Fade/Pfeil zeigen stattdessen */
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab { flex: 0 0 auto; }

/* Fade links/rechts — nur sichtbar, wenn in die Richtung noch gescrollt werden kann */
.tabs-fade {
    position: absolute;
    top: 12px;             /* unter dem padding-top des Wrappers beginnen */
    bottom: 1px;
    width: 48px;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.tabs-fade-left  { left: 0;  background: linear-gradient(to right, #fffdf8 20%, rgba(255,253,248,0)); }
.tabs-fade-right { right: 0; background: linear-gradient(to left,  #fffdf8 20%, rgba(255,253,248,0)); }
.category-tabs-wrap.can-left  .tabs-fade-left  { opacity: 1; }
.category-tabs-wrap.can-right .tabs-fade-right { opacity: 1; }

/* Pfeil-Buttons — nur sichtbar, wenn in die Richtung gescrollt werden kann */
.tabs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    z-index: 3;
    width: 30px; height: 30px;
    display: none;
    align-items: center; justify-content: center;
    border: 1px solid var(--gray-border);
    border-radius: 50%;
    background: #fff;
    color: var(--blue, #164f7d);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    padding: 0;
}
.tabs-arrow-left  { left: 0; }
.tabs-arrow-right { right: 0; }
.category-tabs-wrap.can-left  .tabs-arrow-left  { display: inline-flex; }
.category-tabs-wrap.can-right .tabs-arrow-right { display: inline-flex; }
.category-tab {
    appearance: none;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    padding: 12px 18px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}
.category-tab:hover { color: var(--text-color); }
.category-tab.active {
    color: var(--blue, #164f7d);
    border-bottom-color: var(--blue, #164f7d);
}

/* TEASER KARTE */
.product-card { background: var(--bg-color); border: 1px solid var(--gray-border); border-radius: 4px; padding: 25px; display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); }
.product-card.sold-out { opacity: 0.55; }

.product-image-container { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 15px; border-radius: 2px; background-color: var(--gray-light); }
.product-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.product-card:hover .product-image { transform: scale(1.03); }

.product-header { margin-bottom: 15px; }
.zusatz-badge { display: inline-block; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); background-color: var(--gray-light); padding: 4px 8px; border-radius: 2px; margin-bottom: 12px; }
.product-card h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 10px; line-height: 1.3; }
.product-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; }

.product-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 15px; border-top: 1px solid var(--gray-border); margin-top: auto; }
.price { font-size: 1.1rem; font-weight: 600; }
.sold-out-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: #999; font-weight: 600; }

.action-container { text-align: center; margin-top: 35px; }
.btn-more { display: inline-block; background: transparent; color: var(--text-color); border: 1px solid var(--text-color); padding: 12px 28px; font-size: 0.9rem; font-weight: 500; text-decoration: none; border-radius: 4px; transition: background 0.2s ease, color 0.2s ease; }
.btn-more:hover { background: var(--text-color); color: #ffffff; }