/* --- CSS VARIABLEN --- */
:root {
    --bg-color: #020617;
    --card-bg: rgba(30, 41, 59, 0.5);
    --inner-card-bg: rgba(20, 28, 40, 0.7); 
    --primary: #3b82f6;
    --accent: #8b5cf6;
    --success: #10b981;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --gradient: linear-gradient(135deg, #3b82f6 10%, #8b5cf6 100%);
    --safe-gradient: linear-gradient(to right, #10b981, #3b82f6);
    --section-spacing: 120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.5px; }

/* --- ANIMATION LAYER --- */
.hero-bg-anim {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.glowing-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    mix-blend-mode: screen;
    animation: moveOrganic 15s infinite ease-in-out alternate;
}
.orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, var(--primary), transparent 70%); top: -100px; left: -100px; }
.orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, var(--accent), transparent 70%); bottom: -50px; right: -50px; animation-duration: 20s; animation-delay: -5s; }
.orb-3 { width: 400px; height: 400px; background: radial-gradient(circle, #06b6d4, transparent 70%); top: 40%; left: 50%; transform: translate(-50%, -50%); opacity: 0.4; animation-duration: 25s; animation-delay: -10s; }

@keyframes moveOrganic {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, 80px) scale(1.1); }
    66% { transform: translate(-30px, -50px) scale(0.95); }
    100% { transform: translate(20px, 20px) scale(1.05); }
}

.grid-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
}

/* --- CONTENT LAYER --- */
header, section, footer, .modal-overlay { position: relative; z-index: 2; }

/* --- HEADER & NAV --- */
header {
    position: fixed; top: 0; width: 100%; padding: 20px 5%;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(2, 6, 23, 0.7); backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.05); z-index: 1000;
}

.logo { font-size: 1.5rem; font-weight: 800; }
.logo span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

nav ul { display: flex; align-items: center; }
.mobile-only-item { display: none; }

.cta-button {
    background: var(--gradient);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
    cursor: pointer;
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5); }

.mobile-menu-btn { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); }

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 160px 20px 100px; overflow: hidden;
}
.hero-content { max-width: 900px; }
.hero-badge-container { display: flex; justify-content: center; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.hero-badge { 
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); 
    padding: 8px 18px; border-radius: 30px; font-size: 0.85rem; font-weight: 600;
    display: flex; align-items: center; gap: 8px; backdrop-filter: blur(5px);
}
.hero-badge i { color: var(--success); }
.hero h1 { font-size: clamp(3rem, 8vw, 5rem); line-height: 1.1; margin-bottom: 25px; text-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; }
.hero p.lead { font-size: 1.25rem; color: var(--text-muted); max-width: 750px; margin: 0 auto 40px; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }

/* --- SECTIONS --- */
.section { padding: var(--section-spacing) 5%; }
.section-header { text-align: center; margin-bottom: 80px; max-width: 800px; margin-left: auto; margin-right: auto;}
.section-header h2 { font-size: 3rem; margin-bottom: 20px; }
.tagline { color: var(--primary); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-size: 0.9rem; display: block; margin-bottom: 10px; }

/* --- SAFE BOX --- */
.process-container { max-width: 1400px; margin: 0 auto; }
.safe-big-box {
    background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 185, 129, 0.2); border-radius: 24px; padding: 40px;
    position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 40px;
}
.safe-big-box::before { content: ''; position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: var(--safe-gradient); }
.safe-header-inside { margin-bottom: 10px; }
.safe-title { font-size: 1.8rem; font-weight: 800; background: var(--safe-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; }
.safe-subtitle { font-size: 0.9rem; color: var(--text-muted); margin-top: 5px; }

/* Default Desktop Grid (4 Spalten) */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }

.process-card {
    background: var(--inner-card-bg); padding: 35px 25px; border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05); transition: 0.3s; display: flex; flex-direction: column; height: 100%;
}
.process-card:hover { background: rgba(30, 41, 59, 0.9); border-color: rgba(255,255,255,0.15); transform: translateY(-5px); }
.step-number { font-size: 0.85rem; font-weight: 800; color: rgba(255,255,255,0.2); margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.process-card h3 { font-size: 1.2rem; margin-bottom: 15px; color: white; }
.process-card p { font-size: 0.9rem; color: var(--text-muted); flex-grow: 1; }
.process-icon { font-size: 1.5rem; color: var(--primary); margin-bottom: 15px; }

/* --- SAFE TABS (NEU) --- */
.safe-tabs-container {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
}

.safe-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.safe-tab-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
}

.safe-tab-btn:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.safe-tab-btn.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.safe-tab-pane {
    display: none; /* Hidden by default */
    background: var(--inner-card-bg);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    animation: fadeIn 0.5s ease-in-out;
}

.safe-tab-pane.active {
    display: block;
}

.safe-tab-pane h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: white;
}

