/* ============================================
   ProWert — Fixes v4
   Fade-Effekt Produktbilder + Video Testimonials
   ============================================ */

/* ==========================================
   Produktbilder — Fade-Effekt wie Hero
   ========================================== */

.product-visual-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
    padding: 0;
    position: relative;
    min-height: 420px;
}

.product-visual-row .product-visual-text {
    max-width: 480px;
    padding: 3rem 4rem;
    position: relative;
    z-index: 2;
}

.product-visual-row .product-visual {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 55%;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

.product-visual-row .product-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 20%, rgba(0,0,0,1) 50%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 20%, rgba(0,0,0,1) 50%);
}

/* Reverse: Bild links, Text rechts */
.product-visual-row.reverse .product-visual {
    right: auto;
    left: 0;
}

.product-visual-row.reverse .product-visual img {
    mask-image: linear-gradient(to left, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 20%, rgba(0,0,0,1) 50%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 20%, rgba(0,0,0,1) 50%);
}

.product-visual-row.reverse .product-visual-text {
    margin-left: auto;
    text-align: right;
}

.product-visual-row.reverse {
    direction: ltr;
}

/* Text Styling */
.product-visual-text h3 {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.product-visual-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

[data-theme="dark"] .product-visual-text p {
    color: #ffffff !important;
}

[data-theme="dark"] .product-visual-text h3 {
    color: #ffffff !important;
}

/* Hero image auch mit Fade */
.hero-visual img {
    mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 15%, rgba(0,0,0,0.8) 40%, rgba(0,0,0,1) 60%) !important;
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 15%, rgba(0,0,0,0.8) 40%, rgba(0,0,0,1) 60%) !important;
}

/* ==========================================
   Video Testimonials
   ========================================== */

.testimonials-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    margin-top: 3rem !important;
}

.testimonial-card {
    padding: 0 !important;
    overflow: hidden !important;
}

.testimonial-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    max-height: 480px;
    overflow: hidden;
    background: #000;
    cursor: pointer;
}

.testimonial-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testimonial-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    transition: opacity var(--t-normal);
    pointer-events: none;
}

.testimonial-video-wrapper:hover .testimonial-video-overlay {
    opacity: 0.8;
}

.testimonial-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(200, 158, 41, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-normal);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.testimonial-play-btn::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #fff;
    margin-left: 3px;
}

.testimonial-video-wrapper:hover .testimonial-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 4px 30px rgba(200, 158, 41, 0.4);
}

.testimonial-video-wrapper.playing .testimonial-play-btn,
.testimonial-video-wrapper.playing .testimonial-video-overlay {
    opacity: 0;
}

.testimonial-video-info {
    position: relative;
    z-index: 2;
}

.testimonial-video-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.2rem;
}

.testimonial-video-role {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.testimonial-video-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* ==========================================
   Team — Alle gleich groß
   ========================================== */

.team-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
    justify-items: center;
}

.team-card {
    padding: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

.team-photo {
    width: 100% !important;
    height: 320px !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    border: none !important;
    margin: 0 !important;
    background: var(--bg-tertiary) !important;
}

.team-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
}

.team-card h4,
.team-card .team-role,
.team-card .team-qual {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    text-align: left !important;
}

.team-card h4 {
    font-size: 1.15rem !important;
    margin-bottom: 0.3rem !important;
    padding-top: 1.25rem !important;
}

.team-card .team-role { font-size: 0.88rem !important; }
.team-card .team-qual { font-size: 0.82rem !important; padding-bottom: 1.5rem !important; margin-top: 0.2rem !important; }

.team-photo:not(:has(img)) {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem !important;
}

/* ==========================================
   Partner-Logos — Doppelt groß
   ========================================== */

.logos-section { padding: 5.5rem 0 !important; }

.logos-inner {
    gap: 4.5rem !important;
    align-items: center !important;
}

.logos-inner img {
    height: 140px !important;
    width: auto !important;
    max-width: 260px !important;
    object-fit: contain !important;
}

.logos-label { font-size: 0.75rem !important; margin-bottom: 2.5rem !important; }

/* ==========================================
   Dark Mode Lesbarkeit
   ========================================== */

