/* style.css */
:root {
    --primary-color: #004c97;
    --secondary-color: #f0f0f0;
    --text-color: #333;
    --light-text-color: #fff;
    --accent-color: #f39c12; /* Orange statt Rot */
}

body {
    font-family: 'Helvetica', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: var(--primary-color);
    color: var(--light-text-color);
    padding: 1rem 0;
    border-bottom: 5px solid var(--accent-color); /* Orange */
    position: relative; /* Wichtig für das mobile Menü */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
}

header h1 a {
    color: var(--light-text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.header-logo {
    height: 60px;
    width: auto;
    margin-right: 15px;
}


nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center; /* Richtet alle Menüpunkte vertikal mittig aus */
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--light-text-color);
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Hamburger-Menü für Mobilgeräte (standardmäßig versteckt) */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--light-text-color);
}


/* Hero Section & Page Hero */
.hero, .page-hero {
    color: var(--light-text-color);
    padding: 100px 20px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    background-blend-mode: multiply;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.hero h2, .page-hero h2 {
    font-size: 3rem;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-light {
    background-color: var(--secondary-color);
}

.section h3, .page-header h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}

/* Grid Layout für Branchen */
.branchen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.branchen-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.branchen-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.branchen-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.branchen-card-content {
    padding: 25px;
}

.branchen-card-content h4 {
    font-size: 1.5rem;
    margin: 0 0 15px 0;
    color: var(--primary-color);
}

/* Button-Stile */
.btn, nav ul li a.active-btn {
    display: inline-block;
    background-color: var(--accent-color); /* Orange */
    color: var(--light-text-color);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn {
    margin-top: 15px; /* Nur für Buttons außerhalb der Navigation */
}


.btn:hover, nav ul li a.active-btn:hover {
    background-color: #d35400; /* Dunkleres Orange */
}

/* Über Uns & Unterseiten Content */
.content-section {
    padding: 60px 0;
}

.content-section .container {
    max-width: 900px;
}

.content-section p {
    margin-bottom: 1.5em;
    font-size: 1.1rem;
}

.content-section ul {
    list-style-type: '✓ ';
    padding-left: 20px;
    font-size: 1.1rem;
}
.content-section ul li {
    margin-bottom: 10px;
}

/* Geschäftsleitung */
.management-section {
    text-align: center;
    padding: 40px 0;
}
.management-container {
    display: inline-block;
    text-align: center;
}
.management-container img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}
.management-container p {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

/* Partner Section */
.partner-section .container {
    text-align: center;
}
.partner-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    margin-top: 30px;
}
.partner-card {
    flex: 1;
    max-width: 400px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.partner-card img {
    max-width: 220px;
    height: auto;
    margin: 0 auto 20px auto;
}
.partner-card p {
    margin: 0;
    font-size: 1rem;
}

/* Formularstile */
.form-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}
.form-container h3 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--primary-color);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
}
.form-container .btn {
    width: 100%;
    text-align: center;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Stile für die Checkbox-Gruppe */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-top: 10px;
}
.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 5px;
    margin-right: 15px;
    flex-shrink: 0;
}
.checkbox-group label {
    font-weight: normal;
    font-size: 0.9em;
    color: #555;
    line-height: 1.5;
}

/* Stile für den Disclaimer-Text unter dem Button */
.form-disclaimer {
    font-size: 0.8em;
    color: #777;
    margin-top: 20px;
    line-height: 1.6;
    text-align: center;
}
.form-disclaimer a {
    color: #555;
    text-decoration: underline;
}


/* Footer mit rechtlichen Hinweisen */
.footer-legal {
    background: #333;
    color: #aaa;
    padding: 30px 0;
    margin-top: 40px;
    text-align: center;
}
.footer-legal .footer-content p {
    margin: 0 0 20px 0;
    line-height: 1.5;
}
.footer-legal .footer-links {
    margin-bottom: 20px;
}
.footer-legal .footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
}
.footer-legal .footer-links a:hover {
    text-decoration: underline;
}
.footer-legal .copyright {
    margin-top: 20px;
    font-size: 0.9em;
    color: #888;
}

/* Downloads Liste */
.downloads-list-section {
    margin-top: 60px;
}
.downloads-list-section h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}
.downloads-list {
    list-style: none;
    padding: 0;
}
.downloads-list li {
    margin-bottom: 20px;
}
.downloads-list li a {
    display: block;
    padding: 20px;
    background: var(--secondary-color);
    border-left: 5px solid var(--accent-color); /* Orange */
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.3s, transform 0.3s;
    border-radius: 0 5px 5px 0;
}
.downloads-list li a:hover {
    background-color: #e0e0e0;
    transform: translateX(5px);
}
.downloads-list li a strong {
    font-size: 1.2rem;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}
