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

/* -------------------- Body & Schrift -------------------- */
body {
    font-family: "Courier New", Courier, monospace;
    background: #ffffff;
    color: #111;
    line-height: 1.6;
}

/* -------------------- Header -------------------- */
header {
    position: fixed;
    width: 100%;
    background: white;
    padding: 20px 40px;
    display: flex;
    justify-content: flex-start; /* Logo + Menü linksbündig in einer Reihe */
    align-items: center;
    border-bottom: none; /* Linie entfernt */
    z-index: 1000;
    gap: 40px; /* Abstand zwischen Logo und Navigation */
}

header .logo {
    font-weight: light;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

header nav {
    display: flex;
    gap: 25px; /* Abstand zwischen den Links */
}

header nav a {
    text-decoration: none;
    color: #111;
    font-size: 16px;
    letter-spacing: 1px;
    transition: 0.2s;
}

header nav a:hover {
    opacity: 0.7;
}

/* -------------------- Container -------------------- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
}

/* -------------------- Galerie -------------------- */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.gallery-item {
    flex: 1 1 500px; /* minimal 300px, wächst automatisch */
    max-width: 850px;
}

.gallery-item img {
    width: 95%;
    height: auto;
    display: block;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.gallery-item img:hover {
    opacity: 0.85;
}

/* -------------------- Lightbox -------------------- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: #ffffff;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
}

.lightbox.active {
    display: flex;
}

#prev, #next {
    position: absolute;
    top: 50%;
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transform: translateY(-50%);
    padding: 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
}

#prev { left: 20px; }
#next { right: 20px; }

#prev:hover, #next:hover { background: rgba(0,0,0,0.6); }

/* -------------------- Footer -------------------- */
footer {
    text-align: left;
    padding: 50px;
    font-size: 18px;
    color: #111;
    border-top: 0px solid #eee;
}

footer a {
    color: #111; /* gleiche Farbe wie Text */
    text-decoration: none; /* keine Unterstreichung */
    transition: 0.3s;
}

footer a:hover {
    opacity: 0.7; /* dezente Hover-Farbe */
}

/* -------------------- About-Seite -------------------- */

.about-page h1 {
    margin-bottom: 30px;
    text-align: center;
}

.about-content {
    display: flex;
    flex-direction: column; /* Bild oben, Text darunter */
    align-items: center;    /* zentriert horizontal */
    gap: 20px;              /* Abstand zwischen Bild und Text */
    text-align: center;     /* Text zentrieren */
}

.about-image img {
    max-width: 1200px;
    width: 100%;
    border-radius: 10px;
}

.about-text {
    max-width: 650px; /* Optional: begrenzt Zeilenbreite für bessere Lesbarkeit */
    font-size: 16px;
    line-height: 1.6;
}

.about-text a {
    color: #111;
    text-decoration: underline;
}

/* -------------------- Kontakt-Seite -------------------- */
form input, form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: "Courier New", Courier, monospace;
}

form button {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    background: #111;
    color: white;
    cursor: pointer;
    font-family: "Courier New", Courier, monospace;
    transition: 0.3s;
}

form button:hover {
    opacity: 0.8;
}

/* -------------------- Responsiveness -------------------- */
@media (max-width: 1000px) {
    .gallery-item { flex: 1 1 45%; }
}

@media (max-width: 700px){
    .gallery-item { flex: 1 1 90%; }

    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-image {
        margin-bottom: 20px;
    }
}
