/* Expert Quote Component - Mobile First Design */

.expert-quote-section {
    padding: 0; /* Removed all padding including vertical */
    background: transparent; /* Changed to transparent for white background */
    margin-top: 0;
    margin-bottom: 36px; /* Standard spacing after expert quote - equivalent to var(--spacing-xl) */
}

.expert-quote-container {
    max-width: 100%;
    margin: 0 auto;
}

.expert-quote-card {
    background: #f8fffe; /* Very subtle tint instead of pure white for contrast */
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(35, 207, 178, 0.08); /* Softer shadow with primary color */
    border-left: 4px solid #23cfb2;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Mobile: Column layout */
}

/* Subtle background pattern */
.expert-quote-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #23cfb2 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.03;
    transform: rotate(45deg);
}

.expert-header {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Kleiner gap */
    margin-top: 0.25rem; /* Extrem kleiner Abstand - von 0.375rem auf 0.25rem */
    order: 2; /* Mobile: Place header second */
    position: relative;
    z-index: 1;
}

.expert-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid #23cfb2;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fallback initials if no image */
.expert-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #23cfb2, #1ba598);
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
}

.expert-info {
    flex: 1;
}

.expert-name {
    font-size: 1rem; /* Normale Textgröße wie überall anders */
    font-weight: 700; /* Bold aber nicht übertrieben */
    color: #1a1a1a;
    margin: 0; /* Kein margin */
    padding: 0; /* Kein padding */
    line-height: 1.4;
}

.expert-title {
    font-size: 0.75rem; /* Wieder etwas größer für bessere Lesbarkeit */
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.2;
}

.expert-quote {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
    position: relative;
    font-style: italic;
    z-index: 1;
    order: 1; /* Mobile: Place quote first */
}

.quote-mark {
    color: #23cfb2;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 0;
    vertical-align: -0.3em;
}

.quote-mark-start {
    margin-right: 0.2rem;
}

.quote-mark-end {
    margin-left: 0.2rem;
}

/* Tablet and up */
@media (min-width: 768px) {
    .expert-quote-section {
        padding: 0; /* Removed all padding for tablet/desktop too */
    }

    .expert-quote-container {
        max-width: 800px;
    }

    .expert-quote-card {
        padding: 1.5rem;
        flex-direction: column; /* Desktop: Keep column layout */
    }

    .expert-header {
        gap: 1.25rem;
        margin-top: 1rem; /* Desktop: Add space between quote and header */
        margin-bottom: 0;
        order: 2; /* Desktop: Keep header after quote */
    }

    .expert-quote {
        order: 1; /* Desktop: Keep quote first */
    }

    .expert-image {
        width: 80px;
        height: 80px;
    }

    .expert-image-placeholder {
        font-size: 1.5rem;
    }

    .expert-name {
        font-size: 1rem; /* Desktop normale Größe */
    }

    .expert-title {
        font-size: 0.8125rem; /* Desktop wieder etwas größer für Lesbarkeit */
    }

    .expert-quote {
        font-size: 1rem;
        line-height: 1.7;
    }

    .quote-mark {
        font-size: 1.75rem;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .expert-quote-section {
        padding: 0; /* Removed all padding for desktop too */
    }

    .expert-quote-container {
        max-width: 900px;
    }

    .expert-quote-card {
        padding: 1.5rem;
    }

    .expert-image {
        width: 90px;
        height: 90px;
    }

    .expert-quote {
        font-size: 1rem;
    }
}

/* Animation on scroll */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.expert-quote-card {
    animation: slideInUp 0.6s ease-out;
}

/* Hover effect for desktop */
@media (hover: hover) {
    .expert-quote-card {
        transition: box-shadow 0.3s ease, transform 0.3s ease;
    }

    .expert-quote-card:hover {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }
}