:root {
    --primary: #0066cc;
    --primary-dark: #004c99;
    --accent: #00e5ff;
    --dark: #0b1120;
    --dark-card: #151e32;
    --light: #f3f6fa;
    --white: #ffffff;
    --text: #334155;
    --text-light: #94a3b8;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.1);
    --radius: 12px;
}

/* Base Setup */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body { font-family: 'Inter', sans-serif; color: var(--text); line-height: 1.7; background: var(--white); overflow-x: hidden; }

h1, h2, h3 { color: var(--dark); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
a { text-decoration: none; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; object-fit: cover; }

.container { 
    width: 92%; 
    max-width: 1350px; /* Perfekter Mittelweg zwischen 1200px und 1500px */
    margin: 0 auto; 
    padding: 0 15px; 
}
.narrow-container { max-width: 800px; }

/* Buttons mit Glow */
.btn {
    padding: 14px 32px; border-radius: 8px; font-weight: 600; display: inline-block; cursor: pointer;
    text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.5px; border: none;
}
.btn-primary { 
    background: var(--primary); color: var(--white); border: 2px solid var(--primary);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4); 
}
.btn-primary:hover { 
    background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 102, 204, 0.6); 
}
.btn-secondary { 
    background: rgba(255,255,255,0.1); color: var(--white); border: 2px solid rgba(255,255,255,0.3); 
    backdrop-filter: blur(5px); margin-left: 15px;
}
.btn-secondary:hover { background: var(--white); color: var(--primary); border-color: var(--white); }
.btn-nav { background: var(--primary); padding: 10px 24px; border-radius: 6px; color: white !important; font-weight: 600; }
.btn-nav:hover { background: var(--accent); color: var(--dark) !important; box-shadow: 0 0 15px var(--accent); }
.full-width { width: 100%; text-align: center; }

/* Navigation */
.navbar {
    position: fixed; top: 0; width: 100%; padding: 25px 0; z-index: 1000; transition: all 0.4s ease;
}
/* Suche diesen Block (ca. Zeile 55) und ersetze ihn: */
/* Suche diesen Block und ersetze ihn komplett: */
.navbar.scrolled {
    background: rgba(11, 17, 32, 0.85); padding: 15px 0;
    backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { 
    font-size: 1.5rem; 
    font-weight: 800; 
    color: var(--white); 
    
    /* NEU: Damit der Farbwechsel sanft passiert */
    transition: color 0.3s ease; 
}

/* NEU: Der Hover-Effekt (macht das Logo blau) */
.logo:hover {
    color: var(--accent);
}
.highlight { color: var(--accent); }
.nav-links { display: flex; gap: 35px; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.8); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.active { color: var(--accent); border-bottom: 2px solid var(--accent); }
.menu-toggle { display: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* Hero Section */
.hero {
    min-height: 100vh;
    background: radial-gradient(circle at top right, #1e3a8a, transparent),
                url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover;
    display: flex; align-items: center; position: relative; color: var(--white); overflow: hidden;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(11, 17, 32, 0.7); }
/* 2. Der Hero Text (Damit die Überschrift nicht zu breit läuft) */
.hero-content { 
    position: relative; 
    z-index: 2; 
    max-width: 950px; /* Passt optisch am besten zur 1350er Breite */
}
.badge {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 20px; display: inline-block;
}
.hero h1 { 
    font-size: clamp(3rem, 6vw, 4.5rem); margin: 25px 0; font-weight: 800; line-height: 1.1; 
    color: #ffffff; text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero p { 
    font-size: 1.25rem; opacity: 0.95; max-width: 650px; margin-bottom: 40px; color: #f3f4f6;
}

/* Partner Ticker */
.partner-ticker {
    background: var(--light); padding: 30px 0; overflow: hidden; border-bottom: 1px solid #e2e8f0;
}
.ticker-track {
    display: flex; gap: 60px; width: max-content;
    animation: scroll 30s linear infinite;
}
.slide {
    font-size: 1.2rem; font-weight: 600; color: var(--text-light); display: flex; align-items: center; gap: 10px;
    filter: grayscale(100%); transition: 0.3s; cursor: default;
}
.slide:hover { filter: grayscale(0%); color: var(--primary); }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Sections General */
.section { padding: 100px 0; position: relative; }
.bg-light { background: var(--light); }
.bg-dark { background: var(--dark); color: var(--white); }
.section-header { text-align: center; margin-bottom: 60px; max-width: 700px; margin-left: auto; margin-right: auto; }
.sub-title { color: var(--primary); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1.5px; display: block; margin-bottom: 15px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 20px; color: inherit; }
.divider { width: 80px; height: 4px; background: var(--primary); margin: 0 auto; border-radius: 2px; }

/* Services Grid */
/* Services Grid */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }

.service-card {
    background: var(--white); padding: 50px 40px; border-radius: var(--radius);
    box-shadow: var(--shadow-sm); 
    /* NEU: Langsame, 'cleane' Transition (0.7s mit sanftem Stopp) */
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.7s ease, border-color 0.7s ease; 
    border: 1px solid rgba(0,0,0,0.05); position: relative; overflow: hidden;
}

.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: rgba(0, 102, 204, 0.2); }

/* Der blaue Balken links */
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 0;
    background: var(--primary); 
    /* NEU: Langsamerer Aufbau */
    transition: height 0.7s ease;
}
.service-card:hover::before { height: 100%; }

