/* Allgemeines Styling */
body {
    background: linear-gradient(to bottom, #b0d7f2 0%, #ffffff 200px) no-repeat; /* Himmel zu Weiß */
    color: #2c3e50; /* Dunkles Blau-Grau für bessere Lesbarkeit */
    font-family: "Arial", sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* Container für den kompletten Hintergrund */
#background-container {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    text-align: center;
}

/* Hintergrundbild */
#background-image {
    display: block;
    width: 100%;
    background-image: url(https://kita-hahnengel.de/wp-content/uploads/2025/01/ev-kita-hahnengel_postheader02-scaled.gif);
    height: 172px;
    margin: 0;
    margin-top: 200px;
    position: absolute;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1; /* Bild über dem Gradient */
}

/* Grüner Gradient-Hintergrund */
#background-lower {
    position: absolute;
    top: 372px; 
    left: 0;
    width: 100%;
    height: 250px; /* Kann angepasst werden */
    background: linear-gradient(to bottom, #7EC27F 0%, #FFF 100%) no-repeat;
 
    z-index: -1; /* Stellt sicher, dass es hinter allem liegt */
    
}

/* Panorama einrahmen */
#panorama {
    width: 90%;
    max-width: 1400px;
    height: 600px;
    margin: 40px auto;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.9); /* Leichtes Weiß für mehr Kontrast */
    padding: 0;
}

/* Zurück-Button */
.back-button {
    display: inline-block;
    margin-bottom: 20px;
    margin-top: 50px;
    padding: 10px 20px;
    background: #467599; /* Dunklerer Blau-Ton, passend zur Website */
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.back-button:hover {
    background: #365a7c;
}

/* Stil für das Overlay */
#imageOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.3s ease-in-out;
}

/* Bild im Overlay */
#overlayImage {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

/* Schließen-Button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.close-btn:hover {
    transform: scale(1.2);
}

/* Navigation-Buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    font-size: 40px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 15px;
    cursor: pointer;
    user-select: none;
    display: none; /* Standardmäßig ausgeblendet */
    transition: background 0.3s ease, transform 0.2s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* Tooltip-Stil für bessere Sichtbarkeit */
div.pnlm-tooltip span {
    visibility: visible;
    background: rgba(44, 62, 80, 0.85); /* Dunkles Blau, passend zur Website */
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    transition: opacity 0.2s ease-in-out;
    max-width: fit-content;
}

/* Mobile Anpassungen */
@media screen and (max-width: 768px) {
    #overlayImage {
        max-width: 95%;
        max-height: 90%;
    }

    .nav-btn {
        font-size: 30px;
        padding: 10px;
    }

    .close-btn {
        font-size: 25px;
    }
}

/* Überschrift auf der Startseite */
.page-title {
    color: #467599; /* Warmer Blau-Ton */
    font-size: 28px;
    margin-bottom: 10px;
}

/* Einführungstext */
.intro-text {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
}

/* Panorama-Links */
.panorama-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

/* Buttons für die Gruppen */
.panorama-button {
    display: inline-block;
    padding: 12px 20px;
    background: #467599;
    color: white;
    font-size: 18px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, transform 0.2s ease;
}

.panorama-button:hover {
    background: #365a7c;
    transform: scale(1.05);
}

/* Info-Text unter den Bildern */
#imageInfoText {
    color: white;
    font-size: 16px;
    text-align: center;
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 5px;
    max-width: 80%;
}
.pnlm-controls-container {
    margin:10px;
}