/* =========================================
   1. GRUNDEINSTELLUNGEN & VARIABLEN
   ========================================= */
:root {
    /* HIER DEINE SVG-FARBE EINTRAGEN */
    --primary-color: #0056b3; 
    
    /* Akzentfarbe für Hover-Effekte (etwas dunkler) */
    --primary-dark: #004494; 
    
    /* Textfarben */
    --text-main: #333333;
    --text-light: #666666;
    --text-white: #ffffff;
    
    /* Hintergründe */
    --bg-light: #f4f7f6;
    --bg-white: #ffffff;
    
    /* Abstände */
    --container-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

/* Container für Zentrierung */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   2. TOP-BAR (Die schmale Leiste ganz oben)
   ========================================= */
.top-bar {
    background-color: var(--primary-color);
    color: var(--text-white);
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Damit es auf Handy umbricht */
}

.top-bar-left, .top-bar-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.top-bar a:hover {
    text-decoration: underline;
    opacity: 0.9;
}

/* Trennlinien zwischen den Infos */
.divider {
    opacity: 0.5;
}

/* =========================================
   3. HAUPT-NAVIGATION
   ========================================= */
.main-header {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky; /* Klebt oben fest beim Scrollen */
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 50px; /* Passt die SVG Größe an */
    width: auto;
    display: block;
}

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

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-main);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Der Kundenportal Button */
.btn-portal {
    background-color: var(--primary-color);
    color: var(--text-white) !important;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
}

.btn-portal:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

/* Mobile Menü Button (wird erst auf Handy sichtbar) */
.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   4. HERO SEKTION (Startbild)
   ========================================= */
.hero {
    height: 70vh; /* 70% der Bildschirmhöhe */
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/hero-banner.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-white);
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    font-style: italic; /* Zitat-Look */
}

/* =========================================
   5. CONTENT BEREICHE (Allgemein)
   ========================================= */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-light);
}

/* =========================================
   6. LÖSUNGEN (Grid Layout)
   ========================================= */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.solution-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s;
}

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

.solution-card h3 {
    margin-bottom: 15px;
    color: var(--text-main);
}

/* =========================================
   7. FOOTER
   ========================================= */
footer {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 40px 0;
    margin-top: 50px;
    text-align: center;
}

footer a {
    color: rgba(255,255,255,0.8);
    margin: 0 10px;
    font-size: 0.9rem;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

footer p {
    margin-bottom: 10px;
    font-weight: 500;
}

/* =========================================
   8. RESPONSIVE DESIGN (Handy Anpassungen)
   ========================================= */
@media (max-width: 768px) {
    /* Top Bar stapeln */
    .top-bar .container {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .top-bar-left, .top-bar-right {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Navigation */
    .hamburger {
        display: block; /* Menü Button anzeigen */
    }

    .nav-links {
        display: none; /* Menü standardmäßig ausblenden */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex; /* Menü einblenden wenn Klasse 'active' via JS gesetzt ist */
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
}

/* =========================================
   9. UNTERSEITEN HEADER
   ========================================= */
.page-header {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
}

.page-header p {
    opacity: 0.9;
    margin-top: 10px;
}