/* =========================================
   1. GLOBALE EINSTELLUNGEN & VARIABLEN
   ========================================= */
:root {
    --primary-color: #002B5B; /* Dunkelblau */
    --accent-color: #FFB300;  /* Gold/Orange */
    --text-dark: #222222;
    --text-light: #666666;
    --bg-light: #f4f6f8;      /* Sehr helles Grau/Blau für Modernität */
    --white: #ffffff;
    --success: #28a745;
    --danger: #dc3545;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05); /* Moderner, weicher Schatten */
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.12);
}

img, video {
    max-width: 100%;
    height: auto;
    display: block; /* Verhindert oft kleine Lücken unter Bildern */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
}

h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 100px 0; } /* Mehr Platz = Modern */

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--primary-color); }
.text-white { color: var(--white); }
.center-text { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-50 { margin-top: 50px; }

/* =========================================
   2. BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px; /* Pill-Shape wirkt moderner */
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    letter-spacing: 1px;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 179, 0, 0.4);
}

.btn-primary:hover {
    background-color: #e6a100;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
header {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo .dot { color: var(--accent-color); }

nav ul { display: flex; gap: 30px; align-items: center; }
nav a { font-weight: 500; color: var(--primary-color); font-size: 0.95rem; }
nav a:hover { color: var(--accent-color); }
nav .nav-btn {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
}
nav .nav-btn:hover { background: #004080; color: white; }

/* =========================================
   4. SUB-HERO (FÜR UNTERSEITEN)
   ========================================= */
.sub-hero {
    height: 45vh; /* Etwas kompakter */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

/* Dunkles Overlay automatisch erzeugen für Lesbarkeit */
.sub-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,43,91,0.85), rgba(0,43,91,0.6));
    z-index: 1;
}

.sub-hero .container {
    position: relative;
    z-index: 2;
}

.sub-hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--white);
}

.sub-hero p {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

/* =========================================
   5. LEISTUNGEN (DETAIL GRID)
   ========================================= */
.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft); /* Kein Border mehr, nur Schatten */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-bottom: 3px solid var(--accent-color);
}

.service-card h3 { 
    font-size: 1.4rem; 
    margin-bottom: 15px;
}
.service-card p { 
    color: var(--text-light); 
    font-size: 1rem;
}

