/* Theme Name: BestCommerce Theme (Dark + Drag Slider)
   Author: Best Commerce GmbH
   Version: 1.9
   Description: Original Dark Theme. Fixes mobile transparency for news container.
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&display=swap');

/* --- 1. Global Variables & Resets --- */
:root {
    --accent: #38bdf8;
    --accent-gradient: linear-gradient(90deg, #38bdf8, #818cf8);
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
}

html { overflow-x: hidden; }

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    background: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
}

* { box-sizing: border-box; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; }

/* Soft animated blurred background for all pages */
body::before {
    content: '';
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.35), transparent 55%),
        radial-gradient(circle at 80% 0%, rgba(129, 140, 248, 0.35), transparent 55%),
        radial-gradient(circle at 0% 80%, rgba(45, 212, 191, 0.3), transparent 55%),
        radial-gradient(circle at 90% 80%, rgba(244, 63, 94, 0.25), transparent 55%);
    filter: blur(40px);
    transform: scale(1.2);
    animation: body-bg-animate 40s ease-in-out infinite alternate;
    opacity: 0.55;
    pointer-events: none;
}

@keyframes body-bg-animate {
    from { transform: scale(1.15) translate3d(0, 0, 0); }
    to { transform: scale(1.25) translate3d(-20px, 10px, 0); }
}

/* --- 2. Header & Navigation --- */
body > header {
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease;
}

body > header.header-hidden { transform: translateY(-100%); }

.logo { font-weight: 800; font-size: 1.5em; color: #fff; display: inline-flex; align-items: center; text-decoration: none; }
.logo .logo-text,
.logo .logo-text span { color: inherit; }
.logo .logo-text span { color: var(--accent); }
.logo-img { display: block; height: 42px; width: auto; max-width: 220px; object-fit: contain; }
@media (max-width: 768px) {
    .logo-img { height: 36px; max-width: 180px; }
}

/* Desktop Menu */
nav { display: flex; align-items: center; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
nav li { margin-left: 30px; }
nav a {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 1px;
    position: relative;
}
nav a:hover { color: #fff; }
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent);
    transition: width 0.3s;
}
nav a:hover::after { width: 100%; }

/* Social Icons in Header */
.header-social {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 30px;
    padding-left: 30px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    height: 30px;
}
.header-social a {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    transition: 0.3s;
}
.header-social a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}
.header-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    flex-direction: column;
    gap: 6px;
}
.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #fff;
    transition: 0.3s;
}

/* --- 3. Hero Section --- */
.hero {
    display: flex;
    min-height: 100vh;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    width: 50%;
    padding: 0 80px;
    z-index: 2;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 60%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    opacity: 0.7;
    animation: kenburns 20s infinite alternate;
}

@keyframes kenburns {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

h1 {
    font-size: 3.5em;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
    word-wrap: break-word;
    hyphens: auto;
}

.highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    background: var(--accent-gradient);
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
}
.btn:hover { transform: translateY(-3px); }

/* --- 4. Features --- */
.feature-row {
    display: flex;
    padding: 180px 0;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}
.feature-row.reverse { flex-direction: row-reverse; }

.f-text { width: 50%; padding: 0 60px; }
.f-img {
    width: 50%;
    height: 500px;
    background: var(--bg-card);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5em;
    color: #334155;
    margin: 20px;
    transition: transform 0.5s;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}
.feature-row:hover .f-img { transform: scale(1.02); }

.f-img.f-img-dashboard .f-img-inner, 
.f-img.f-img-globe .f-img-inner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

