/* ============================
   RESPONSIVE SLIDER (900x400)
   ============================ */
.gr-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 900 / 300; /* automatische Höhe */
    overflow: hidden;
}

/* Slides übereinander */
.gr-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.gr-slide.active {
    opacity: 1;
    z-index: 5;
}

/* Bild korrekt darstellen */
.gr-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* füllt den Bereich */
    object-position: center; /* zentriert */
    display: block;
}

/* Caption */
.gr-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-shadow: 0 0 12px black;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
}

.gr-slide.active .gr-caption {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Navigation */
.gr-prev,
.gr-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    text-shadow: 0 0 12px black;
    cursor: pointer;
    user-select: none;
    padding: 12px;
    z-index: 20; /* <<< WICHTIG */
}


.gr-prev { left: 24px; }
.gr-next { right: 24px; }

/* ============================
   CATEGORY SECTION (MODERN)
   ============================ */

.category-section {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
}

.category-title {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin-bottom: 35px;
    text-align: center;
}

/* GRID */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 40px;
}

/* CARD */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    height: 280px;
    background: linear-gradient(135deg, #ffffff, #f4f7ff);
    border-radius: 0;
    text-decoration: none;

    /* dünner anthrazitfarbener Rand */
    border: 1px solid #d0d0e1;
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: transparent;
    box-shadow:
            0 18px 38px rgba(0,0,0,0.32),
            0 6px 12px rgba(0,0,0,0.18);
}

/* Bild bleibt eckig */
.category-image-wrapper img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 16px;
}
/* ============================
   CATEGORY DETAIL SECTION
   ============================ */

.category-detail-section {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
}

/* Beschreibung */
.category-description h2 {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
}

.category-description p {
    font-size: 18px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Grid für Unterkategorien */
.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 32px;
}

/* Card */
.subcategory-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 16px;
    background: #fff;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.subcategory-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(0,0,0,0.18);
    border-color: transparent;
}

/* Bild */
.subcategory-image-wrapper img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 12px;
}

/* Label */
.subcategory-label {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    text-align: center;
}
.solar-wrapper {
    max-width: 600px;
    margin: 40px auto;
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.08);
    font-family: Arial, sans-serif;
}

.progress {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    margin-bottom: 20px;
}

#solar-progress-bar {
    height: 6px;
    width: 0%;
    background: #0050c8;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.solar-step { display: none; }
.solar-step.active { display: block; }

.solar-input {
    width: 100%;
    padding: 10px;
    margin: 12px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
}

.solar-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.solar-option {
    flex: 1 1 30%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: #eee;
    cursor: pointer;
}

.solar-option.selected {
    background: #0050c8;
    color: #fff;
}

.solar-next-btn, .solar-submit-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: #0050c8;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.solar-calculator-section {
    display: none;
}
/* SEARCH RESULTS */
.gr-search-results {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    margin-top: 0.5rem;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: none; /* unsichtbar bis Ergebnisse kommen */
    position: relative;
    z-index: 999998; /* knapp unter Header */
}

.gr-search-item {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.gr-search-item:last-child {
    border-bottom: none;
}

.gr-search-item:hover {
    background: #f5f7fa;
}


/* ============================
   MOBILE
   ============================ */
@media (max-width: 768px) {

    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 24px;
    }

    .category-card {
        height: 140px;
        border-radius: 0;
    }

    .category-icon-wrapper i {
        font-size: 52px;
    }

    .category-label {
        font-size: 20px;
    }
    .category-card {
        height: 140px;
        border-radius: 0; /* <<< das hat dir alles überschrieben */
    }
    .category-card:hover {
        transform: translateY(-6px); /* etwas weniger Bewegung auf kleinen Screens */
        border-color: transparent;

        /* breiterer, dunklerer Schatten für kleine Karten */
        box-shadow:
                0 20px 40px rgba(0,0,0,0.38),
                0 8px 16px rgba(0,0,0,0.22);
    }
}

/* ============================
   BIG CATEGORY CARDS (MODERN)
   ============================ */

.category-card.big {
    height: 240px;                     /* größer */
    border-radius: 0;               /* weicher */
    background: linear-gradient(135deg, #ffffff, #f3f7ff);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    padding: 20px;
}

.category-card.big:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

/* ICON */
.category-icon-wrapper.big i {
    font-size: 64px;                   /* größer */
    color: #0056b3;                    /* kräftiger */
    margin-bottom: 18px;
}

/* LABEL */
.category-label.big {
    font-size: 22px;                   /* größer */
    font-weight: 700;
    color: #222;
}
/* 🛒 PRODUCT GRID */
/* Produkt-Container mittig ausrichten */
.products-container {
    max-width: 1200px;        /* Begrenzte Breite für schöne Mitte */
    margin: 0 auto;           /* Zentriert den gesamten Block */
    padding: 20px;            /* Etwas Luft */
}

/* Grid für Produkte */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    justify-items: center;    /* Zentriert die einzelnen Cards */
}

.product-card {
    width: 100%;              /* WICHTIG */
    max-width: 260px;         /* Einheitliche Breite */
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
}


.product-image-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto;   /* WICHTIG: Zentriert den Wrapper */
}


.badge-offer {
    background: #e63946;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: bold;
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;             /* Falls nötig */
}

.product-image {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
}



.product-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 6px;
}

.product-short {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
    min-height: 30px;
}

.product-price {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
}

.btn-details {
    display: inline-block;
    padding: 10px 14px;
    background: #0077cc;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

.lead-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lead-overlay.hidden {
    display: none;
}

.lead-box {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 350px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.lead-box h2 {
    margin-bottom: 15px;
}

.lead-box input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.lead-submit {
    width: 100%;
    padding: 12px;
    background: #0077cc;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}

.lead-close {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    background: #aaa;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* ============================
   MOBILE
   ============================ */
@media (max-width: 768px) {
    .gr-slider {
        aspect-ratio: 900 / 500; /* etwas höher für Handy */
    }
}