/* =========================================
   6. PREISE & PAKETE
   ========================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: start;
}

.package {
    background: var(--white);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: 0.3s;
    border: 1px solid transparent;
}

.package:hover {
    box-shadow: var(--shadow-hover);
}

/* Das mittlere Paket hervorheben */
.package.popular {
    border: 2px solid var(--accent-color);
    transform: scale(1.03);
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.package .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 8px 20px;
    font-weight: 800;
    border-radius: 30px;
    text-transform: uppercase;
    font-size: 0.8rem;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.price { margin: 25px 0; }
.old-price { text-decoration: line-through; color: #999; font-size: 1rem; display: block; margin-bottom: 5px; }
.current-price { font-size: 2.5rem; font-weight: 800; color: var(--primary-color); }

.package hr { border: 0; border-top: 1px solid #f0f0f0; margin: 30px 0; }

.package ul li { 
    margin-bottom: 12px; 
    font-size: 1rem; 
    color: var(--text-dark);
}

/* Tabelle Modernisieren */
.comparison-table-wrapper { overflow-x: auto; margin-top: 60px; }
.comparison-table { width: 100%; border-collapse: collapse; min-width: 600px; background: white; box-shadow: var(--shadow-soft); border-radius: 10px; overflow: hidden; }
.comparison-table th, .comparison-table td { padding: 20px; text-align: center; border-bottom: 1px solid #f0f0f0; }
.comparison-table th { background: var(--primary-color); color: var(--white); text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }
.comparison-table tr:last-child td { border-bottom: none; }
.check { color: var(--success); font-weight: bold; font-size: 1.2rem; }
.cross { color: #eee; font-size: 1.2rem; }

/* Optional Box */
.optional-box {
    grid-column: 1 / -1; /* Über volle Breite */
    background: #222;
    color: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-top: 30px;
}

/* =========================================
   7. FOOTER & RECHTSTEXTE
   ========================================= */
footer {
    background: #0b1a2b;
    color: #888;
    padding: 60px 0 30px;
    text-align: center;
    font-size: 0.9rem;
}
footer a:hover { color: var(--white); }

.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h3 { margin-top: 40px; }


/* =========================================
   8. RESPONSIVE (MOBILANPASSUNGEN)
   ========================================= */
@media (max-width: 768px) {
    
    /* --- HEADER & MENÜ --- */
    
    /* Logo und Navigation untereinander, damit das Logo Platz hat */
    .header-flex { 
        flex-direction: column; 
        gap: 15px; 
    }

    /* Das Menü selbst bleibt NEBENEINANDER (Horizontal) */
    nav ul { 
        flex-direction: row;        /* Horizontal erzwingen */
        flex-wrap: wrap;            /* Erlaubt Umbruch in neue Zeile bei zu wenig Platz */
        justify-content: center;    /* Mittig ausrichten */
        gap: 15px;                  /* Abstand zwischen den Links */
        width: 100%;
        padding-bottom: 10px;
    }
    
    /* Schriftgröße im Menü mobil etwas kleiner, damit es passt */
    nav a {
        font-size: 0.85rem;
    }
    
    /* Den Kontakt-Button mobil etwas kompakter machen */
    nav .nav-btn {
        padding: 8px 16px;
    }

    /* --- STARTSEITE (INDEX) HERO HEADER --- */
    
    /* WICHTIG: Da im HTML Inline-Styles (z.B. font-size: 3.5rem) genutzt wurden,
       müssen wir hier !important nutzen, um diese auf dem Handy zu überschreiben.
    */

    /* Die große Überschrift verkleinern, damit sie nicht aus dem Bild ragt */
    .sub-hero h1 { 
        font-size: 2.0rem !important; 
        line-height: 1.2 !important;
        word-wrap: break-word; /* Verhindert horizontales Scrollen bei langen Wörtern */
    }

    /* Den Beschreibungstext mobil lesbarer machen */
    .sub-hero p {
        font-size: 1.1rem !important;
        padding: 0 10px;
    }
    
    /* Container Breite sicherstellen */
    .sub-hero .container {
        width: 100%;
        padding: 0 20px;
    }

    /* --- SONSTIGES --- */
    
    .pricing-grid { 
        grid-template-columns: 1fr; 
        max-width: 500px; 
        margin: 0 auto; 
    }
    
    .package.popular { 
        transform: none; 
    }
}

/* =========================================
   9. B2B PROZESS 
   ========================================= */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.step {
    display: grid;
    grid-template-columns: 50px 1fr; 
    grid-template-rows: auto auto;
    grid-template-areas: 
        "icon title"
        "icon text";
    column-gap: 20px;
    row-gap: 5px;
    align-items: start;
    text-align: left;
}

.step-icon {
    grid-area: icon;
    width: 50px;
    height: 50px;
    background-color: var(--white);
    border: 2px solid var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.step h4 {
    grid-area: title;
    margin: 0;
    align-self: center;
    font-size: 1.1rem;
}

.step p {
    grid-area: text;
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* =========================================
   9. B2B PROZESS 
   ========================================= */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive Spalten */
    gap: 40px;
    margin-top: 40px;
}

.step {
    display: grid;
    /* Grid-Layout: Icon links (fest), Text rechts (flexibel) */
    grid-template-columns: 50px 1fr; 
    grid-template-rows: auto auto;
    grid-template-areas: 
        "icon title"
        "icon text";
    column-gap: 20px; /* Abstand zwischen Zahl und Text */
    row-gap: 5px;     /* Kleiner Abstand zwischen Überschrift und Beschreibung */
    align-items: start;
    text-align: left; /* Wichtig: Text linksbündig statt zentriert */
}

.step-icon {
    grid-area: icon;
    width: 50px;
    height: 50px;
    background-color: var(--white);
    border: 2px solid var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.step h4 {
    grid-area: title;
    margin: 0;
    align-self: center; /* Überschrift vertikal mittig zur Zahl */
    font-size: 1.1rem;
}

.step p {
    grid-area: text;
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}