/* src/mkt/assets/css/style.css */

/* =========================================
   1. VARIABLES & THEME SETUP
   ========================================= */
:root {
    /* Standards (Light Mode) */
    --bg-body: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #6c757d;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --card-bg: #f8f9fa;
    --nav-bg: rgba(255, 255, 255, 0.85);
    
    /* Akzentfarben */
    --accent: #007aff; 
    --border-hover: #444; 
    --shadow-hover: rgba(0, 0, 0, 0.15); 
    
    /* Effekte */
    --spotlight-color: rgba(0, 0, 0, 0.05);
    --chrome-gradient: linear-gradient(135deg, #999 0%, #fff 50%, #999 100%);
}

/* Dark Mode Overrides */
[data-theme="dark"] {
    --bg-body: #050505; 
    --text-main: #ffffff;
    --text-muted: #d1d1d1;
    --glass-bg: rgba(20, 20, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.12);
    --card-bg: #0a0a0a;
    --nav-bg: rgba(5, 5, 5, 0.9);
    
    /* Akzentfarben Dark */
    --accent: #e0e0e0;
    --border-hover: #ffffff; 
    --shadow-hover: rgba(255, 255, 255, 0.15);
    
    /* Effekte Dark */
    --spotlight-color: rgba(255, 255, 255, 0.1);
}

/* =========================================
   2. BASE STYLES & TYPOGRAPHY
   ========================================= */
body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Mulish', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, .display-1, .display-2, .display-3, .display-4 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.text-main {
    color: var(--text-main) !important;
    transition: color 0.3s ease;
}

/* Damit Links beim Drüberfahren (Hover) auch einen edlen Effekt haben */
a.text-main:hover {
    color: var(--text-muted) !important;
}

.text-gradient {
    background: linear-gradient(135deg, #666 0%, #1a1a1a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
[data-theme="dark"] .text-gradient {
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
}

/* Glassmorphism Helper (Basis) */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

/* =========================================
   3. NAVIGATION (Navbar & Morphing Menu)
   ========================================= */
.navbar-custom {
    position: sticky; top: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: 1000;
}
.navbar-custom.hidden-nav { transform: translateY(-100%); opacity: 0; }

/* Logo Logic */
.theme-aware-logo {
    height: 40px; width: auto; display: block; transition: opacity 0.2s ease; 
}
@media (max-width: 768px) { .theme-aware-logo { height: 30px; } }

[data-theme="dark"] .theme-aware-logo { content: url("../img/logo/logo-light.png"); }
[data-theme="light"] .theme-aware-logo { content: url("../img/logo/logo-dark.png") !important; }

/* Toggle Button */
.theme-toggle-btn {
    width: 36px; height: 36px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 1px solid var(--glass-border);
    background: transparent; color: var(--text-main);
    cursor: pointer; transition: all 0.3s ease;
}
.theme-toggle-btn:hover { background: rgba(128, 128, 128, 0.1); transform: rotate(15deg); }

.navbar-toggler {
    border: none !important;
    box-shadow: none !important;
    padding: 5px;
    transition: transform 0.3s ease;
}

.navbar-toggler:active {
    transform: scale(0.9); /* Kleines Feedback beim Antippen */
}

/* DARK MODE (Standard): Reines Weiß, gestochen scharf */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    filter: none !important; /* Wichtig: Überschreibt alte Bootstrap-Filter */
}

/* LIGHT MODE: Reines Schwarz */
[data-theme="light"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    filter: none !important;
}

/* Menu Trigger & Overlay (Kurzfassung) */
.menu-trigger {
    position: fixed; top: 25px; left: 25px; width: 48px; height: 48px; border-radius: 50%;
    background: var(--nav-bg); border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px); display: flex; justify-content: center; align-items: center;
    z-index: 2000; cursor: pointer; opacity: 0; transform: scale(0);
    transition: transform 0.4s, opacity 1.5s ease;
}
.menu-trigger.visible { opacity: 1; transform: scale(1); }
.menu-trigger.visible:not(:hover) { opacity: 0.3; transform: scale(0.9); background: transparent; border-color: rgba(125,125,125,0.1); box-shadow: none; }
.menu-trigger:hover { opacity: 1 !important; transform: scale(1.1) !important; background: var(--nav-bg) !important; box-shadow: 0 10px 25px rgba(0,0,0,0.2) !important; }

.menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 5, 5, 0.95); backdrop-filter: blur(50px);
    z-index: 1900; display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
}
[data-theme="light"] .menu-overlay { background: rgba(255, 255, 255, 0.95); }
.menu-overlay.active { opacity: 1; visibility: visible; }
.overlay-nav-link { font-size: 3rem; font-weight: 800; color: var(--text-main); margin: 15px 0; text-decoration: none; opacity: 0; transform: translateY(20px); transition: 0.3s; }
.menu-overlay.active .overlay-nav-link { opacity: 1; transform: translateY(0); }
.overlay-nav-link:hover { color: var(--accent); transform: scale(1.1); }

