/* Styles für Info */

/* ============================================================
 * Desktop-Header
 * ============================================================ */

.site-header {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 3rem;
    box-sizing: border-box;
    padding: 0px 15px;
}

/* Menü links */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;            /* erlaube, dass Menü mehrzeilig wird */
}
nav a {
    text-decoration: none;
}
/* Sprach‑Flaggen als kleine horizontale Leiste rechts */
.lang-flags {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
    font-size: 1.6em;
}
.flag {
    text-decoration: none;
    opacity: 0.7;
    transition: transform 0.15s, opacity 0.15s;
}
.flag:hover {
    transform: translateY(-1px);
    opacity: 1;
}
/* aktuelle Sprache hervorheben */
.flag.active {
    border: 2px solid darkgreen;
    border-radius: 50%;
    padding: 0 0.2em;
    opacity: 1;
}

/* Burger und Mobile-Menü auf Desktop ausblenden */
#burger, .mobile-nav {
    display: none;
}

/* Box-Gestaltung */
#dauer, #galerie, #kalender, #aktivität, #medien, #kontakt, #kosten, #statistik, #notfall, #ticker {
border: 1px solid #805729;  /* Klassischer versenkter 3D-Effekt */
padding: 20px;
background: #ffef8e;     /* Heller Hintergrund verstärkt den Effekt */
border-radius: 12px;      /* Abgerundete Ecken */
box-shadow:
inset 0 2px 4px rgba(0,0,0,0.2),   /* Dunkler innerer Schatten oben/links */
inset 0 -2px 4px rgba(0,0,0,0.1);  /* Heller unten/rechts */
}

#kosten p {
    text-align: justify;
}
.map-header {
    max-width: 800px;
    margin: 0px auto;
}
#map {
    height: 300px;
    width: 100% !important;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.progress-container {
    margin: 10px 0;
    height: 25px;  /* Etwas mehr Platz für Text */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: green;  /* Hintergrund hier lassen */
}

.progress-bar {
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: transparent;  /* Transparent für Füllung */
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #dd9933 0%, #7e5629 100%);
    width: 0%;  /* Wird per inline-style überschrieben */
    transition: width 0.5s ease;
    border-radius: 12px;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 0.9em;
    color: #333;
    z-index: 1;
}

#wetter, #zitate {
    width: 90%;
    margin: 20px auto;
    padding: 20px;
    background: linear-gradient(135deg, #dd9933 0%, #7e5629  100%);
    color: #ffef8e;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.wetter-inhalt {
    display: flex;
    align-items: flex-start;
    gap: 15px;  /* Abstand Img-Text */
}

.wetter-inhalt img {
    width: 70px;
    height: 70px;
    flex-shrink: 0;  /* Img behält Größe */
}

.wetter-inhalt div {
    flex: 1;  /* Nimmt Rest-Platz */
}

span.klein {
    font-size: small;
}

/* Galerie */
#galerie {
    display: flex;
    flex-direction: column;
    align-items: center; /* Gesamtes Layout zentriert */
}

.galerie-carousel { /* Wrapper für Buttons + Thumbs hinzufügen */
    display: flex;
    align-items: center; /* Vertikale Zentrierung */
    width: 100%;
    max-width: 800px; /* Optional: Breite begrenzen */
}
.galerie-prev, .galerie-next {
    flex-shrink: 0;  /* Buttons behalten Größe */
    width: 50px;
    height: 50px;  /* Feste Größe, passt zu Thumb-Höhe */
    border: none;
    background: #7f5729;
    color: #ffef8e;
    font-size: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.galerie-prev {
    margin-right: auto; /* Schiebt Prev ganz links */
}

.galerie-thumbs {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 20px; /* Abstand zwischen Thumbs */
    overflow-x: auto; /* Horizontales Scrollen bei vielen Bildern */
    padding: 10px;
    max-height: 150px; /* Feste Höhe für Galerie */
}

.galerie-thumbs img {
    width: 150px; /* Feste Breite pro Thumb */
    height: 100px; /* Feste Höhe – quadratisch */
    object-fit: cover; /* Bild füllt Thumb, zentriert, beschnitten */
    cursor: pointer;
    border-radius: 8px; /* Optional: abgerundete Ecken */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.galerie-prev, .galerie-next {
    transition: background 0.2s;
}

.galerie-thumbs img:hover {
    transform: scale(1.05);
}

.galerie-next {
    margin-left: auto; /* Schiebt Next ganz rechts */
}
.thumb {
    width: 80px;  /* Normale Thumbs */
    height: 80px;
    object-fit: cover;
    transition: all 0.3s ease;  /* Sanfter Übergang */
    border: 2px solid transparent;
}

.center-thumb {
    width: 200px !important;  /* Größer! */
    height: 120px !important;
    transform: scale(1.1);  /* Optional: Noch etwas heben */
    border-color: #7f5729;  /* Rahmen zur Hervorhebung */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);  /* Schatten für 3D-Effekt */
}

.thumb:hover {
    transform: scale(1.05);
    border-color: #007bff;
}

.img-caption {
    width: 100%;
    text-align: center;
    margin: 0px;
}
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

#overlay-img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(255,255,255,0.3);
}

#overlay-close, #overlay-prev, #overlay-next {
    position: fixed;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    top: 20px;
z-index: 1001;
}