[data-theme="dark"] .product-card > p,
[data-theme="dark"] .product-feature span,
[data-theme="dark"] .usp-card p,
[data-theme="dark"] .why-item p,
[data-theme="dark"] .how-step p,
[data-theme="dark"] .faq-answer-inner,
[data-theme="dark"] .partner-benefit span,
[data-theme="dark"] .about-text p,
[data-theme="dark"] .section-subtitle,
[data-theme="dark"] .hero-description,
[data-theme="dark"] .contact-detail { color: #ffffff !important; }

[data-theme="dark"] .product-card h3,
[data-theme="dark"] .usp-card h3,
[data-theme="dark"] .why-item h3,
[data-theme="dark"] .how-step h3,
[data-theme="dark"] .faq-question h3,
[data-theme="dark"] .team-card h4,
[data-theme="dark"] .contact-info h3,
[data-theme="dark"] .about-text h3 { color: #ffffff !important; text-shadow: 0 0 20px rgba(200, 190, 170, 0.08); }

[data-theme="dark"] .trust-item { color: #ffffff !important; }
[data-theme="dark"] .trust-item strong { color: #ffffff !important; }
[data-theme="dark"] .team-card .team-role { color: #a8a49c !important; }
[data-theme="dark"] .product-price { color: #a8a49c !important; }
[data-theme="dark"] .product-price strong { color: #ffffff !important; }
[data-theme="dark"] .testimonial-name { color: #ffffff !important; }
[data-theme="dark"] .testimonial-role { color: #908c84 !important; }
[data-theme="dark"] .footer-brand p, [data-theme="dark"] .footer-col a, [data-theme="dark"] .footer-copyright { color: #ffffff !important; }
[data-theme="dark"] .footer-col a:hover { color: var(--gold) !important; }

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 968px) {
    .team-grid { grid-template-columns: repeat(2, 1fr) !important; max-width: 700px !important; }
    .product-visual-row { min-height: 350px; }
    .product-visual-row .product-visual { width: 50%; }
    .product-visual-row .product-visual-text { padding: 2rem; }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .logos-inner { gap: 3rem !important; flex-wrap: wrap !important; }
    .logos-inner img { height: 100px !important; }
}

@media (max-width: 600px) {
    .team-grid { grid-template-columns: 1fr !important; max-width: 380px !important; }
    .team-photo { height: 350px !important; }
    .product-visual-row {
        min-height: auto;
        grid-template-columns: 1fr !important;
    }
    .product-visual-row .product-visual {
        position: relative !important;
        width: 100% !important;
        height: 250px;
    }
    .product-visual-row .product-visual img {
        mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0)) !important;
        -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0)) !important;
    }
    .product-visual-row.reverse .product-visual img {
        mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0)) !important;
        -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0)) !important;
    }
    .product-visual-row .product-visual-text {
        padding: 1.5rem;
        text-align: left !important;
    }
    .testimonials-grid { grid-template-columns: 1fr !important; max-width: 360px; margin-left: auto !important; margin-right: auto !important; }
    .testimonial-video-wrapper { max-height: 520px; }
    .logos-inner { gap: 2rem !important; }
    .logos-inner img { height: 70px !important; }
}

/* Footer im normalen Dokumentfluss — erscheint erst beim Scrollen ans Seitenende. */

/* ==================== Footer kompakt (5 Spalten + Social vertikal + Copyright integriert) ==================== */
.footer { padding: 1.4rem 0 1.2rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.9fr 1fr 1.2fr 1fr 0.45fr;
    gap: 2rem;
    margin-bottom: 0;
    align-items: start;
}
.footer-brand p { margin-bottom: 0.6rem; font-size: 0.8rem; line-height: 1.55; max-width: 300px; }
.footer-brand .logo { margin-bottom: 0.6rem; display: inline-block; }
.footer-copyright {
    font-size: 0.72rem;
    color: #666;
    letter-spacing: 0.02em;
    margin-top: 0.2rem;
}
.footer-col h4 {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 0.7rem;
    font-weight: 600;
}
.footer-col a {
    display: block;
    font-size: 0.8rem;
    color: #888;
    padding: 0.18rem 0;
    line-height: 1.4;
}
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    align-items: flex-end;
    justify-self: end;
}
.footer-social a {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
}
.footer-bottom { display: none !important; }

@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 0.4fr; gap: 1.5rem; }
}
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .footer-social { flex-direction: row; align-items: center; justify-self: start; grid-column: 1 / -1; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-social { grid-column: auto; justify-self: start; }
}

/* ============ Newsletter-Link im Footer: Groessen-Puls (Aufmerksamkeit, 2026-06-02) ============ */
@keyframes nlFooterPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06); }
}
.footer-col a.text-gold {
    display: inline-block;          /* statt block: Puls betrifft nur den Text, nicht die volle Spaltenbreite */
    transform-origin: left center;  /* linke Kante bleibt buendig zu den Links darueber, waechst nach rechts */
    animation: nlFooterPulse 1.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
    .footer-col a.text-gold { animation: none; }  /* Barrierefreiheit: keine Bewegung bei entsprechender OS-Einstellung */
}
