/* Allgemein */
body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    background-color: #f8f9fa;
    /* --- HIER HINZUFÜGEN --- */
    padding-top: 70px; /* Dieser Wert muss die Höhe deiner Navbar ausgleichen. Passe ihn ggf. an! */
    /* Standard Bootstrap Navbar ist oft 56px, aber mit Branding/Padding kann es mehr sein. */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: #212529; /* Dunklerer Ton für Überschriften */
}

/* Header */
/* --- HIER HINZUFÜGEN ODER PRÜFEN --- */
/* Wenn deine Navbar die Klasse 'navbar' hat, was bei Bootstrap üblich ist, */
/* dann sollte diese Regel sicherstellen, dass sie über allem liegt. */
.navbar {
    z-index: 1050; /* Standard Bootstrap z-index für fixed/sticky Elemente */
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #e9ecef !important; /* Helles Silber für den Brand-Namen */
}

.navbar-brand img {
    filter: invert(100%); /* Wenn das Logo dunkel ist, macht es das weiß/hell */
}

.navbar-nav .nav-link {
    color: #ced4da !important; /* Helles Silber für Navigationslinks */
    font-weight: 400;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
}


/* Hero Section */
.hero-section {
    position: relative;
    color: #fff;
    padding-top: 0;
    padding-bottom: calc(1536 / 2752 * 100%); /* (Image Height / Image Width * 100%) for 2752x1536 */
    height: 0;
    background-color: #343a40;

    display: flex;
    /* --- HIER ÄNDERN --- */
    align-items: center;
    /* justify-content: center; bleibt, da es die horizontale Zentrierung steuert */
    justify-content: center;
    overflow: hidden;
}


/* Neuer Wrapper für Hintergrundbilder/Videos */
.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Now refers to the calculated height of hero-section */
    overflow: hidden;
    z-index: 0;
}

/* Gemeinsames Styling für das Hintergrundbild (<img>) und das Video (<video>) */
.hero-bg-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Stellt sicher, dass das Medium den Bereich ausfüllt, ohne die Proportionen zu verzerren (schneidet ggf. zu) */
    object-position: center; /* Zentriert das Medium im Container */
    filter: brightness(1); /* Dunkler machen für bessere Lesbarkeit des Textes */
    /* `opacity` wird per JavaScript gesteuert, um den Übergang zu ermöglichen */
    opacity: 1; /* Standardmäßig ist das Bild sichtbar (Fallback) */
    transition: opacity 1s ease-in-out; /* Weicher Übergang beim Ein-/Ausblenden */
}

/* Spezifische Anpassung für das Video-Element innerhalb des Wrappers */
/* Dies stellt sicher, dass das Video unsichtbar ist, bis es per JS eingeblendet wird */
.hero-bg-wrapper video.hero-bg-media {
    opacity: 0; /* Video ist anfangs unsichtbar */
    z-index: 2; /* Wenn es eingeblendet wird, liegt es über dem Bild */
}

/* Sicherstellen, dass der Text/Inhalt über dem Hintergrund liegt */
.hero-section > .container {
    position: relative;
    z-index: 10; /* Text über dem Hintergrundbild/Video */
    text-align: center;
    padding-top: 0px;
    padding-bottom: 0px;
    margin-top: 400px;
    width: 100%;
    max-width: 960px;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-section p.lead {
    font-size: 1.5rem;
    margin-bottom: 40px;
}

.btn-primary {
    background-color: #6c757d; /* Silber */
    border-color: #6c757d;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

.btn-outline-light {
    color: #e9ecef;
    border-color: #e9ecef;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: #e9ecef;
    color: #343a40;
}

/* Introduction Section */
.intro-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    color: #333;
}

.intro-section h2 {
    color: #495057;
    font-size: 2.5rem;
}

.intro-section p.lead {
    font-size: 1.25rem;
    line-height: 1.7;
}

/* Features Section */
.features-section {
    background-color: #212529; /* Dunkler Hintergrund */
    color: #e9ecef; /* Helle Schriftfarbe */
    padding: 80px 0;
}

.features-section h2 {
    color: #e9ecef;
    margin-bottom: 60px;
}

.feature-item {
    background-color: #343a40; /* Dunklerer Hintergrund für Feature-Boxen */
    border-radius: 10px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    /* Da die Icons aus dem Sprite stammen und wahrscheinlich weiß oder hell sind,
       muss `filter: invert(80%);` nur angewendet werden, wenn sie im Original dunkel sind.
       Falls sie bereits hell sind, ist dies nicht nötig. */
    /* filter: invert(80%); */
}

.feature-item h3 {
    color: #adb5bd; /* Leicht helleres Silber für Feature-Titel */
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.feature-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #ced4da;
}

/* Call to Action Section */
.cta-section {
    background-color: #495057; /* Dunkleres Silber */
    color: #fff;
    padding: 80px 0;
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-section p.lead {
    font-size: 1.5rem;
}

.cta-section .btn {
    padding: 15px 40px;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background-color: #212529;
    color: #ced4da;
    padding: 50px 0;
}

footer h5 {
    color: #e9ecef;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

footer ul {
    padding: 0;
    list-style: none;
}

footer ul li a {
    color: #ced4da;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: #fff;
}

/* Download Section */
.download-section {
    padding: 100px 0;
    background-color: #f8f9fa;
    color: #333;
    min-height: 50vh;
}

.download-section h1 {
    font-size: 3rem;
    color: #212529;
}

.download-section .btn-success {
    background-color: #28a745; /* Bootstrap Standard-Grün für Download */
    border-color: #28a745;
    padding: 15px 40px;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.download-section .btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Responsive Anpassungen */
@media (max-width: 767.98px) { /* Small devices (landscape phones, 576px and up) */
    .hero-section {
        padding-bottom: calc(1920 / 1080 * 100%); /* (Mobile Image Height / Mobile Image Width * 100%) */
        align-items: center;
    }
    /* --- HIER HINZUFÜGEN ODER PRÜFEN --- */
    body {
        padding-top: 56px; /* Passt den padding-top für kleinere Mobile-Navbar an, falls nötig */
    }
    .hero-section > .container {
        /* --- HIER ANPASSEN FÜR MOBILE --- */
        /* margin-top: 400px; !* Geringerer margin-top für Mobile *!*/
        padding-bottom: 0;
        font-size: 1rem;
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section p.lead {
        font-size: 1.1rem;
    }
    .btn-lg {
        padding: 10px 25px;
        font-size: 1rem;
    }
    .feature-item {
        margin-bottom: 30px;
    }
    .features-section h2 {
        font-size: 2rem;
    }
    .cta-section h2 {
        font-size: 2.2rem;
    }
    footer .col-md-4 {
        text-align: center;
    }
}