/* =========================================
   1. DESIGN SYSTEM & VARIABLEN
   ========================================= */
:root {
    --brand-blue: #43AFCE;       /* Dein Logo-Blau */
    --brand-blue-dark: #2B8BAC;  /* Dunkleres Blau für Hover */
    --brand-dark: #0F172A;       /* Sehr dunkles Blau/Schwarz für Text */
    --bg-light: #F1F5F9;         /* Hellgrauer Hintergrund */
    --text-main: #334155;        /* Haupttextfarbe */
    --text-muted: #64748B;       /* Sekundärtext */
    --white: #ffffff;
    
    /* Schatten & Radien */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 8px;
}

/* =========================================
   2. GLOBALER RESET & TYPOGRAFIE
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    /* WICHTIG: Platzhalter für den fixierten Header beim Scrollen */
    scroll-padding-top: 90px;
}

body {
    /* System Fonts: Lädt sofort, keine externen Anfragen, DSGVO-konform */
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.7;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 800; color: var(--brand-dark); line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); margin-bottom: 20px; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 20px; }
h3 { font-size: 1.4rem; margin-bottom: 10px; }
p { margin-bottom: 1.5rem; color: var(--text-muted); font-size: 1.05rem; }

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* Helper Klassen */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.bg-light { background-color: var(--bg-light); }
.text-blue { color: var(--brand-blue); }

/* SVG Icons Styling */
.icon { width: 24px; height: 24px; fill: currentColor; display: inline-block; vertical-align: middle; }
.icon-lg { width: 48px; height: 48px; }

/* =========================================
   3. BUTTONS
   ========================================= */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 32px; border-radius: var(--radius);
    font-weight: 700; cursor: pointer; border: none; transition: 0.3s;
    font-size: 1rem; text-transform: uppercase; letter-spacing: 0.5px;
}

.btn-primary { 
    background: var(--brand-blue); 
    color: white; 
    box-shadow: 0 4px 15px rgba(67, 175, 206, 0.4); 
}
.btn-primary:hover { 
    background: var(--brand-blue-dark); 
    transform: translateY(-2px); 
}

.btn-outline { 
    border: 2px solid white; 
    color: white; 
    background: transparent; 
}
.btn-outline:hover { 
    background: white; 
    color: var(--brand-dark); 
}

.btn-dark { 
    background: var(--brand-dark); 
    color: white; 
}
.btn-dark:hover { 
    background: var(--brand-blue); 
}

/* =========================================
   4. HEADER & NAVIGATION
   ========================================= */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 0;
    transition: 0.3s;
}

nav { display: flex; justify-content: space-between; align-items: center; }

.logo { 
    font-size: 1.5rem; font-weight: 900; 
    display: flex; align-items: center; gap: 8px; 
    color: var(--brand-dark); 
}

.nav-links { display: flex; gap: 30px; }

.nav-links a { 
    font-weight: 600; font-size: 0.95rem; 
    color: var(--brand-dark); position: relative; 
}
.nav-links a::after { 
    content: ''; position: absolute; width: 0; height: 2px; 
    bottom: -5px; left: 0; background: var(--brand-blue); 
    transition: 0.3s; 
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--brand-blue); }

.mobile-toggle { display: none; cursor: pointer; padding: 10px; }

/* Telefon Link Styling im Header */
.phone-link {
    display: flex; 
    align-items: center; 
    gap: 8px; 
    text-decoration: none; 
    color: var(--brand-dark); 
    font-weight: 700;
    transition: 0.3s;
}
.phone-link:hover { color: var(--brand-blue); }

.phone-number-text { display: none; } /* Mobile first: Text ausblenden */
@media(min-width: 480px) {
    .phone-number-text { display: block; } /* Ab 480px anzeigen */
}