h2 { font-size: 2.5em; margin-bottom: 20px; color: #fff; }
p { font-size: 1.1em; line-height: 1.8; color: var(--text-muted); }

/* --- 5. News Grid (Standard Pages) --- */
.news-section { background: var(--bg-card); padding: 100px 50px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 50px; }

.news-card {
    background: var(--bg-dark);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #334155;
    transition: 0.3s;
    display: block;
    position: relative;
}
.news-card:hover { border-color: var(--accent); transform: translateY(-10px); }

.date { color: var(--accent); font-weight: bold; display: block; margin-bottom: 10px; font-size: 0.9em; }
.news-title { font-size: 1.2em; font-weight: 700; color: #fff; line-height: 1.4; }

/* --- HOME: HORIZONTAL SCROLLER (FIXED TRANSPARENCY) --- */
.home .news-section {
    background: transparent !important;
    padding-left: 0;
    padding-right: 0;
}
.home .news-section > h2 {
    padding-left: 50px;
    padding-right: 50px;
}

/* 
   CRITICAL FIX: Force all containers in the slider path to be transparent.
   This targets the specific path mentioned by the user and variations.
*/
#neuigkeiten > div.news-slider,
#neuigkeiten > div.news-slider > div,
#neuigkeiten .news-scroller,
.home .news-slider,
.home .news-slider > div {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.home .news-slider {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-top: 40px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}
#neuigkeiten > div.news-slider {
    width: 100%;
    max-width: 100vw;
}

.home .news-scroller {
    display: flex;
    flex: 1;
    min-width: 0;
    gap: 24px;
    margin-top: 0;
    overflow-x: auto;
    padding: 20px 56px 40px;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 56px;
    scroll-padding-right: 56px;
    cursor: grab;
    width: 100%;
    box-sizing: border-box;

    /* Hide scrollbars */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
#neuigkeiten .news-scroller {
    flex: 1;
    min-width: 0;
    width: 100%;
}
.home #neuigkeiten {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}
.home .news-scroller::-webkit-scrollbar { display: none; }

/* Active Drag State (set by JS) */
.home .news-scroller.active {
    cursor: grabbing;
    scroll-snap-type: none !important; /* Disable snap while dragging */
}

/* Slider Cards */
.home .news-card.news-card-slider {
    flex: 0 0 340px;
    scroll-snap-align: start;
    background: rgba(15, 23, 42, 0.9); /* Original Dark Bg */
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.6);
    padding: 0;
    overflow: hidden;
    
    /* Prevent selection for dragging */
    user-select: none;
    -webkit-user-drag: none;
}

.home .news-card-image-wrap {
    width: 100%;
    height: 190px;
    overflow: hidden;
}

.home .news-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    
    /* Prevent dragging image file */
    pointer-events: none;
    -webkit-user-drag: none;
}

.home .news-card-body { padding: 20px 22px 22px; }

/* Remove Arrows */
.home .news-arrow { display: none !important; }


/* --- 6. Archive, Timeline, Pages --- */
/* Neuigkeiten archive: blurred animated background */
.neuigkeiten-archive .news-section-with-bg {
    position: relative;
    overflow: visible;
    min-height: 60vh;
    background: transparent !important;
}
.neuigkeiten-archive .news-section {
    background: transparent !important;
}
.neuigkeiten-archive .news-section-with-bg::before,
.neuigkeiten-archive .news-section-with-bg::after {
    display: none;
}
.neuigkeiten-archive .news-section-with-bg h2, 
.neuigkeiten-archive .news-section-with-bg .news-timeline, 
.neuigkeiten-archive .news-section-with-bg .news-timeline-item .news-card,
.neuigkeiten-archive .news-section-with-bg .news-section-pagination { position: relative; z-index: 2; }