/* =========================================
   4. HERO & VIDEO
   ========================================= */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    /* WICHTIG: visible lassen, damit der Fade nicht abgeschnitten wird */
    overflow: visible; 
    padding-top: 80px;
}

.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none; /* Damit man nicht draufklicken kann */

    /* HIER PASSIERT DIE MAGIE: CSS MASKE */
    /* Wir kombinieren zwei Verläufe für einen perfekten Fade */
    mask-image: 
        /* 1. Verlauf von Oben nach Unten (Vertikaler Fade) */
        linear-gradient(
            to bottom, 
            black 50%,   /* Oben ist es voll sichtbar */
            transparent 100% /* Unten blendet es komplett aus */
        ),
        /* 2. Verlauf von Links nach Rechts (Horizontaler Fade) */
        linear-gradient(
            to right, 
            transparent 0%,  /* Ganz links unsichtbar */
            black 15%,       /* Ab 15% sichtbar... */
            black 85%,       /* ...bis 85% sichtbar... */
            transparent 100% /* ...ganz rechts wieder unsichtbar */
        );

    /* Die Masken werden so kombiniert, dass nur der Bereich sichtbar ist, 
       wo BEIDE Verläufe "schwarz" sind. Das ergibt weiche Ecken. */
    mask-composite: intersect;
    -webkit-mask-composite: source-in; /* Für Chrome/Safari */
}

/* Das Video selbst */
.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Grund-Opazität im Dark Mode */
    opacity: 0.5; 
}

/* LIGHT MODE ANPASSUNG */
[data-theme="light"] .video-wrapper video {
    /* Im Hellen muss es viel subtiler sein, sonst kann man den Text nicht lesen */
    opacity: 0.2; 
    /* Optional: Video schwarz-weiß machen, damit es nicht bunt wirkt */
    /* filter: grayscale(100%); */
}

/* Der alte Overlay-Div wird nicht mehr gebraucht, 
   da die Maske den Job jetzt viel besser macht. */
.hero-overlay {
    display: none !important;
}

/* Badge Contrast Fix */
[data-theme="dark"] .badge.bg-light { background-color: #e0e0e0 !important; color: #000 !important; }

/* =========================================
   5. VIDEO CARDS & SCROLL SECTION (Pin)
   ========================================= */
.pin-section { position: relative; background: linear-gradient(to bottom, var(--bg-body), var(--card-bg)); }
@media (max-width: 991px) { .pin-section { background: var(--bg-body); } }
.pin-wrapper { position: relative; }

/* Basis Layout der Info Card */
.info-card {
    border-radius: 24px; overflow: hidden; flex-shrink: 0;
    width: 100%; max-width: 500px; height: 600px;
    display: flex; flex-direction: column;
}

/* THEME: INDUSTRIAL GLASS (Rahmenlos + Schatten) */
.info-card.industrial-glass {
    border: none !important;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.15), inset -1px -1px 0 rgba(0, 0, 0, 0.5), 0 20px 50px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
[data-theme="light"] .info-card.industrial-glass {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 1), inset -1px -1px 0 rgba(0, 0, 0, 0.05), 0 20px 60px rgba(0,0,0,0.05);
}
.info-card.industrial-glass:hover {
    transform: translateY(-5px) !important;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 255, 255, 0.05), 0 30px 60px rgba(0,0,0,0.6);
}
[data-theme="light"] .info-card.industrial-glass:hover {
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 1), 0 0 15px rgba(0, 0, 0, 0.1), 0 30px 60px rgba(0,0,0,0.15);
}

/* Card Content Styles */
.card-visual { height: 45%; position: relative; overflow: hidden; border-bottom: none !important; }
.card-visual video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.info-card:hover .card-visual video { transform: scale(1.05); }
.card-text { padding: 35px; height: 55%; display: flex; flex-direction: column; justify-content: center; }

