/* ===================================
   ÜBER UNS PAGE STYLES
   =================================== */

/* ===================================
   BASE OVERRIDES
   =================================== */
.page-ueber-uns {
    background: #fff;
    color: #1a1a1a;
}

.page-ueber-uns .accent,
.page-ueber-uns .text-accent {
    color: var(--color-accent, #c0003a);
}

.page-ueber-uns .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===================================
   HERO - Split Layout with Animation
   =================================== */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
    padding-top: 80px;
    background: #0a0a0a;
}

.hero-dark {
    background: transparent;
    display: flex;
    align-items: flex-end;
    padding: 4rem 2rem 4rem 4rem;
}

.hero-text {
    max-width: 500px;
    padding-left: max(2.5rem, calc((95vw - 1200px) / 2));
}

.hero-text .overline {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-text h1 {
    font-family: var(--font-headline);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 0.95;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-light {
    background: transparent;
    position: relative;
}

/* Foto rechtsbündig mit Burger-Menü, oben leicht versetzt, ragt unten über */
.hero-image {
    position: absolute;
    top: 1rem;
    /* rechte Kante bündig mit Navbar/Burger (max-width 1400px, 2rem padding) */
    right: max(2rem, calc((97vw - 1400px) / 2 + 2rem));
    /* Bildbreite – wächst mit, aber gedeckelt */
    width: clamp(420px, 44vw, 660px);
    height: 115%;
    z-index: 10;
}

.hero-image img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0;
    transform: scale(1.03);
    animation: heroImageIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroImageIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===================================
   INTRO SECTION (ein Textblock, wie andere Seiten)
   =================================== */
.section-intro {
    background: #fff;
    /* oben mehr Platz wegen Bild-Überhang */
    padding: 7rem 2rem 5rem;
}

.section-intro .container {
    max-width: 900px;
}

.section-intro .history-content {
    text-align: center;
}

.section-intro .history-content p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #444;
    margin: 0;
}

/* ===================================
   HISTORY SECTION
   =================================== */
.section-history {
    background: #fff;
    padding: 4rem 0;
    border-top: 1px solid #eee;
    overflow: visible;
}

.history-wrapper {
    display: block;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.history-content {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.history-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.history-content h2 {
    font-family: var(--font-headline);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.05;
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0 0 2rem 0;
}

.history-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.25rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--color-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #a00030;
    transform: translateY(-2px);
}

.history-image {
    position: relative;
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.history-image.visible {
    opacity: 1;
    transform: translateX(0);
}

.history-image img {
    width: 100%;
    max-width: 600px;
    transform: translateY(120px);
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
}

/* ===================================
   VALUES SECTION
   =================================== */
.section-values {
    background: #0a0a0a;
    padding: 6rem 0 4rem;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.values-content {
    padding-right: 3rem;
}

.values-content h2 {
    font-family: var(--font-headline);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.05;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 1.5rem 0;
}

.values-content p {
    font-size: 0.95rem;
    line-height: 1.9;
    color: rgba(255,255,255,0.7);
}

.values-box {
    background: var(--color-accent);
    padding: 2.5rem;
}

.values-box h3 {
    font-family: var(--font-headline);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin: 0 0 1.5rem 0;
}

.values-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.values-box li {
    color: #fff;
    font-size: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.values-box li:last-child {
    border-bottom: none;
}

/* ===================================
   STATS SECTION
   =================================== */
.section-stats {
    background: #fff;
    padding: 4rem 2rem;
    border-bottom: 1px solid #eee;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    display: block;
    font-family: var(--font-headline);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===================================
   QUOTE SECTION
   =================================== */
.section-quote {
    background: #f5f5f7;
    padding: 5rem 2rem;
    text-align: center;
}

.quote-text {
    font-family: var(--font-headline);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 400;
    line-height: 1.4;
    color: #1a1a1a;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    font-style: normal;
}

.quote-author {
    font-size: 1rem;
    color: #666;
}

/* ===================================
   TEAM - Sticky Scroll DARK
   =================================== */
.section-team {
    background: #0a0a0a;
    padding: 4rem 0 0;
}

.team-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 1rem;
    padding: 0 2rem;
}

.team-intro h2 {
    font-family: var(--font-headline);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.05;
    text-transform: uppercase;
    color: var(--color-accent);
    margin: 0 0 0.75rem 0;
}

.team-intro p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
}

.team-scroll {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sticky Photo Container */
.team-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.sticky-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-height: 500px;
}

.team-photo {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.team-photo.visible {
    opacity: 1;
    transform: scale(1);
}

.photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.photo-placeholder .material-symbols-outlined {
    font-size: 120px;
    color: rgba(255,255,255,0.15);
}

.photo-placeholder .initials {
    font-family: var(--font-headline);
    font-size: 80px;
    font-weight: 400;
    color: var(--color-accent);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Team Items Container */
.team-items {
    padding: 0 3rem 0 2rem;
}

.team-item {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
    opacity: 0.25;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.team-item.active {
    opacity: 1;
    transform: translateY(0);
}

.team-item h3 {
    font-family: var(--font-headline);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    line-height: 1.1;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.team-position {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.team-details p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
}

.team-tasks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.team-tasks span {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
}

.team-contact {
    margin-top: 1rem;
}

.team-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.team-phone:hover {
    color: var(--color-accent);
}

.team-phone .material-symbols-outlined {
    font-size: 20px;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    .hero-split {
        display: flex;
        flex-direction: column;
        background: #0a0a0a;
        padding-top: 80px;
        min-height: 0;
    }
    
    .hero-dark {
        max-width: 100%;
        margin: 0;
        padding: 3rem 2rem;
        order: 2;
        min-height: 0;
    }
    
    .hero-text {
        padding-left: 0;
    }
    
    .hero-text h1 {
        white-space: normal;
    }
    
    .hero-light {
        background: #0a0a0a;
        order: 1;
        position: relative;
    }
    
    .hero-image {
        position: relative;
        inset: auto;
        top: auto;
        right: auto;
        width: 100%;
        height: auto;
    }
    
    .hero-image img {
        width: 100%;
        height: auto;
        min-height: 240px;
        max-height: 360px;
        max-width: none;
        object-fit: cover;
        transform: scale(1.04);
        animation: heroImageIn 0.8s ease 0.4s forwards;
    }
    
    .section-intro .history-content {
        max-width: 100%;
    }
    
    .history-wrapper {
        max-width: 100%;
    }
    
    .section-values {
        padding-top: 4rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .values-content {
        padding-right: 0;
        padding-bottom: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Mobile: Stack layout for Team */
    .team-scroll {
        grid-template-columns: 1fr;
    }
    
    .team-sticky {
        position: relative;
        top: auto;
        height: auto;
        padding: 2rem;
        min-height: 280px;
    }
    
    .team-photo {
        width: 220px;
        height: 220px;
        opacity: 1;
        transform: scale(1);
    }
    
    .photo-placeholder .material-symbols-outlined {
        font-size: 80px;
    }
    
    .photo-placeholder .initials {
        font-size: 60px;
    }
    
    .team-items {
        padding: 0 2rem;
    }
    
    .team-item {
        min-height: auto;
        padding: 2rem 0;
        opacity: 1;
        transform: translateY(0);
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .team-item:last-child {
        border-bottom: none;
        padding-bottom: 4rem;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .section-intro {
        padding-top: 4rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}
