/* assets/css/styles.css */

:root {
    --bg-color: #0b0b0d; 
    --text-main: #f5f5f7; 
    --text-muted: #86868b;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --red-glow: rgba(255, 50, 50, 0.5);
    --red-glow-strong: rgba(255, 50, 50, 0.8);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typografie */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
h1 { margin-bottom: 1.5rem; }
h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); margin-bottom: 4rem; text-align: center; }
h3 { font-size: 1.8rem; margin-bottom: 1rem; }

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 60%, #ff5555 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-accent-glow { transition: color 0.4s ease, text-shadow 0.4s ease; cursor: default; }
.text-accent-glow:hover {
    color: #ff5555;
    -webkit-text-fill-color: initial;
    text-shadow: 0 0 15px rgba(255, 50, 50, 0.7);
    animation: textGlowPulse 1.5s infinite ease-in-out;
}
@keyframes textGlowPulse {
    0% { text-shadow: 0 0 10px rgba(255, 50, 50, 0.5); }
    50% { text-shadow: 0 0 20px rgba(255, 50, 50, 0.9); }
    100% { text-shadow: 0 0 10px rgba(255, 50, 50, 0.5); }
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
section { padding: 10rem 0; }

/* Navigation */
header {
    background: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: fixed;
    width: calc(100% - 2rem);
    max-width: 1000px;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 50, 50, 0.05);
    transition: all 0.3s ease;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; }
.logo { font-size: 1.5rem; font-weight: 900; text-decoration: none; color: white; letter-spacing: -1px; text-transform: uppercase;}

/* --- DESKTOP ABSTÄNDE FIX --- */
.nav-links { 
    display: flex; 
    align-items: center; 
    gap: 2.5rem; 
}
.nav-links a { 
    color: var(--text-muted); 
    font-weight: 600; 
    text-decoration: none; 
    transition: color 0.3s; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}
.nav-links a:hover { color: var(--text-main); }

/* --- NEU: LOGIN & LOGOUT IMMER ROT --- */
.nav-links a[href="?page=login"],
.nav-links a[href="?page=logout"] {
    color: #ff5555;
}
.nav-links a[href="?page=login"]:hover,
.nav-links a[href="?page=logout"]:hover {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 85, 85, 0.5);
}

.nav-links .glass-btn { margin: 0 !important; }

/* --- Dropdown Menü Styling (Desktop) --- */
.dropdown { position: relative; display: flex; align-items: center; margin: 0; }
.dropdown .dropbtn { display: flex; align-items: center; }
.dropdown-content {
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(11, 11, 13, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    min-width: 200px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    padding: 1rem 0;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.dropdown-content a {
    color: var(--text-muted);
    padding: 12px 24px;
    text-decoration: none;
    display: block;
    margin: 0;
    font-size: 1rem;
    transition: all 0.3s;
    text-align: left;
}
.dropdown-content a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    padding-left: 30px; 
}

/* Buttons */
.glass-btn {
    display: inline-block;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 16px 36px;
    border-radius: 40px;
    color: var(--text-main) !important;
    text-decoration: none;
    font-weight: 700;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}
.glass-btn:hover {
    background: rgba(255, 50, 50, 0.1);
    border-color: var(--red-glow-strong);
    box-shadow: 0 0 30px var(--red-glow);
    color: #fff !important;
    transform: translateY(-3px) scale(1.05);
}

/* HERO BEREICH */
.hero { 
    position: relative; width: 100%; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden; padding: 0; 
}
.hero-video {
    position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%;
    width: auto; height: auto; transform: translate(-50%, -50%); object-fit: cover; z-index: 0;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 11, 13, 0.65); z-index: 1;
}
.hero-content { position: relative; z-index: 2; padding-top: 6rem; }
.hero-content p { color: var(--text-muted); font-size: 1.4rem; max-width: 700px; margin: 0 auto 3rem; font-weight: 400; }

.hero-line {
    display: block;
    white-space: nowrap;
    font-size: clamp(1.2rem, 4vw, 4.2rem);
}
    
