/* Portfolio Container */
.project-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

/* Karten-Design */
.project-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: calc(33.333% - 40px); /* Drei Karten pro Reihe */
    min-width: 350px; /* Breitere Mindestbreite */
    max-width: 500px; /* Maximalbreite */
    height: 500px; /* Einheitliche Höhe */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Inhalte und Button platzieren */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Kartenbild */
.project-card img {
    width: 100%;
    height: 200px; /* Einheitliche Höhe für Bilder */
    object-fit: cover; /* Bild anpassen */
    border-bottom: 1px solid #ddd;
}

/* Kartentitel und Beschreibung */
.project-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333333;
    margin: 10px 0;
    text-align: center;
}

.project-card p {
    font-size: 1rem;
    color: #555555;
    margin: 0 10px 20px;
    text-align: center;
    flex-grow: 1; /* Beschreibung füllt den verfügbaren Platz */
}

/* Mehr erfahren Button */
.project-card .btn {
    margin-top: auto; /* Button an das untere Ende des flex-Containers */
    margin-bottom: 1rem; /* Abstand von der Unterkante der Card */
    margin-left: 1rem; /* Leicht nach rechts verschoben */
    align-self: flex-start; /* Links ausgerichtet */
    background-color: #4da8da;
    color: #ffffff;
    padding: 0.5rem 1rem; /* Mehr Platz für Button-Inhalt */
    font-size: 0.85rem;
    border: none;
    border-radius: 20px; /* Gleiche Rundung wie Blogkarten */
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s, box-shadow 0.2s;
    display: inline-block; /* Inline-Block für saubere Positionierung */
}

/* Responsives Design - Button Anpassung für mobile Geräte */
@media (max-width: 768px) {
    .project-card .btn {
        padding: 0.4rem 0.8rem; /* Kleinere Polsterung für mobile Geräte */
        font-size: 0.8rem; /* Kleinere Schriftgröße */
        width: auto; /* Button bleibt in der Standardbreite */
        max-width: 250px; /* Maximale Breite setzen, damit er nicht zu lang wird */
        margin-left: 0; /* Abstand nach links anpassen */
        margin-right: 0; /* Abstand nach rechts anpassen */
    }
}

@media (max-width: 576px) {
    .project-card .btn {
        padding: 0.3rem 0.6rem; /* Noch kleinere Polsterung für sehr kleine Bildschirme */
        font-size: 0.95rem; /* angepasste Schriftgröße */
        width: auto; /* Button bleibt in der Standardbreite */
        max-width: 125px; /* Maximale Breite setzen, damit der Button nicht die ganze Breite einnimmt */
        margin-left: 1rem; /* Abstand nach links anpassen */
        margin-right: 0; /* Abstand nach rechts anpassen */
    }
}

.project-card .btn:hover {
    background-color: #3a8db7;
    transform: translateY(-2px); /* Leichter Hover-Effekt */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Hover-Effekt */
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* H1-Element Styling */
h1.fw-bold {
    text-align: center; /* Zentriert den Text */
    margin-top: 2rem; /* Abstand nach oben */
    margin-bottom: 2rem; /* Abstand nach unten */
    color: var(--text-color); /* Einheitliche Textfarbe */
}

/* Filter-Buttons */
.filter-bar {
    text-align: center;
    margin-bottom: 20px;
}

.filter-bar .btn {
    margin: 5px;
    padding: 0.5rem 1rem;
    background-color: #4da8da;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.filter-bar .btn:hover {
    background-color: #3a8db7;
}
/* Speicher unter verhinderung */

.image-container {
    position: relative;
    display: flex;
}

.image-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 10;
}

img {
    pointer-events: none;
    user-select: none;
}

/* Responsives Design */
@media (max-width: 768px) {
    .project-card {
        width: calc(50% - 30px); /* Zwei Karten pro Reihe */
        height: 450px; /* Angepasste Höhe */
    }
}

@media (max-width: 576px) {
    .project-card {
        width: 100%; /* Eine Karte pro Reihe */
        height: auto; /* Höhe an Inhalt anpassen */
    }

    .project-card .btn {
        width: 100%; /* Voller Button bei kleinen Bildschirmen */
    }
}