#overlay-close { right: 20px; }
#overlay-prev { left: 20px; }
#overlay-next { right: 70px; }

#overlay-prev, #overlay-next, #overlay-close {
z-index: 1002;  /* Höher als Overlay */
}

/* Galerie Ende */

/* Tag-Cloud für Aktivitäten */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.8rem;
    justify-content: center;
    align-items: center;
    line-height: 1.5;
}

.tag-cloud-tag {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    padding: 0.15rem 0.4rem;
    border-radius: 0.4rem;
    transition: transform 0.15s ease, color 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.tag-cloud-tag:hover {
    background: rgba(0, 0, 0, 0.06);
    transform: scale(1.08);
}

/* Verschiedene Schriftarten für Tags */
.tag-cloud-tag.font-1 { font-family: 'Georgia', serif; }
.tag-cloud-tag.font-2 { font-family: 'Arial', sans-serif; }
.tag-cloud-tag.font-3 { font-family: 'Courier New', monospace; }
.tag-cloud-tag.font-4 { font-family: 'Verdana', sans-serif; }
.tag-cloud-tag.font-5 { font-family: 'Times New Roman', serif; }
.tag-cloud-tag.font-6 { font-family: 'Trebuchet MS', sans-serif; }
.tag-cloud-tag.font-7 { font-family: 'Palatino Linotype', serif; }
.tag-cloud-tag.font-8 { font-family: 'Comic Sans MS', cursive; }

/* Videos im Karussell gleich wie Bilder behandeln */
.galerie-thumbs video {
    width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 0.4rem;
}

.galerie-thumbs video.active {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Tag-Cloud für Aktivitäten Ende */

p.medien {
    border: 1px dashed darkgreen;
    padding: 10px;
    border-radius: 5px;
}

fieldset p {
    margin: 10px 0 0;
}
fieldset, details {
    border: 1px dashed darkgreen;
    padding: 5px 10px 5px 5px;
    margin: 0px 0px 10px;
    border-radius: 10px;
}
legend {
    padding: 0.3em 0.3em 0.1em;
    font-weight: bold;
    border: 1px solid #7e5629;
    border-radius: 10px;
    background: #dd9933;
    color: #ffef8e;
}

summary {
    cursor: pointer;
    font-weight: bold;
    padding: 0.5rem;
}
details img {
    float: right;
}

#zitate .zitat,
#zitate .autor {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}
#zitate.fade-out .zitat,
#zitate.fade-out .autor {
    opacity: 0;
}

/* Anführungszeichen für Tickerinhalt positionieren */
.ticker-inhalt {
    display: inline;
}

.ticker-inhalt p {
    margin-top: 0;
    margin-bottom: 0;
}

.koordinaten-block {
    margin: 1em 0;
    padding: 1em;
    background: #f9f9f9;
    border-radius: 4px;
}

/* Radio-Button in edit.php */
.radio-zeile {
    margin: 0.5em 0;
}

.radio-zeile input[type="radio"] {
    margin-right: 0.5em;
}

.input-zeile {
    margin: 1em 0;
}

.input-zeile input[disabled] {
    background: #e0e0e0;
    cursor: not-allowed;
}

/* ============================================================
 * Mobile Anpassungen für index.htm
 * ============================================================ */

@media screen and (max-width: 768px) {

    /*
     * Grundlayout
     */

    html {
        overflow-x: hidden;
    }

    body.infos {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 0.75rem;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    body.infos h1 {
        font-size: 1.6rem;
        line-height: 1.2;
        margin: 1rem 0;
        text-align: center;
    }


    /*
     * Header und Navigation
     */

    .site-header {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 3rem;
        box-sizing: border-box;
    }

    /* Desktop-Menü mobil ausblenden */
    .desktop-nav {
        display: none;
    }

    /* Burger links */
    #burger {
        display: block;
        position: static;
        order: 1;
        margin: 0;
        padding: 0.35rem 0.55rem;
        font-size: 1.5rem;
        line-height: 1;
        cursor: pointer;
        border: 0;
        background: transparent;
    }

    /* Flaggen rechts */
    .lang-flags {
        position: static;
        order: 2;
        display: flex;
        align-items: center;
        gap: 0.4rem;
        margin-left: auto;
    }

    /* Mobile-Menü zunächst verborgen */
    .mobile-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        margin-top: 0.25rem;
        padding: 0.5rem;
        background: #ffef8e;
        border: 1px solid #805729;
        border-radius: 0.5rem;
        box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.25);
    }

    /* Mobile-Menü anzeigen, wenn geöffnet */
    .mobile-nav.open {
        display: flex;
        flex-direction: column;
    }

    .mobile-nav a {
        display: block;
        /* padding: 0.7rem 0.5rem; */
        border-bottom: 1px solid rgba(128, 87, 41, 0.35);
    }

    .mobile-nav a:last-child {
        border-bottom: 0;
    }


    /*
     * Überschriften und obere Links
     */

    .section-heading {
        position: relative;
        margin: 1.25rem 0 0.5rem;
        padding: 0 0rem 0 0;
    }

    .section-heading h2 {
        margin: 0;
        font-size: 1.25rem;
        line-height: 1.25;
    }

    .section-heading p {
        margin: 0.5rem 0;
        line-height: 1.4;
    }

        /*
        position: absolute;
        top: 0;
        right: 0;
        padding: 0.1rem 0.35rem;
    }
*/
    .mittig {
        text-align: center;
    }


    /*
     * Kartenbereich
     */

    .map-header {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        padding: 0 0.25rem;
    }

    #map {
    width: 100% !important;
    height: 260px;
    min-height: 220px;
    border-radius: 10px;
    }

    #route-info {
    max-width: 100%;
    overflow-wrap: anywhere;
    }


    /*
     * Allgemeine Boxen
     */

    #dauer,
    #galerie,
    #kalender,
    #aktivität,
    #medien,
    #kontakt,
    #kosten,
    #statistik,
    #notfall,
    #ticker,
    #wetter,
    #zitate {
    width: 100%;
    max-width: 100%;
    margin: 0.75rem 0;
    padding: 0.85rem;
    box-sizing: border-box;
    border-radius: 10px;
    }

    #dauer,
    #galerie,
    #kalender,
    #aktivität,
    #medien,
    #ticker {
    overflow-wrap: anywhere;
    }

    p {
        overflow-wrap: anywhere;
    }


    /*
     * Wetter
     */

    .wetter-inhalt {
        display: flex;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .wetter-inhalt img {
        width: 55px;
        height: 55px;
        flex: 0 0 55px;
    }

    .wetter-inhalt div {
        min-width: 0;
    }


    /*
     * Galerie
     */

    #galerie {
    display: flex;
    flex-direction: column;
    align-items: center;
    }

    .galerie-carousel {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .galerie-prev,
    .galerie-next {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        font-size: 1.5rem;
    }

    .galerie-thumbs {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        min-width: 0;
        max-width: 100%;
        padding: 0.4rem 0.1rem;
        overflow: hidden;
    }

    .galerie-thumbs img,
    .galerie-thumbs .thumb {
        width: 62px !important;
        height: 62px !important;
        flex: 0 0 62px;
        object-fit: cover;
        border-radius: 6px;
    }

    .galerie-thumbs img.center-thumb,
    .galerie-thumbs .center-thumb {
        width: 105px !important;
        height: 75px !important;
        flex-basis: 105px;
        transform: none;
    }

    .galerie-thumbs img:hover,
    .thumb:hover {
        transform: none;
    }

    .galerie-ohne-karussell {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem;
        width: 100%;
    }

    .galerie-ohne-karussell .thumb {
        width: 78px !important;
        height: 65px !important;
        flex: 0 0 78px;
    }

    .galerie-ohne-karussell .center-thumb {
        width: 105px !important;
        height: 75px !important;
        flex-basis: 105px;
    }

    .img-caption {
        max-width: 100%;
        overflow-wrap: anywhere;
    }


    /*
     * Vollbild-Overlay
     */

    .overlay {
        padding: 0.5rem;
        box-sizing: border-box;
    }

    #overlay-media,
    #overlay-img {
    max-width: 92vw;
    max-height: 82vh;
    }

    #overlay-close,
    #overlay-prev,
    #overlay-next {
    font-size: 1.8rem;
    padding: 0.35rem 0.55rem;
    }

    #overlay-close {
    top: 0.5rem;
    right: 0.5rem;
    }

    #overlay-prev {
    left: 0.35rem;
    }

    #overlay-next {
    right: 0.35rem;
    }


    /*
     * Fieldsets, Legenden und Details
     */

    fieldset,
    details {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0.5rem 0.65rem;
        margin: 0 0 0.75rem;
    }

    legend {
        max-width: 90%;
        box-sizing: border-box;
        padding: 0.25rem 0.4rem;
        font-size: 0.9rem;
        overflow-wrap: anywhere;
    }

    fieldset p {
        margin: 0.5rem 0 0;
    }


    /*
     * Ticker
     */

    #ticker .ticker-eintrag {
    min-width: 0;
    }

    #ticker .ticker-eintrag h3 {
    margin-top: 0.5rem;
    font-size: 1.1rem;
    overflow-wrap: anywhere;
    }

    #ticker .ticker-inhalt {
    display: inline;
    overflow-wrap: anywhere;
    }

    #ticker .ticker-inhalt p {
    display: inline;
    margin: 0;
    }


    /*
     * Langer Medien- und HTML-Inhalt
     */

    #medien img,
    #medien video,
    #ticker img,
    #ticker video,
    #kalender img,
    #kalender video {
    max-width: 100%;
    height: auto;
    }

    #medien iframe,
    #ticker iframe {
    max-width: 100%;
    }


    /*
     * Footer
     */

    footer {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;

        width: 100%;
        box-sizing: border-box;
        padding: 1rem 0.5rem;
        text-align: center;
    }

    #stand {
    flex-basis: 100%;
    }
}