@media (max-width: 768px) {
    .hero-line {
        white-space: normal;
        margin-bottom: 2rem;
    }
    .hero-intro {
        display: block;
        font-size: 1.2rem;
        color: var(--text-muted);
        letter-spacing: 2px;
        margin-bottom: 0.2rem;
    }
    .hero-keyword {
        display: block;
        font-size: clamp(2.5rem, 11vw, 4rem);
        line-height: 1;
    }
}

/* --- LOGO TICKER STYLES --- */
.logo-ticker-section {
    padding: 4rem 0 2rem 0;
    background: var(--bg-color);
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
}
.ticker-title {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2.5rem;
}
.ticker-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}
.ticker-wrapper::before,
.ticker-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}
.ticker-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color) 0%, transparent 100%);
}
.ticker-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color) 0%, transparent 100%);
}
.ticker-track {
    display: inline-block;
    animation: scrollTicker 30s linear infinite;
}
.ticker-wrapper:hover .ticker-track {
    animation-play-state: paused;
}
.ticker-track img {
    height: 45px; 
    margin: 0 4rem; 
    vertical-align: middle;
    filter: grayscale(100%) opacity(0.5); 
    transition: filter 0.4s ease;
}
.ticker-track img:hover {
    filter: grayscale(0%) opacity(1); 
}
@keyframes scrollTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}
@media (max-width: 768px) {
    .ticker-wrapper::before, .ticker-wrapper::after { width: 50px; } 
    .ticker-track img { height: 35px; margin: 0 2rem; } 
}

/* Grid Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3.5rem; }
a.glass-card { text-decoration: none; color: inherit; display: block; }

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer; 
}
.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 50, 50, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 40px rgba(255, 50, 50, 0.2);
}
.glass-card .subtitle { color: #ff5555; font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1rem; display: block; }
.glass-card h3 { color: var(--text-main); }
.glass-card ul { list-style: none; margin: 2rem 0; color: var(--text-muted); font-size: 1.1rem; }
.glass-card ul li { margin-bottom: 0.8rem; position: relative; padding-left: 1.8rem; }
.glass-card ul li::before { content: '→'; position: absolute; left: 0; color: #ff5555; font-weight: bold; }
.psychology { font-style: italic; color: var(--text-muted); font-size: 1rem; margin-top: 1.5rem; border-top: 1px solid var(--glass-border); padding-top: 1.5rem; }

/* Premium Section */
a.premium-section { text-decoration: none; color: inherit; display: block; cursor: pointer; }
.premium-section {
    max-width: 800px; margin: 8rem auto 0 auto; position: relative;
    border-radius: 30px; overflow: hidden; text-align: center;
    border: 1px solid var(--red-glow);
    background: radial-gradient(circle at center, rgba(255,50,50,0.1) 0%, rgba(11,11,13,0) 70%);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    transition: all 0.5s ease;
}
.premium-section:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(0,0,0,0.9), 0 0 50px rgba(255,50,50,0.3);
    border-color: #ff5555;
}
.massive-text {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-weight: 900; white-space: nowrap; color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05); z-index: 0; pointer-events: none; letter-spacing: -2px;
}
.premium-content { position: relative; z-index: 1; }

/* About & Forms */
.about-section { display: flex; align-items: center; gap: 5rem; flex-wrap: wrap; margin-bottom: 4rem; }
.about-text { flex: 1; min-width: 300px; font-size: 1.2rem; color: var(--text-muted); }
.about-text strong { color: var(--text-main); }
.about-image { 
    flex: 1; min-width: 300px; height: 500px; 
    background: var(--glass-bg); border-radius: 24px; border: 1px solid var(--glass-border); 
    display:flex; align-items:center; justify-content:center; transition: all 0.5s ease;
}
.about-image:hover { transform: scale(1.02); border-color: rgba(255, 50, 50, 0.4); box-shadow: 0 0 40px rgba(255, 50, 50, 0.2); }

.form-group { margin-bottom: 1.5rem; }
.form-control {
    width: 100%; background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border);
    color: var(--text-main); padding: 1.2rem; border-radius: 16px; font-size: 1.1rem;
    font-family: inherit; transition: all 0.4s ease;
}
.form-control:focus { outline: none; background: rgba(255, 50, 50, 0.02); border-color: var(--red-glow-strong); box-shadow: 0 0 20px rgba(255, 50, 50, 0.3); }

