/* Allgemeine Stile */
body {
    font-family: "Arial", sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a:link {
    text-decoration: none;
}

a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

a:active {
    text-decoration: none;
}

/* Header */
header {
    background-color: #fff;
    color: #000;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    flex-wrap: nowrap;
}

header h1 {
    margin: 0;
}

header h1 a {
    color: #000;
    text-decoration: none;
}

header h1 a:visited {
    color: #000;
}

header nav {
    text-align: center;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

header nav ul li {
    margin: 0.5rem 1rem;
}

header nav ul li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
}

header nav ul li a:hover {
    color: #777;
}

header nav ul li a i {
    font-size: 1.2rem;
    /* Passe die Größe des Mail-Icons an */
    margin-right: 0.5rem;
}

header nav ul li a img.icon {
    width: 1.2rem;
    /* Passe die Größe des Instagram-Icons an */
    height: 1.2rem;
    margin-right: 0.5rem;
}

/* Media Query für kleinere Bildschirmauflösungen */
@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
    }

    header h1 {
        flex: 1 1 100%;
        text-align: center;
    }

    header nav {
        flex: 1 1 100%;
    }

    header nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Wrapper für das gesamte Layout */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Hauptinhalt */
main {
    flex: 1;
}

/* Footer */
footer {
    background-color: #fff;
    color: #000;
    text-align: center;
    padding: 2rem 1rem;
    border-top: 1px solid #ddd;
}

.social-media a {
    color: #333;
    margin: 0 1rem;
    text-decoration: none;
    font-weight: 500;
}

.social-media a:hover {
    color: #777;
}

/* Grid-Layout für die Übersicht */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    justify-content: center;
    padding: 2rem;
    max-width: 1400px;
    /* Maximale Breite des Containers */
    margin: 0 auto;
    /* Zentriert den Container horizontal */
}

/* Media Query für kleinere Bildschirmauflösungen */
@media (max-width: 830px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}

/* Grid-Items */
.grid-item {
    text-align: center;
}

.grid-title {
    color: #424242;
    text-decoration: none;
}

/* 1x1 Format für Bilder */
.square-image {
    width: 95%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}

.square-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.workcontent {
    text-align: center;
}

.square-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.square-image:hover::after {
    opacity: 1;
}

/* Hauptbild auf der Einzelprojektseite */
.main-image {
    padding: 1%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.main-image img {
    width: 98%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Galerie */
.gallery {
    padding: 1%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.gallery img {
    width: 90%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.blogcontent img {
    width: 98%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Bilder für single.html */
.responsive-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Hochformatbilder */
.responsive-image.portrait {
    max-width: 600px;
}

/* Querformatbilder */
.responsive-image.landscape {
    max-height: none;
    max-width: none;
}

/* Bildunterschriften */
.caption {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
}

.image-container {
    margin-bottom: 2rem;
}

/* Layout für die "Über mich"-Seite */
.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
}

.about-image {
    flex: 1 1 40%;
    max-width: 400px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.about-text {
    flex: 1 1 50%;
    max-width: 600px;
}

/* Media Query für kleinere Bildschirmauflösungen */
@media (max-width: 500px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-image,
    .about-text {
        flex: 1 1 100%;
        max-width: 100%;
    }
}