.phone-icon-circle {
    width: 36px; height: 36px; 
    background: rgba(67, 175, 206, 0.1); 
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center;
    color: var(--brand-blue);
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero {
    position: relative;
    background: linear-gradient(135deg, #0F172A 0%, #1e293b 100%);
    color: white;
    padding: 140px 0;
    overflow: hidden;
}

/* Technisches Gitter-Muster rein mit CSS */
.hero::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(67, 175, 206, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(67, 175, 206, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 90%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 90%);
}

.hero-content { position: relative; z-index: 2; max-width: 800px; }

/* Weiße Überschrift wie gewünscht */
.hero h1 { color: #ffffff; }

.hero p { color: #cbd5e1; font-size: 1.25rem; max-width: 650px; margin-bottom: 40px; }

.hero-tags { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 25px;
    flex-wrap: wrap; /* Tags brechen um */
}

.tag { 
    background: rgba(67, 175, 206, 0.15); color: var(--brand-blue); 
    padding: 6px 16px; border-radius: 50px; font-weight: 700; font-size: 0.85rem; 
    border: 1px solid rgba(67, 175, 206, 0.3); text-transform: uppercase;
}

/* =========================================
   6. ABOUT & TIMELINE
   ========================================= */
.timeline { border-left: 3px solid #e2e8f0; margin-left: 20px; padding-left: 40px; margin-top: 50px; }

.timeline-item { position: relative; margin-bottom: 60px; }
.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
    position: absolute; left: -54px; top: 0;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--brand-blue); border: 4px solid white; 
    box-shadow: 0 0 0 1px #e2e8f0;
}

.year { font-weight: 800; color: var(--brand-blue); display: block; margin-bottom: 5px; font-size: 1.1rem; }

/* =========================================
   7. SERVICES GRID
   ========================================= */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }

.card {
    background: white; padding: 40px; border-radius: var(--radius);
    box-shadow: var(--shadow-sm); border: 1px solid #f1f5f9;
    transition: all 0.3s ease; position: relative; overflow: hidden;
    display: flex; flex-direction: column;
}

.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--brand-blue); }

.card-icon { 
    width: 64px; height: 64px; background: rgba(67, 175, 206, 0.1); 
    color: var(--brand-blue); border-radius: 12px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 25px;
}

.check-list { margin-top: auto; border-top: 1px solid #f1f5f9; padding-top: 20px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: 0.95rem; color: var(--text-muted); }

.check-icon { color: var(--brand-blue); width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }

/* =========================================
   8. UNSER ANSPRUCH & FEATURES
   ========================================= */
.features-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; margin-top: 60px; }
.feature-item h4 { font-size: 1.2rem; margin-bottom: 15px; }

.feature-icon-circle {
    width: 80px; height: 80px; background: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); color: var(--brand-blue);
}

/* =========================================
   9. KONTAKT (SPLIT DESIGN)
   ========================================= */
.contact-wrapper { 
    display: grid; grid-template-columns: 1fr 1.5fr; 
    background: white; border-radius: 12px; overflow: hidden; 
    box-shadow: var(--shadow-lg); 
}

/* Linke Seite: Blau */
.contact-info { background: var(--brand-blue); color: white; padding: 60px; position: relative; }
.contact-info h3 { color: white; font-size: 2rem; margin-bottom: 30px; }
.contact-info p { color: rgba(255,255,255,0.9); font-size: 1.1rem; }

.contact-detail { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 30px; }
.contact-detail svg { opacity: 0.8; flex-shrink: 0; }

/* Rechte Seite: Weiß */
.contact-form { padding: 60px; background: white; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 0.9rem; color: var(--brand-dark); }

.form-input { 
    width: 100%; padding: 15px; border: 2px solid #e2e8f0; border-radius: var(--radius); 
    font-size: 1rem; font-family: inherit; transition: 0.3s; background: #f8fafc;
}
.form-input:focus { border-color: var(--brand-blue); outline: none; background: white; }

.submit-btn {
    width: 100%; padding: 15px; background: var(--brand-dark); color: white;
    border: none; border-radius: var(--radius); font-weight: 700; font-size: 1rem;
    cursor: pointer; transition: 0.3s; text-transform: uppercase;
}
.submit-btn:hover { background: var(--brand-blue); }

/* =========================================
   10. FOOTER (BIG PLAYER STYLE)
   ========================================= */
