/* ==========================================================================
   Media Atelier – Shared Design System
   ========================================================================== */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    background-color: #f0f2f5;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f2f5; /* Weicherer, hochwertigerer Basis-Hintergrund */
    color: #2d2e30;
    overflow-x: hidden;
    padding-top: 90px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Premium Snappy Main Content Transitions */
main {
    opacity: 1;
    min-height: 75vh; /* Verhindert Höhen-Zusammenstürze bei Seitenübergängen */
    transition: opacity 0.15s ease-in-out;
    will-change: opacity;
}

main.main-fade-out {
    opacity: 0 !important;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* --- HEADER --- */
header {
    background-color: rgba(77, 79, 83, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: 90px;
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, box-shadow 0.3s ease;
    /* GPU-Beschleunigung für ruckelfreies Rendering von Blur und Schatten */
    will-change: transform;
    transform: translate3d(0, 0, 0);
}
header.header-scrolled {
    background-color: rgba(45, 46, 48, 0.94);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
header.header-hidden { transform: translate3d(0, -100%, 0); }

/* --- NAVIGATION --- */
.nav-link {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    transition: color 0.2s ease;
    cursor: pointer;
}
.nav-link:hover, .nav-link.active { color: #fedf00; }

.btn-contact {
    background-color: #fedf00;
    color: #4d4f53;
    font-weight: 800;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-size: 1rem;
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s;
    cursor: pointer;
}
.btn-contact:hover { background-color: #fff; transform: scale(1.05); }

/* --- SCROLL REVEAL --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}
.reveal-visible { opacity: 1 !important; transform: translateY(0) !important; }

/* --- SECTION SPACING & TIERED BACKGROUNDS --- */
.section { padding: 6.5rem 0; }
.section-sm { padding: 4.5rem 0; }

.bg-surface-base { background-color: #f0f2f5; }
.bg-surface-alt { background-color: #e8ebf0; }
.bg-white { background-color: #ffffff; }
.bg-brand-dark { background-color: #4d4f53; }

/* --- TYPOGRAPHY --- */
.eyebrow {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #4d4f53; /* Dunklerer Text für besseren Kontrast auf hellen Flächen */
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.eyebrow::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background-color: #fedf00; /* Gelber Akzent als Strich statt Schrift */
}
.page-hero .eyebrow { color: #fedf00; } /* Auf dunklem Grund (Hero) bleibt Gelb erhalten */
.page-hero .eyebrow::before { display: none; }
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #4d4f53;
    line-height: 1.2;
    margin-bottom: 1rem;
}
@media (min-width: 768px) { .section-title { font-size: 3rem; } }

.section-subtitle {
    font-size: 1.125rem;
    color: #555a64;
    max-width: 680px;
    line-height: 1.8;
}

/* --- BUTTONS --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #fedf00;
    color: #4d4f53;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    border: none;
    cursor: pointer;
}
.btn-primary:hover { background-color: #4d4f53; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #4d4f53;
    font-weight: 700;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    border: 2px solid #4d4f53;
    cursor: pointer;
}
.btn-outline:hover { background-color: #4d4f53; color: #fff; }

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #fff;
    font-weight: 700;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    border: 2px solid rgba(255,255,255,0.3);
    cursor: pointer;
}
.btn-outline-light:hover { background-color: #fedf00; color: #4d4f53; border-color: #fedf00; }

/* --- CARDS --- */
.card {
    background: #ffffff;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08); /* Etwas kräftigerer Rand im Ruhezustand */
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08); /* Präsenterer Schatten im Ruhezustand */
    transition: all 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
}

.card:hover { 
    transform: translateY(-5px); /* Reduzierter Lift */
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.12); /* Sanfterer Hover-Schatten */
    border-color: rgba(0, 0, 0, 0.12);
}

/* Gestalteter Inhaltsbereich der Karten */
.card-body {
    padding: 1.75rem;
    background-color: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.05); /* Klare Trennung zum Bild */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Alternative für Team/Sprecher mit leicht getönter Fläche unten */
.card-body-alt {
    padding: 1.75rem;
    background-color: #fcfcfd;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    flex-grow: 1;
}

/* --- EDITORIAL BLOCK --- */
.editorial-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 768px) {
    .editorial-block { grid-template-columns: 1fr 1fr; gap: 4rem; }
    .editorial-block.reverse .editorial-img { order: 2; }
    .editorial-block.reverse .editorial-text { order: 1; }
}
.editorial-img { position: relative; }
.editorial-img img {
    border-radius: 1rem;
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}
.editorial-img::after {
    content: '';
    position: absolute;
    top: -12px; left: -12px;
    width: 80px; height: 80px;
    background: rgba(254,223,0,0.15);
    border-radius: 50%;
    z-index: -1;
}

/* --- SERVICE FEATURE --- */
.service-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
}
.service-feature i { color: #fedf00; flex-shrink: 0; margin-top: 2px; }

/* --- PROJECT GRID --- */
.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #2d2e30; /* Unified dark grey background matching brand CI */
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%; /* Force equal card height across grid rows */
}
.project-card:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4); 
    border-color: rgba(254, 223, 0, 0.3);
}
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; border-bottom: 1px solid rgba(255,255,255,0.05); }
.project-card:hover img { transform: scale(1.04); }
.project-card .project-info {
    padding: 1.25rem 1.5rem;
    background: #2d2e30; /* Seamless dark grey background without seams or cut-off gaps */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.project-card .project-sender {
    position: absolute; top: 1rem; right: 1rem;
    background: #fedf00; color: #4d4f53;
    font-size: 0.65rem; font-weight: 800;
    padding: 0.35rem 0.6rem; border-radius: 0.35rem;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* --- FILTER BUTTONS --- */
.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.15);
    background: transparent;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.filter-btn:hover { border-color: #fedf00; color: #fedf00; }
.filter-btn.active { background: #fedf00; color: #4d4f53; border-color: #fedf00; font-weight: 700; }

/* --- SPEAKER CARD --- */
.speaker-card {
    background: #ffffff;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.speaker-card:hover { 
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.12);
}
.speaker-card img { width: 100%; height: 20rem; object-fit: cover; border-bottom: 1px solid rgba(0,0,0,0.05); }

/* --- CLIENT LOGO GRID --- */
#clients-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.25rem 0.4rem !important;
    align-items: center !important;
    justify-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
}

@media (min-width: 768px) {
    #clients-grid {
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 2rem 1.5rem !important;
    }
}

.client-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 3.2rem !important;
    padding: 0.2rem !important;
}
@media (min-width: 768px) {
    .client-logo {
        height: 5.5rem !important;
        padding: 0.75rem !important;
    }
}

