/* Grund-Layout und Schriften */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #faf7f0; /* statt #f5f5f5 */
    color: #333;
}

header {
    background-color: gray;
    padding: 1em 0;
    text-align: center;
    color: #fff;
}

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

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Beispiel einer wärmeren Farbpalette im Header */
header {
    /* Schöner Farbverlauf von hellen zu etwas satteren Tönen */
    background: linear-gradient(135deg, #f9e2b8 0%, #f1cc7f 100%);
    padding: 2em 0;
    text-align: center;
    color: #3c3c3c;
}

/* Überschrift mit der neuen Schriftart, größerer Font-Size */
header h1 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    letter-spacing: 1px;
}

/* Navigation mehr Platz und Abgrenzung */
nav {
    margin-top: 1rem;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-block; /* oder flex, je nach Wunsch */
    background-color: rgba(255, 255, 255, 0.2); /* dezente Hinterlegung */
    border-radius: 8px;
}

nav ul li {
    display: inline-block;
    margin: 0;
}

nav ul li a {
    display: inline-block;
    padding: 0.75rem 1rem;
    color: #3c3c3c;
    text-decoration: none;
    font-weight: bold;
}

/* Hover-Effekt für Links */
nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s;
}
/* Main Content */
main {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
}

section {
    margin-bottom: 2rem;
}

section h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #444;
}

/* Galerie-Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border: 2px solid #ccc;
    border-radius: 5px;
}

.gallery-grid img:hover {
    border-color: gray;
}

/* Über mich */
.ueber-mich p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Kontaktformular */
.kontakt-form {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.kontakt-form .form-group {
    margin-bottom: 1rem;
}

.kontakt-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #444;
}

.kontakt-form input[type="email"],
.kontakt-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 1rem;
    font-family: inherit;
}

.kontakt-form input[type="email"]:focus,
.kontakt-form textarea:focus {
    outline: none;
    border-color: gray;
}

.kontakt-form button {
    background-color: gray;
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 3px;
    cursor: pointer;
}

.kontakt-form button:hover {
    background-color: #666;
}

/* Footer */
footer {
    text-align: center;
    padding: 1em 0;
    background: #f1cc7f; /* ähnlicher Ton wie im Header-Verlauf */
    color: #444;
    margin-top: 2rem;
}


/* Lightbox-Container */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    /* Flexbox für zentrierte Ausrichtung */
    display: none; /* wird zu 'flex' wenn aktiv */
    justify-content: center;
    align-items: center;
}

/* Container für Bild und Caption */
.lightbox-content {
    max-width: 80%;
    max-height: 75vh; /* Reduziert für Platz der Caption */
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

/* Caption direkt unter dem Bild */
.lightbox-caption {
    position: fixed;
    bottom: 10%; /* Feste Position vom unteren Rand */
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    width: auto;
    white-space: nowrap;
    z-index: 1000;
}

/* Schließen-Button anpassen */
.lightbox-close {
    position: fixed;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
}
/* Lightbox-Container ausblenden, der gesamte Screen wird als Overlay genutzt. */
.lightbox {
    display: none; 
    position: fixed; 
    z-index: 999; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.8); /* dunkler Overlay-Hintergrund */
}

/* Schließen-Button (X) oben rechts */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

/* Bild innerhalb der Lightbox */
.lightbox-content {
    display: block;
    margin: 5% auto; /* zentriert & etwas von oben weg */
    max-width: 90%;
    max-height: 80vh; /* damit nicht zu groß */
    border: 2px solid #fff;
    border-radius: 5px;
}

/* Untertitel/Caption (optional) */
.lightbox-caption {
    text-align: center;
    color: #ccc;
    margin-top: 10px;
    font-style: italic;
}
