/* style.css */
@font-face {
    font-display: swap;
    font-family: 'Lexend';
    font-style: normal;
    font-weight: 200;
    src: url('lexend-v23-latin-200.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Lexend';
    font-style: normal;
    font-weight: 400;
    src: url('lexend-v23-latin-regular.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Lexend';
    font-style: normal;
    font-weight: 800;
    src: url('lexend-v23-latin-800.woff2') format('woff2');
}

body {
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #898989;
    color: white;
    padding: 20px;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header h1 {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
nav ul li {
    margin-left: 20px;
}
nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}
nav ul li a:hover {
    text-decoration: underline;
}
.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    color: white;
    border: none;
    cursor: pointer;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        background-color: #898989;
        position: absolute;
        top: 70px;
        right: 0;
        width: 200px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }
    .menu li {
        margin: 0;
        border-bottom: 1px solid #444;
    }
    .menu-toggle {
        display: block;
    }
    .menu.active {
        display: flex;
    }
}

/* Footer */
footer {
    background-color: #898989;
    color: white;
    padding: 20px 0;
    text-align: center;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.footer-section {
    flex: 1 1 30%;
}
.footer-section h3 {
    border-bottom: 2px solid white;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.footer-section ul {
    list-style: none;
    padding: 0;
}
.footer-section ul li {
    margin-bottom: 10px;
}
.footer-section ul li a {
    color: white;
    text-decoration: none;
}
.footer-section ul li a:hover {
    text-decoration: underline;
}
.footer-bottom {
    font-size: 14px;
    color: #bbb;
}

@media (max-width: 768px) {
    .footer-section {
        flex: 1 1 100%;
    }
}

/* ------------------------------------------ */
/* Startseite – iPhone-sichere Bilddarstellung */
/* ------------------------------------------ */

.image-container {
    width: 100%;
    padding: 40px 10px;
    text-align: center;
}

.image-container img {
    display: inline-block;
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    margin: 0 10px 20px;
    vertical-align: top;
}

.image-wrapper {
    width: 100%;          /* Safari-sicher */
    margin-bottom: 20px;
}

.image-wrapper img {
    display: block;
    margin: 0 auto;
    width: 180px;         /* Desktop */
    max-width: 100%;      /* nie über den Rand */
    height: auto;
    border: 1px solid black;
}

/* iPhone / kleine Smartphones */
@media (max-width: 600px) {
    .image-wrapper img {
        width: 100%;       /* volle Breite */
        max-width: 280px;
    }
    .image-container {
        padding: 20px 10px;
    }
}

/* Arbeiten-Übersicht: zwei Spalten, Bilder passen sich der Zelle an */
.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.work-item {
    text-align: center;
    min-width: 0;
}

.work-item img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 70vh;
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

@media (max-width: 600px) {
    .work-grid {
        grid-template-columns: 1fr;
    }
}

/* Gallery */
.gallery {
    max-width: 1280px;
    margin: 0 auto;
    column-count: 4;
    column-gap: 10px;
    padding: 20px;
}
.gallery img {
    width: 100%;
    margin-bottom: 10px;
    display: block;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s;
}
.gallery img:hover {
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .gallery {
        column-count: 3;
    }
}
@media (max-width: 768px) {
    .gallery {
        column-count: 2;
    }
}
@media (max-width: 480px) {
    .gallery {
        column-count: 1;
    }
}

.content-row {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    width: 100%;
    border-bottom: 1px solid black;
}

.box {
    padding: 20px;
    box-sizing: border-box;
}

.box:first-child {
    width: 50%;
}

.box:last-child {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.box img {
    display: block;
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.image {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .content-row {
        flex-direction: column;
        flex-wrap: wrap;
    }
    .box {
        width: 100%!important;
    }
    .box:first-child {
        order: 2;
    }
    .box:last-child {
        order: 1;
    }
}
