/* Grundlegende Variablen für Farben aus deinem Logo */
:root {
    --primary-green: #0a4b29;
    --primary-red: #cc1011;
    --accent-orange: #f27022;
    --text-dark: #333333;
    --bg-light: #f4f6f5;
    --white: #ffffff;
}

/* Reset und Basis-Styling für konsistentes Aussehen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth; /* Sorgt für weiches Scrollen zwischen den Sektionen */
}

body {
    color: var(--text-dark);
    line-height: 1.6;
}

/* --- Navigation --- */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    display: flex;
    justify-content: center; /* NEU: Zentriert die Navigationslinks */
    align-items: center;
    padding: 20px 50px;
    background-color: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    z-index: 1000;
}

/* Dynamische Klasse für das Scrollen bleibt gleich */
nav.scrolled {
    background-color: var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.logo {
    height: 60px; /* Passt die Größe deines MX Logos an */
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 20px; /* NEU: Gleichmäßiger Abstand links und rechts für perfekte Zentrierung */
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

nav.scrolled .nav-links a {
    color: var(--primary-green);
}

.nav-links a:hover {
    color: var(--accent-orange);
}

/* --- Hero Section (Startbereich) --- */
.hero-section {
    min-height: 100vh; /* NEU: Mindestens Bildschirmhöhe, darf aber mitwachsen! */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(10, 75, 41, 0.9), rgba(204, 16, 17, 0.8)), url('https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 150px 20px 80px 20px; /* NEU: Oben 150px Platz (fürs Logo unter der Nav), unten 80px */
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

/* --- Styling für das zentrierte Logo im Hero-Bereich --- */
.hero-logo {
    width: 100%;
    max-width: 450px; /* Begrenzt die Größe auf großen Bildschirmen */
    height: auto;
    margin-bottom: 30px; /* Sorgt für Abstand zur Überschrift */
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.4)); /* Eleganter Schatten, löst das Logo vom Hintergrund */
    animation: fadeInDown 1s ease-out; /* Dynamischer Einflug-Effekt beim Laden der Seite */
}

/* Definition der Einflug-Animation für das Logo */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: var(--white);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(242, 112, 34, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-red);
    transform: translateY(-3px); /* Dynamischer "Schwebe"-Effekt */
}
/* --- Layout für die zwei Buttons im Startbereich --- */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px; /* Abstand zwischen den Buttons */
    margin-top: 30px;
    flex-wrap: wrap; /* Sorgt dafür, dass sie auf Handys untereinander rutschen */
}

/* Styling für den sekundären Button (Weiß mit grüner Schrift) */
.btn-secondary {
    background-color: var(--white);
    color: var(--primary-green);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    color: var(--primary-red);
    transform: translateY(-3px);
}

/* Anpassung der H1-Schriftgröße, da der neue Text viel länger ist */
.hero-content h1 {
    font-size: 3.2rem; /* Etwas kleiner gemacht für bessere Lesbarkeit */
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    line-height: 1.2;
}

/* --- Allgemeine Sektionen --- */
.section {
    padding: 100px 20px;
}

.bg-light {
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
}

/* --- Produkt Grid (Erweitert für verschwommene Hintergründe) --- */
.product-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.product-card {
    background: var(--white); /* Fallback-Hintergrund */
    flex: 1;
    min-width: 300px;
    height: 350px; /* Feste Höhe für einheitliches Design */
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 5px solid var(--primary-green);
    
    /* WICHTIG: Erlaubt es uns, den Hintergrund absolut darin zu positionieren */
    position: relative; 
    overflow: hidden; /* Verhindert, dass das verschwommene Bild über die Ecken hinausragt */
    display: flex;
    align-items: center; /* Zentriert den Inhalt vertikal */
    justify-content: center;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-bottom: 5px solid var(--accent-orange);
}

/* --- Der verschwommene Hintergrund-Container --- */
.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    
    /* HIER PASSIERT DIE MAGIE: Der Unschärfe-Filter */
    filter: blur(8px); 
    
    /* Leichte Abdunkelung für bessere Lesbarkeit des Textes */
    opacity: 0.25; 
    
    z-index: 1; /* Liegt hinter dem Text */
    transition: transform 0.5s ease, filter 0.3s ease, opacity 0.3s ease; /* Für dynamischen Hover-Effekt */
}

/* Dynamischer Hover-Effekt für den Hintergrund: Er wird schärfer und zoomt leicht */
.product-card:hover .card-bg {
    transform: scale(1.1); /* Leichter Zoom */
    filter: blur(3px); /* Wird etwas schärfer beim Drüberfahren */
    opacity: 0.4; /* Wird etwas deutlicher */
}

