/* Allgemeine Layout-Einstellungen */
body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa; /* Helles Hintergrund für die Seite */
    margin: 0;
    padding: 0;
}

header {
    background: #2b2d2f; /* Dunkler Hintergrund für den Header */
    color: white;
}

header h1 {
    font-size: 3rem;
    font-weight: bold;
}

.btn-primary {
    background-color: #007bff; /* Blau Buttons*/
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3; /* Dunklerer Blauton beim Hover */
}


header p {
    font-size: 1rem;
}

header .btn {
    background-color: #004ea1; /* Buttonfarbe */
    color: white;
    margin: 0 auto; /* Automatische Margins zentrieren das Element */
    max-width: 200px;
    
}

/* Sticky Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000; /* Stellt sicher, dass die Navbar immer oben bleibt */
    background-color: #004ea1; /* Füge eine Farbe hinzu, um sicherzustellen, dass die Navbar sichtbar bleibt */
}


.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Abschnitts-Abstand */
main {
    flex: 1; /* Der Hauptinhalt soll den restlichen verfügbaren Platz einnehmen */
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Cards für "Warum mitmachen?" */
.card {
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #004ea1;
}

.card-body {
    background-color: #ffffff;
}

/* FAQ Bereich */
.accordion-button {
    background-color: #004ea1;
    color: white;
}

/* Sicherstellen, dass die Schaltflächen immer weiße Schrift haben, auch wenn sie geöffnet sind */
.accordion-button {
    color: white; /* Textfarbe immer weiß */
    background-color: #004ea1; /* Hintergrundfarbe beim Schließen */
}

.accordion-button:not(.collapsed) {
    background-color: #007bff; /* Hintergrundfarbe, wenn geöffnet */
    color: white; /* Textfarbe bleibt weiß, wenn geöffnet */
}


/* Footer */
footer {
    background-color:#2b2d2f;
    color: white;
    text-align: center;     /* Zentrierter Text */
    padding: 20px;          /* Optional: Abstand im Footer */
    width: 100%;            /* Stellt sicher, dass der Footer die gesamte Breite einnimmt */
}

footer .social-links a {
    margin: 0 10px;
    color: white;
    font-size: 1.5rem;
}

/* Bildstil für das "Roboter-Konstruktionsbild" */
img {
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    .card-body ul {
        padding-left: 1rem;
    }
    .card {
        margin-bottom: 20px;
    }

    .accordion-button {
        font-size: 0.9rem;
    }
    header .col-md-8 {
        display: none;
    }
    header .col-md-4 {
        margin: 0 auto;
        text-align: center;
    }
}