/* Animationen */
.hidden-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.hidden-scroll.show { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; } .delay-3 { transition-delay: 0.3s; }

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-content h1 { animation: heroFadeIn 1s ease forwards; }
.hero-content p { opacity: 0; animation: heroFadeIn 1s ease 0.2s forwards; }
.hero-content .glass-btn { opacity: 0; animation: heroFadeIn 1s ease 0.4s forwards; }

footer { text-align: center; padding: 4rem; border-top: 1px solid var(--glass-border); color: var(--text-muted); }
footer a { color: var(--text-muted); text-decoration: none; margin: 0 1rem; transition: color 0.3s;}
footer a:hover { color: var(--red-glow-strong); }

/* ==========================================================================
   PORTFOLIO / MEDIATHEK (CASES)
   ========================================================================== */
.cases-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 2.5rem; 
}
.case-card { 
    position: relative; 
    border-radius: 24px; 
    overflow: hidden; 
    border: 1px solid var(--glass-border); 
    aspect-ratio: 16/9; 
    display: block; 
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.case-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); 
}
.case-overlay { 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(to top, rgba(11,11,13,0.95) 0%, rgba(11,11,13,0.3) 50%, rgba(11,11,13,0) 100%); 
    transition: background 0.4s ease; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end; 
    padding: 2rem; 
}
/* Hover Effekte */
.case-card:hover .case-img { transform: scale(1.05); }
.case-card:hover .case-overlay { background: linear-gradient(to top, rgba(11,11,13,0.95) 0%, rgba(255,85,85,0.3) 100%); }