.client-logo img {
    max-height: 2.2rem !important;
    max-width: 82% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease;
}
@media (min-width: 768px) {
    .client-logo img {
        max-height: 3.5rem !important;
        max-width: 85% !important;
    }
}
.client-logo:hover img { filter: grayscale(0%); opacity: 1; transform: scale(1.1); }

/* --- BENTO GRID (HOME PORTFOLIO) --- */
#home-bento-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-auto-rows: 120px !important;
    gap: 0.75rem !important;
    width: 100% !important;
}

#home-bento-grid > div {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    height: 120px !important;
    min-height: 120px !important;
}

#home-bento-grid > div img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

@media (min-width: 768px) {
    #home-bento-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        grid-auto-rows: 180px !important;
        gap: 1.25rem !important;
    }
    #home-bento-grid > div.bento-2x2 {
        grid-column: span 2 !important;
        grid-row: span 2 !important;
        height: auto !important;
        min-height: 380px !important;
    }
    #home-bento-grid > div.bento-2x1 {
        grid-column: span 2 !important;
        grid-row: span 1 !important;
        height: auto !important;
    }
    #home-bento-grid > div.bento-1x1 {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        height: auto !important;
    }
}

/* --- PARTNER BENTO --- */
#partner-grid-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    max-width: 1150px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (min-width: 640px) {
    #partner-grid-container {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 1.5rem !important;
    }
}

.bento-item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.bento-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.12);
}
.company-tag {
    background-color: #fefce8;
    color: #854d0e;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- FOOTER --- */
footer {
    background-color: #4d4f53;
    color: rgba(255,255,255,0.5);
    padding: 4rem 0 2rem;
}
footer a { transition: color 0.2s; }
footer a:hover { color: #fedf00; }

/* --- ACCORDION --- */
.accordion-content { transition: max-height 0.3s ease-out, opacity 0.3s ease-out; overflow: hidden; }
.accordion-content.closed { max-height: 0; opacity: 0; pointer-events: none; }
.accordion-content.open { max-height: 2000px; opacity: 1; }

/* --- HOVER ZOOM --- */
.hover-zoom-img { transition: transform 0.5s ease; }
.group:hover .hover-zoom-img { transform: scale(1.05); }

/* --- SHOWREEL FULLSCREEN --- */
#showreel-wrapper:fullscreen,
#showreel-wrapper:-webkit-full-screen {
    display: flex; align-items: center; justify-content: center;
    background-color: black; border-radius: 0; width: 100% !important; height: 100% !important;
}
#showreel-wrapper:fullscreen video,
#showreel-wrapper:-webkit-full-screen video {
    max-height: 100vh !important; width: 100% !important; height: auto !important;
    max-width: 100vw !important; object-fit: contain;
}

/* --- PAGE HERO (for subpages) --- */
.page-hero {
    background: #4d4f53;
    padding: 5rem 0 4rem;
    margin-top: -90px;
    padding-top: calc(90px + 5rem);
    color: #fff;
}
.page-hero .eyebrow { color: #fedf00; }
.page-hero .section-title { color: #fff; }
.page-hero .section-subtitle { color: rgba(255,255,255,0.7); }

/* --- LEGAL PAGES --- */
.legal-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4d4f53;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid #fedf00;
    display: inline-block;
    padding-bottom: 0.25rem;
}
.legal-content p { margin-bottom: 1rem; color: #4b5563; }

/* --- UTILITY --- */
.text-balance { text-wrap: balance; }

/* --- DELAY CLASSES --- */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* --- PLAY BUTTON --- */
.play-btn {
    width: 2rem; height: 2rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #f8f9fa;
    color: #4d4f53;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.play-btn:hover { background: #fedf00; color: #4d4f53; }

/* --- MOBILE NAVIGATION TRANSITION --- */
#mobile-menu {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, -15px, 0);
    transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1), transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.35s;
    pointer-events: none;
}
#mobile-menu.menu-active {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
}

/* --- MOBILE TOUCH ACTIVE STATES --- */
@media (hover: none) {
    .btn-primary:active, 
    .btn-outline:active, 
    .btn-outline-light:active,
    .btn-contact:active,
    .card:active,
    .speaker-card:active,
    .bento-item:active,
    .play-btn:active {
        transform: scale(0.97) !important;
        transition: transform 0.08s ease !important;
    }
}

/* --- MOBILE PLAY BUTTON TOUCH TARGETS --- */
@media (max-width: 768px) {
    .play-btn {
        width: 2.75rem !important;
        height: 2.75rem !important;
    }
    .compact-player .cp-play-btn {
        width: 2.75rem !important;
        height: 2.75rem !important;
    }
}
