/* ==========================================================================
   1. ELEMENT-RESET & BASIS-STYLING
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* Globale Layout-Container */
.container {
    width: 85%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background: #f8f9fa;
}

.text-center {
    text-align: center;
}

/* Typografie */
h2 {
    font-size: 32px;
    color: #1a252f;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

/* Der blaue Akzentstrich unter den h2-Überschriften */
h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: #01017d;
}

/* Korrektur für zentrierte Überschriften (z.B. im Profil-Bereich) */
.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-lead {
    font-size: 18px;
    color: #666666;
    margin-bottom: 40px;
    max-width: 800px;
}

.text-center .section-lead {
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
header {
    background: #ffffff; /* Weißer Hintergrund */
    color: #333333;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Etwas dezenterer Schatten für den weißen Header */
    border-bottom: 1px solid #eef0f2; /* Feine Trennlinie nach unten */
}

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

.logo img {
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    color: #1a252f; /* Dunkle Schriftfarbe für optimale Lesbarkeit auf Weiß */
    text-decoration: none;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease-in-out;
}

nav ul li a:hover {
    color: #01017d; /* Blau beim Drüberfahren mit der Maus */
}

/* ==========================================================================
   3. HERO IMAGE SECTION (Blickfang mit IT-Berater-Bild)
   ========================================================================== */
.hero-image-container {
    width: 100%;
    max-height: 800px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eef0f2;
}

.hero-main-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #01017d;
    color: #ffffff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #2980b9;
}

.btn-profile {
    background: #2c3e50;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-profile:hover {
    background: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   5. BEREICHS-RASTER (Grids, Kacheln & Listen)
   ========================================================================== */
/* Grid für Leistungen */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 10px;
}

.card {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid #01017d;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
}

.card h3 {
    font-size: 20px;
    color: #1a252f;
    margin-bottom: 12px;
}

.card p {
    color: #555555;
    font-size: 15px;
}

/* Container für Technologien */
.tech-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.tech-block {
    background: #ffffff;
    padding: 25px;
    border-radius: 6px;
    border-left: 4px solid #01017d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.tech-block h3 {
    margin-bottom: 15px;
    color: #1a252f;
    font-size: 18px;
}

.tech-block ul {
    list-style-type: square;
    padding-left: 20px;
}

.tech-block ul li {
    margin-bottom: 8px;
    font-size: 15px;
    color: #444444;
}

/* Grid für Referenzen */
.references-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ref-item {
    background: #f8f9fa;
    padding: 18px 25px;
    border-radius: 6px;
    border: 1px solid #eef0f2;
    font-size: 15px;
    color: #444444;
}

.ref-item strong {
    color: #01017d;
    display: inline-block;
    min-width: 180px;
}

/* Download-Box im Profil-Bereich */
.profile-download-box {
    margin-top: 20px;
}

/* Pill-Badges für Zertifikate */
.cert-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cert-list li {
    background: #eaf2f8;
    color: #2471a3;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #d4e6f1;
}

/* ==========================================================================
   6. FOOTER & MEDIA QUERIES (Handy-Optimierung)
   ========================================================================== */
footer {
    background: #111111;
    color: #aaaaaa;
    text-align: center;
    padding: 40px 0;
    font-size: 14px;
    border-top: 3px solid #1a252f;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #01017d;
}

/* --- RESPONSIVE ANPASSUNGEN (SMARTPHONES & TABLETS) --- */
@media (max-width: 768px) {
    
    .container {
        width: 90%;
        padding: 0 15px;
    }

    .section {
        padding: 50px 0;
    }

    /* Navigation mobil stapeln */
    .navbar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 10px 0;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 4px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Heldenbild stutzen, damit es auf Handys kompakt bleibt */
    .hero-image-container {
        max-height: 240px;
    }

    /* Schriftgrößen herabsetzen */
    h2 {
        font-size: 26px;
    }

    .section-lead {
        font-size: 15px;
        margin-bottom: 30px;
    }

    /* Referenzen: Bei kleinen Displays das 'strong' sauber umbrechen */
    .ref-item strong {
        display: block;
        margin-bottom: 5px;
    }

    /* Zertifikate untereinander listen */
    .cert-list {
        flex-direction: column;
        gap: 8px;
    }

    .cert-list li {
        display: block;
        text-align: center;
    }
}
