body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 10px;
    padding-top: 0 !important; /* Entfernt jegliches von Bootstrap erzeugtes Padding */
}


.main-content {
    padding: 1rem;
    margin-top: 0; /* Entfernt unnötigen oberen Abstand */
}
    

    
.offcanvas {
    position: fixed; /* Fixiert die Sidebar */
    top: 0;
    left: 0;
    bottom: 0;
}
/* Für die h1-Überschrift */
h1 {
    margin-top: 0; /* Verhindert zusätzlichen Abstand nach oben */
}


.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Abstand zwischen den Karten */
    justify-content: left; /* Karten zentrieren */
    padding: 10px;
}

.card {
    width: 300px; /* Feste Breite */
    height: 400px; /* Feste Höhe */
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Inhalte beschneiden */
    display: flex;
    flex-direction: column;
}

.card-img-wrapper {
    width: 100%;
    height: 200px; /* Fixierte Höhe für das Bild */
    overflow: hidden; /* Überschüssige Bildteile ausblenden */
    background-color: #f1f1f1; /* Optionaler Hintergrund für Bilder */
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Bild skalieren und zuschneiden */
}

.card-body {
    flex: 1; /* Nutzt den restlichen Platz */
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.card-text {
    font-size: 14px;
    color: #555;
    text-align: center;
    margin-bottom: 10px;
}

.btn {
    background-color: #007bff;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
}

.btn:hover {
    background-color: #0056b3;
}


.form-label {
    font-weight: bold;
}

.form-control {
    font-size: 16px;
    height: calc(1.5em + 1rem + 2px); /* Größere Eingabefelder */
    padding: 0.5rem;
}

.btn-primary {
    background-color: #007bff;
    border: none;
    padding: 10px;
    font-size: 18px;
    font-weight: bold;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* Auf größeren Bildschirmen: Platz für die Sidebar einfügen */
@media (min-width: 992px) {
    .offcanvas-lg {
        width: 250px; /* Feste Breite der Sidebar */
        position: fixed; /* Sidebar fixieren */
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1045; /* Sicherstellen, dass die Sidebar über dem Inhalt bleibt */
    }

    .main-content {
        margin-left: 250px; /* Platz für die Sidebar schaffen */
    }
}