/* Das Icon */
.icon-wrapper {
    width: 70px; height: 70px; background: rgba(0,102,204,0.08); color: var(--primary);
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin-bottom: 30px; 
    /* NEU: Langsame Rotation */
    transition: all 0.7s ease;
}
.service-card:hover .icon-wrapper { background: var(--primary); color: var(--white); transform: rotateY(180deg); }

.service-card h3 { font-size: 1.4rem; margin-bottom: 15px; }

/* Details & Images */
.feature-block { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-bottom: 100px; }
.feature-block:last-child { margin-bottom: 0; }
.feature-block.reversed { direction: rtl; } 
.feature-block.reversed .feature-text { direction: ltr; }
.feature-text h3 { font-size: 2.2rem; margin-bottom: 15px; }
.lead { font-size: 1.2rem; color: var(--primary); font-weight: 500; margin-bottom: 25px; }
.feature-list li { margin-bottom: 15px; display: flex; align-items: flex-start; gap: 12px; }
.feature-list i { color: var(--primary); margin-top: 5px; }
.feature-img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; height: auto; }

/* Team Cards */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.team-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: 0.3s; }
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.team-img { position: relative; height: 300px; overflow: hidden; }
.team-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.team-card:hover .team-img img { transform: scale(1.1); }
.social-overlay {
    position: absolute; bottom: -50px; left: 0; width: 100%; background: rgba(0,0,0,0.7);
    padding: 15px; display: flex; justify-content: center; gap: 20px; transition: 0.3s;
}
.team-card:hover .social-overlay { bottom: 0; }
.social-overlay a { color: var(--white); font-size: 1.2rem; }
.team-info { padding: 25px; text-align: center; }
.team-info h3 { font-size: 1.2rem; margin-bottom: 5px; }
.team-info .role { color: var(--primary); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; }