/* --- Der Inhalt (Text) der Card --- */
.card-content {
    position: relative;
    z-index: 2; /* Liegt ÜBER dem verschwommenen Hintergrund */
    padding: 40px 30px;
    background-color: rgba(255, 255, 255, 0.7); /* Semitransparenter weißer Schleier für perfekte Lesbarkeit */
    border-radius: 10px;
    margin: 0 20px;
}

.product-card h3 {
    color: var(--primary-red);
    margin-bottom: 15px;
    font-size: 1.6rem;
    font-weight: 700;
}

.product-card p {
    color: var(--text-dark);
    font-size: 1rem;
}

/* --- Spezifische Zuweisung der Bilder --- */

/* Bild für Obst & Gemüse (Bunter Marktstand) */
.prod-obst .card-bg {
    background-image: url('https://images.unsplash.com/photo-1610832958506-aa56368176cf?q=80&w=600');
}

/* NEUES Bild für Getränke (Erfrischende Getränke / Säfte) */
.prod-drinks .card-bg {
    background-image: url('https://images.unsplash.com/photo-1606854428728-5fe3eea23475?q=80&w=600');
}

/* NEUES Bild für Lebensmittel (Käse, Brot, Feinkost) */
.prod-food .card-bg {
    background-image: url('https://images.unsplash.com/photo-1488459716781-31db52582fe9?q=80&w=600');
}

/* --- Footer --- */
footer {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-orange);
}

/* --- Mobile Responsiveness (Anpassung für Handys) --- */
.burger {
    display: none; /* Auf großen Bildschirmen verstecken */
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px;
    transition: all 0.3s ease;
}

nav.scrolled .burger div {
    background-color: var(--primary-green);
}

/* --- Über Uns - Neues dynamisches Layout --- */
.about-wrapper {
    display: flex;
    align-items: center;
    gap: 50px; /* Abstand zwischen Bild und Text */
    margin-top: 40px;
}

.about-image {
    flex: 1;
    position: relative; /* Wichtig für das schwebende Badge */
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* Dynamisches Badge, das über dem Bild schwebt */
.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--primary-red); /* Rote Farbe aus dem Logo */
    color: var(--white);
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(204, 16, 17, 0.3);
    animation: float 3s ease-in-out infinite; /* Lässt das Element sanft auf und ab schweben */
}

.experience-badge span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

/* Keyframes für die Schwebe-Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Text-Bereich Styling */
.about-text {
    flex: 1;
}

.about-text h3 {
    color: var(--primary-green);
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #555;
}

/* Styling für die Werte-Liste */
.about-features {
    list-style: none;
    margin-top: 25px;
}

.about-features li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-dark);
    background: var(--white);
    padding: 15px 20px;
    border-left: 5px solid var(--accent-orange); /* Oranger Akzent aus dem Logo */
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Hover-Effekt: Box springt leicht nach rechts */
.about-features li:hover {
    transform: translateX(10px);
    border-left-color: var(--primary-green);
}

