/* ===================================
   Über Uns Page Styles
   Gold colors + phoenix feather particles
   =================================== */

/* ===================================
   Hero Section with About Particles
   =================================== */

/* About particles container */
#aboutParticles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Hero overlay - golden phoenix atmosphere */
.hero-particles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(212, 175, 55, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 70% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 40%),
        linear-gradient(135deg, transparent 0%, rgba(212, 175, 55, 0.05) 50%, transparent 100%);
    animation: phoenixGlow 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* Bottom glow */
.hero-particles::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(to top, rgba(212, 175, 55, 0.15) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

@keyframes phoenixGlow {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.03);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* ===================================
   Introduction Section
   =================================== */

.intro-section {
    padding: 5rem 0;
    background: var(--color-bg-primary);
}

.intro-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.intro-text h2 {
    font-family: var(--font-serif);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.intro-text p {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: 1.5rem;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

.intro-image {
    position: relative;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    border: none;
}

.intro-image img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    object-fit: contain !important;
    aspect-ratio: auto !important;
    border-radius: 50%;
}

.certification-badge {
    display: none; /* Hidden as per user request */
}

/* ===================================
   Values Section
   =================================== */

.values-section {
    padding: 5rem 0;
    background: var(--color-bg-secondary);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background: var(--color-bg-primary);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all var(--transition-base);
    text-align: center;
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.25);
    border-color: rgba(212, 175, 55, 0.3);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all var(--transition-base);
}

.value-card:hover .value-icon {
    background: rgba(212, 175, 55, 0.2);
    transform: scale(1.05);
}

.value-icon svg {
    width: 35px;
    height: 35px;
    stroke: var(--color-accent-gold);
    stroke-width: 2;
}

.value-card h3 {
    font-family: var(--font-serif);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.value-card p {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

/* ===================================
   Team Section
   =================================== */

.team-section {
    padding: 5rem 0;
    background: var(--color-bg-primary);
}

.team-content {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
}

.team-content p {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: 1.5rem;
}

.team-content p:last-child {
    margin-bottom: 0;
}

.team-qualities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.quality-item {
    background: var(--color-bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-base);
}

.quality-item:hover {
    transform: translateX(4px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.quality-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg,
        var(--color-accent-gold),
        var(--color-accent-gold-light)
    );
    color: var(--color-bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    font-size: 18px;
    flex-shrink: 0;
}

.quality-item span {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
}

/* ===================================
   Why Us Section
   =================================== */

.why-us-section {
    padding: 5rem 0;
    background: var(--color-bg-secondary);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.why-item {
    background: var(--color-bg-primary);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
    transition: all var(--transition-base);
}

.why-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.25);
}

.why-number {
    position: absolute;
    top: -15px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg,
        var(--color-accent-gold),
        var(--color-accent-gold-light)
    );
    color: var(--color-bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
    opacity: 1;
}

.why-item h3 {
    font-family: var(--font-serif);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin: 1.5rem 0 1rem;
}

.why-item p {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

/* ===================================
   Certifications Section
   =================================== */

.certifications-section {
    padding: 5rem 0;
    background: var(--color-bg-primary);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cert-card {
    background: var(--color-bg-secondary);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(212, 175, 55, 0.15);
    text-align: center;
    transition: all var(--transition-base);
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.3);
}

.cert-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg,
        rgba(212, 175, 55, 0.15),
        rgba(255, 215, 0, 0.12)
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.cert-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--color-accent-gold);
    stroke-width: 2;
}

.cert-card h3 {
    font-family: var(--font-serif);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
}

.cert-card p {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

/* ===================================
   CTA Section
   =================================== */

.final-cta {
    background: linear-gradient(135deg,
        rgba(212, 175, 55, 0.08) 0%,
        transparent 100%
    );
    border-radius: var(--radius-xl);
    padding: var(--spacing-12) var(--spacing-8);
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.final-cta h2 {
    font-size: var(--font-size-4xl);
    font-family: var(--font-serif);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-4);
}

.final-cta > p {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    max-width: 700px;
    margin-bottom: var(--spacing-8);
    margin-left: auto;
    margin-right: auto;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-6);
    margin-bottom: var(--spacing-8);
}

.contact-method {
    padding: var(--spacing-6);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.contact-method:hover {
    border-color: var(--color-accent-gold);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.contact-method h3 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-3);
}

.contact-link {
    display: inline-block;
    font-size: var(--font-size-2xl);
    font-family: var(--font-serif);
    font-weight: var(--font-weight-bold);
    color: var(--color-accent-gold);
    text-decoration: none;
    transition: all var(--transition-base);
}

.contact-link:hover {
    color: var(--color-accent-gold-light);
}

.btn {
    display: inline-block;
    padding: var(--spacing-4) var(--spacing-8);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.btn-primary {
    background: linear-gradient(135deg,
        var(--color-accent-gold),
        var(--color-accent-gold-light)
    );
    color: var(--color-bg-primary);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--color-accent-gold);
    border: 2px solid var(--color-accent-gold);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

/* ===================================
   Phoenix Logo Particles - Emanating from Logo
   =================================== */

.phoenix-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

/* Individual phoenix particle - feather theme */
.phoenix-particle {
    position: absolute;
    top: 50%;
    left: 50%;
    pointer-events: none;
    animation: oozeOut var(--ooze-duration) ease-out forwards;
    will-change: transform, opacity;
}

/* Phoenix particle appearance - golden feather */
.phoenix-particle::before {
    content: '';
    position: absolute;
    width: var(--particle-size, 12px);
    height: calc(var(--particle-size, 12px) * 2);
    background: radial-gradient(
        ellipse at 50% 30%,
        rgba(255, 215, 0, 0.9) 0%,
        rgba(212, 175, 55, 0.7) 40%,
        rgba(184, 148, 31, 0.5) 100%
    );
    border-radius: 50% 50% 50% 0;
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow:
        0 0 10px rgba(212, 175, 55, 0.5),
        inset 1px 2px 3px rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
    filter: blur(0.4px);
}

/* Oozing outward animation */
@keyframes oozeOut {
    0% {
        transform: translate(-50%, -50%) translate(0, 0) scale(0.3) rotate(0deg);
        opacity: 0;
    }
    15% {
        opacity: 0.9;
    }
    50% {
        opacity: 0.7;
    }
    80% {
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%)
                   translate(var(--ooze-x), var(--ooze-y))
                   scale(1)
                   rotate(var(--ooze-rotation, 0deg));
        opacity: 0;
    }
}

/* ===================================
   About Hero Particles - SVG Phoenix Feathers
   =================================== */

/* Floating feather particle container */
.about-particle.feather {
    position: absolute;
    pointer-events: none;
    animation: floatFeather var(--duration) ease-in-out forwards;
    will-change: transform, opacity;
    z-index: 2;
}

/* SVG feather styling */
.about-particle .feather-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
}

/* Feather vane (main body) */
.about-particle .feather-vane {
    fill: var(--vane-color, rgba(212, 175, 55, 0.7));
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 0.3;
}

/* Feather quill (center spine) */
.about-particle .feather-quill {
    stroke: var(--quill-color, rgba(184, 134, 11, 0.9));
    stroke-width: 1;
    fill: none;
    stroke-linecap: round;
}

/* Floating feather animation - graceful rise */
@keyframes floatFeather {
    0% {
        transform:
            translateX(0)
            translateY(0)
            rotate(var(--rotate-start, 0deg))
            scale(0.4);
        opacity: 0;
    }
    8% {
        opacity: 0.7;
    }
    25% {
        transform:
            translateX(var(--drift-1, 25px))
            translateY(-150px)
            rotate(var(--rotate-mid-1, 15deg))
            scale(0.8);
        opacity: 0.85;
    }
    50% {
        transform:
            translateX(var(--drift-2, -20px))
            translateY(-300px)
            rotate(var(--rotate-mid-2, -10deg))
            scale(1);
        opacity: 0.75;
    }
    75% {
        transform:
            translateX(var(--drift-3, 30px))
            translateY(-450px)
            rotate(var(--rotate-mid-3, 20deg))
            scale(0.9);
        opacity: 0.5;
    }
    92% {
        opacity: 0.2;
    }
    100% {
        transform:
            translateX(var(--drift-1, 20px))
            translateY(-600px)
            rotate(var(--rotate-start, 0deg))
            scale(0.7);
        opacity: 0;
    }
}

/* Fallback for non-SVG particles */
.about-particle:not(.feather)::before {
    content: '';
    position: absolute;
    width: var(--feather-size, 14px);
    height: calc(var(--feather-size, 14px) * 2.2);
    background: linear-gradient(135deg,
        rgba(255, 215, 0, 0.18) 0%,
        rgba(212, 175, 55, 0.15) 50%,
        rgba(184, 148, 31, 0.12) 100%
    );
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50% 50% 50% 0;
    box-shadow:
        0 0 15px rgba(212, 175, 55, 0.25),
        inset 1px 2px 4px rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    clip-path: ellipse(50% 50% at 50% 40%);
}

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

@media (max-width: 968px) {
    .intro-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .intro-image {
        order: -1; /* Image first on mobile */
    }

    .values-grid,
    .why-grid,
    .cert-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .team-qualities {
        grid-template-columns: 1fr;
    }

    .intro-section,
    .values-section,
    .team-section,
    .why-us-section,
    .certifications-section {
        padding: 3.5rem 0;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .final-cta {
        padding: var(--spacing-8) var(--spacing-6);
    }
}

@media (max-width: 640px) {
    .intro-text h2 {
        font-size: var(--font-size-2xl);
    }

    .intro-text p,
    .team-content p {
        font-size: var(--font-size-base);
    }

    .values-grid,
    .why-grid,
    .cert-grid {
        grid-template-columns: 1fr;
    }

    .value-card,
    .why-item,
    .cert-card {
        padding: 2rem;
    }

    .certification-badge {
        bottom: 15px;
        right: 15px;
        padding: 0.75rem 1rem;
        font-size: var(--font-size-sm);
    }

    .certification-badge svg {
        width: 20px;
        height: 20px;
    }

    .final-cta h2 {
        font-size: var(--font-size-3xl);
    }

    .final-cta > p {
        font-size: var(--font-size-base);
    }

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

    /* Reduce particles on mobile */
    .about-particle:nth-child(2n),
    .phoenix-particle:nth-child(2n) {
        display: none;
    }
}

/* ===================================
   Light Theme Support
   =================================== */

[data-theme="light"] .values-section,
[data-theme="light"] .why-us-section {
    background: #f8f9fa;
}

[data-theme="light"] .value-card,
[data-theme="light"] .why-item {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .cert-card,
[data-theme="light"] .quality-item {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .intro-image {
    box-shadow: none;
}

/* ===================================
   Print Styles
   =================================== */

@media print {
    .about-particle,
    .phoenix-particle,
    .hero-particles::before,
    .hero-particles::after,
    .certification-badge {
        display: none;
    }

    .intro-section,
    .values-section,
    .team-section,
    .why-us-section,
    .certifications-section {
        page-break-inside: avoid;
    }
}

/* ===================================
   Accessibility - Reduced Motion
   =================================== */

@media (prefers-reduced-motion: reduce) {
    .about-particle,
    .phoenix-particle {
        animation: none;
        opacity: 0.3;
    }

    .hero-particles::before,
    .hero-particles::after {
        animation: none;
    }

    .value-card:hover,
    .why-item:hover,
    .cert-card:hover,
    .quality-item:hover {
        transform: none;
    }

    .value-icon {
        transition: none;
    }
}
