/* ============================================
   üBER UNS â€“ Premium Landing Page Styles
   Stefan Kübrich GmbH & Co. KG
   ============================================ */

/* ============================================
   HELPER
   ============================================ */
.premium-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: block;
}

.text-center {
    text-align: center;
}

/* ============================================
   FADE-IN ANIMATION
   ============================================ */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   1. HERO SECTION: SPLIT SCREEN
   ============================================ */
.hero-ueber-uns {
    padding-top: 10rem;
    /* clearance for fixed header */
    padding-bottom: 6rem;
    background: var(--bg-white);
    color: var(--text-dark);
}

.hero-ueber-uns-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.hero-ueber-uns-content {
    max-width: 580px;
}

.hero-ueber-uns-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: var(--fw-bold);
    color: var(--text-dark);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-divider {
    width: 60px;
    height: 3px;
    background: var(--accent-red);
    border-radius: 2px;
    margin-bottom: 1.75rem;
}

.hero-ueber-uns-sub {
    font-size: var(--fs-lg);
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 0;
}

.hero-ueber-uns-image {
    position: relative;
    height: 560px;
    border-radius: var(--radius-lg);
}

.hero-image-badge {
    position: absolute;
    bottom: 2rem;
    left: -1.5rem;
    background: var(--accent-red);
    color: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.hero-badge-number {
    font-size: 2.5rem;
    font-weight: var(--fw-bold);
    line-height: 1;
}

.hero-badge-text {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 992px) {
    .hero-ueber-uns-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-ueber-uns-image {
        height: 400px;
        order: -1;
    }

    .hero-image-badge {
        left: 1rem;
    }
}

/* ============================================
   2. DIE EXPERTE-STORY
   ============================================ */
.experte-story {
    background: var(--bg-light-grey);
}

.experte-story-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.experte-story-inner p {
    font-size: var(--fs-lg);
    color: var(--text-muted);
    line-height: 1.85;
    margin-top: 2rem;
}

/* ============================================
   3. TEAM-SLIDER (INFINITE MARQUEE)
   ============================================ */
.team-slider-section {
    background: var(--bg-white);
    overflow: hidden;
    position: relative;
}

/* Fade edges on static outer section wrapper */
.team-slider-section::before,
.team-slider-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 35px;
    z-index: 10;
    pointer-events: none;
}

.team-slider-section::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-white), transparent);
}

.team-slider-section::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-white), transparent);
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 3rem 0 1rem;
    position: relative;
    touch-action: pan-y;
}

.marquee-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: marquee-scroll 55s linear infinite;
    touch-action: pan-y;
}

@media (hover: hover) {
    .marquee-track:hover {
        animation-play-state: paused;
    }
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 1rem));
    }
}

/* ---- Team Card ---- */
.team-card {
    flex-shrink: 0;
    width: 300px;
    height: 420px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    background: var(--bg-light-grey);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
}

/* ---- Hover Overlay ---- */
.team-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 25, 35, 0.92);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    color: var(--white);
}

@media (hover: hover) {
    .team-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-xl);
    }

    .team-card:hover img {
        transform: scale(1.08);
    }

    .team-card:hover .team-overlay {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile interactive states for team marquee */
@media (max-width: 768px) {
    /* Abstand oberhalb des Bildes showroom.webp (unter dem Menü) auf Mobilgeräten */
    .hero-ueber-uns {
        padding-top: 0.5rem;
    }

    .team-slider-section .c-section-header {
        margin-bottom: 1.25rem;
    }

    .marquee-container {
        padding: 0.5rem 0 1rem;
    }

    .marquee-track.is-paused {
        animation-play-state: paused !important;
    }

    .team-card.active {
        transform: translateY(-8px) scale(1.02);
        box-shadow: var(--shadow-xl);
        z-index: 5;
    }

    .team-card.active img {
        transform: scale(1.08);
    }

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

.team-name {
    font-size: 1.4rem;
    font-weight: var(--fw-bold);
    margin-bottom: 0.25rem;
    color: var(--white);
}

.team-role {
    color: var(--accent-red);
    font-weight: var(--fw-semibold);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.25rem;
}

.team-info-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.25rem;
}

.team-info-list li {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 0.6rem;
    color: rgba(255, 255, 255, 0.8);
}

.team-info-list li strong {
    color: var(--white);
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 1px;
    opacity: 0.7;
}

/* ============================================
   4. DER RECRUITING-HEBEL (Liquid Gradient)
   ============================================ */
.recruiting-section {
    padding: 6rem 0;
    background: var(--bg-white);
    position: relative;
    z-index: 1;
}

.recruiting-container {
    max-width: 900px;
    margin: 0 auto;
}

.recruiting-card {
    background: var(--bg-white);
    padding: 4rem 3rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--accent-red);
    position: relative;
    /* No z-index here â€“ so ::before with z-index:-1 goes strictly UNDER the white background */
}