footer { background: var(--brand-dark); color: #94a3b8; padding: 80px 0 30px; margin-top: 0; }

/* HIER GEÄNDERT: Desktop Layout im CSS definiert */
.footer-grid { 
    display: grid; 
    /* Damit es am PC 3 Spalten sind (Links breit, 2x rechts schmaler) */
    grid-template-columns: 2fr 1fr 1fr; 
    gap: 60px; 
    margin-bottom: 60px; 
}

.footer-col h4 { 
    color: white; margin-bottom: 25px; 
    border-left: 3px solid var(--brand-blue); padding-left: 15px; 
    font-size: 1.1rem; 
}

.footer-links li { margin-bottom: 12px; }
.footer-links a { transition: 0.3s; color: #94a3b8; font-size: 0.95rem; }
.footer-links a:hover { color: var(--brand-blue); padding-left: 5px; }

/* Kontaktblock im Footer */
.footer-contact-block p { margin-bottom: 5px; font-size: 0.95rem; opacity: 0.7; color: white; }

/* Social Icons */
.social-icons { display: flex; gap: 15px; margin-bottom: 20px; }
.social-link {
    width: 40px; height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s ease; color: white;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.social-link svg { width: 20px; height: 20px; fill: currentColor; }
.social-link:hover {
    background: var(--brand-blue); transform: translateY(-3px);
    border-color: var(--brand-blue);
    box-shadow: 0 5px 15px rgba(67, 175, 206, 0.3);
}

/* Footer Bottom (Copyright Zeile) */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px; margin-top: 20px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 20px;
}
.copyright-text { font-size: 0.9rem; opacity: 0.6; }
.legal-links { display: flex; gap: 25px; }
.legal-links li a { font-size: 0.9rem; color: #94a3b8; transition: 0.3s; }
.legal-links li a:hover { color: var(--brand-blue); text-decoration: underline; }

/* =========================================
   11. ANIMATIONEN
   ========================================= */
.fade-in { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* =========================================
   12. RESPONSIVE DESIGN (MOBILE)
   ========================================= */
@media (max-width: 900px) {
    /* Alles untereinander auf Tablets & Mobile */
    .features-row { grid-template-columns: 1fr; gap: 30px; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    
    /* FOOTER FIX: Jetzt 1-spaltig und zentriert */
    .footer-grid { 
        grid-template-columns: 1fr; /* Hier wird Desktop überschrieben */
        gap: 50px; 
        text-align: center; 
    }
    
    /* Blaue Linie unter die Überschriften statt links daneben */
    .footer-col h4 { 
        border-left: none; 
        border-bottom: 3px solid var(--brand-blue); 
        padding-left: 0; 
        padding-bottom: 10px; 
        display: inline-block; 
    }
    
    /* Zentrierung der Icons und des Logos */
    .social-icons { justify-content: center; }
    .footer-col .logo { justify-content: center; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    
    /* Mobile Navigation */
    .nav-links { 
        display: none; position: absolute; top: 100%; left: 0; width: 100%; 
        background: white; flex-direction: column; padding: 20px; 
        box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-top: 1px solid #eee;
    }
    .nav-links.active { display: flex; }
    
    .mobile-toggle { display: block; }
    
    .hero { padding: 100px 0; }
    
    .contact-info, .contact-form { padding: 30px 20px; }
    
    /* Footer Bottom aufräumen */
    .footer-bottom { flex-direction: column; text-align: center; gap: 15px; }
    .legal-links { flex-wrap: wrap; justify-content: center; gap: 20px; }

    /* Fix für Impressum & Jobs Grid auf Mobile */
    .section div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

/* =========================================
   TEAM SECTION
   ========================================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: 0.3s ease;
    border: 1px solid #f1f5f9;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-blue);
}

/* Platzhalter für das Foto (Graue Box) */
.team-image-placeholder {
    width: 100%;
    height: 250px;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Falls du echte <img> Tags nutzt */
.team-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-content {
    padding: 25px;
}

.team-content h4 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.team-role {
    display: block;
    color: var(--brand-blue);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.team-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

