/* --------------------------------------------------
    GRUNDLAYOUT
    -------------------------------------------------- */

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.button {
    display: inline-block;
    margin: 0;
    background-color: #b57a3f;  /* Hintergrund */
    color: #ffffff;             /* Schrift */
    border-radius: 25px;         /* Rundung */
    padding: 12px 20px;         /* Höhe/Größe */
}

#karte {
    width: 100%;
    height: 700px;
}

/* --------------------------------------------------
    EIGENER MARKER
    -------------------------------------------------- */

.mein-marker {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

/* --------------------------------------------------
    POPUP
    -------------------------------------------------- */

.beitrags-popup {
    width: 280px;
}

.beitrags-popup img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.beitrags-popup h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.beitrags-popup p {
    margin: 0 0 12px 0;
    font-size: 14px;
    line-height: 1.5;
}

.beitrags-popup a {
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

.beitrags-popup a:hover {
    color: #e8ddc7;
}

/* TOGGLE Schalter */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-toggle {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background-color: #ccc;
    border-radius: 26px;
    transition: 0.2s;
}

.slider-toggle::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.2s;
}

/* ON */
.switch input:checked + .slider-toggle {
    background-color: #8C4A32;
}

.switch input:checked + .slider-toggle::before {
    transform: translateX(24px);
}

/* Optional: deaktivierten Range-Slider optisch kennzeichnen */
#slider:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#slider {
    accent-color: #8C4A32;
}

.map-container {
    position: relative;
}

/* Deaktivierter Zustand */
.map-container.inactive #karte {
    filter: saturate(65%) brightness(85%);
}

.map-overlay {
    position: absolute;
    inset: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;

    transition: opacity 0.3s ease;
}

/* Der eigentliche Hinweis */
.map-overlay-content {
    padding: 14px 22px;
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);

    text-align: center;
    color: #333;

    font-size: 15px;
    font-weight: 600;

    user-select: none;
}

.map-overlay-content::before {
    content: "🖱️";
    display: block;
    margin-bottom: 6px;
    font-size: 24px;
}

.map-overlay-content span {
    display: block;
    margin-top: 3px;

    font-size: 12px;
    font-weight: 400;
    color: #777;
}

/* Aktiviert → Overlay weg */
.map-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}
