/* === Globale Stile === */
:root {
    --primary-color: #007bff; /* Ein kräftiges, vertrauenswürdiges Blau */
    --dark-color: #1a1a1a;
    --light-color: #f9f9f9;
    --text-color: #333;
    --grey-color: #ddd;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.7;
    background-color: var(--light-color);
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3, h4 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

p {
    margin-bottom: 20px;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--dark-color);
}

/* === Navigation === */
nav {
    background-color: #fff;
    border-bottom: 1px solid var(--grey-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Anpassungen für das Logo */
nav .logo {
    font-size: 1.8rem; /* Fallback für Text, falls Bild nicht lädt */
    font-weight: 600;
    color: var(--dark-color);
    display: flex; /* Um das Bild und optionalen Text auszurichten */
    align-items: center;
}

nav .logo img {
    height: 130px; /* Höhe des Logos anpassen */
    margin-right: 210px; /* Abstand zwischen Logo und optionalem Text */
    vertical-align: middle; /* Für bessere Ausrichtung */
}

/* Wenn du den Text "No-Limitnutrition" neben dem Logo haben möchtest, aber das Bild zuerst,
   könntest du diesen Block entfernen, falls das Bild alleine als Logo dienen soll.
   Oder du entfernst die img-Regel in .logo img und belässt nur den Text. */
nav .logo span {
    color: var(--primary-color);
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 600;
    padding-bottom: 5px;
    border-bottom: 3px solid transparent;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

/* === Hero-Sektion (Startseite) === */
/* === Hero-Sektion (Wiederverwendbar) === */
.hero-section {
    position: relative;
    height: 70vh; /* Höhe des Videos, z.B. 70% der Bildschirmhöhe. */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    border-radius: 0 0 10px 10px;
}

/* Spezifische Fallback-Bilder */
.hero-home {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://via.placeholder.com/1600x600.png?text=No-Limitnutrition+Athlet') no-repeat center center/cover;
}
.hero-about {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://via.placeholder.com/1600x600.png?text=Unser+Team') no-repeat center center/cover;
}
.hero-quality {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://via.placeholder.com/1600x600.png?text=Qualität+&+Wissenschaft') no-repeat center center/cover;
}

/* Das Video-Element (jetzt als Klasse) */
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -2;
    object-fit: cover;
}

/* Overlay für bessere Lesbarkeit */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

/* Sicherstellen, dass der Inhalt über dem Overlay liegt */
.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    color: #fff;
    margin: 0;
}

.hero-section p {
    font-size: 1.4rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: #0056b3;
    color: #fff;
    transform: translateY(-2px);
}

/* === Allgemeine Sektionen === */
section {
    background-color: #fff;
    margin: 30px 0;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* === Drei-Spalten-Layout (Home) === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature {
    padding: 20px;
}

.feature h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* === Produktseite (Katalog) === */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    border: 1px solid var(--grey-color);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-top: 0;
}

.product-info ul {
    padding-left: 20px;
    font-size: 0.95rem;
}

.no-sale-notice {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

/* === Über Uns Seite === */
.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-content img {
    flex: 1;
    max-width: 500px;
    object-fit: cover;
}

.about-text {
    flex: 1.5;
}

/* === Kontaktseite === */
.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--grey-color);
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box; /* Wichtig für 100% Breite */
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-group .checkbox-label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.contact-info {
    background-color: var(--dark-color);
    color: #fff;
    padding: 30px;
    border-radius: 8px;
}

.contact-info h3 {
    color: #fff;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.contact-info p {
    margin-bottom: 10px;
}

/* === Footer === */
footer {
    background-color: var(--dark-color);
    color: #aaa;
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
}

footer .footer-links a {
    color: #fff;
    margin: 0 15px;
    font-weight: 500;
}

footer p {
    margin: 10px 0 0;
}

/* === Responsive Design === */
@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .about-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    /* 1. Navigations-Optimierung */
    nav .container {
        flex-direction: column;
        gap: 15px;
        padding-top: 10px;
    }
    
    /* WICHTIG: Logo-Größe und Margin auf Mobil reduzieren */
    nav .logo img {
        height: 50px; /* Noch kleiner für besseren Platz */
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    nav ul li {
        margin: 5px 8px; /* Kleinerer horizontaler Abstand im Menü */
    }
    
    nav ul li a {
        font-size: 0.9rem; /* Menüschrift verkleinern */
    }
    
    /* 2. Hero-Sektion Optimierung */
    .hero-section {
        height: 50vh; /* Höhe des Hero-Headers auf Mobil weiter reduzieren */
    }
    
    .hero-section h1 {
        font-size: 2rem; /* Überschrift verkleinern */
    }
    .hero-section p {
        font-size: 1rem; /* Text verkleinern */
        margin-bottom: 20px;
    }

    /* 3. Allgemeine Sektionen & Lead-Text */
    section {
        padding: 20px;
        margin: 20px 0;
    }

    .container {
        padding: 10px;
    }
    
    .lead {
        font-size: 1rem !important; /* Lead-Text verkleinern */
        text-align: left !important; /* Zentrierung auf mobile entfernen, außer auf der Quality Seite */
    }

    /* 4. Feature Grid (Home Seite) Trennlinien */
    .features-grid {
        grid-template-columns: 1fr; /* Stacked Layout */
        gap: 0; /* Abstand zwischen Features entfernen */
    }
    
    .feature {
        border-bottom: 1px solid var(--grey-color); /* Trennlinie hinzufügen */
        padding: 20px 10px;
    }
    
    .features-grid .feature:last-child {
        border-bottom: none; /* Letztes Element keine Trennlinie */
    }
    
    /* 5. Produktbilder verkleinern, um mehr auf den Screen zu bekommen */
    .product-card img {
        height: 200px;
    }

    /* 6. Kontakt Button Fix - um den Text sichtbar zu machen */
    .contact-form button.btn {
        white-space: normal;
        text-transform: none;
        font-size: 0.9rem;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    /* Feinanpassung für sehr kleine Displays */
    .hero-section h1 {
        font-size: 1.7rem;
    }
    .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    .product-info h3 {
        font-size: 1.2rem;
    }
}