/* Mobile Über Uns Page Optimization CSS */

/* Hero Section */
.ueber-uns-hero {
    padding: 2rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, var(--bordeaux) 0%, var(--rosa) 100%);
    color: white;
}

@media (max-width: 768px) {
    .ueber-uns-hero {
        padding: 1.5rem 1rem;
    }
    
    .ueber-uns-hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    .ueber-uns-hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        opacity: 0.9;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .ueber-uns-hero h1 {
        font-size: 1.75rem;
    }
    
    .ueber-uns-hero p {
        font-size: 0.95rem;
    }
}

/* Company Story Section */
.company-story {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .company-story {
        padding: 2rem 1rem;
    }
    
    .company-story h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        text-align: center;
        color: var(--bordeaux);
    }
    
    .company-story p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
        color: #555;
    }
}

@media (max-width: 480px) {
    .company-story h2 {
        font-size: 1.75rem;
    }
    
    .company-story p {
        font-size: 0.95rem;
    }
}

/* Team Section */
.team-section {
    background: #f8f9fa;
    padding: 3rem 1rem;
}

@media (max-width: 768px) {
    .team-section {
        padding: 2rem 1rem;
    }
    
    .team-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
        text-align: center;
        color: var(--bordeaux);
    }
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Team Member Cards */
.team-member {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .team-member {
        border-radius: 15px;
    }
}

/* Team Member Image */
.team-member-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

@media (max-width: 768px) {
    .team-member-image {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .team-member-image {
        height: 200px;
    }
}

/* Team Member Info */
.team-member-info {
    padding: 1.5rem;
    text-align: center;
}

@media (max-width: 768px) {
    .team-member-info {
        padding: 1.25rem;
    }
    
    .team-member-info h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
        color: var(--bordeaux);
        font-weight: 600;
    }
    
    .team-member-info .position {
        font-size: 0.9rem;
        color: var(--rosa);
        font-weight: 500;
        margin-bottom: 1rem;
    }
    
    .team-member-info .description {
        font-size: 0.85rem;
        color: #666;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .team-member-info .specialties {
        font-size: 0.8rem;
        color: #888;
        font-style: italic;
    }
}

/* Team Member Contact */
.team-member-contact {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bordeaux);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.contact-link:hover {
    background: var(--rosa);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .contact-link {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* Certificates Section */
.certificates-section {
    padding: 3rem 1rem;
    background: white;
}

@media (max-width: 768px) {
    .certificates-section {
        padding: 2rem 1rem;
    }
    
    .certificates-section h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
        text-align: center;
        color: var(--bordeaux);
    }
    
    .certificates-section p {
        font-size: 1rem;
        text-align: center;
        color: #666;
        margin-bottom: 2rem;
        line-height: 1.6;
    }
}

/* Certificates Grid */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .certificates-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
}

/* Certificate Cards */
.certificate {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

@media (max-width: 768px) {
    .certificate {
        padding: 1.25rem;
    }
}

/* Certificate Image */
.certificate-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--bordeaux) 0%, var(--rosa) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

@media (max-width: 768px) {
    .certificate-image {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .certificate-image {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Certificate Info */
.certificate h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--bordeaux);
    font-weight: 600;
}

.certificate .issuer {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.certificate .year {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
}

@media (max-width: 768px) {
    .certificate h4 {
        font-size: 0.95rem;
    }
    
    .certificate .issuer {
        font-size: 0.8rem;
    }
    
    .certificate .year {
        font-size: 0.75rem;
    }
}

/* Values Section */
.values-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 1rem;
}

@media (max-width: 768px) {
    .values-section {
        padding: 2rem 1rem;
    }
    
    .values-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
        text-align: center;
        color: var(--bordeaux);
    }
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Value Cards */
.value-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .value-card {
        padding: 1.5rem;
    }
    
    .value-card .value-icon {
        font-size: 2.5rem;
        color: var(--bordeaux);
        margin-bottom: 1rem;
    }
    
    .value-card h4 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        color: var(--bordeaux);
        font-weight: 600;
    }
    
    .value-card p {
        font-size: 0.9rem;
        color: #666;
        line-height: 1.6;
    }
}

/* Contact CTA */
.contact-cta {
    background: linear-gradient(135deg, var(--bordeaux) 0%, var(--rosa) 100%);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
}

@media (max-width: 768px) {
    .contact-cta {
        padding: 2rem 1rem;
    }
    
    .contact-cta h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .contact-cta p {
        font-size: 1rem;
        margin-bottom: 2rem;
        opacity: 0.9;
        line-height: 1.6;
    }
    
    .contact-cta .btn {
        display: inline-block;
        padding: 1rem 2rem;
        background: white;
        color: var(--bordeaux);
        text-decoration: none;
        border-radius: 25px;
        font-weight: 600;
        transition: all 0.3s ease;
        min-height: 48px;
        line-height: 1.5;
    }
    
    .contact-cta .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    }
}

/* Timeline Section (if exists) */
.timeline-section {
    padding: 3rem 1rem;
    background: white;
}

@media (max-width: 768px) {
    .timeline-section {
        padding: 2rem 1rem;
    }
    
    .timeline-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
        text-align: center;
        color: var(--bordeaux);
    }
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--bordeaux);
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--bordeaux);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--bordeaux);
}

@media (max-width: 768px) {
    .timeline-item {
        padding-left: 3rem;
    }
    
    .timeline-item::before {
        left: 12px;
    }
    
    .timeline-item h4 {
        font-size: 1.1rem;
        color: var(--bordeaux);
        margin-bottom: 0.5rem;
    }
    
    .timeline-item .year {
        font-size: 0.9rem;
        color: var(--rosa);
        font-weight: 600;
        margin-bottom: 0.5rem;
    }
    
    .timeline-item p {
        font-size: 0.9rem;
        color: #666;
        line-height: 1.6;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .team-member,
    .certificate,
    .value-card,
    .contact-cta .btn {
        transition: none;
    }
}

/* Focus states */
.contact-link:focus,
.contact-cta .btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Loading states */
.team-member-image[data-loading="true"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Print styles */
@media print {
    .team-grid,
    .certificates-grid,
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .team-member,
    .certificate,
    .value-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .contact-cta {
        background: #f8f9fa !important;
        color: #333 !important;
    }
}