/* Allgemeine Stile */
body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f4f1eb;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #4a3b31;
    margin-bottom: 20px;
    font-weight: 700;
}

h1 {
    font-size: 3.5em;
    margin-bottom: 0.5em;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

h2 {
    font-size: 2.5em;
    text-align: center;
    padding-top: 40px;
    margin-bottom: 30px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 2px;
    background-color: #a07d5f;
    margin: 15px auto 0;
}

p {
    margin-bottom: 15px;
}

a {
    color: #8c6b52;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.content-section {
    padding: 50px 20px;
    max-width: 860px;
    margin: 0 auto 20px auto;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 8px;
}

/* Hero Section mit Hintergrundbild */
.hero-section {
    height: 100vh;
    position: relative; /* Wichtig für absolute Positionierung der Nav innen */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-image: url('img/PXL_20240907_173011028.jpg'); /* HIER BILD EINFÜGEN */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero-content h1 {
    font-size: clamp(2.8em, 7vw, 5em);
    margin-bottom: 0.2em;
    color: #fff;
}
.hero-content p {
    font-size: clamp(1.1em, 3vw, 1.6em);
    font-weight: 300;
    color: #f0f0f0;
}

/* Navigation */
.main-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    background-color: rgba(74, 59, 49, 0.75);
    padding: 12px 25px;
    border-radius: 30px;
    z-index: 10;
    display: flex;
    gap: 20px; /* Etwas reduziert für mehr Links */
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    transition: top 0.3s ease, background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 400;
    padding: 8px 12px; /* Etwas reduziert für mehr Links */
    border-radius: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 0.9em; /* Etwas reduziert für mehr Links */
}

.main-nav a:hover, .main-nav a.active {
    background-color: rgba(255, 255, 255, 0.9);
    color: #4a3b31;
}

.main-nav.sticky {
    position: fixed;
    top: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    transform: translateX(0);
    background-color: rgb(74, 59, 49);
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    padding: 12px 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
}
.main-nav.sticky > a {
    /* Behält Abstand bei */
}

body.nav-is-sticky main {
    padding-top: 70px;
}

/* NEU: Tagesablauf Formatierung */
.tagesablauf-liste {
    list-style: none;
    padding-left: 0;
    text-align: center; /* Zentriert den Inhalt der Listenelemente */
}

.tagesablauf-liste li {
    padding: 20px 0; /* Mehr vertikaler Abstand */
    border-bottom: 1px solid #e0e0e0; /* Trennstrich */
}

.tagesablauf-liste li:last-child {
    border-bottom: none;
}

.tagesablauf-zeit {
    font-weight: bold;
    color: #5c4e46;
    font-size: 1.1em;
    margin-bottom: 8px; /* Abstand zur Beschreibung */
}

.tagesablauf-beschreibung {
    font-size: 1.05em;
    line-height: 1.5;
}
.tagesablauf-beschreibung a { /* Damit Links im zentrierten Text gut aussehen */
    display: inline-block;
}


/* NEU: Slideshow Stile */
.slideshow-container {
  max-width: 800px; /* Breite anpassen nach Bedarf */
  position: relative;
  margin: auto;
  border: 3px solid #e0d8cf;
  border-radius: 5px;
  overflow: hidden; /* Verhindert, dass Bilder überstehen */
}

.slide {
  display: none; /* Standardmäßig alle Slides ausblenden */
}
.slide img {
  width: 100%;
  height: auto; /* Höhe automatisch anpassen, oder feste Höhe setzen z.B. 400px */
  max-height: 450px; /* Maximale Höhe, um Proportionen zu wahren */
  object-fit: cover; /* Stellt sicher, dass das Bild den Container füllt ohne Verzerrung */
  display: block; /* Entfernt Leerraum unter dem Bild */
}


.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0,0,0,0.3);
}
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}
.active-dot, .dot:hover { /* active-dot wird per JS gesetzt */
  background-color: #717171;
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}
@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}


/* Location spezifisch (Anpassung für Slideshow) */
/* .location-image-placeholder img wurde entfernt, stattdessen .slideshow-container */