.play-btn { 
    position: absolute; top: 50%; left: 50%; 
    transform: translate(-50%, -50%) scale(0.8); 
    width: 70px; height: 70px; 
    background: rgba(255,85,85,0.9); 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    opacity: 0; transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); 
    box-shadow: 0 0 30px rgba(255,85,85,0.6); 
    backdrop-filter: blur(5px);
}
.play-btn::after { 
    content: ''; width: 0; height: 0; 
    border-top: 12px solid transparent; border-bottom: 12px solid transparent; 
    border-left: 18px solid white; margin-left: 6px; 
}
.case-card:hover .play-btn { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.case-title { color: white; font-size: 1.5rem; font-weight: 800; margin-bottom: 0.2rem; transform: translateY(10px); transition: transform 0.4s ease; }
.case-subtitle { color: #ff5555; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; font-weight: bold; transform: translateY(10px); transition: transform 0.4s ease; opacity: 0.9; }
.case-card:hover .case-title, .case-card:hover .case-subtitle { transform: translateY(0); }

/* --- CASE DETAIL SEITE --- */
.case-detail-hero { padding: 12rem 0 4rem; text-align: center; }
.case-video-wrapper { 
    position: relative; width: 100%; max-width: 1000px; margin: 0 auto; 
    aspect-ratio: 16/9; border-radius: 24px; overflow: hidden; 
    border: 1px solid var(--glass-border); 
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 40px rgba(255,50,50,0.1); 
    background: #000;
}
.case-video-wrapper video, .case-video-wrapper iframe { width: 100%; height: 100%; object-fit: cover; border: none; }
.case-stats { 
    display: flex; justify-content: space-around; flex-wrap: wrap; gap: 2rem; 
    margin: 4rem auto; padding: 3rem; background: var(--glass-bg); 
    border-radius: 24px; border: 1px solid var(--glass-border); max-width: 1000px;
}
.stat-item { text-align: center; flex: 1; min-width: 200px; }
.stat-item h4 { font-size: 3rem; color: #ff5555; margin-bottom: 0.2rem; font-weight: 900; line-height: 1; }
.stat-item p { color: var(--text-muted); font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; font-weight: bold;}

/* ==========================================================================
   MOBILE RESPONSIVENESS & MENÜ
   ========================================================================== */
.mobile-menu-toggle { display: none; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; background: transparent; border: none; cursor: pointer; z-index: 1001; }
.mobile-menu-toggle span { width: 100%; height: 3px; background-color: var(--text-main); border-radius: 10px; transition: all 0.3s ease-in-out; }

@media (max-width: 768px) {
    section { padding: 5rem 0; }
    .container { padding: 0 1.5rem; }
    .grid { gap: 2rem; }

    header { border-radius: 24px; top: 1rem; }
    .nav-container { flex-direction: row; justify-content: space-between; padding: 1rem 1.5rem; }
    .logo img { height: 60px !important; }
    .mobile-menu-toggle { display: flex; }

    /* --- MOBILE ZENTRIERUNG FIX --- */
    .nav-links {
        position: absolute; top: 100%; left: 0; width: 100%;
        background: rgba(11, 11, 13, 0.95); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
        border-radius: 0 0 24px 24px;
        border: 1px solid var(--glass-border); border-top: none;
        max-height: 0; overflow: hidden; transition: all 0.4s ease-in-out; opacity: 0; visibility: hidden;
        
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        gap: 1.5rem !important; 
    }
    
    .nav-links.active { 
        padding: 2.5rem 0 !important; 
        max-height: 600px; 
        opacity: 1; 
        visibility: visible; 
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8); 
    }
    
    .nav-links > a, .dropdown { 
        margin: 0 !important; 
        width: 100%; 
        display: flex !important; 
        justify-content: center !important; 
        align-items: center !important;
    }
    
    .dropdown .dropbtn { justify-content: center; font-size: 1.2rem; }
    .dropdown-content { 
        position: static !important; 
        transform: none !important; 
        background: transparent; 
        box-shadow: none; 
        border: none; 
        padding: 0; 
        margin-top: 1rem; 
        display: none; 
        opacity: 1; 
        visibility: visible; 
    }
    
    .dropdown.active .dropdown-content,
    .dropdown:hover .dropdown-content { 
        display: block; 
        transform: none !important; 
    }
    
    .dropdown-content a { text-align: center; font-size: 1.1rem; padding: 10px; }
    .dropdown-content a:hover { padding-left: 10px; color: #ff5555; background: none; }
    
    .nav-links .glass-btn { 
        margin: 0.5rem auto 0 auto !important; 
        width: 80% !important; 
        max-width: 300px;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .mobile-menu-toggle.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
    .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

    .hero-content { padding-top: 10rem; }
    .hero-content h1 span { white-space: normal !important; font-size: clamp(2rem, 8vw, 3rem); letter-spacing: -1px !important; }
    .hero-content p { font-size: 1.1rem; margin-bottom: 2rem; padding: 0 1rem; }
    .glass-card { padding: 2rem 1.5rem; }
    .premium-section { padding: 3rem 1.5rem; margin-top: 4rem; }
    .massive-text { font-size: clamp(2rem, 8vw, 3rem); }
    .about-section { gap: 3rem; flex-direction: column-reverse; }
    .about-text h2 { margin-bottom: 2rem; }
    .about-image { height: 350px; width: 100%; min-width: unset; }
    footer { padding: 3rem 1.5rem; }
    footer a { display: block; margin: 1rem 0; }
    
    .case-title { font-size: 1.2rem; }
    .case-video-wrapper { border-radius: 16px; }
    .case-stats { padding: 2rem; flex-direction: column; gap: 3rem; }
}

/* ==========================================================================
   COOKIE BANNER (DSGVO)
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 4rem);
    max-width: 900px;
    z-index: 9999;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.9), 0 0 40px rgba(255, 50, 50, 0.15);
}
.cookie-content { flex: 1; min-width: 250px; text-align: left; }
.cookie-content h3 { margin-bottom: 0.5rem; font-size: 1.2rem; color: var(--text-main); }
.cookie-content p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0.8rem; }
.cookie-links a { font-size: 0.85rem; color: #ff5555; text-decoration: none; transition: color 0.3s; }
.cookie-links a:hover { color: #fff; }
.cookie-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 768px) {
    .cookie-banner { 
        bottom: 1rem; 
        width: calc(100% - 2rem); 
        flex-direction: column; 
        text-align: center; 
        gap: 1.5rem; 
        padding: 1.5rem; 
    }
    .cookie-content { text-align: center; }
    .cookie-buttons { width: 100%; flex-direction: column; }
    .cookie-buttons button { width: 100%; }
}