.downloads-list li a p {
    margin: 0;
    font-size: 1rem;
}

/* Spezielle Branchenkarte für Referenzen auf der Startseite */
.branchen-card-special {
    background-color: #e6f2ff; /* Ein helles Blau, passend zum Hauptfarbton */
    border: 1px solid #cce0ff;
}

.branchen-card-special:hover {
    background-color: #dbeaff;
}


/* Referenzen-Grid für referenzen.html */
.referenzen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.referenz-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.referenz-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* Container für die beiden Bilder oben in der Karte */
.referenz-images {
    display: flex;
    justify-content: space-around; /* Verteilt den Platz gleichmäßig */
    align-items: center;
    gap: 20px;
    padding: 25px 20px;
    border-bottom: 1px solid #eee;
    min-height: 280px; /* NEU: Höhe des Containers vergrößert */
}

/* Eine einzige Regel für BEIDE Bilder, um gleiche Größe zu erzwingen */
.referenz-images .client-logo,
.referenz-images .product-image {
    flex: 1; /* Lässt beide Bilder gleich viel Platz einnehmen */
    max-width: 45%; /* Verhindert, dass ein Bild zu breit wird */
    height: 240px; /* NEU: Höhe der Bilder verdoppelt */
    object-fit: contain; /* Stellt sicher, dass das Bild im Rahmen bleibt, ohne es zu verzerren */
    margin: 0;
}

.referenz-card-content {
    padding: 25px;
    flex-grow: 1;
}

.referenz-card-content h4 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
    text-align: center;
}

.referenz-card-content p {
    font-size: 1rem;
    line-height: 1.7;
    text-align: justify;
    margin-bottom: 15px;
}

.referenz-card-content p strong {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 1.1rem;
    text-align: center;
}

/* ========================================================================== */
/* RESPONSIVE DESIGN (MOBILE OPTIMIERUNG)                                     */
/* ========================================================================== */

@media (max-width: 850px) {
    /* Header Anpassungen */
    .header-logo {
        height: 50px;
        margin-right: 10px;
    }
    
    header h1 span {
        display: none; /* Text "| Geschäftskunden" ausblenden */
    }

    /* Hamburger-Menü einblenden */
    .menu-toggle {
        display: block;
    }

    /* Navigation ausblenden und als aufklappbares Menü gestalten */
    nav {
        background: #00458a;
        position: absolute;
        top: 85px; /* Höhe des Headers */
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        z-index: 1000;
    }

    nav.active {
       max-height: 500px; /* Ausgeklappte Höhe */
    }

    nav ul {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
    }

    nav ul li {
        margin: 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        padding: 18px 20px;
        display: block;
        border-radius: 0;
    }
    
    /* Besonderer Stil für den Kontakt-Button im mobilen Menü */
    nav ul li a.active-btn {
        margin: 15px 20px;
        border-radius: 5px;
        padding: 15px 20px;
    }
    nav ul li a.active-btn:hover {
        background-color: #d35400;
    }


    /* Allgemeine Anpassungen für Inhalte */
    .hero h2, .page-hero h2 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section {
        padding: 40px 0;
    }

    .section h3, .page-header h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .branchen-grid {
        grid-template-columns: 1fr;
    }

    .partner-container {
        flex-direction: column;
        align-items: center;
    }

    .partner-card {
        width: 100%;
        max-width: 400px;
    }
    
    .content-section p, .content-section ul {
        font-size: 1rem;
    }

    .form-container {
        margin: 20px auto;
        padding: 20px;
    }
    
    .referenzen-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .referenz-images {
        flex-direction: column; /* Bilder untereinander auf Mobilgeräten */
        gap: 15px;
        padding: 20px;
        min-height: auto;
    }
    
    /* NEU: Bildgröße für Mobilgeräte optimiert */
    .referenz-images .client-logo,
    .referenz-images .product-image {
        height: 150px;
        max-width: 80%;
    }
    
    .referenz-card-content {
        padding: 20px;
    }
    
    .referenz-card-content h4,
    .referenz-card-content p strong {
        text-align: center;
    }

    /* Footer Anpassungen */
    .footer-legal .footer-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .footer-legal .footer-links a {
        margin: 0;
    }
}
/* Neue Stile für Download-Kategorien */
.download-categories-grid {
    display: grid;
    grid-template-columns: 1fr; /* Standardmäßig eine Spalte */
    gap: 30px;
}

.download-category-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.download-category-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

/* Anpassung, damit die innere Liste keinen oberen Abstand hat */
.download-category-card .downloads-list {
    margin-top: 0;
}