.info-item { margin-bottom: 30px; }
.info-item h3 { font-size: 1.6em; color: #8c6b52; margin-bottom: 8px; border-bottom: 1px solid #eee; padding-bottom: 5px; }

.button { display: inline-block; background-color: #8c6b52; color: white !important; padding: 14px 30px; text-decoration: none; border-radius: 25px; font-weight: bold; transition: background-color 0.3s ease, transform 0.2s ease; border: none; cursor: pointer; font-size: 1.1em; box-shadow: 0 2px 5px rgba(0,0,0,0.15); }
.button:hover { background-color: #73553e; text-decoration: none; color: white; transform: translateY(-2px); }

footer { text-align: center; padding: 40px 20px; background-color: #4a3b31; color: #e4e0da; }
footer p { margin: 8px 0; font-size: 0.95em; }

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.6em; }
    .hero-content p { font-size: 1.1em; }

    .main-nav {
        gap: 8px; /* Weiter reduziert für mehr Links */
        padding: 10px 10px;
        bottom: 20px;
    }
    .main-nav a {
        padding: 7px 8px; /* Weiter reduziert */
        font-size: 0.8em; /* Weiter reduziert */
    }
    .main-nav.sticky {
        padding: 10px 0;
    }
    body.nav-is-sticky main {
        padding-top: 60px;
    }

    h2 { font-size: 2.1em; }
    .content-section { padding: 40px 15px; }

    .slideshow-container { max-width: 95%; } /* Bessere Ausnutzung auf Tablets */

}

@media (max-width: 480px) {
    .main-nav {
        width: 95%; /* Verhindert Überlaufen */
        gap: 3px; /* Minimaler Gap */
        flex-wrap: wrap; /* Erlaubt Umbruch bei vielen Links */
        justify-content: center;
    }
    .main-nav a {
        font-size: 0.75em; /* Sehr klein, ggf. anpassen */
        padding: 6px 6px;
    }
     .main-nav.sticky a {
        margin: 0 2px;
    }
    body.nav-is-sticky main {
        padding-top: 75px; /* Höhe kann variieren, wenn die Nav umbricht */
    }
    .hero-content h1 { font-size: 2.2em; }

    .tagesablauf-zeit { font-size: 1em; }
    .tagesablauf-beschreibung { font-size: 0.95em; }
}
/* ... (deine bisherigen CSS-Regeln) ... */

/* NEU: Stile für Upload-Formular und Galerie */
.upload-message {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
}
.upload-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.upload-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.upload-form div {
    margin-bottom: 10px;
}
/* Versteckt den Standard-Datei-Input, da wir ihn mit einem Button-Label stylen */
.upload-form input[type="file"] {
    display: none;
}
/* Styling für das Label, das wie ein Button aussieht */
.upload-form label.button {
    cursor: pointer;
    display: inline-block; /* Wichtig, damit es wie ein Button wirkt */
}

/* Styling für den Upload-Fortschrittsbalken */
#upload-progress-container {
    width: 100%;
    background-color: #e0d8cf;
    border-radius: 10px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}
#upload-progress-bar {
    height: 20px;
    background-color: #a07d5f;
    border-radius: 10px;
    transition: width 0.3s ease-in-out;
    text-align: center;
    color: white;
    line-height: 20px;
}

.guest-gallery .image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Responsive Spalten */
    gap: 10px;
    margin-top: 20px;
}

.guest-gallery .grid-item img {
    width: 100%;
    height: 150px; /* Feste Höhe für einheitliches Aussehen */
    object-fit: cover; /* Stellt sicher, dass das Bild den Bereich füllt ohne Verzerrung */
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
}
.guest-gallery .grid-item img:hover {
    transform: scale(1.05);
}

/* Lightbox Stile (Basis, wenn du eine einfache Lightbox verwendest) */
/* Du müsstest eine Lightbox-Bibliothek wie Lightbox2 oder Fancybox integrieren für volle Funktionalität */
/* Diese CSS-Regeln sind Platzhalter und reichen nicht für eine komplette Lightbox */
.lightbox-overlay {
    display: none; /* Wird per JS gesteuert */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
.lightbox-image {
    max-width: 90%;
    max-height: 80%;
    box-shadow: 0 0 25px rgba(0,0,0,0.5);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* ... bestehende Stile ... */

.upload-message.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}
.upload-message.info {
    background-color: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

/* ... bestehende Stile ... */

.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85); /* Etwas dunkler */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 10px; /* Platz für Close-Button auf kleinen Screens */
    box-sizing: border-box;
}

.lightbox-image-container { /* Neuer Container für Bildzentrierung und max-Größe */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.lightbox-image {
    max-width: calc(100% - 80px); /* Platz für Nav-Pfeile lassen */
    max-height: 100%;
    box-shadow: 0 0 25px rgba(0,0,0,0.5);
    display: block; /* Verhindert extra Platz unter dem Bild */
    object-fit: contain; /* Stellt sicher, dass das ganze Bild sichtbar ist */
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    color: white;
    cursor: pointer;
    z-index: 2001; /* Über dem Bild, falls es überlappt */
    font-size: 2.5em; /* Größer für bessere Klickbarkeit */
    user-select: none; /* Verhindert Textauswahl */
}

.lightbox-close {
    top: 15px;
    right: 25px;
    font-weight: bold;
}

.lightbox-prev, .lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    padding: 10px; /* Größerer Klickbereich */
    background-color: rgba(0,0,0,0.2);
    border-radius: 5px;
}
.lightbox-prev:hover, .lightbox-next:hover {
    background-color: rgba(0,0,0,0.5);
}

.lightbox-prev {
    left: 15px;
}

.lightbox-next {
    right: 15px;
}

/* ... (deine bisherigen CSS-Regeln) ... */

.grid-item {
    position: relative; /* Notwendig für die absolute Positionierung des Namens-Spans */
    overflow: hidden; /* Verhindert, dass der Name übersteht, falls zu lang */
}

.uploader-name-thumbnail {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.8em;
    padding: 3px 5px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Fügt "..." hinzu, wenn der Name zu lang ist */
    box-sizing: border-box;
}

/* ... (deine bisherigen CSS-Regeln für Lightbox) ... */

.lightbox-uploader-name {
    position: absolute;
    bottom: 15px; /* Oder wo du es haben möchtest */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 3px;
    font-size: 0.9em;
    z-index: 2001; /* Über dem Bild, falls es überlappt */
}

/* Animation für den Fortschrittsbalken */
@keyframes moving-background {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 50px 0;
    }
}

/* Anpassung der bestehenden Fortschrittsbalken-Regeln */
#upload-progress-bar {
    /* Bestehende Regeln */
    height: 20px;
    background-color: #a07d5f; /* Fallback-Farbe */
    border-radius: 10px;
    transition: width 0.3s ease-in-out;
    text-align: center;
    color: white;
    line-height: 20px;

    /* NEU: Hintergrund für die Animation */
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 50px 50px; /* Größe des Hintergrund-Musters */
    animation: moving-background 1s linear infinite; /* Animation starten */
}

/* NEU: Stoppen der Animation bei 100% */
#upload-progress-bar.finished {
    animation: none; /* Animation anhalten, wenn der Upload abgeschlossen ist */
}