/* Timeline */
.news-timeline { max-width: 1000px; margin: 60px auto 0; padding: 0 20px; display: flex; flex-direction: column; gap: 0; }
.news-timeline-item { display: flex; gap: 30px; }
.news-timeline-marker { width: 100px; display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.news-timeline-date { font-size: 0.9em; color: var(--accent); font-weight: 700; margin-bottom: 10px; text-align: center; }
.news-timeline-circle { width: 16px; height: 16px; background: var(--accent); border: 3px solid var(--bg-dark); border-radius: 50%; z-index: 2; box-shadow: 0 0 10px rgba(56, 189, 248, 0.5); }
.news-timeline-line { width: 2px; background: rgba(56, 189, 248, 0.3); flex-grow: 1; min-height: 60px; margin-top: -2px; }
.news-timeline-item:last-child .news-timeline-line { display: none; }
.news-timeline-item .news-card { flex-grow: 1; margin-bottom: 40px; width: 100%; }

.news-card-archive {
    display: flex;
    flex-direction: row;
    overflow: hidden;
    padding: 0;
}
.news-card-thumb {
    flex: 0 0 320px;
    min-height: 200px;
    overflow: hidden;
}
.news-card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.news-card-content {
    flex: 1;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Standard Page Content */
main.content { max-width: 900px; margin: 0 auto; padding: 140px 30px 80px; min-height: 60vh; }
main.content h1 { font-size: 2.5em; color: #fff; margin-bottom: 30px; border-bottom: 2px solid var(--accent); padding-bottom: 10px; display: inline-block; }
main.content h2, main.content h3 { color: #fff; margin-top: 30px; margin-bottom: 15px; }
main.content p, main.content li { color: #e2e8f0; line-height: 1.8; margin-bottom: 20px; }
main.content a { color: var(--accent); }

/* --- 8. CAREER & CONTACT --- */
.career-card {
    background: var(--bg-card);
    border: 1px solid #334155;
    border-radius: 10px;
    margin-bottom: 20px;
    padding: 20px;
    cursor: pointer;
    transition: 0.3s;
}
.career-card:hover { border-color: var(--accent); }
.career-card summary { list-style: none; display: flex; justify-content: space-between; align-items: center; font-weight: bold; color: #fff; }
.career-card summary::-webkit-details-marker { display: none; }
.career-card h2 { margin: 0; font-size: 1.3em; display: inline-block; }
.career-body { margin-top: 20px; padding-top: 20px; border-top: 1px solid #334155; color: var(--text-muted); }
.job-meta-highlight { color: var(--accent); font-weight: bold; font-size: 1em; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px dashed rgba(56, 189, 248, 0.3); }

/* Contact Page */
.contact-layout { display: flex; gap: 40px; align-items: flex-start; margin-top: 30px; }
.contact-text { flex: 1; }
.contact-image { flex: 1; }
.contact-image img { border-radius: 15px; border: 1px solid #334155; }

/* Post Navigation */
.post-navigation { display: flex; justify-content: space-between; margin-top: 60px; padding-top: 30px; border-top: 1px solid #334155; }
.post-navigation a { color: var(--accent); font-weight: bold; text-decoration: none; font-size: 0.9em; }
.post-navigation a:hover { color: #fff; }

/* Category Tags */
.category-tag a { background: var(--accent-gradient); color: #fff !important; padding: 5px 15px; border-radius: 20px; font-size: 0.8em; font-weight: bold; text-transform: uppercase; text-decoration: none; display: inline-block; margin-bottom: 15px; }

/* Footer */
footer { padding: 50px; text-align: center; color: #64748b; font-size: 0.9em; border-top: 1px solid #334155; background: var(--bg-dark); }

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}
.footer-social a {
    color: #64748b;
    transition: 0.3s;
    display: flex;
}
.footer-social a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}
.footer-social svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Padding below fixed header */
body:not(.home) main.content { padding-top: 140px !important; }
main.content.single-post-content { padding-top: 140px !important; max-width: 800px; margin: 0 auto 80px; }

/* --- 11. MOBILE RESPONSIVE RULES --- */
@media (max-width: 768px) {
    header { padding: 15px 20px; }
    .nav-toggle { display: flex; }
    header nav { position: fixed; top: 0; right: -100%; width: 80%; height: 100vh; background: rgba(15, 23, 42, 0.98); padding: 80px 30px; transition: right 0.4s ease; box-shadow: -5px 0 20px rgba(0,0,0,0.5); display: flex; flex-direction: column; overflow-y: auto; }
    header.nav-open nav { right: 0; }
    nav ul { flex-direction: column; width: 100%; }

    .header-social {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 30px;
        width: 100%;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 30px;
    }
    .header-social svg {
        width: 24px;
        height: 24px;
    }
    nav li { margin: 20px 0; }
    nav a { font-size: 1.1em; }
    header.nav-open .nav-toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    header.nav-open .nav-toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

    .hero { flex-direction: column-reverse; padding-top: 0; height: auto; min-height: auto; }
    .hero-content { width: 100%; padding: 40px 20px; }
    .hero-image { position: relative; width: 100%; height: 40vh; clip-path: none; }
    h1 { font-size: 2.2em; }

    .feature-row, .feature-row.reverse { flex-direction: column; padding: 60px 0; }
    .f-text { width: 100%; padding: 0 20px; }
    .f-img { width: calc(100% - 40px); height: 300px; margin: 30px 20px 0; }

    .news-grid { grid-template-columns: 1fr; padding: 0; }
    .news-section { padding: 60px 20px; }
    .news-timeline-marker { width: 60px; }
    .news-timeline-date { font-size: 0.7em; }
    .news-card-archive { flex-direction: column; }
    .news-card-thumb { flex: 0 0 auto; height: 180px; }
    .news-card-content { padding: 16px 20px; }

    /* Home: news scroller mobile – keep full width */
    .home .news-slider { gap: 0; }
    .home .news-section > h2 { padding-left: 20px; padding-right: 20px; }
    .home .news-scroller { padding-left: 28px; padding-right: 28px; }
    .home .news-card.news-card-slider { flex: 0 0 85vw; scroll-snap-align: center; }
    .home .news-arrow { display: none; }
    
    /* 
       MOBILE CONTAINER TRANSPARENCY FIX
       Explicitly targeting the selector path you mentioned
    */
    #neuigkeiten > div.news-slider > div {
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
    }

    /* Neuigkeiten background picture removed for now */

    .career-card summary { flex-direction: column; align-items: flex-start; gap: 10px; }
    .contact-layout { flex-direction: column-reverse; }
    body:not(.home) main.content { padding-top: 120px !important; padding-left: 20px; padding-right: 20px; }

    /* Fix for Single Post Headline on Mobile */
    .single-post-content .entry-title {
        font-size: 2.0em; /* You can change the font size here */
        padding-right: 10px; /* Adds extra space on the right */
    }
}

/* --- ABOUT TEASER SECTION (pushed left: image left, text center) --- */
.about-teaser {
    max-width: 1400px;
    margin: 0 auto;
    padding: 180px 40px;
}
.about-teaser-split {
    display: flex;
    gap: 60px;
    align-items: stretch;
}
.about-teaser-image {
    flex: 0 0 65%;
    width: 65%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    min-height: 580px;
    transition: transform 0.5s;
}
.about-teaser-split:hover .about-teaser-image {
    transform: scale(1.02);
}
.about-teaser-image img {
    width: 100%;
    height: 100%;
    min-height: 580px;
    object-fit: cover;
    display: block;
}
.about-teaser-placeholder {
    width: 100%;
    height: 100%;
    min-height: 420px;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(56, 189, 248, 0.15) 100%);
}
.about-teaser-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
}
.about-teaser-text h2 {
    font-size: 2.4em;
    margin: 0 0 20px;
}
.about-teaser-text p {
    color: var(--text-muted);
    font-size: 1.1em;
    line-height: 1.8;
}

/* --- BRANDS SECTION (pushed right: text center, grid right) --- */
.brands-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 180px 40px;
}
.brands-split {
    display: flex;
    gap: 60px;
    align-items: center;
}
.brands-text {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.brands-text h2 {
    font-size: 2.4em;
    margin: 0 0 20px;
}
.brands-text p {
    color: var(--text-muted);
    font-size: 1.1em;
    line-height: 1.8;
    max-width: 360px;
}
.brands-grid {
    flex: 0 0 55%;
    width: 55%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.brand-card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-main);
}


.brand-card-logo {
    height: 140px;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}
.brand-card-logo img {
    max-height: 100px;
    max-width: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    clip-path: none; /* Remove previous clip-path */
    filter: brightness(1);
    transition: filter 0.3s;
}
.brand-card:hover .brand-card-logo img {
    filter: brightness(1);
}
.brand-name {
    font-size: 1.4em;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--text-main);
    text-align: center;
}
.brand-accent {
    color: var(--accent);
}

.brand-card-info {
    padding: 20px 24px 24px;
}
.brand-card-info h3 {
    font-size: 1em;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-main);
}
.brand-card-info p {
    font-size: 0.85em;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .about-teaser { padding: 80px 20px; }
    .about-teaser-split { flex-direction: column; gap: 30px; }
    .about-teaser-image {
        flex: 0 0 auto;
        width: 100%;
        min-height: auto;
    }
    .about-teaser-image img {
        height: auto;
        min-height: 250px;
        max-height: 350px;
    }
    .about-teaser-text h2 { font-size: 1.6em; }

    .brands-section { padding: 80px 0 100px; }
    .brands-split { flex-direction: column; gap: 20px; padding: 0 20px; }
    .brands-text { flex: 0 0 auto; width: 100%; }
    .brands-text h2 { font-size: 1.6em; }
    .brands-grid {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding: 0 20px 15px;
        width: calc(100% + 40px);
        margin-left: -20px;
        scrollbar-width: none;
    }
    .brands-grid::-webkit-scrollbar { display: none; }
    .brands-grid .brand-card {
        flex: 0 0 70%;
        min-width: 0;
        scroll-snap-align: center;
    }
    .brand-name { font-size: 1.1em; }
}

/* --- UNIVERSAL BUTTON STYLE --- */
.btn {
    background: var(--accent-gradient);
    color: #fff !important;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}
.btn.btn-sm {
    padding: 10px 24px;
    font-size: 0.85em;
    margin-top: 20px;
}
.btn:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 15px 40px rgba(56, 189, 248, 0.5); color: #fff !important; }

/* Career Button spacing */
.career-body .btn { width: 100%; text-align: center; margin-top: 30px; }
@media (min-width: 768px) { .career-body .btn { width: auto; } }

/* --- ABOUT US PAGE --- */
.about-page {
    padding-top: 120px;
}

/* 1. About Hero */
.about-hero {
    text-align: center;
    padding: 100px 40px 80px;
    max-width: 900px;
    margin: 0 auto;
}
.about-badge {
    display: inline-block;
    padding: 8px 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 30px;
    backdrop-filter: blur(6px);
    background: rgba(56, 189, 248, 0.08);
}
.about-hero h1 {
    font-size: 4em;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 30px;
}
.about-hero-sub {
    font-size: 1.15em;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 2. Strategy Grid */
.about-strategy {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 100px;
}
.strategy-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 40px 30px;
    transition: border-color 0.3s, transform 0.3s;
}
.strategy-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
}
.strategy-icon {
    color: var(--accent);
    margin-bottom: 20px;
}
.strategy-card h3 {
    font-size: 1.4em;
    color: #fff;
    margin: 0 0 12px;
}
.strategy-card p {
    color: var(--text-muted);
    font-size: 0.95em;
    line-height: 1.7;
    margin: 0;
}

/* 3. Standort Photo Gallery */
.about-gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 100px;
}
.about-gallery > h2 {
    text-align: center;
    margin-bottom: 50px;
}

/* Updated Location Gallery */
.location-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.location-top {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.location-top img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.location-bottom {
    display: flex;
    gap: 20px;
    width: 100%;
}

.location-card {
    flex: 1;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-card);
    aspect-ratio: 3 / 4; /* Vertical alignment for bottom images */
}

.location-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 4. Stats Section */
.about-stats {
    display: flex;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 100px;
    align-items: center;
}
.stats-chart {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 40px;
}
.stats-chart h3 {
    color: #fff;
    margin: 0 0 24px;
    font-size: 1.3em;
}
.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.bar-row {
    display: flex;
    align-items: center;
    gap: 14px;
}
.bar-label {
    width: 50px;
    font-size: 0.85em;
    color: var(--text-muted);
    font-weight: 600;
    flex-shrink: 0;
}
.bar-track {
    flex: 1;
    height: 22px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 11px;
    overflow: hidden;
}
.bar-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 11px;
    transition: width 1.2s ease;
}
.stats-text {
    flex: 1;
}
.stats-text h2 {
    font-size: 2em;
}

/* 5. About Split */
.about-split {
    display: flex;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 100px;
    align-items: flex-start;
}
.about-split-heading {
    flex: 0 0 320px;
}
.about-split-heading h2 {
    font-size: 4em;
    line-height: 1;
    margin: 0;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.about-split-body {
    flex: 1;
}
.about-split-body p {
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 20px;
}

/* 6. Team Grid */
.about-team-photo {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 100px;
}
.team-sections-wrapper {
    display: flex;
    flex-direction: column;
    gap: 60px;
}
.team-department-images {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.team-member-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.team-member-name {
    color: var(--text-main);
    font-size: 0.9em;
    font-weight: 600;
    text-align: center;
    margin-top: 5px;
}

.team-member-card {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: transparent;
    border: none;
}
/* Hover effect removed */
.team-member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 7. Goal Section */
.about-goal {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px 120px;
}
.goal-box {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 50px 40px;
    text-align: center;
}
.goal-box h2 {
    font-size: 2em;
    margin-bottom: 16px;
}
.goal-box p {
    color: var(--text-muted);
    font-size: 1.05em;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/* --- ABOUT US PAGE: MOBILE --- */
@media (max-width: 768px) {
    .about-page { padding-top: 90px; }

    .about-hero { padding: 60px 20px 50px; }
    .about-hero h1 { font-size: 2.5em; }
    .about-hero-sub { font-size: 1em; }

    .about-strategy {
        grid-template-columns: 1fr;
        padding: 0 20px 60px;
    }

    .about-gallery { padding: 0 20px 60px; }

    .location-gallery {
        gap: 15px;
    }
    
    /* Top image full width */
    .location-top {
        width: 100%;
        margin-bottom: 5px;
    }

    /* Bottom Row: Horizontal Scrollable Slider */
    .location-bottom {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 15px;
        
        /* Full screen width scrolling */
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
        width: calc(100% + 40px);
        
        scrollbar-width: none;
    }
    .location-bottom::-webkit-scrollbar { display: none; }

    .location-card {
        flex: 0 0 85%; /* 85% width slider items */
        scroll-snap-align: center;
        aspect-ratio: 3/4;
    }

    .about-stats {
        flex-direction: column;
        padding: 0 20px 60px;
        gap: 30px;
    }
    .stats-text { text-align: center; }
    .stats-chart h3 { text-align: center; width: 100%; }
    
    .stats-chart {
        width: 100%;
        aspect-ratio: 4/3;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .about-split {
        flex-direction: column;
        padding: 0 20px 60px;
        gap: 20px;
    }
    .about-split-heading { 
        flex: unset; 
        text-align: center;
        width: 100%;
    }
    .about-split-heading h2 { font-size: 2.8em; }
    .about-split-body h3 { text-align: center; }

    .about-team-photo { padding: 0 20px 60px; }
    .team-sections-wrapper { gap: 40px; }
    
    .team-department-images {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        width: 100%;
        margin: 0;
        padding: 0;
        overflow: visible;
    }
    /* Remove scrollbar hiding since we aren't scrolling */
    
    .team-member-item {
        width: auto;
        flex: unset;
    }
    
    .team-member-card {
        width: 100%;
        aspect-ratio: 1/1;
    }

    .about-goal { padding: 0 20px 80px; }
    .goal-box { padding: 35px 24px; }
    .goal-box h2 { font-size: 1.6em; }
}

/* --- PRIVACY POLICY / DATENSCHUTZ PAGE --- */
/* Professional, legal document styling */
.legal-page {
    padding-top: 160px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    /* background: var(--bg-dark); Removed to show main background */
}

.legal-container {
    max-width: 860px;
    width: 100%;
    margin: 0 20px;
    background: var(--bg-card);
    padding: 80px 80px;
    border-radius: 4px; /* Slightly sharper corners for document feel */
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 4px 60px rgba(0, 0, 0, 0.2);
}

.legal-header {
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
}

.legal-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 3em;
    color: #fff;
    margin: 0;
    letter-spacing: -0.02em;
}

.legal-content {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #cbd5e1; /* Slate-300, readable light gray */
}

/* Improve headings within content */
.legal-content h1, 
.legal-content h2, 
.legal-content h3, 
.legal-content h4 {
    color: #fff;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-top: 2.5em;
    margin-bottom: 1em;
}

.legal-content h1 { font-size: 2.2em; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 0.5em; }
.legal-content h2 { font-size: 1.8em; }
.legal-content h3 { font-size: 1.4em; color: var(--accent); }
.legal-content h4 { font-size: 1.2em; }

.legal-content p { margin-bottom: 1.5em; }

.legal-content ul, 
.legal-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.legal-content li {
    margin-bottom: 0.5em;
}

.legal-content strong {
    color: #fff;
    font-weight: 700;
}

.legal-content a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.legal-content a:hover {
    color: #fff;
    text-decoration-color: var(--accent);
}

/* Quote / Emphasis block */
.legal-content blockquote {
    border-left: 4px solid var(--accent);
    margin: 2em 0;
    padding: 1em 1.5em;
    background: rgba(56, 189, 248, 0.05);
    font-style: italic;
    color: var(--text-muted);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .legal-page { padding-top: 100px; padding-bottom: 60px; }
    .legal-container { 
        padding: 40px 25px; 
        margin: 0 15px; 
        width: auto;
    }
    .legal-title { font-size: 2.2em; }
    .legal-content { font-size: 1rem; }
    .legal-content h2 { font-size: 1.5em; margin-top: 2em; }
}

/* --- STATS SECTION --- */
.stats-highlight-section {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.5) 100%);
}

.stats-highlight-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.stats-big-number {
    font-size: 6em;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.stats-label {
    font-size: 1.5em;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .stats-big-number { font-size: 4em; }
    .stats-label { font-size: 1.2em; }
}