/* Melt Effect & Desktop Layout */
@media (min-width: 992px) {
    .pin-section { height: 450vh; }
    .pin-wrapper { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
    .pin-track { display: flex; gap: 40px; padding: 0 5vw; width: max-content; align-items: center; }
    .pin-track > div:first-child { min-width: 400px; margin-right: 60px; }

    .info-card { width: 450px; height: 580px; margin: 0; --melt-color: rgba(10, 10, 10, 0.95); }
    [data-theme="light"] .info-card { --melt-color: rgba(255, 255, 255, 0.98); background: var(--melt-color); }

    .card-visual::after {
        content: ''; position: absolute; left: 0; width: 100%; height: 60%; z-index: 2; pointer-events: none;
    }
    
    /* Checkerboard Logic */
    .mobile-card-wrapper:nth-child(even) .card-text { order: 1; }
    .mobile-card-wrapper:nth-child(even) .card-visual { order: 2; }
    .mobile-card-wrapper:nth-child(even) .card-visual::after { top: 0; background: linear-gradient(to bottom, var(--melt-color) 0%, transparent 100%); }

    .mobile-card-wrapper:nth-child(odd) .card-text { order: 2; }
    .mobile-card-wrapper:nth-child(odd) .card-visual { order: 1; }
    .mobile-card-wrapper:nth-child(odd) .card-visual::after { bottom: 0; background: linear-gradient(to top, var(--melt-color) 0%, transparent 100%); }
}

/* Mobile Layout */
@media (max-width: 991px) {
    .pin-section { height: 400vh; }
    .pin-wrapper { position: sticky; top: 0; height: 100vh; width: 100%; }
    .mobile-card-wrapper { position: absolute; width: 100%; height: 100vh; display: flex; justify-content: center; align-items: center; pointer-events: none; }
    .mobile-card-wrapper.active-card { pointer-events: all; }
    
    .info-card { width: 90%; max-width: 380px; height: 65vh; max-height: 600px; background: rgba(15, 15, 15, 0.95); --melt-color-mobile: rgba(15, 15, 15, 0.95); }
    [data-theme="light"] .info-card { background: rgba(255, 255, 255, 0.98); --melt-color-mobile: rgba(255, 255, 255, 0.98); }
    
    .card-visual::after {
        content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 60%;
        background: linear-gradient(to top, var(--melt-color-mobile) 0%, transparent 100%); z-index: 2;
    }

    .card-text {
        flex: 1; 
        padding: 20px 24px; 
        /* WICHTIG: Mehr Platz unten, damit der Button nicht am Rand klebt */
        padding-bottom: 40px !important; 
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* Inhalt oben ausrichten */
        border: none !important;
        background: transparent;
    }

    /* HIER DIE ÄNDERUNG: Kleinerer Text */
    .card-text h3 {
        font-size: 1.25rem !important; /* War vorher 1.4rem -> Jetzt kompakter */
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .card-text p {
        font-size: 0.9rem !important; /* Auch den Fließtext etwas kleiner (vorher 0.95rem) */
        line-height: 1.5;
        margin-bottom: 15px;
        /* Begrenzt den Text auf max 4 Zeilen, damit er nicht den Button verdrängt */
        display: -webkit-box;
        -webkit-line-clamp: 4; 
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Button Styling Mobile: Etwas Abstand nach oben erzwingen */
    .card-text .btn {
        margin-top: auto; /* Schiebt den Button nach unten, aber flexibel */
        align-self: flex-start; /* Button linksbündig */
        font-size: 0.85rem; /* Etwas kleinerer Text im Button */
        padding: 8px 20px; /* Kompakteres Padding */
    }
}

/* =========================================
   6. STATS SECTION (Facts & Figures)
   ========================================= */
.stat-card {
    border: none !important;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.1), inset -1px -1px 0 rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

[data-theme="light"] .stat-card {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 1), 0 10px 30px rgba(0,0,0,0.05);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.2), 0 20px 50px rgba(0,0,0,0.4);
}
[data-theme="light"] .stat-card:hover {
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 1), 0 20px 50px rgba(0,0,0,0.1);
}

