/*
 * ============================================================
 * MFC-Schlierbach e.V. - user.css
 * ============================================================
 *
 * Enthält nur noch:
 * - Header mit Logo + Vereinsname
 * - Webcam / Zeitraffer responsiv und verbreitert
 * - Vollbildfunktion der Webcam
 * - Hinweis "Klick auf das Bild für Vollbild"
 * - Tablet- und Smartphone-Anpassungen
 *
 * ENTFERNT:
 * - Windprognose
 * - dynamischer Windsack
 * - Wind-/Wetter-Icon
 * - zusätzlicher Platz für Windbox
 *
 * ARI Image Slider:
 *   ID 94 = Webcam / Zeitraffer
 *   ID 95 = aktuelles Webcam-Bild
 * ============================================================
 */

/* ============================================================
   HEADER - LOGO + VEREINSNAME
   ============================================================ */

.header .brand {
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    text-decoration: none !important;
}

.header .brand img {
    width: 120px !important;
    max-width: 120px !important;
    height: auto !important;
    display: block !important;
    flex: 0 0 120px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.header .brand::after {
    content: "MFC-Schlierbach e.V.";
    display: block;
    font-size: 36px;
    line-height: 1.1;
    font-weight: 400;
    color: #002b49;
    white-space: nowrap;
}

/* ============================================================
   WEBCAM + ZEITRAFFER
   ============================================================ */

#ais_94_wrapper,
#ais_95_wrapper {
    width: 134% !important;
    max-width: none !important;
    height: auto !important;

    margin-top: 20px !important;
    margin-right: 0 !important;
    margin-bottom: 55px !important;
    margin-left: 0 !important;

    overflow: visible !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* ============================================================
   ARI / NIVO SLIDER
   ============================================================ */

#ais_94.ari-image-slider.nivoSlider,
#ais_95.ari-image-slider.nivoSlider {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    aspect-ratio: 32 / 9;
    margin: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* ============================================================
   WEBCAM-BILDER
   ============================================================ */

#ais_94 img,
#ais_94 img.ari-image-slider-image,
#ais_94 img.nivo-main-image,
#ais_95 img,
#ais_95 img.ari-image-slider-image,
#ais_95 img.nivo-main-image {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    box-sizing: border-box !important;
}

#ais_94_wrapper img,
#ais_95_wrapper img {
    max-width: 100% !important;
}

/* ============================================================
   NIVO-ANIMATIONSELEMENTE
   ============================================================ */

#ais_94 .nivo-slice,
#ais_94 .nivo-box,
#ais_95 .nivo-slice,
#ais_95 .nivo-box {
    max-width: 100% !important;
    overflow: hidden !important;
}

/* ============================================================
   ALTE / DYNAMISCHE WIND-ELEMENTE SICHER AUSBLENDEN
   ============================================================ */

.mfc-wind-overlay,
.mfc-camera-wind-direction,
.mfc-wind-overlay__title,
.mfc-wind-overlay__content,
.mfc-wind-overlay__icon,
.mfc-wind-overlay__svg,
.mfc-wind-overlay__values,
.mfc-wind-overlay__dir,
.mfc-wind-overlay__speed,
.mfc-wind-overlay__gust,
.mfc-wind-overlay__meta {
    display: none !important;
}

#ais_94_wrapper::before,
#ais_94_wrapper::after,
#ais_95_wrapper::before,
#ais_95_wrapper::after {
    content: none !important;
    display: none !important;
}

/* ============================================================
   HINWEIS ZUM VOLLBILD
   ============================================================ */

.mfc-webcam-zoom-hint {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 0 !important;

    display: flex !important;
    align-items: center !important;
    gap: 6px !important;

    padding: 6px 10px !important;
    border-radius: 6px !important;
    background: rgba(240, 244, 248, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #52606d !important;

    font-size: 12px !important;
    line-height: 1.2 !important;

    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
    pointer-events: none !important;
    z-index: 80 !important;
    box-sizing: border-box !important;
}

.mfc-webcam-zoom-hint__icon {
    font-size: 17px !important;
    line-height: 1 !important;
    color: #337ab7 !important;
}

/* ============================================================
   ZEITRAFFER / AKTUELLES BILD
   ============================================================ */

.webcam-switch {
    width: 134% !important;
    max-width: none !important;

    margin-top: 20px !important;
    margin-right: 0 !important;
    margin-bottom: 30px !important;
    margin-left: 0 !important;

    text-align: center !important;
    font-size: 28px !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
    box-sizing: border-box !important;
}

.webcam-switch a {
    text-decoration: none !important;
}

/* ============================================================
   WEBCAM ANKLICKBAR
   ============================================================ */

#ais_94.mfc-webcam-clickable,
#ais_95.mfc-webcam-clickable {
    cursor: zoom-in;
}

/* ============================================================
   WEBCAM VOLLBILD
   ============================================================ */

.mfc-webcam-fullscreen {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
    background: rgba(0, 0, 0, 0.96);
    z-index: 999999;
    box-sizing: border-box;
    cursor: zoom-out;
}

.mfc-webcam-fullscreen__image {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: contain !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

.mfc-webcam-fullscreen__close {
    position: fixed;
    top: 18px;
    right: 22px;

    width: 46px;
    height: 46px;
    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.40);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;

    font-size: 34px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 1000000;
}

.mfc-webcam-fullscreen__close:hover {
    background: rgba(255, 255, 255, 0.18);
}

.mfc-webcam-fullscreen__hint {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);

    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.55);
    color: rgba(255, 255, 255, 0.80);
    font-size: 12px;
    white-space: nowrap;
}

body.mfc-webcam-fullscreen-open {
    overflow: hidden !important;
}

/* ============================================================
   TABLET / KLEINERE DESKTOPS
   ============================================================ */

@media (max-width: 979px) {
    .header .brand {
        gap: 12px !important;
    }

    .header .brand img {
        width: 90px !important;
        max-width: 90px !important;
        flex: 0 0 90px !important;
    }

    .header .brand::after {
        font-size: 28px;
        white-space: normal;
    }

    #ais_94_wrapper,
    #ais_95_wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 55px !important;
    }

    .webcam-switch {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ============================================================
   SMARTPHONE
   ============================================================ */

@media (max-width: 600px) {
    .header .brand {
        gap: 10px !important;
        align-items: center !important;
    }

    .header .brand img {
        width: 70px !important;
        max-width: 70px !important;
        flex: 0 0 70px !important;
    }

    .header .brand::after {
        font-size: 21px;
        line-height: 1.1;
        white-space: normal;
    }

    #ais_94_wrapper,
    #ais_95_wrapper {
        margin-top: 15px !important;
        margin-bottom: 50px !important;
    }

    .mfc-webcam-zoom-hint {
        top: calc(100% + 8px) !important;
        padding: 5px 7px !important;
        font-size: 10px !important;
    }

    .mfc-webcam-zoom-hint__icon {
        font-size: 14px !important;
    }

    .webcam-switch {
        width: 100% !important;
        margin-top: 18px !important;
        margin-bottom: 22px !important;
        font-size: 22px !important;
    }

    .mfc-webcam-fullscreen {
        padding: 0;
    }

    .mfc-webcam-fullscreen__close {
        top: 10px;
        right: 10px;
        width: 42px;
        height: 42px;
        font-size: 30px;
        line-height: 36px;
    }

    .mfc-webcam-fullscreen__hint {
        bottom: 10px;
        font-size: 10px;
    }
}