.safe-tab-pane p {
    color: var(--text-muted);
    margin-bottom: 20px;
    max-width: 800px;
}

.safe-tab-pane ul {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.safe-tab-pane li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--text-main);
}

.safe-tab-pane i {
    color: var(--success);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- SPECIAL --- */
.special-section { background: rgba(2, 6, 23, 0.9); border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }
.special-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 60px; }
.target-group { text-align: center; padding: 30px; background: rgba(255,255,255,0.02); border-radius: 20px; }
.target-group i { font-size: 2.5rem; color: var(--accent); margin-bottom: 20px; }
.target-group h4 { font-size: 1.2rem; margin-bottom: 10px; }
.target-group p { font-size: 0.9rem; color: var(--text-muted); }

/* --- FOOTER & CTA --- */
.cta-footer { background: radial-gradient(circle at bottom center, rgba(139, 92, 246, 0.2), transparent 70%); text-align: center; padding: 150px 20px; backdrop-filter: blur(10px); }
footer { background: #010409; padding: 80px 10% 30px; text-align: center; color: var(--text-muted); position: relative; z-index: 5; }
footer a:hover { color: var(--primary); }

/* --- MODAL (ALLGEMEIN) --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(2, 6, 23, 0.98); z-index: 2000;
    display: flex; justify-content: center; align-items: flex-start;
    padding: 50px 20px; overflow-y: auto; opacity: 0; pointer-events: none; transition: 0.3s ease-in-out;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content {
    background: var(--card-bg); border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(10px);
    padding: 40px; border-radius: 20px; max-width: 900px; width: 100%; position: relative; text-align: left; color: var(--text-muted); margin-bottom: 50px;
}
.close-modal { position: absolute; top: 20px; right: 30px; font-size: 2rem; color: white; cursor: pointer; transition: 0.3s; }
.close-modal:hover { color: var(--accent); transform: rotate(90deg); }

.modal-body h1 { color: white; font-size: 2rem; margin-bottom: 30px; }
.modal-body h2 { color: white; font-size: 1.5rem; margin-top: 30px; margin-bottom: 15px; }
.modal-body p, .modal-body ul { margin-bottom: 15px; line-height: 1.7; }

/* --- KONTAKT MODAL SPEZIFISCH --- */
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px;
}
.contact-option {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
    padding: 30px; border-radius: 15px; transition: 0.3s;
    display: flex; flex-direction: column; justify-content: center;
}
.contact-option:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); }

.contact-option h3 { color: white; margin-bottom: 10px; font-size: 1.2rem; }
.contact-option a { color: var(--primary); font-weight: 600; font-size: 1.1rem; }
.contact-option i { font-size: 2rem; color: var(--text-muted); margin-bottom: 20px; }

.booking-option {
    grid-column: 1 / -1; /* Volle Breite */
    background: linear-gradient(to right, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.3);
    text-align: center;
}
.booking-option:hover { border-color: var(--primary); transform: translateY(-3px); }

/* Button Lesbarkeit Fix */
.booking-option .cta-button {
    color: white !important;
    text-decoration: none;
}

/* --- RESPONSIVE OPTIMIERUNGEN --- */
.hidden { opacity: 0; filter: blur(5px); transform: translateY(30px); transition: all 1s ease; }
.show { opacity: 1; filter: blur(0); transform: translateY(0); }

/* TABLET (1200px) */
@media (max-width: 1200px) {
    .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    nav ul { position: fixed; top: 0; right: -100%; height: 100vh; width: 80%; background: rgba(2, 6, 23, 0.98); flex-direction: column; justify-content: center; padding: 60px; transition: 0.4s; }
    nav ul.active { right: 0; }
    .mobile-menu-btn { display: block; z-index: 1001; }
    .mobile-only-item { display: block; width: 100%; text-align: center; }
    .desktop-cta { display: none; }
    
    .special-grid, .contact-grid { grid-template-columns: 1fr; }
    
    .safe-meaning { justify-content: center; gap: 15px; }
    .safe-desc { text-align: center; max-width: 100%; }
}

/* MOBILE (< 768px) */
@media (max-width: 768px) {
    :root { --section-spacing: 80px; }
    .hero h1 { font-size: 2.5rem; } 
    .section-header h2 { font-size: 2rem; }
    .hero { padding-top: 120px; padding-bottom: 60px; }
    .safe-big-box { padding: 30px 20px; }
    .process-card, .target-group, .contact-option { padding: 25px; }
    
    .process-grid { grid-template-columns: 1fr; }
    
    .modal-content { padding: 25px; width: 95%; margin-bottom: 80px; }
    .close-modal { top: 15px; right: 15px; font-size: 1.8rem; }

    /* Tabs Mobil untereinander */
    .safe-tabs-nav { flex-direction: column; }
    .safe-tab-btn { width: 100%; justify-content: center; }
    .safe-tab-pane ul { flex-direction: column; gap: 10px; }
}

