/* Unterseite Styles */

/* Subpage Hero */
.subpage-hero {
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
    margin-top: 76px;
    background-color: var(--accent-green);
    color: var(--text-on-dark);
    position: relative;
}

.team-hero {
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.6)), var(--secondary-color);
    text-align: center;
}

.team-hero h1,
.team-hero .hero-subtitle {
    color: var(--text-on-dark);
    text-shadow: none;
}

.team-hero .hero-subtitle {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.15rem;
    opacity: 0.95;
}

.subpage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    z-index: 0;
}

.subpage-hero .container {
    position: relative;
    z-index: 1;
}

.subpage-hero h1 {
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-xxl);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-sm);
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

.breadcrumbs a:hover {
    color: var(--secondary-light);
}

.breadcrumbs i {
    font-size: 10px;
    color: var(--neutral-300);
}

/* Description Section */
.subpage-description {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

.subpage-description .container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
    align-items: center;
}

.description-content {
    flex: 1;
    min-width: 300px;
}

.description-content h2 {
    margin-bottom: var(--spacing-md);
    color: var(--secondary-color);
}

.description-content p {
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
    font-size: var(--font-size-md);
    line-height: 1.7;
}

.illustration {
    flex: 1;
    min-width: 300px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.illustration img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Key Benefits */
.key-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.benefit {
    flex: 1;
    min-width: 200px;
    padding: var(--spacing-md);
    background-color: var(--neutral-100);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
}

.benefit:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.benefit .icon-container {
    background-color: rgba(203, 211, 95, 0.15);
    width: 50px;
    height: 50px;
}

.benefit h3 {
    font-size: var(--font-size-md);
    margin: var(--spacing-sm) 0;
    color: var(--secondary-color);
}

.benefit p {
    font-size: var(--font-size-sm);
    margin-bottom: 0;
}

/* Configurator Section */
.configurator-section {
    padding: var(--spacing-xl) 0;
    background-color: rgba(152, 170, 163, 0.1);
}

.configurator-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-sm);
    color: var(--secondary-color);
}

.configurator-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    color: var(--text-secondary);
}

.configurator-container {
    background-color: var(--bg-light);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.jotform-container {
    min-height: 500px;
}

.configurator-placeholder {
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--neutral-400);
    border-radius: var(--border-radius-md);
    color: var(--text-light);
    padding: var(--spacing-lg);
    text-align: center;
}

.configurator-placeholder i {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.configurator-placeholder p {
    margin-bottom: var(--spacing-sm);
}

.configurator-placeholder .small {
    font-size: var(--font-size-sm);
    opacity: 0.7;
}

/* Call to Action Section */
.cta-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--secondary-color);
    color: var(--text-on-dark);
    text-align: center;
}

.cta-section h2 {
    margin-bottom: var(--spacing-sm);
}

.cta-section p {
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

.cta-section .btn-secondary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.cta-section .btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* FAQ Section */
.faq-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--secondary-color);
    position: relative;
}

.faq-section h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    transform: translateX(-50%);
    border-radius: 2px;
}

.faq-container {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: var(--spacing-md);
    border-radius: var(--border-radius-md);
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.faq-question {
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.faq-item.active .faq-question {
    border-left: 4px solid var(--primary-color);
    background-color: rgba(203, 211, 95, 0.05);
}

.faq-question h3 {
    margin: 0;
    font-size: var(--font-size-md);
    color: var(--secondary-color);
    font-weight: 600;
    flex-grow: 1;
}

.toggle-icon {
    background-color: var(--neutral-100);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: var(--spacing-md);
}

.toggle-icon i {
    color: var(--secondary-color);
    font-size: 12px;
    transition: transform 0.3s ease;
}

.faq-item.active .toggle-icon {
    background-color: var(--primary-color);
}

.faq-item.active .toggle-icon i {
    color: var(--secondary-color);
    transform: rotate(135deg);
}

.faq-answer {
    display: none; /* Einfaches Ausblenden ohne Übergänge */
    padding: 0;
    background-color: white;
}

.faq-item.active .faq-answer {
    display: block; /* Direkte Anzeige ohne Übergänge */
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-answer p {
    margin: var(--spacing-md) 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Responsive */
/* Team Sektion Styles */
.team-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

.team-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.team-intro h2 {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
    position: relative;
}

.team-intro h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    transform: translateX(-50%);
    border-radius: 2px;
}

.team-intro p {
    color: var(--text-secondary);
    font-size: var(--font-size-md);
    line-height: 1.7;
}

.team-intro.single {
    text-align: left;
}

.team-profile {
    display: flex;
    gap: var(--spacing-xl);
    align-items: flex-start;
    max-width: 900px;
    margin: var(--spacing-xl) auto 0;
}

.team-profile .profile-image {
    flex: 0 0 240px;
    max-width: 240px;
}

.team-profile .profile-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

.team-profile .profile-name {
    margin-top: var(--spacing-sm);
    text-align: center;
    font-weight: 600;
    color: var(--secondary-color);
}

.team-profile .profile-content {
    flex: 1;
}

.team-profile .profile-content ul {
    margin: var(--spacing-md) 0;
    padding-left: 1.25rem;
    color: var(--text-secondary);
    list-style: none;
}

.team-profile .profile-content li {
    margin-bottom: var(--spacing-xs);
    position: relative;
    padding-left: var(--spacing-md);
}

.team-profile .profile-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    transform: translateY(-50%);
}

/* Team Grid */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xxl);
}

