 #dokumente {
    scroll-margin-top: 260px; /* Höhe von Header + Navbar */
}

/* Allgemeine Stile für die Sektion */
.dokumente-section {
    background-color: #faf8f8;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
}

/* Überschriften */
.dokumente-section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: green;
    text-shadow: 1px 1px black;
    margin-bottom: 30px;
}

/* Flexbox-Galerie */
.dokumente-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Einzelnes Dokument */
.dokument-item {
    flex: 1 1 250px; /* Responsiv ab 250px Breite */
    max-width: 300px;
    text-align: center;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.dokument-item:hover {
    transform: scale(1.02);
}

.dokument-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.dokument-item p {
    margin-top: 10px;
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.vertrag-span-container {
    display: flex;
    flex-direction: column; /* vertikale Anordnung */
    align-items: center;    /* zentriert */
    gap: 10px;
    margin-top: 20px;
}

.vertrag-span {
    background-color: #ffffff;
    /*border: 1px solid #ddd;*/
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    min-width: 200px;
    max-width: 800px;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}



/* Responsive Verhalten für kleinere Displays */
@media (max-width: 600px) {
    .dokument-item {
        flex: 1 1 100%;
    }
}