/* --- PROFILE & TECH SECTION (UPDATE) --- */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; 
    gap: 60px;
    align-items: start; /* Wichtig: Oben ausrichten, da das Bild jetzt kleiner ist */
}

.profile-header {
    margin-bottom: 30px;
}

.profile-role {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: -10px;
    margin-bottom: 15px;
    display: block;
}

/* NEU: LinkedIn Button Styles */
.linkedin-btn-container {
    margin-top: 15px;
}

.linkedin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1); /* Zartes Blau */
    color: var(--primary);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.linkedin-btn i { font-size: 1.1rem; }

.linkedin-btn:hover {
    background: var(--primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

/* Content Styles */
.lead-bio {
    font-size: 1.1rem;
    color: var(--text-main) !important; /* Heller als normaler Text */
    margin-bottom: 25px !important;
    line-height: 1.6;
}

.profile-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.profile-content strong {
    color: white;
    font-weight: 700;
}

/* --- PROFILE LIST OPTIMIERUNG --- */
.profile-list {
    margin-top: 30px;
    list-style: none;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
}

.profile-list li {
    margin-bottom: 25px; /* Mehr Abstand zwischen den Punkten */
    display: flex;
    align-items: flex-start; /* Icon bleibt oben links */
    gap: 15px; /* Abstand Icon zu Text */
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Der Container für Titel + Text */
.profile-list div {
    display: flex;
    flex-direction: column; /* Stapelt Titel und Text untereinander */
}

.profile-list strong {
    color: var(--text-main); /* Helle Farbe für Titel */
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 5px; /* Kleiner Abstand zum Text darunter */
    display: block;
}

.profile-list span {
    color: var(--text-muted); /* Etwas dunklerer Text für Beschreibung */
}

.profile-list i {
    color: var(--success);
    margin-top: 4px; /* Optische Ausrichtung zur ersten Zeile */
    font-size: 1.1rem;
    flex-shrink: 0; /* Verhindert, dass das Icon gequetscht wird */
}

/* Visual Side */
.profile-visual {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center; /* Zentriert das kleinere Bild in seiner Spalte */
}

.profile-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 250px; /* UPDATE: Kleiner gemacht (war 350px) */
    margin: 0 auto;
    aspect-ratio: 1/1;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-image-wrapper:hover .profile-img {
    transform: scale(1.05);
}

/* Tech Stack Box */
.tech-stack-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 25px;
    width: 100%; /* Volle Breite der Spalte nutzen */
}

.tech-stack-box h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-badge {
    font-size: 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    color: #bfdbfe;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-family: monospace;
}

.tech-badge.border-green {
    background: rgba(16, 185, 129, 0.1);
    color: #a7f3d0;
    border-color: rgba(16, 185, 129, 0.2);
}

/* RESPONSIVE PROFILE */
@media (max-width: 992px) {
    .profile-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .profile-header {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .profile-list {
        text-align: left;
        display: inline-block; /* Damit die Liste zentriert wirkt aber linksbündig ist */
    }
    
    .profile-image-wrapper {
        max-width: 220px; /* Mobil noch etwas kleiner */
    }
    
    .tech-badges {
        justify-content: center;
    }
}



/* --- USE CASES SLIDER --- */
.slider-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.slider-container {
    overflow: hidden;
    width: 100%;
    border-radius: 20px;
    /* Schatten für Tiefe */
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.usecase-card {
    min-width: 100%; /* Jede Karte nimmt 100% der Containerbreite ein */
    background: var(--inner-card-bg);
    padding: 50px;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Badge oben rechts */
.usecase-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.usecase-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 25px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), transparent);
    width: 80px; height: 80px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.usecase-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: white;
}

.usecase-desc, .usecase-solution {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.7;
}

.usecase-desc strong, .usecase-solution strong {
    color: var(--text-main);
}

.usecase-solution em {
    color: var(--primary);
    font-style: normal;
    font-size: 0.9rem;
}

.usecase-result {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--success);
    font-weight: 600;
    line-height: 1.8;
}

.usecase-result i {
    margin-right: 10px;
}

.usecase-result span {
    color: var(--text-main);
    font-weight: 400;
}

/* Slider Buttons */
.slider-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    width: 50px; height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.slider-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Dots Navigation (Mobile/Desktop) */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px; height: 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .slider-wrapper {
        flex-direction: column;
    }
    .slider-btn {
        display: none; /* Auf Mobile Pfeile ausblenden, nur Dots nutzen oder Swipe (Swipe hier nicht implementiert, daher Dots) */
    }
    .usecase-card {
        padding: 30px 20px;
    }
    .usecase-badge {
        position: relative;
        top: 0; right: 0;
        display: inline-block;
        margin-bottom: 20px;
    }
}