/**
 * GEO KI-SEO Optimizer - Frontend Styles
 * FAQ Accordion für Produktseiten - Angepasst an GrowNova Shop-Design
 */

/* FAQ Container */
.geo-faq-container {
    padding: 20px 0;
    font-family: 'Open Sans', sans-serif;
}

/* Desktop: Grüner Titel */
.geo-faq-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1e5a36;
    cursor: default;
}

/* FAQ Accordion */
.geo-faq-accordion {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(30, 90, 54, 0.08);
}

.geo-faq-item {
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.2s ease;
    background: #ffffff;
}

.geo-faq-item:last-child {
    border-bottom: none;
}

.geo-faq-item:hover {
    background-color: rgba(30, 90, 54, 0.02);
}

.geo-faq-item.is-open {
    background-color: rgba(30, 90, 54, 0.04);
    border-left: 3px solid #1e5a36;
}

/* FAQ Question (Button) */
.geo-faq-question {
    width: 100%;
    padding: 18px 24px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    transition: all 0.2s ease;
}

.geo-faq-question:hover {
    color: #1e5a36;
    padding-left: 28px;
}

.geo-faq-question:focus {
    outline: 2px solid #1e5a36;
    outline-offset: -2px;
}

.geo-faq-question-text {
    flex: 1;
    padding-right: 20px;
    line-height: 1.4;
}

/* FAQ Toggle Icon */
.geo-faq-toggle {
    flex-shrink: 0;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e5a36;
    color: #ffffff;
    border-radius: 4px;
    font-size: 1.25rem;
    font-weight: bold;
    transition: all 0.2s ease;
}

.geo-faq-item:hover .geo-faq-toggle {
    background: #3f8e5c;
    transform: scale(1.05);
}

.geo-faq-item.is-open .geo-faq-toggle {
    background: #3f8e5c;
}

/* FAQ Answer */
.geo-faq-answer {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.geo-faq-answer-content {
    padding: 0 24px 24px 24px;
    color: #555;
    line-height: 1.7;
    font-size: 0.9375rem;
}

.geo-faq-answer-content p {
    margin-bottom: 12px;
}

.geo-faq-answer-content p:last-child {
    margin-bottom: 0;
}

/* FAQ Empty State */
.geo-faq-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-style: italic;
}

.geo-faq-empty p {
    margin: 0;
    font-size: 1rem;
}

/* Mobile/Desktop Switch: Tab vs Accordion Card */
/* Default: Mobile Card sichtbar (für Mobile-First Ansatz) */
/* Wird bei Desktop (≥992px) per Media Query versteckt */
.geo-faq-mobile-card,
div.geo-faq-mobile-card,
.card.geo-faq-mobile-card {
    display: block;
}

/* Desktop: Card-Link Styling (falls die Card doch sichtbar wird) */
.geo-faq-mobile-card .card-link {
    text-decoration: none !important;
    color: #333 !important;
}

.geo-faq-mobile-card .card-link:hover {
    text-decoration: none !important;
    color: #333 !important;
}

/* Mobile (≤991px): Mobile Card zusätzlich anzeigen */
@media (max-width: 991px) {
    /* Mobile Card anzeigen */
    .geo-faq-mobile-card,
    div.geo-faq-mobile-card,
    .card.geo-faq-mobile-card,
    .accordion .geo-faq-mobile-card {
        display: block !important;
        visibility: visible !important;
        height: auto !important;
        opacity: 1 !important;
    }

    /* FAQ Container innerhalb der Card anpassen */
    .geo-faq-mobile-card .geo-faq-container {
        padding: 0;
    }

    /* FAQ Titel in Mobile Card ausblenden (Card-Header ist der Titel) */
    .geo-faq-mobile-card .geo-faq-title {
        display: none;
    }

    /* FAQ Accordion innerhalb Card anpassen */
    .geo-faq-mobile-card .geo-faq-accordion {
        border: none;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
    }

    /* FAQ Items an Shop Card Style anpassen */
    .geo-faq-mobile-card .geo-faq-item {
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        margin-bottom: 0.5rem;
        background: #fff;
    }

    .geo-faq-mobile-card .geo-faq-item:hover {
        background-color: #f8f9fa;
    }

    .geo-faq-mobile-card .geo-faq-item.is-open {
        background-color: #f8f9fa;
    }

    /* FAQ Question Button anpassen */
    .geo-faq-mobile-card .geo-faq-question {
        padding: 0.75rem 1rem;
        font-family: 'Open Sans', sans-serif;
        font-size: 0.9rem;
        font-weight: 400;
        color: #333;
        background-color: #f5f5f5;
    }

    .geo-faq-mobile-card .geo-faq-question:hover {
        color: #333;
        background-color: #e9ecef;
    }

    /* FAQ Toggle Icon minimal anpassen */
    .geo-faq-mobile-card .geo-faq-toggle {
        min-width: auto;
        height: auto;
        background: none;
        color: #666;
        font-size: 0.875rem;
    }

    .geo-faq-mobile-card .geo-faq-item:hover .geo-faq-toggle {
        background: none;
        transform: none;
    }

    .geo-faq-mobile-card .geo-faq-item.is-open .geo-faq-toggle {
        background: none;
    }

    /* FAQ Answer Content anpassen */
    .geo-faq-mobile-card .geo-faq-answer-content {
        padding: 1rem;
        font-size: 0.875rem;
        background: #fff;
    }
}

