/* ---------------------------------------------------
   GLOBAL
--------------------------------------------------- */

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #a2be80;
}

.bg {
    position: fixed;
    inset: 0;
    background-image: url("/images/Hintergrund.jpg");
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.8s ease-in;
}
.bg.bg-loaded {
    opacity: 1;
}

.bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
}

.echterinhalt {
    margin: 0 10%;
}

.main-text1 {
    font-size: 18px;
    text-align: center;
}

.main-text {
    font-size: 18px;
    text-align: justify;
}

.main-Subtitle {
    text-align: center;
    font-size: 36px;
    margin-top: 0;
}

/* Fokus sichtbar (Barrierefreiheit) */
a:focus,
button:focus {
    outline: 3px solid #007b55;
    outline-offset: 4px;
}

/* ---------------------------------------------------
   NEWS TICKER
--------------------------------------------------- */

.fancy-ticker-wrapper {
    background: linear-gradient(to left, #778A4A, #BBD087C4);
    color: #fff;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    padding: 10px 0;
    position: fixed;
    top: 0;
    z-index: 1000;
}

.ticker-content {
    display: inline-block;
    animation: scroll-left 15s linear infinite;
}

.ticker-content:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ---------------------------------------------------
   LOGO
--------------------------------------------------- */

.fixed-image-block {
    position: fixed;
    top: 6%;
    right: 4%;
    z-index: 1000;
    pointer-events: none;
}

.fixed-image-block img {
    width: 15vw;
    max-width: 200px;
    height: auto;
}

/* ---------------------------------------------------
   CONTENT
--------------------------------------------------- */

.content {
    flex: 1;
    margin: 200px 28% 0 auto;
    width: 60%;                    /* etwas breiter, zentriert */
    background: linear-gradient(to right, #8E9F62, #BBD087C4);
    padding: 40px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    /* KEIN margin-left mehr – sonst verschiebt sich alles */
}


.float-image {
    display: block;
    margin: 20px auto;   /* mittig im Text */
    max-width: 60%;
    height: auto;
    border-radius: 8px;
    float: none;         /* wichtig: float entfernen */
}


.tgta-figure {
    text-align: center;      /* Inhalt zentrieren */
    margin: 20px auto;       /* Block selbst zentrieren */
}

.tgta-figure img {
    max-width: 60%;          /* angenehme Breite */
    height: auto;
    display: inline-block;   /* wichtig für text-align:center */
}



/* ---------------------------------------------------
   NAVIGATION (DESKTOP)
--------------------------------------------------- */

.menu {
    position: fixed;
    bottom: 2%;
    right: 2%;
    width: 18%;
    min-width: 150px;
    background: linear-gradient(to left, #778A4A, #BBD087C4);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 0;
    z-index: 1000;
    overflow: visible;
}
.menu::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 70vh;
    background: linear-gradient(to left, #778A4A, #BBD087C4);
    border-bottom: 1px solid rgba(119, 138, 74);
}

.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    padding: 3% 0;
    font-size: clamp(14px, 1.2vw, 20px);
    text-transform: uppercase;
    text-indent: 1.2vw;
    border-bottom: 1px solid rgba(119, 138, 74);
    color: black;
    text-decoration: none;
    display: block;
}

.menu-item:hover,
.menu-item.active {
    background: rgba(119, 138, 74);
}

/* ---------------------------------------------------
   HAMBURGER BUTTON (MOBILE)
--------------------------------------------------- */

.hamburger {
    display: none;
    position: fixed;
    top: 40px;
    left: 20px;
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 3000;
    color: #8C0C0C;
}




/* ---------------------------------------------------
   FOOTER
--------------------------------------------------- */

footer {
    width: 60%;          /* gleiche Breite wie .content */
    margin: 10px 28% 0 auto;   /* gleiche Zentrierung wie .content */
    background: #778A4A;
    color: #FFF;
    /*padding: 20px 0;*/
    padding: 40px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}


.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-content a {
    color: #FFF;
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

.footer-content .fab {
    font-size: 24px;
    color: #FFF;
    margin-right: 10px;
    transition: color 0.3s;
}

.footer-content a:hover .fab {
    color: #E1306C;
}






/* ---------------------------------------------------
   MOBILE MENU
--------------------------------------------------- */

@media (max-width: 900px) {

    .hamburger {
        display: block;
    }

    .fixed-image-block img {
        width: 120px;
        max-width: 120px;
        height: auto;
    }

    .menu {
        width: 70%;
        height: 100vh;
        top: 0;
        right: -100%;
        padding-top: 80px;
        transition: right 0.3s ease;
        background: linear-gradient(to left, #778A4A, #BBD087C4);
        font-size: 18px;
    }

    .menu.open {
        right: 0;
    }

    .menu-item {
        font-size: 18px;
        font-weight: 700;
        color: #1a1a1a;
        text-indent: 20px;
        padding: 14px 0;
    }

    .content {
        width: 90%;
        margin-top: 150px;
        padding: 20px;
        margin-left: auto;
        margin-right: auto;
    }

    footer {
        width: 90%;
        margin: 20px auto;
        padding: 20px;
        margin-left: auto;
        margin-right: auto;
    }
}



/* ---------------------------------------------------
   IMAGES
--------------------------------------------------- */

.responsive-image {
    max-width: 50%;
    height: auto;
    display: block;
    margin: 25px 0;
}

.image-copyright {
    text-align: center;
    font-size: 14px;
    color: #2f3a1f;
    margin-top: 6px;      /* Abstand zum Bild */
    opacity: 0.8;
}



/* ---------------------------------------------------
   SLIDER – SCHAUGARTEN
--------------------------------------------------- */
.slider-copyright {
    text-align: center;
    font-size: 14px;
    color: #2f3a1f;
    margin: 1px 0 12px;
    opacity: 0.8;
}


.swiper {
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    height: 350px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-button-prev,
.swiper-button-next {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);   /* zartes Weiß */
    backdrop-filter: blur(4px);
    color: #2f3a1f;                       /* dezentes Dunkelgrün */
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 0 6px rgba(0,0,0,0.25);
    transition: 0.2s ease;
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: rgba(255,255,255,0.55);
    transform: scale(1.08);
}
/* Zoom-Animation */
.swiper-slide img {
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.swiper-slide img.zoomed {
    transform: scale(1.8);
    cursor: zoom-out;
    z-index: 10;
}
/* Overlay für ganzen Slider */
.zoom-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.zoom-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Container für Slider */
.zoom-slider-container {
    width: 90vw;
    max-width: 1000px;
    height: 90vh;
    max-height: 800px;
    position: relative;
}

/* Slider im Overlay */
.zoom-slider-container .swiper {
    width: 100%;
    height: 100%;
}

/* Bilder im Overlay */
.zoom-slider-container .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* WICHTIG: Bild wird nie abgeschnitten */
}

/* Navigation im Overlay */
.zoom-slider-container .swiper-button-prev,
.zoom-slider-container .swiper-button-next {
    color: white;
    text-shadow: 0 0 5px black;
}





.slider-title {
    font-size: 28px;
    margin: 40px 0 10px 0;
    text-align: center;
    color: #2f3a1f;
    font-weight: 600;
    letter-spacing: 1px;
}

.oeffnungszeiten-block {
    width: 100%;
    max-width: 600px;        /* angenehme Lesebreite */
    margin: 0 auto;          /* zentriert im Content */
    text-align: left;        /* Text bleibt linksbündig */
}

.oeffnungszeiten-table {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 30px auto;   /* zentriert + Abstand */
    border-collapse: collapse;
    font-size: 18px;
}


.oeffnungszeiten-table td {
    padding: 8px 5px;
    border-bottom: 1px solid rgba(0,0,0,0.15);
}

.oeffnungszeiten-table tr td:first-child {
    font-weight: 600;
    width: 30%;
}
.oeffnungszeiten-block h2 {
    text-align: center;
    margin-top: 30px;
}