/* Testimonials (Grid) */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonial-card {
    background: rgba(255,255,255,0.05); padding: 40px; border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(10px);
}
.stars { color: #fbbf24; margin-bottom: 20px; font-size: 0.9rem; }
.testimonial-card p { font-style: italic; opacity: 0.9; margin-bottom: 25px; color: #e2e8f0; }
.author strong { display: block; color: var(--white); }
.author span { font-size: 0.85rem; color: var(--text-light); }

/* FAQ Accordion */
.accordion-item { background: var(--white); margin-bottom: 15px; border-radius: 8px; box-shadow: var(--shadow-sm); overflow: hidden; }
.accordion-header {
    width: 100%; padding: 20px 25px; background: none; border: none; outline: none;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 1.1rem; font-weight: 600; color: var(--dark); cursor: pointer; transition: 0.3s;
    font-family: inherit;
}
.accordion-header:hover { background: #f8fafc; color: var(--primary); }
.accordion-header i { transition: 0.3s; }
.accordion-header.active i { transform: rotate(180deg); }
.accordion-content {
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out;
    padding: 0 25px; background: var(--white);
}
.accordion-content p { padding-bottom: 25px; padding-top: 10px; color: var(--text); }

/* --- NEUE KONTAKT SECTION --- */

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0; /* Kein Gap, da wir ein zusammenhängendes Design machen */
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden; /* Damit Ecken abgerundet bleiben */
    margin-top: 20px;
}

/* Linke Seite (Info) */
.contact-info-box {
    background: var(--dark);
    color: var(--white);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-box h3 { color: var(--white); margin-bottom: 20px; font-size: 1.8rem; }
.contact-info-box p { color: #94a3b8; margin-bottom: 40px; line-height: 1.6; }

/* Telefon Button */
.phone-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 40px;
    transition: 0.3s;
}
.phone-cta:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}
.icon-phone {
    font-size: 1.8rem;
    color: var(--white);
}
.text-phone span { display: block; font-size: 0.85rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 1px; }
.text-phone strong { display: block; font-size: 1.2rem; color: var(--white); margin-top: 5px; }

/* Info Liste */
.info-row { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; font-size: 1.05rem; }
.info-row i { color: var(--accent); width: 20px; text-align: center; }
.info-row a { color: var(--white); }
.info-row a:hover { color: var(--accent); text-decoration: underline; }

/* Rechte Seite (Formular) */
.contact-form-modern {
    padding: 60px 50px;
    background: var(--white);
}
.contact-form-modern h3 { margin-bottom: 30px; font-size: 1.5rem; color: var(--dark); }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group { margin-bottom: 25px; }
.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    font-family: inherit;
    font-size: 0.95rem;
    transition: 0.3s;
    outline: none;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

/* --- FOOTER (3-Spalten Layout) --- */
footer { 
    background: #050911; 
    padding: 80px 0 30px; 
    color: #94a3b8; 
    font-size: 0.95rem; 
    border-top: 1px solid rgba(255,255,255,0.05); 
    width: 100%;
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr; /* 3 gleich große Spalten */
    gap: 40px; 
    margin-bottom: 60px; 
    align-items: start;
}

/* Spalte 1: Adresse (Links) */
.footer-col.left { text-align: left; }

/* Spalte 2: Logo & Slogan (Mitte) */
.footer-col.center { 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

/* Spalte 3: Links (Rechts) */
.footer-col.right { text-align: right; }

/* Styling der Inhalte */
.logo-footer { 
    color: var(--white); 
    font-weight: 800; 
    font-size: 1.5rem; 
    display: block; 
    margin-bottom: 10px; 
}
.tagline { color: var(--accent); font-size: 0.9rem; margin-bottom: 10px; }
.legal-name { font-size: 0.75rem; opacity: 0.5; text-transform: uppercase; }

.footer-col h4 { color: var(--white); margin-bottom: 20px; font-size: 1.1rem; }
.footer-col p { margin-bottom: 10px; line-height: 1.6; }

.footer-col ul { list-style: none; padding: 0; }
.footer-col a { color: #94a3b8; display: block; margin-bottom: 8px; transition: 0.3s; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom { 
    text-align: center; 
    border-top: 1px solid rgba(255,255,255,0.05); 
    padding-top: 30px; 
    font-size: 0.85rem; 
}

/* Mobile Anpassung */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .footer-col.left, .footer-col.right { text-align: center; }
}

/* --- PROCESS TIMELINE (REDUX) --- */
.timeline-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    /* Mehr Platz links für die neue Anordnung */
    padding: 40px 0 40px 80px;
}

/* Graue Hintergrundlinie */
.line-background {
    position: absolute;
    left: 30px; /* Verschiebung nach rechts */
    top: 0;
    width: 4px;
    height: 100%;
    background: #e2e8f0;
    border-radius: 4px;
    z-index: 0;
}

/* Blaue Füll-Linie */
.line-progress {
    position: absolute;
    left: 30px; /* Verschiebung nach rechts */
    top: 0;
    width: 4px;
    height: 0%;
    background: var(--primary);
    background: linear-gradient(to bottom, var(--primary), var(--accent)); /* Verlauf */
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(0, 102, 204, 0.6);
    transition: height 0.1s linear;
    z-index: 1;
}

/* Einzelner Schritt */
.timeline-item {
    position: relative;
    margin-bottom: 80px; /* Mehr Abstand zwischen Schritten */
    z-index: 2;
}
.timeline-item:last-child { margin-bottom: 0; }

/* Der Punkt auf der Linie */
.timeline-dot {
    position: absolute;
    left: -58px; /* Exakt auf der Linie positionieren */
    top: 25px; /* Vertikal mittig zur Zahl */
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 4px solid #e2e8f0;
    border-radius: 50%;
    z-index: 3;
    transition: 0.4s ease;
    box-shadow: 0 0 0 0 rgba(0, 102, 204, 0);
}

/* Aktiver Zustand (wird per JS gesetzt) */
.timeline-item.active .timeline-dot {
    border-color: var(--accent);
    background: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 0 8px rgba(0, 229, 255, 0.2); /* Pulsierender Effekt */
}

/* Das neue Karten-Layout */
.timeline-content {
    /* Glassmorphism Effekt */
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.5);
    transition: 0.4s ease;
    
    /* Flexbox für Zahl links, Text rechts */
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

/* Aktiver Zustand der Karte */
.timeline-item.active .timeline-content {
    transform: translateX(10px) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.15);
    border-color: rgba(0, 229, 255, 0.3);
}

/* Die Zahl (neu positioniert) */
/* Suche .step-nr und ersetze es hiermit: */
.step-nr {
    font-size: 4rem;
    font-weight: 800;
    /* Verlauf für die Zahl */
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
    
    /* DER FIX: */
    line-height: 1.2; /* Erhöht von 1 auf 1.2 -> Verhindert das Abschneiden oben */
    padding-top: 5px; /* Sicherheitspuffer */
    margin-top: -10px; /* Zieht die Zahl wieder hoch, damit sie bündig mit der Überschrift ist */
    
    min-width: 90px; /* Etwas mehr Platz in der Breite */
    flex-shrink: 0; /* Verhindert, dass die Zahl gequetscht wird */
}

.text-container h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.text-container p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Mobile Anpassung */
@media (max-width: 768px) {
    .timeline-wrapper { padding: 30px 0 30px 60px; }
    .line-background, .line-progress { left: 20px; }
    .timeline-dot { left: -48px; top: 20px; width: 16px; height: 16px; border-width: 3px; }
    
    .timeline-content { flex-direction: column; gap: 15px; padding: 25px; }
    .step-nr { font-size: 3rem; min-width: auto; margin-bottom: 10px; }
    .timeline-dot { top: 15px; }
}