* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
    text-align: center;
    overflow-x: hidden;
    background: url('background.png') no-repeat center center fixed;
    background-size: cover;
	/* Neue Regel für mobile Geräte hinzufügen */
    -webkit-background-attachment: fixed; /* Für ältere Webkit-basierte Browser wie Safari */
    background-attachment: fixed; /* Standard für moderne Browser */
	-webkit-overflow-scrolling: touch; /* Verbessert die Scroll-Performance in Webkit-basierten Browsern */
}

header {
    background-color: #333;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

header img#header-icon {
    width: 50px;
    height: auto;
    margin-right: 20px;
}

header h1 {
    margin: 0;
    font-size: 2em;
}

nav {
    display: flex;
    justify-content: center;
    width: 100%;
    background-color: rgba(20, 20, 20, 0.9); /* Dunklerer Hintergrund */
    padding: 10px 0;
    margin: 0; /* Margin entfernt */
}

nav a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
}

.content {
    padding: 20px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.flex-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.box {
    background-color: rgba(20, 20, 20, 0.9); /* Dunklerer Hintergrund */
    padding: 20px;
    border-radius: 10px;
    margin: 10px auto;
    text-align: left;
}

.full-width {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
}

/* Spezifische Boxen für "Über Mich" und "Meine Dienstleistungen" */
#ueber-mich,
#was-ich-anbiete {
    padding: 30px; /* Größerer Rand */
}

.box h2, .box h3 {
    text-align: center;
    margin-bottom: 10px;
}

.portfolio .full-width h2 {
    text-align: center; /* "Portfolio" Überschrift zentrieren */
}

.box p, .box ul {
    margin-top: 10px;
    margin-bottom: 10px;
}

.box ul {
    list-style-type: disc;
    padding-left: 40px;
}

.box ul li {
    margin: 10px 0;
}

.portfolio {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.video-container {
    margin: 10px;
    width: 100%;
    max-width: 800px;
}

.video-container iframe {
    width: 100%;
    height: 450px;
    border-radius: 10px;
}
.image-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.image-container img {
    max-width: 80%;
    max-height: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}


@media (min-width: 1200px) {
    .portfolio {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .video-container {
        width: 30%;
        max-width: none;
    }
}

footer {
    background-color: #333;
    padding: 10px;
    width: 100%;
    text-align: center;
}

footer p {
    margin: 0;
}

footer a {
    color: #80b3ff;
}

.social-icons {
    text-align: center;
}

.social-icons a {
    margin: 0 10px;
    display: inline-block;
}

.social-icons img {
    height: 30px;
    width: auto;
}

@media (max-width: 768px) {
    .flex-container {
        flex-direction: column;
        align-items: center; /* Zentriert die Boxen in der mobilen Ansicht */
		justify-content: center; /* Zentriert die Boxen in der mobilen Ansicht */
    }

    .box {
        width: 100%; /* Ändert die Breite auf 100% in der mobilen Ansicht */
        max-width: 100%;
    }

    /* Versteckt die Portfolio Box in der mobilen Ansicht */
    .portfolio .box {
        display: none;
    }

    

    .video-container iframe {
        height: 250px; /* Passt die Höhe der Videos an */
        border-radius: 0; /* Entfernt den Randradius */
    }
}

.center-text {
    text-align: center;
}

@media (min-width: 992px) {
    .flex-container {
        flex-direction: row;
        justify-content: center;
    }
    
    .flex-container .box {
        width: 45%;
        max-width: 600px;
        margin: 20px;
    }
    
    .full-width {
        width: 90%;
        max-width: none;
    }
}