@media (max-width: 768px) {
    /* WICHTIG: Mobile Card sichtbar lassen! */
    .geo-faq-mobile-card,
    div.geo-faq-mobile-card,
    .card.geo-faq-mobile-card,
    .accordion .geo-faq-mobile-card {
        display: block !important;
        visibility: visible !important;
    }

    .geo-faq-title {
        font-size: 0.95rem;
        padding: 0.65rem 0.875rem;
    }

    .geo-faq-question {
        padding: 0.65rem 0.875rem;
        font-size: 0.875rem;
    }

    .geo-faq-answer-content {
        padding: 0.875rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    /* WICHTIG: Mobile Card sichtbar lassen! */
    .geo-faq-mobile-card,
    div.geo-faq-mobile-card,
    .card.geo-faq-mobile-card,
    .accordion .geo-faq-mobile-card {
        display: block !important;
        visibility: visible !important;
    }

    .geo-faq-title {
        font-size: 0.9rem;
        padding: 0.6rem 0.75rem;
    }

    .geo-faq-question {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }

    .geo-faq-question-text {
        padding-right: 10px;
    }

    .geo-faq-answer-content {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
}
/* Desktop (≥992px): Mobile Card verstecken, Tab funktioniert normal */
@media (min-width: 992px) {
    /* Mobile Card verstecken */
    .geo-faq-mobile-card,
    div.geo-faq-mobile-card,
    .card.geo-faq-mobile-card,
    .accordion .geo-faq-mobile-card {
        display: none !important;
        visibility: hidden !important;
    }
}


/* ============================================
   Versand-Countdown (v4.17.0)
   Live-Countdown für "Bestelle in X Min. – Versand heute!"
   ============================================ */

.geo-shipping-countdown {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.geo-shipping-countdown i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.geo-shipping-countdown-text {
    flex: 1;
}

.geo-shipping-countdown-text strong {
    font-weight: 700;
}

/* Farb-Varianten */

/* Grün (default) - Vertrauen */
.geo-shipping-countdown.geo-countdown-green {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
    color: #2e7d32;
}

.geo-shipping-countdown.geo-countdown-green i {
    color: #4caf50;
}

/* Orange - Dringlichkeit */
.geo-shipping-countdown.geo-countdown-orange {
    background-color: #fff3e0;
    border-left: 4px solid #ff9800;
    color: #e65100;
}

.geo-shipping-countdown.geo-countdown-orange i {
    color: #ff9800;
}

/* Blau - Neutral */
.geo-shipping-countdown.geo-countdown-blue {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    color: #1565c0;
}

.geo-shipping-countdown.geo-countdown-blue i {
    color: #2196f3;
}

/* Rot - Hohe Dringlichkeit */
.geo-shipping-countdown.geo-countdown-red {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
    color: #c62828;
}

.geo-shipping-countdown.geo-countdown-red i {
    color: #f44336;
}

/* Animation bei Countdown-Update */
.geo-shipping-countdown.geo-countdown-pulse {
    animation: countdownPulse 0.5s ease;
}

@keyframes countdownPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
    .geo-shipping-countdown {
        padding: 10px 12px;
        font-size: 0.875rem;
        gap: 8px;
    }

    .geo-shipping-countdown i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .geo-shipping-countdown {
        padding: 8px 10px;
        font-size: 0.8125rem;
        flex-wrap: wrap;
    }
}

/* ============================================
   Social Proof (v4.21.0)
   "X Personen sehen sich diesen Artikel gerade an"
   ============================================ */

.geo-social-proof {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem;
    line-height: 1.4;
}

.geo-social-proof i {
    font-size: 1rem;
    flex-shrink: 0;
}

.geo-social-proof-text {
    flex: 1;
}

.geo-social-proof-text strong {
    font-weight: 700;
}

/* Farb-Varianten */

/* Orange (default) - Aufmerksamkeit */
.geo-social-proof.geo-social-proof-orange {
    background-color: #fff8e1;
    border-left: 4px solid #ffa000;
    color: #e65100;
}

.geo-social-proof.geo-social-proof-orange i {
    color: #ffa000;
}

/* Gruen - Vertrauen */
.geo-social-proof.geo-social-proof-green {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
    color: #2e7d32;
}

.geo-social-proof.geo-social-proof-green i {
    color: #4caf50;
}

/* Blau - Neutral */
.geo-social-proof.geo-social-proof-blue {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    color: #1565c0;
}

.geo-social-proof.geo-social-proof-blue i {
    color: #2196f3;
}

/* Rot - Dringlichkeit */
.geo-social-proof.geo-social-proof-red {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
    color: #c62828;
}

.geo-social-proof.geo-social-proof-red i {
    color: #f44336;
}

/* Responsive */
@media (max-width: 768px) {
    .geo-social-proof {
        padding: 8px 12px;
        font-size: 0.8125rem;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .geo-social-proof {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}

/* ============================================
   Glossar-Links in Merkmalen (v4.29.0)
   Dezente Verlinkung von Merkmal-Namen zur Glossar-Seite
   Option 1: Nur gepunktete Linie, kein Icon
   ============================================ */

.glossar-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted #1e5a36;
    cursor: help;
    transition: all 0.2s ease;
}

.glossar-link:hover {
    color: #1e5a36;
    border-bottom-style: solid;
    text-decoration: none;
}

/* In Merkmal-Tabellen: Link-Farbe an Tabellen-Design anpassen */
.attr-value .glossar-link,
.merkmal .glossar-link,
.specifications .glossar-link,
table .glossar-link {
    color: inherit;
}

/* Responsive: Auf mobilen Geraeten dezenter */
@media (max-width: 768px) {
    .glossar-link {
        border-bottom-width: 1px;
    }
}