/* --- Kontaktbereich --- */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto; /* Zentriert die Box auf der Seite */
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 5px solid var(--primary-green); /* Grüner Akzentstrich */
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-green); /* Beschriftung in Maxe-Grün */
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Effekt, wenn das Feld angeklickt wird (Fokus) */
.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent-orange); /* Rand wird Orange */
    box-shadow: 0 0 8px rgba(242, 112, 34, 0.2); /* Sanftes oranges Leuchten */
}
/* --- Kompetenzbereiche (Neues Layout) --- */
.kompetenz-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.kompetenz-card {
    background: var(--white);
    flex: 1;
    min-width: 320px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.kompetenz-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Bildbereich oben in der Karte */
.k-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.bg-food {
    background-image: url('https://images.unsplash.com/photo-1610832958506-aa56368176cf?q=80&w=600');
}

.bg-global {
    /* Zuverlässiges Bild von Pexels (Fracht-Container) */
    background-image: url('https://images.pexels.com/photos/1095814/pexels-photo-1095814.jpeg?auto=compress&cs=tinysrgb&w=600'); 
}

.bg-tech {
    background-image: url('https://images.unsplash.com/photo-1580674285054-bed31e145f59?q=80&w=600'); /* Verpackung/Logistik Bild */
}

/* Textbereich in der Karte */
.k-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.k-content h3 {
    color: var(--primary-red);
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.k-content h4 {
    color: var(--primary-green);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.k-content p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
}

.k-content ul {
    list-style: none;
    margin-bottom: 25px;
    flex-grow: 1; /* Schiebt den Button nach ganz unten */
}

.k-content ul li {
    font-size: 0.9rem;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

/* Eigener kleiner Aufzählungs-Pfeil passend zum Design */
.k-content ul li::before {
    content: '➔';
    color: var(--accent-orange);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.8rem;
}

/* Spezieller Button-Style für die Karten */
.btn-outline {
    display: block;
    text-align: center;
    padding: 12px 20px;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

/* --- Warum Wir (Leistungsversprechen) --- */
.features-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.feature-box {
    background: var(--white);
    flex: 1;
    min-width: 300px;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-box h3 {
    color: var(--primary-green);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-box p {
    color: #555;
    font-size: 0.95rem;
}

/* --- Zielgruppen-Ansprache --- */
.target-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.target-card {
    background: var(--bg-light);
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid var(--primary-red);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.target-card h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.target-card p {
    color: #666;
    font-size: 0.9rem;
}
/* --- Kontaktbereich Split-Layout --- */
.contact-split {
    display: flex;
    max-width: 1000px;
    margin: 40px auto 0;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-top: 5px solid var(--accent-orange); /* Oranger Akzentstrich oben */
    overflow: hidden; /* Sorgt dafür, dass die Ecken rund bleiben */
}

/* Linke Seite (Grüner Hintergrund) */
.contact-info {
    flex: 1;
    padding: 40px;
    background-color: var(--primary-green);
    color: var(--white);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.contact-info p {
    margin-bottom: 30px;
    opacity: 0.9;
    font-size: 0.95rem;
}

.info-item {
    margin-bottom: 25px;
}

.info-item strong {
    font-size: 1.1rem;
    color: var(--accent-orange);
}

.info-item a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.3s;
}

.info-item a:hover {
    color: var(--accent-orange);
}

/* Spezieller weißer Button für den grünen Hintergrund */
.btn-outline-white {
    padding: 10px 20px;
    border: 2px solid var(--white);
    color: var(--white);
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary-green);
}

/* Rechte Seite (Formular) */
.contact-form-container {
    flex: 1;
    padding: 40px;
    background-color: var(--white);
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-green);
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 8px rgba(242, 112, 34, 0.2);
}

/* --- Professioneller Footer --- */
.main-footer {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 70px 20px 20px; /* Viel Platz nach oben für ein ruhiges Design */
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Wichtig für Handys: Bricht die Spalten um */
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col {
    flex: 1;
    min-width: 250px; /* Verhindert, dass Spalten zu schmal werden */
}

.footer-col h4 {
    color: var(--accent-orange);
    font-size: 1.3rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-col p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e0e0e0; /* Leicht gedimmtes Weiß für angenehmeres Lesen */
}

.footer-col a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--accent-orange);
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 12px;
}

/* --- Untere Leiste (Copyright & Rechtliches) --- */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Zarte Trennlinie */
    padding-top: 25px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #b0b0b0;
}

.footer-legal-links a {
    color: #b0b0b0;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--accent-orange);
}

@media screen and (max-width: 768px) {
	nav {
        justify-content: flex-end; /* NEU: Schiebt das Burger-Menü auf dem Handy nach rechts */
    }
    .nav-links {
        display: none; 
    }
    .burger {
        display: block;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
	/* NEU: Über Uns Layout für Handys anpassen */
    .about-wrapper {
        flex-direction: column; /* Setzt Bild und Text untereinander */
    }
    
    .experience-badge {
        bottom: 20px; /* Rückt das Badge etwas nach innen, damit es nicht über den Rand ragt */
        right: 20px;
    }
	.contact-wrapper {
        padding: 30px 20px; /* Etwas weniger Innenabstand auf kleinen Bildschirmen */
        margin: 0 15px; /* Abstand zu den Bildschirmrändern */
    }
	.contact-split {
        flex-direction: column; /* Setzt auf dem Handy die Info über das Formular */
    }
    
    .contact-info, .contact-form-container {
        padding: 30px 20px; /* Etwas weniger Innenabstand auf kleinen Bildschirmen */
    }
	.footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-legal-links a {
        margin: 0 10px; /* Abstand zwischen den Links auf dem Handy anpassen */
    }
	/* --- Optimierung des Startbereichs für Handys --- */
    .hero-section {
        padding-top: 120px; /* Sorgt dafür, dass das Logo unter der Navigation beginnt */
        padding-bottom: 60px;
    }

    .hero-logo {
        max-width: 85%; /* Logo etwas verkleinern, damit es besser auf den Bildschirm passt */
        margin-bottom: 20px;
    }

    .hero-content h1 {
        font-size: 2.2rem; /* Überschrift etwas verkleinern für mehr Platz */
    }

    .hero-buttons {
        flex-direction: column; /* Setzt die beiden Buttons sauber untereinander */
        gap: 15px; /* Abstand zwischen den Buttons */
    }

    .hero-buttons a {
        width: 100%; /* Buttons nehmen die volle Breite ein (leichter anzutippen) */
        box-sizing: border-box;
    }
}