.stat-img-wrapper {
    height: 180px; width: 100%; overflow: hidden; position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
[data-theme="light"] .stat-img-wrapper { border-bottom: 1px solid rgba(0, 0, 0, 0.03); }
.stat-img-wrapper img { transition: transform 0.6s ease; }
.stat-card:hover .stat-img-wrapper img { transform: scale(1.1); }

@media (max-width: 768px) { .stat-img-wrapper { height: 120px; } .stat-card h3 { font-size: 2rem; } }

/* =========================================
   7. PROCESS SECTION (Steps)
   ========================================= */
.process-step { position: relative; padding: 2rem; }

/* Verbindungslinie (Desktop) */
@media (min-width: 992px) {
    .process-step::after {
        content: ''; position: absolute; top: 30%; right: -50px; width: 100px; height: 2px;
        background: linear-gradient(90deg, var(--glass-border), transparent); z-index: 0;
    }
    .col-lg-4:last-child .process-step::after { display: none; }
}

/* Runde Icons Wrapper */
.process-icon-wrapper {
    width: 100px; height: 100px; background: var(--bg-body);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Hover Effekt für Icon */
.process-card:hover .process-icon-wrapper { 
    transform: scale(1.1); 
    border-color: var(--text-muted); 
    box-shadow: 0 0 20px rgba(0, 122, 255, 0.2); 
}

/* --- NEU: Workflow Cards Style (Rahmenlos & Schatten) --- */
.process-card .industrial-glass {
    /* WICHTIG: Standard-Rand entfernen */
    border: none !important;
    
    /* Industrial Shadow Look */
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        inset 1px 1px 0 rgba(255, 255, 255, 0.1), /* Lichtkante Oben */
        inset -1px -1px 0 rgba(0, 0, 0, 0.5),    /* Schattenkante Unten */
        0 10px 30px rgba(0,0,0,0.2);             /* Drop Shadow */

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Light Mode Anpassung */
[data-theme="light"] .process-card .industrial-glass {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 
        inset 1px 1px 0 rgba(255, 255, 255, 1), 
        0 10px 30px rgba(0,0,0,0.05);
}

/* Light Mode Anpassung Icon Wrapper */
[data-theme="light"] .process-icon-wrapper { 
    background: #ffffff; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
}

/* Hover Effekt für die ganze Karte */
.process-card:hover .industrial-glass {
    transform: translateY(-5px);
    /* Stärkerer Schatten beim Hover */
    box-shadow: 
        inset 1px 1px 0 rgba(255, 255, 255, 0.2),
        0 20px 50px rgba(0,0,0,0.4);
}
[data-theme="light"] .process-card:hover .industrial-glass {
    box-shadow: 
        inset 1px 1px 0 rgba(255, 255, 255, 1), 
        0 20px 50px rgba(0,0,0,0.1);
}

/* =========================================
   8. TRUST & CAREER
   ========================================= */
/* Partner Logos Auto-Greyscale */
.partner-logo {
    height: 45px; width: auto; object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.4s ease; cursor: pointer;
}
.partner-logo:hover { filter: grayscale(0%) opacity(1); transform: scale(1.15); }

[data-theme="dark"] .partner-logo { filter: grayscale(100%) brightness(100) opacity(0.5); }
[data-theme="dark"] .partner-logo:hover { filter: grayscale(0%) brightness(1) opacity(1); }

/* Career CTA (Rahmenlos) */
.career-cta {
    border: none !important;
    background: rgba(15, 15, 15, 0.8); backdrop-filter: blur(30px);
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.1), inset -1px -1px 0 rgba(0, 0, 0, 0.5), 0 20px 60px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
[data-theme="light"] .career-cta {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 1), 0 20px 60px rgba(0,0,0,0.08);
}
.career-cta:hover { transform: translateY(-5px); box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.2), 0 30px 80px rgba(0,0,0,0.4); }

/* =========================================
   9. GLOBAL ELEMENTS & COMPONENTS
   ========================================= */
/* Marquee */
.marquee-container { overflow: hidden; white-space: nowrap; position: relative; }
.marquee-content { display: inline-block; animation: marquee 40s linear infinite; }
.marquee-content:hover { animation-play-state: paused; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Spotlight Effect */
.spotlight-card { position: relative; overflow: hidden; z-index: 1; }
.spotlight-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), var(--spotlight-color), transparent 40%);
    z-index: 2; opacity: 0; transition: opacity 0.5s ease; pointer-events: none;
}
.spotlight-card:hover::before { opacity: 1; }