/* Fluid, irregular pulsating mesh gradient behind the box */
.recruiting-card::before {
    content: '';
    position: absolute;
    inset: -40px;
    z-index: -1;
    background:
        radial-gradient(circle at 10% 20%, rgba(157, 25, 27, 0.7) 0%, transparent 50%),
        radial-gradient(circle at 90% 30%, rgba(180, 40, 45, 0.6) 0%, transparent 50%),
        radial-gradient(circle at 30% 80%, rgba(130, 15, 18, 0.8) 0%, transparent 50%),
        radial-gradient(circle at 80% 90%, rgba(157, 25, 27, 0.5) 0%, transparent 60%);
    background-size: 150% 150%;
    filter: blur(30px);
    border-radius: 40px;
    opacity: 0.8;
    animation: liquid-gradient 10s ease-in-out infinite alternate;
    pointer-events: none;
    transform-origin: center;
}

@keyframes liquid-gradient {
    0% {
        background-position: 0% 0%;
        transform: scale(0.9) rotate(-3deg);
    }

    33% {
        background-position: 100% 50%;
        transform: scale(1.05) rotate(2deg);
    }

    66% {
        background-position: 50% 100%;
        transform: scale(0.95) rotate(-2deg);
    }

    100% {
        background-position: 0% 100%;
        transform: scale(1.1) rotate(3deg);
    }
}

.recruiting-title {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: var(--fw-bold);
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.recruiting-text {
    font-size: var(--fs-lg);
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.recruiting-card .btn-outline {
    border-color: var(--accent-red);
    color: var(--accent-red);
    background: transparent;
}

.recruiting-card .btn-outline:hover {
    background: var(--accent-red);
    color: var(--white);
}

@media (max-width: 768px) {
    .recruiting-card {
        padding: 3rem 2rem;
    }

    .recruiting-card::before {
        inset: -20px;
        filter: blur(20px);
    }
}

/* ============================================
   5. CTA: DIE EINLADUNG
   ============================================ */
.cta-einladung {
    background: var(--bg-light-grey);
}

.cta-einladung-inner {
    max-width: 700px;
    margin: 0 auto;
}

.cta-einladung-inner p {
    font-size: var(--fs-lg);
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

.btn-cta-einladung {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 2.5rem;
    background: var(--accent-red);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    cursor: pointer;
    font-family: var(--font-family);
    transition: background var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
    box-shadow: 0 8px 20px rgba(157, 25, 27, 0.3);
}

.btn-cta-einladung:hover {
    background: var(--accent-red-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(157, 25, 27, 0.4);
}

/* ============================================
   MOBILE FONT SIZE NORMALIZATION
   ============================================ */
@media (max-width: 768px) {
    h1, .hero-ueber-uns-title { font-size: 2.2rem !important; line-height: 1.2 !important; }
    h2, .recruiting-title { font-size: 1.8rem !important; line-height: 1.3 !important; }
    main p, .hero-ueber-uns-sub, .recruiting-text, .experte-story-inner p, .cta-einladung-inner p { font-size: 1rem !important; line-height: 1.5 !important; }
    
    /* Weiches Ein- und Ausblenden auf Mobilgeräten verschmalern */
    .marquee-container::before,
    .marquee-container::after {
        width: 5vw;
    }
}