/* Team Member Card */
.team-member {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 3px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(203, 211, 95, 0.3);
}

.member-photo {
    height: 400px;
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
    transition: none;
}

.member-info {
    padding: var(--spacing-md) var(--spacing-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.member-info h3 {
    font-size: var(--font-size-lg);
    color: var(--secondary-color);
    margin-bottom: var(--spacing-xs);
}

.member-position {
    color: var(--primary-color);
    font-weight: 600;
    font-size: var(--font-size-md);
    margin-bottom: var(--spacing-md);
}

.member-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.member-contact {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: auto;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--secondary-color);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-color);
}

.contact-link i {
    font-size: var(--font-size-md);
}

/* Team Values */
.team-values {
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--neutral-200);
}

.team-values h2 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.team-values h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    transform: translateX(-50%);
    border-radius: 2px;
}

.values-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    justify-content: center;
}

.value-item {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    padding: var(--spacing-lg);
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-item i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    background-color: rgba(203, 211, 95, 0.15);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto var(--spacing-md);
}

.value-item h4 {
    color: var(--secondary-color);
    font-size: var(--font-size-md);
    margin-bottom: var(--spacing-sm);
}

.value-item p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .subpage-hero {
        padding: var(--spacing-xl) 0 var(--spacing-md);
    }
    
    .subpage-hero h1 {
        font-size: calc(var(--font-size-xxl) * 0.8);
    }
    
    .description-content, .illustration {
        flex: 100%;
    }
    
    .benefit {
        flex: 100%;
    }
    
    .team-member {
        flex: 100%;
    }

    .team-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .team-profile .profile-image,
    .team-profile .profile-content {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .team-profile .profile-content {
        text-align: left;
    }
    
    /* Hide mobile button on desktop */
.mobile-team-button {
    display: none;
}

/* Mobile Hero Section Fixes */
    .subpage-hero {
        background-position: center top !important;
        background-size: 100% auto !important;
        background-repeat: no-repeat !important;
        height: 50vw !important;
        min-height: 0 !important;
        max-height: 50vh !important;
    }
    
    /* Force override inline styles on mobile */
    .subpage-hero[style] {
        background-size: 100% auto !important;
        background-position: center top !important;
        background-repeat: no-repeat !important;
        height: 50vw !important;
        min-height: 0 !important;
        max-height: 50vh !important;
    }
    
    .subpage-hero h1 {
        font-size: 2.5rem !important;
    }
    
    .subpage-hero .hero-subtitle {
        display: none !important;
    }
    
    /* Mobile-only team button */
    .mobile-team-button {
        display: block !important;
        text-align: center;
        margin-top: 2rem;
        margin-bottom: 26rem;
        padding-bottom: 4rem;
    }
    
    .mobile-team-button .cta-button {
        display: inline-block;
        background: var(--primary-color, #4CAF50);
        color: white;
        padding: 1rem 2rem;
        text-decoration: none;
        border-radius: 8px;
        font-weight: 600;
        font-size: 1.1rem;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    }
    
    .mobile-team-button .cta-button:hover {
        background: var(--primary-dark, #45a049);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
    }
    
    .member-photo {
        height: 350px;
    }
    
    .member-info {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .value-item {
        flex: 100%;
        max-width: 100%;
    }
    
    .configurator-container {
        padding: var(--spacing-md);
    }
    
    .faq-question {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .faq-question h3 {
        font-size: calc(var(--font-size-md) * 0.9);
    }
    
    .faq-item.active .faq-answer {
        padding: 0 var(--spacing-md) var(--spacing-md) var(--spacing-md);
    }
}