/* Industrial Buttons */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
    transform: skewX(-25deg); transition: none;
}
.btn-primary:hover::after { left: 150%; transition: left 0.7s ease-in-out; }
[data-theme="dark"] .btn-primary { background: linear-gradient(135deg, #333 0%, #111 100%); border: 1px solid #444; color: #fff; }
[data-theme="light"] .btn-primary { background-color: #111; border-color: #111; color: #fff; }

.btn-industrial {
    border: 1px solid rgba(255, 255, 255, 0.2); color: var(--text-main); background: transparent; transition: all 0.3s ease;
}
[data-theme="light"] .btn-industrial { border-color: rgba(0, 0, 0, 0.2); color: #1a1a1a; }
.btn-industrial:hover { background: var(--text-main); color: var(--bg-body); border-color: transparent; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* Glass Badge */
.glass-badge {
    padding: 8px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #fff;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
[data-theme="light"] .glass-badge { background: rgba(255, 255, 255, 0.8); color: #1a1a1a; border: 1px solid rgba(0, 0, 0, 0.1); }

/* Liquid Chrome Text (Light Mode Links) */
[data-theme="light"] a:not(.btn), [data-theme="light"] .nav-link {
    color: var(--text-main); transition: color 0.3s, background-position 0.5s;
    background: linear-gradient(to right, #000 0%, #000 50%, #999 50%, #fff 75%, #999 100%);
    background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-position: 0% center;
}
[data-theme="light"] a:not(.btn):hover, [data-theme="light"] .nav-link:hover { background-position: 100% center; color: #666; }

/* =========================================
   10. FOOTER (Industrial Foundation)
   ========================================= */

.footer-section {
    /* Ein sehr subtiler Hintergrund, der sich vom Body abhebt */
    background: linear-gradient(to bottom, var(--bg-body), var(--card-bg));
    z-index: 10;
}

/* Links Styling */
.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--text-main);
    transform: translateX(5px); /* Kleines Slide nach rechts beim Hover */
}

/* Social Icons */
.social-link {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--text-main);
    color: var(--bg-body); /* Invertiert */
    transform: translateY(-3px);
}

/* Die Kontakt-Box im Footer */
.contact-box {
    background: rgba(255, 255, 255, 0.03); /* Sehr subtil */
    /* Nur Lichtkante, kein fetter Schatten */
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.1); 
}
[data-theme="light"] .contact-box {
    background: rgba(0, 0, 0, 0.02);
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.5);
}

/* Responsive Anpassung */
@media (max-width: 768px) {
    .footer-section { 
        text-align: center !important; /* Alles zentrieren */
    }
    
    /* Logo spezifisch ansprechen */
    .footer-section .theme-aware-logo {
        height: 50px !important; /* GRÖSSER (vorher 35px) */
        width: auto;
        margin: 0 auto 20px auto; /* Zentrieren + Abstand nach unten */
        display: inline-block;
    }

    /* Social Icons auch zentrieren */
    .footer-section .d-flex.gap-3 {
        justify-content: center !important;
    }
    
    .social-link { width: 45px; height: 45px; }
}

.bg-hiring {
    border: none !important;

    /* LIGHT MODE: Helle Silber-Optik */
    background-color: #e5e5e5 !important; 
    color: #000000 !important;
    
    /* WICHTIG: Überschreibt den Liquid-Chrome-Effekt von Links */
    -webkit-text-fill-color: #000000 !important; 
    background-clip: border-box !important; /* Sicherheitshalber zurücksetzen */
    -webkit-background-clip: border-box !important;

    font-weight: 700;
    letter-spacing: 0.5px;

    /* Mini Glass Shadow */
    box-shadow: 
        inset 1px 1px 0 rgba(255, 255, 255, 1), 
        0 2px 5px rgba(0,0,0,0.15);             
        
    transition: transform 0.2s ease;
}
a:hover .bg-hiring {
    transform: translateY(-1px);
    box-shadow: 
        inset 1px 1px 0 rgba(255, 255, 255, 1),
        0 4px 8px rgba(0,0,0,0.2);
}

/* DARK MODE: Weißer Hintergrund, Schwarze Schrift (Hoher Kontrast) */
[data-theme="dark"] .bg-hiring {
    background-color: #ffffff !important;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* =========================================
   11. ABOUT PAGE (Timeline)
   ========================================= */

/* --- A. HERO SOFT FADE --- */
.soft-fade-bottom {
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* --- B. TIMELINE LAYOUT (Das hat gefehlt!) --- */
.timeline-wrapper {
    position: relative;
    padding: 20px 0;
}

/* Die Timeline Items (Container links/rechts) */
.timeline-item {
    position: relative;
    width: 50%;
    padding-right: 40px; /* Abstand zur Mittellinie */
    margin-bottom: 60px; /* Mehr Abstand nach unten */
}

/* Rechte Seite */
.timeline-item.right {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 40px; /* Abstand zur Mittellinie von rechts */
}

/* Der Zeit-Marker (Kugel in der Mitte) */
.timeline-marker {
    position: absolute;
    top: 20px;
    right: -20px; /* Exakt auf der Linie zentriert (Halbe Breite von 40px) */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-body);
    border: 1px solid var(--glass-border);
    
    display: flex; align-items: center; justify-content: center;
    
    font-size: 0.75rem; font-weight: 800; color: var(--text-muted);
    z-index: 2;
    box-shadow: 0 0 0 5px var(--bg-body); /* Weißer Rand zur Trennung von der Linie */
    transition: all 0.3s ease;
}

/* Marker für rechte Seite korrekt positionieren */
.timeline-item.right .timeline-marker {
    right: auto;
    left: -20px;
}

/* Hover Effekt Timeline Item */
.timeline-item:hover .timeline-marker {
    background: var(--text-main);
    color: var(--bg-body);
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

/* --- C. TIMELINE ANIMATIONS (Pulsieren) --- */

/* Aktiver Status (wird per JS gesetzt) */
.timeline-marker.active {
    background: var(--text-main);
    color: var(--bg-body);
    transform: scale(1.3);
    box-shadow: 0 0 0 6px var(--bg-body), 0 0 20px rgba(0,0,0,0.3);
    border-color: var(--text-main);
}

/* Anpassung der Puls-Farbe */
[data-theme="light"] { --pulse-color: rgba(0, 0, 0, 0.2); }
[data-theme="dark"] { --pulse-color: rgba(255, 255, 255, 0.2); }

/* 2024 (Dauerhafter Puls) */
.timeline-marker.current-year {
    background: var(--text-main);
    color: var(--bg-body);
    transform: scale(1.2);
    animation: timelinePulse 2s infinite;
    box-shadow: 0 0 0 5px var(--bg-body);
}

@keyframes timelinePulse {
    0% { box-shadow: 0 0 0 0 var(--bg-body), 0 0 0 0 var(--pulse-color); }
    70% { box-shadow: 0 0 0 5px var(--bg-body), 0 0 0 15px var(--pulse-color); }
    100% { box-shadow: 0 0 0 5px var(--bg-body), 0 0 0 0 var(--pulse-color); }
}

/* --- D. MOBILE TIMELINE FIX --- */
@media (max-width: 768px) {
    /* Alles auf eine Spalte links */
    .timeline-item, .timeline-item.right {
        width: 100%;
        margin-left: 0;
        padding-left: 50px; /* Platz für Marker links */
        padding-right: 0;
    }
    
    /* Marker immer links positionieren */
    .timeline-marker, .timeline-item.right .timeline-marker {
        left: 0;
        right: auto;
    }
    
    /* Die Linie muss auf dem Handy nach links rutschen */
    .position-absolute.start-50 {
        left: 20px !important; 
        transform: none !important;
    }
}

/* --- E. TEAM CARD FIX (Das löst das Quetschen!) --- */

/* Wir überschreiben die fixen 450px von der Home-Seite */
.col-md-6 .info-card, 
.col-lg-4 .info-card {
    width: 100% !important;      /* Passt sich der Spalte an */
    max-width: none !important;  /* Keine Begrenzung */
    height: 100% !important;     /* Füllt die Höhe gleichmäßig */
    margin: 0 !important;        /* Reset Margin */
}

/* Optional: Bildhöhe im Team etwas anpassen, damit es harmonischer wirkt */
.col-lg-4 .info-card .rounded-circle-10 {
    width: 140px !important;     /* Etwas kleiner als vorher */
    /*height: 140px !important;*/
    border-radius: 10% !important;
}

/* =========================================
   12. GLOBAL AUDIO PLAYER (Universal Style)
   ========================================= */

/* 1. Die Sektion (Der Streifen) */
.audio-bar-section {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    z-index: 10;
    
    /* Hintergrundfarbe (damit kein Text durchscheint) */
    background-color: var(--bg-body) !important; 
    
    /* HIER GEÄNDERT: Keine Linie, weniger Abstand */
    border-bottom: none !important; 
    padding: 2px 0 !important; /* Ganz schmaler Streifen */
    margin: 0 !important;
}

[data-theme="dark"] .audio-bar-section { background-color: #050505 !important; }
[data-theme="light"] .audio-bar-section { background-color: #ffffff !important; }


/* 2. Der Button (Kleiner & Dezenter) */
.audio-hud-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Weniger Abstand zwischen Icon und Text */
    
    /* HIER GEÄNDERT: Kompakteres Padding */
    padding: 6px 20px; 
    
    background: transparent !important;
    /* Sehr dezenter Rand */
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 50px;
    
    color: var(--text-muted);
    
    /* HIER GEÄNDERT: Kleinere Schrift */
    font-size: 0.75rem; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.audio-hud-btn:hover {
    background: var(--glass-bg) !important;
    border-color: var(--text-main);
    color: var(--text-main);
}


/* 3. Icon & Ring (Runterskaliert) */
.audio-icon-wrapper {
    position: relative;
    /* HIER GEÄNDERT: Kleineres Icon (24px statt 32px) */
    width: 24px; height: 24px; 
    display: flex; align-items: center; justify-content: center;
}

.audio-icon-wrapper i { 
    font-size: 0.9rem; /* Kleineres Lautsprecher-Symbol */
    z-index: 2; 
}

.progress-ring { 
    position: absolute; transform: rotate(-90deg); 
    width: 24px; height: 24px; /* Angepasst an Wrapper */
    overflow: visible; 
}

.progress-ring__circle {
    stroke-dasharray: 63; stroke-dashoffset: 63;
    transition: stroke-dashoffset 0.3s linear;
    stroke: #39ff14; stroke-linecap: round;
    filter: none !important;
}
.progress-ring__circle-bg { stroke: currentColor; opacity: 0.1; }


/* 4. Status Lämpchen (Auch kleiner) */
.hud-status-light {
    width: 6px; height: 6px; /* 6px statt 8px */
    border-radius: 50%;
    background: var(--text-muted); opacity: 0.5;
    margin-left: 10px !important; /* Näher dran */
}


/* 5. States (Active/Paused) */
.audio-hud-btn.active { border-color: #39ff14; color: var(--text-main); }
.audio-hud-btn.active .hud-status-light { background: #39ff14; opacity: 1; }

.audio-hud-btn.paused { border-color: #ff9900 !important; }
.audio-hud-btn.paused .hud-status-light { background: #ff9900 !important; }
.audio-hud-btn.paused .progress-ring__circle { stroke: #ff9900 !important; }

/* Light Mode */
[data-theme="light"] .audio-hud-btn { border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .audio-hud-btn.active { border-color: #00d200; }
[data-theme="light"] .audio-hud-btn.active .progress-ring__circle { stroke: #00d200; }
[data-theme="light"] .audio-hud-btn.active .hud-status-light { background: #00d200; }

/* =========================================
   13. DOWNLOADS
   ========================================= */

/* Kompakte AGB Card */
.agb-mini-card {
    border-radius: 15px;
    height: auto !important; /* Erzwingt automatische Höhe */
    min-height: 0 !important;
    border: none !important;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.1), 0 4px 15px rgba(0,0,0,0.05);
}

/* Fix für Grid-Karten (Zertifikate) */
#certificates .info-card {
    height: auto !important;
    min-height: 250px; /* Eine schöne einheitliche Mindesthöhe */
    padding: 2rem !important;
}

.icon-3d-display {
    height: 60px; /* Einheitliche Höhe für alle Icons */
    width: auto;  /* Behält das Seitenverhältnis bei */
    object-fit: contain;
    /* Optional: Ein sehr dezenter Schatten lässt das freigestellte Bild plastischer wirken */
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.15));
    transition: transform 0.3s ease;
}

/* Kleiner Effekt beim Hovern der Card */
.info-card:hover .icon-3d-display {
    transform: scale(1.1) translateY(-5px);
}

/* =========================================
   14. FORMS & INPUTS (Glass Design)
   ========================================= */
.glass-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}
[data-theme="light"] .glass-input {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.1);
}
.glass-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    /* Subtiler Glow-Effekt beim Klicken */
    box-shadow: 0 0 0 3px rgba(0, 242, 255, 0.15); 
    color: var(--text-main);
    outline: none;
}
[data-theme="light"] .glass-input:focus {
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}
[data-theme="dark"] .glass-input:focus {
    background: #2b3035;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}
.glass-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

/* Custom Checkbox DSGVO */
.glass-checkbox {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    cursor: pointer;
}
.glass-checkbox:checked {
    background-color: var(--text-main);
    border-color: var(--text-main);
}
[data-theme="dark"] .glass-checkbox:checked {
    /* Schwarzer Haken für den weißen Hintergrund im Dark Mode */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23000000' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}
[data-theme="light"] .glass-checkbox:checked {
    /* Weißer Haken für den schwarzen Hintergrund im Light Mode */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

/* =========================================
   15. Legal Content
   ========================================= */

/* Basis-Klasse: Zwingt lange Links zum Umbruch und verhindert horizontales Scrollen */
.legal-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

.legal-content h1, .legal-content h2, .legal-content h3, .legal-content h4 {
    color: var(--text-main);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.legal-content h2 { font-size: 1.5rem; }
.legal-content h3 { font-size: 1.25rem; }
.legal-content p, .legal-content li {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}
.legal-content a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s;
}
.legal-content a:hover {
    color: var(--text-main);
    text-decoration: underline;
}

/* Fallback: Falls e-recht24 Tabellen generiert, werden diese horizontal scrollbar */
.legal-content table {
    width: 100%;
    max-width: 100%;
    display: block;
    overflow-x: auto;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .legal-content.industrial-glass {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
        border: none !important;
        /* Wieder leichtes Padding (15px) links/rechts, damit es bündig mit dem Header ist */
        padding: 1rem 15px !important; 
    }
    
    .legal-content h2 { font-size: 1.3rem; margin-top: 1.5rem; }
    .legal-content h3 { font-size: 1.1rem; }
    .legal-content p, .legal-content li { font-size: 0.95rem; }
}

/* =========================================
   16. FEEDBACK WIZARD
   ========================================= */

/* Fortschrittsbalken mit deinem spezifischen Grün */
#wizard-progress {
    height: 3px;
    width: 0%;
    background: #2e851e !important; /* Dein dunkleres MKT Grün */
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.5);
    z-index: 10;
    transition: width 0.5s ease;
}

/* Einblend-Animation der Schritte */
.wizard-step { animation: feedbackFadeIn 0.4s ease-in-out; }
@keyframes feedbackFadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* Rating Cards (Erster Schritt) */
#feedbackWizard .rating-card { 
    background: rgba(255,255,255,0.02); 
    border: 1px solid var(--glass-border); 
    transition: 0.3s; 
    cursor: pointer;
}

/* Hover-Effekte (Dark Mode Standard) */
#feedbackWizard .rating-card:hover { 
    background: rgba(255,255,255,0.05); 
    border-color: var(--accent); 
}

/* Aktiv-Zustand (Dark Mode) */
#feedbackWizard .rating-card:has(input:checked) { 
    border-color: #fff; 
    background: rgba(57, 255, 20, 0.05); 
}

#feedbackWizard .rating-check { 
    width: 18px; height: 18px; border: 2px solid var(--glass-border); 
    border-radius: 50%; transition: 0.3s; position: relative; 
}

#feedbackWizard .rating-card:has(input:checked) .rating-check { 
    background: #fff; 
    border-color: #fff; 
}

/* --- LIGHT MODE ANPASSUNGEN --- */
[data-theme="light"] #feedbackWizard .rating-card:hover, 
[data-theme="light"] #feedbackWizard .rating-pill:hover,
[data-theme="light"] #feedbackWizard .glass-input:hover {
    border-color: #adb5bd !important; /* Silber-Grau */
    background: rgba(0, 0, 0, 0.04) !important;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] #feedbackWizard .glass-input:focus {
    border-color: #6c757d !important;
    box-shadow: 0 0 0 0.25rem rgba(108, 117, 125, 0.1);
}

[data-theme="light"] #feedbackWizard .rating-card:has(input:checked) { 
    border-color: #6c757d !important; 
    background: rgba(0, 0, 0, 0.03);
    box-shadow: none;
}

[data-theme="light"] #feedbackWizard .rating-card:has(input:checked) .rating-check { 
    background: #6c757d !important; 
    border-color: #6c757d !important; 
}

/* --- RATING PILLS (Buttons) --- */
#feedbackWizard .rating-pill { 
    border: 1px solid var(--glass-border); 
    background: rgba(255,255,255,0.02); 
    color: var(--text-muted); 
    transition: 0.3s; 
    cursor: pointer;
}

#feedbackWizard .rating-pill:hover { 
    border-color: var(--accent); 
    color: var(--text-main); 
}

