/* About Section */
.about-container {
    display: flex;
    flex-direction: row; /* Standard: Bild und Text nebeneinander */
    justify-content: center;
    align-items: center;
    padding-top: 20px;
}

.about-section {
    position: relative; /* Ermöglicht die Bindung des Pseudo-Elements an die Section */
    z-index: 1; /* Sicherstellen, dass Inhalte darüber liegen */
    overflow: hidden; /* Verhindert, dass das Pseudo-Element hinausreicht */
    width: 100%;
    padding: 0 1rem;
}

/* Hintergrundbild */
.about-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/about_background.webp') no-repeat center center/cover;
    filter: blur(10px); /* Unscharfes Bild */
    opacity: 0.3; /* Transparenz für das Bild */
    z-index: 0; /* Hintergrund-Ebene */
    overflow: hidden;
    background-size: cover;
    z-index: -1; /* Hinter den Inhalt der Section stellen */
}

/* Text und Inhalte */
.about-container {
    position: relative;
    z-index: 1; /* Text über dem Hintergrund */
    width: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30%; /* Ein Drittel der Breite */
}

.about-image img {
    width: 350px;
    height: 350px;
    border-radius: 50%; /* Rundes Bild */
    object-fit: cover;
    border: 4px solid #ccc;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    height: auto; /* Passt die Höhe automatisch an */
}

.about-details {
    flex: 1;
    width: 48%; /* Ein Drittel der Breite */
    padding: 0 20px;
}

.about-details h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.about-details h2 {
    font-size: 1.5rem;
    font-weight: normal;
    color: #555;
    margin-bottom: 20px;
}

.about-details p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.about-buttons {
    display: flex;
    gap: 15px;
}

.subtitle {
    font-size: 1.2rem;
    color: #555;
    margin: 0.5rem 0;
}

.description {
    font-size: 1rem;
    color: #110f0f;
    margin-bottom: 1rem;
}

.button {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    color: white;
    transition: background-color 0.3s;
    transition: all 0.3s ease;
}

.linkedin-button {
    background-color: #0077b5;
}

.linkedin-button:hover {
    background-color: #005582;
    background-color: #005582;
    transform: scale(1.05);
}

.gitlab-button {
    background-color: #fc6d26;
}

.gitlab-button:hover {
    background-color: #d35400;
    transform: scale(1.05);
}

.button img {
    width: 40px;
    height: 40px;
    margin-right: 0.5rem;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column; /* Bild und Text untereinander */
        align-items: center;
        text-align: center; /* Text zentrieren */
        width: 100%;
    }

    .about-content {
        flex-direction: column; /* Ändert die Richtung zu vertikal */
        align-items: center; /* Zentriert die Inhalte */
        gap: 20px; /* Abstand zwischen den Abschnitten */
    }

    .about-image, .about-details, .timeline-container {
        width: 100%; /* Volle Breite */
        flex: none; /* Hebt das Flex-Verhalten auf */
    }

    .about-image img {
        width: 200px;
        height: 200px;
        margin-bottom: 10px;
    }

    .about-content h1 {
        font-size: 1.8rem; /* Kleinere Schriftgröße */
    }

    .about-content h2 {
        font-size: 1.2rem;
    }

    .about-content p {
        font-size: 0.9rem;
    }
}