/* Standard Aktiv-Zustand (Falls keine Farbe matcht) */
#feedbackWizard .rating-pill:has(input:checked) { 
    background: var(--accent); 
    color: #000 !important; 
    border-color: var(--accent); 
    font-weight: bold; 
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.3); 
}

/* Dynamische Farben basierend auf dem Wert */
#feedbackWizard .rating-pill:has(input[value*="sehr gut"]:checked) { 
    background: #28a745 !important; border-color: #28a745 !important; color: #fff !important; 
}
#feedbackWizard .rating-pill:has(input[value="gut / good"]:checked) { 
    background: #94c11f !important; border-color: #94c11f !important; color: #fff !important; 
}
#feedbackWizard .rating-pill:has(input[value*="zufriedenstellend"]:checked) { 
    background: #ffc107 !important; border-color: #ffc107 !important; color: #000 !important; 
}
#feedbackWizard .rating-pill:has(input[value*="ausreichend"]:checked) { 
    background: #fd7e14 !important; border-color: #fd7e14 !important; color: #fff !important; 
}
#feedbackWizard .rating-pill:has(input[value*="schlecht"]:checked) { 
    background: #dc3545 !important; border-color: #dc3545 !important; color: #fff !important; 
}

/* Scrollbar für lange Listen */
.scroll-container::-webkit-scrollbar { width: 6px; }
.scroll-container::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 10px; }

#nextBtn:disabled, #submitBtn:disabled {
    cursor: not-allowed;
    filter: grayscale(0.5);
    pointer-events: none; /* Verhindert Klicks komplett */
}

/* Light Mode: Silber für Ja/Nein Buttons */
[data-theme="light"] #feedbackWizard .rating-pill:has(input[value*="ja"]:checked),
[data-theme="light"] #feedbackWizard .rating-pill:has(input[value*="nein"]:checked) {
    background: #adb5bd !important;
    border-color: #adb5bd !important;
    color: #fff !important;
}
/* Hover Effekt für diese Buttons */
[data-theme="light"] #feedbackWizard .rating-pill:hover {
    border-color: #adb5bd !important;
}

/* Responsive Einstellungen für das Teambanner */
.team-banner-wrapper {
    min-height: 500px; /* Schön groß auf dem Desktop */
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

@media (max-width: 768px) {
    .team-banner-wrapper {
        /* Auf dem Handy flacher machen, damit links und rechts niemand abgeschnitten wird! */
        min-height: 280px; 
        align-items: center; /* Text auf dem Handy eher in die Mitte rücken */
    }
    .team-banner-text {
        font-size: 1.75rem !important; /* Text auf dem Handy minimal kleiner machen */
    }
}