/* livewind.ch – Karte & UI
   Farben: Wasser-Blau #185FA5 (Marke), Hellblau #85B7EB (Akzent),
   Windskala 3 (Monochrom Blau) siehe livewind.js */

.lw-app {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    border-radius: 14px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---- Header: live weiss, wind hellblau, Wind-Icon vorne ---- */
.lw-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #0C447C;
    color: #fff;
    z-index: 1001;
    position: relative;
}
.lw-logo-icon { width: 24px; height: 24px; color: #85B7EB; flex-shrink: 0; }
.lw-logo { font-size: 19px; font-weight: 600; letter-spacing: -0.3px; color: #fff; white-space: nowrap; }
.lw-logo em { font-style: normal; color: #85B7EB; }

.lw-header .lw-search,
input.lw-search {
    flex: 1;
    min-width: 0;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: #fff;
    padding: 8px 18px;
    font-size: 14px;
    outline: none;
}
.lw-header .lw-search::placeholder,
input.lw-search::placeholder { color: #B5D4F4; }
.lw-header .lw-search:focus,
input.lw-search:focus { background: rgba(255, 255, 255, 0.2); border-color: #85B7EB; }

/* Burgermenue aus drei Wellen */
.lw-burger {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
}
.lw-burger:hover,
.lw-burger:focus,
.lw-burger:active { background: transparent; }
.lw-burger:focus { outline: none; }
.lw-burger:focus-visible { outline: 2px solid #378ADD; outline-offset: 2px; border-radius: 8px; }
.lw-burger svg { width: 26px; height: 20px; transition: color 0.15s; overflow: visible; }
.lw-burger:hover svg { color: #85B7EB; }
@media (prefers-reduced-motion: no-preference) {
    .lw-burger:hover svg path,
    .lw-burger:focus-visible svg path { animation: lw-burger-wave 1.1s ease-in-out infinite; }
    .lw-burger:hover svg path:nth-child(2),
    .lw-burger:focus-visible svg path:nth-child(2) { animation-delay: 0.12s; }
    .lw-burger:hover svg path:nth-child(3),
    .lw-burger:focus-visible svg path:nth-child(3) { animation-delay: 0.24s; }
}
@keyframes lw-burger-wave {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-2px); }
}

.lw-menu[hidden] {
    display: none !important;
}
.lw-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #0C447C;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 14px 28px rgba(4, 44, 83, 0.35);
    padding: 6px 8px 10px;
    display: flex;
    flex-direction: column;
    min-width: 230px;
    z-index: 1002;
}
.lw-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
}
.lw-menu a svg { width: 18px; height: 18px; flex: 0 0 auto; }
.lw-menu a:hover { background: #185FA5; }
.lw-menu-sep { height: 1px; background: rgba(255, 255, 255, 0.18); margin: 6px 10px; }
.lw-menu a.lw-menu-small { font-size: 13px; color: #B5D4F4; padding: 7px 14px; }
.lw-menu a.lw-menu-small:hover { color: #FFFFFF; background: #185FA5; }
.lw-menu-premium { font-weight: 600; color: #85B7EB !important; }

/* 404-Seite */
body.lw-404 { margin: 0; background: #F4F8FC; }
.lw-404-main {
    min-height: calc(100vh - 60px - var(--lw-footer-h, 54px));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 20px calc(var(--lw-footer-h, 54px) + 32px);
}
.lw-404-icon { width: 88px; height: 68px; color: #85B7EB; }
.lw-404-main h1 { color: #0C447C; font-size: 30px; margin: 22px 0 10px; }
.lw-404-main p { color: #6b7a8d; font-size: 16px; max-width: 560px; margin: 0; line-height: 1.6; }
.lw-404-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
a.lw-404-btn { background: #185FA5; color: #fff; padding: 10px 22px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 600; }
a.lw-404-btn:hover { background: #0C447C; color: #fff; }
a.lw-404-btn-light { background: #E6F1FB; color: #0C447C; }
a.lw-404-btn-light:hover { background: #B5D4F4; color: #0C447C; }

/* ---- Karte ---- */
#lw-map { flex: 1; width: 100%; z-index: 1; background: #E6F1FB; }
.lw-arrow svg { filter: drop-shadow(0 1px 1px rgba(4, 44, 83, 0.3)); }
.lw-arrow, .lw-spot-pin { background: none; border: none; }

/* ---- Legende (Windskala 3) ---- */
.lw-legend {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(4, 44, 83, 0.25);
    z-index: 1000;
    font-size: 11px;
}
.lw-legend span {
    background: var(--c);
    color: var(--t);
    padding: 4px 9px;
    font-weight: 500;
    white-space: nowrap;
}

/* ---- Popups ---- */
.leaflet-popup-content-wrapper { border-radius: 12px; }
.lw-popup h3 { margin: 0 0 8px; font-size: 15px; color: #0C447C; }
.lw-vals { display: flex; gap: 14px; margin-bottom: 10px; align-items: flex-end; }
.lw-vals > div { display: flex; flex-direction: column; }
.lw-num { font-size: 19px; font-weight: 600; color: #042C53; line-height: 1.1; }
.lw-unit { font-size: 11px; color: #6b7a8d; }
.lw-muted { font-size: 11px; color: #6b7a8d; margin: 4px 0 0; }
.lw-spark { display: block; border-radius: 4px; background: #F4F8FC; }
.lw-actions { margin: 6px 0 0; }

.lw-btn {
    display: inline-block;
    background: #185FA5;
    color: #fff !important;
    border-radius: 18px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}
.lw-btn:hover { background: #0C447C; }
button.lw-btn { display: inline-block !important; width: auto !important; border: 0 !important; cursor: pointer; background: #185FA5 !important; color: #fff !important; border-radius: 18px !important; padding: 6px 14px !important; font-size: 12px !important; font-weight: 600 !important; line-height: normal !important; }
button.lw-btn:hover { background: #0C447C !important; color: #FFFFFF !important; }
.lw-btn-ghost { background: #E6F1FB; color: #185FA5 !important; }
.lw-btn-ghost:hover { background: #B5D4F4; }

/* Premium-Sperre im Popup */
.lw-lock {
    background: #F4F8FC;
    border: 1px dashed #85B7EB;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}
.lw-lock p { margin: 0 0 8px; font-size: 12px; color: #0C447C; font-weight: 500; }

/* ---- Theme-Header auf livewind-Seiten ausblenden (eigene Navi) ---- */
.lw-app-page .site-header,
.lw-app-page .entry-header,
.lw-app-page .page-header {
    display: none;
}

/* ---- Standalone-Header (Finder-Seite): volle Breite wie auf der Karte ---- */
.lw-header-standalone {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: 100vw;
    border-radius: 0;
    margin: 0 0 22px;
}
body.lw-app-page { overflow-x: hidden; }
body.lw-app-page .site-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
body.lw-app-page .entry-content { margin-top: 0; }

/* ---- Detail-Modal ---- */
.lw-modal {
    position: fixed;
    inset: 0;
    background: rgba(4, 44, 83, 0.45);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.lw-modal[hidden] { display: none; }
.lw-modal-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 22px 24px;
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    overflow: auto;
    box-shadow: 0 12px 40px rgba(4, 44, 83, 0.35);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.lw-modal-card h3 { margin: 0 0 12px; font-size: 16px; color: #0C447C; }
.lw-modal-close,
.lw-modal-fs {
    position: absolute;
    top: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E6F1FB;
    border: none;
    border-radius: 8px;
    color: #185FA5;
    cursor: pointer;
    padding: 0;
}
.lw-modal-close { right: 12px; font-size: 20px; line-height: 1; }
.lw-modal-fs { right: 50px; }
.lw-modal-close:hover,
.lw-modal-fs:hover { background: #B5D4F4; }
.lw-modal-fs:hover { color: #0C447C; }
.lw-modal-card.lw-full {
    max-width: 96vw;
    width: 96vw;
    max-height: 94vh;
}
.lw-hint { color: #185FA5; }

/* ---- Einstellungen ---- */
.lw-settings-btn a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #fff;
}
.lw-settings-panel {
    position: absolute;
    top: 12px;
    right: 56px;
    z-index: 1000;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(4, 44, 83, 0.25);
    padding: 14px 16px;
    width: 240px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.lw-settings-panel[hidden] { display: none; }
.lw-settings-panel h4 {
    margin: 0 0 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #5f6e80;
}
.lw-settings-panel h4 + .lw-seg { margin-bottom: 14px; }
.lw-seg-panel {
    display: flex;
    background: #E6F1FB;
    border-radius: 12px;
    padding: 3px;
    flex-wrap: wrap;
}
.lw-seg-panel button {
    flex: 1;
    border: none;
    background: none;
    padding: 6px 8px;
    border-radius: 9px;
    font-size: 12px;
    color: #185FA5;
    cursor: pointer;
    white-space: nowrap;
}
.lw-seg-panel button.is-active {
    background: #185FA5;
    color: #fff;
}
.lw-settings-panel .lw-muted { font-size: 11px; margin: 0; }

/* ---- Toast ---- */
.lw-toast {
    position: absolute;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    background: #0C447C;
    color: #fff;
    font-size: 13px;
    padding: 9px 18px;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(4, 44, 83, 0.3);
    z-index: 1200;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    white-space: nowrap;
}
.lw-toast[hidden] { display: none; }

/* ---- Popup-Zahlen: kompakter, nichts wird abgeschnitten ---- */
.lw-vals { display: flex; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; align-items: flex-end; }
.lw-num { font-size: 17px; font-weight: 600; color: #042C53; line-height: 1.15; white-space: nowrap; }
.lw-num-dir { font-size: inherit; letter-spacing: -0.3px; }
.lw-vals { display: flex; gap: 14px; margin-bottom: 10px; flex-wrap: nowrap; align-items: flex-end; }
.lw-dir { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; flex: 0 0 auto; }
.lw-compass { flex-shrink: 0; }

/* Zeitraum-Buttons im Verlauf-Detail */
.lw-range { margin: 0 0 12px; }
.lw-range button { padding: 6px 10px; }

/* ---- Detail-Chart: Hover ---- */
.lw-detail-wrap { position: relative; }
.lw-detail-svg { display: block; }
.lw-tip {
    position: absolute;
    top: -4px;
    background: #0C447C;
    color: #fff;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 8px;
    white-space: nowrap;
    pointer-events: none;
}
.lw-tip[hidden] { display: none; }

/* ---- Tage-Regler im Prognose-Detail ---- */
.lw-days { margin: 0 0 12px; }
.lw-days label { display: block; font-size: 13px; color: #0C447C; margin-bottom: 6px; }
.lw-days strong { color: #185FA5; }
.lw-days input { width: 100%; accent-color: #185FA5; }

/* ---- Wellen-Footer: 5 Ziele, alle Groessen, websiteweit ---- */
:root { --lw-footer-h: calc(54px + env(safe-area-inset-bottom, 0px)); }
.lw-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1400;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.lw-footer-wave { display: block; width: 100%; height: 18px; margin-bottom: -1px; position: relative; overflow: hidden; }
.lw-footer-wave .lw-wave { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; display: block; }
@media (prefers-reduced-motion: no-preference) {
    .lw-wave-1 { animation: lw-wave-drift 21s linear infinite; animation-delay: -8s; }
    .lw-wave-2 { animation: lw-wave-drift 13s linear infinite reverse; animation-delay: -3s; }
    .lw-wave-3 { animation: lw-wave-drift 29s linear infinite; animation-delay: -17s; }
}
@keyframes lw-wave-drift {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.lw-footer-bar {
    background: #0C447C;
    display: flex;
    justify-content: center;
    gap: 34px;
    padding: 7px calc(16px + env(safe-area-inset-right, 0px)) calc(9px + env(safe-area-inset-bottom, 0px)) calc(16px + env(safe-area-inset-left, 0px));
}
.lw-footer-bar a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #85B7EB;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.2;
    padding: 3px 2px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s;
}
.lw-footer-bar a svg { width: 18px; height: 18px; flex: 0 0 auto; }
.lw-footer-bar a:hover { color: #FFFFFF; }
.lw-footer-bar a.is-active { color: #FFFFFF; font-weight: 600; }
.lw-footer-bar a.is-active span { border-bottom: 2px solid #85B7EB; padding-bottom: 2px; margin-bottom: -4px; }

/* Karte: Legende + Leaflet-Attribution ueber den fixen Footer heben */
.lw-app .lw-legend { bottom: calc(var(--lw-footer-h) + 12px); }
.lw-app .leaflet-bottom { bottom: var(--lw-footer-h); }

/* Inhalt endet nicht hinter dem Footer (Karte = 100vh, ausgenommen) */
body:not(.home) { padding-bottom: calc(var(--lw-footer-h) + 16px); }

/* Kein Leerraum zwischen lw-Header und App-Inhalt (z. B. Finder) */
body.lw-app-page .site-content,
body.lw-app-page .site-main,
body.lw-app-page .site,
body.lw-app-page .inside-article { margin-top: 0; padding-top: 0; }
body.lw-app-page .site-main > article { margin-top: 0; background: transparent; border: 0; }
body.lw-app-page .inside-article { padding: 0; }

/* Suchformular im globalen Header (WP-Seiten) verhaelt sich wie das Suchfeld */
.lw-search-form { flex: 1 1 auto; display: flex; min-width: 0; }
.lw-search-form .lw-search { width: 100%; }

@media (max-width: 782px) {
    :root { --lw-footer-h: 64px; }
    .lw-footer-bar {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 0;
        padding: 6px calc(2px + env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) calc(2px + env(safe-area-inset-left, 0px));
    }
    .lw-footer-bar a {
        flex-direction: column;
        justify-content: flex-start;
        gap: 3px;
        font-size: 11px;
        padding: 5px 1px 2px;
        border-bottom: none;
    }
    .lw-footer-bar a svg { width: 20px; height: 20px; }
}


/* ---- Mobile ---- */
@media (max-width: 600px) {
    .lw-logo { display: none; }
    .lw-legend { font-size: 10px; }
    .lw-legend span { padding: 3px 6px; }
}

/* ---- Spot-Finder ---- */
.lw-finder {
    max-width: 680px;
    margin: 0 auto;
    padding: 8px 0 32px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.lw-finder-controls {
    background: #E6F1FB;
    border-radius: 16px;
    padding: 22px 24px;
    margin-bottom: 18px;
}
.lw-finder-row { margin-bottom: 16px; }
.lw-finder-row:last-child { margin-bottom: 0; }
.lw-finder-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 14px;
    color: #0C447C;
    margin-bottom: 10px;
}
.lw-finder-label strong { color: #185FA5; font-size: 20px; }
#lw-threshold {
    width: 100%;
    accent-color: #185FA5;
    height: 6px;
}
.lw-finder-scale {
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 10px;
    font-size: 10px;
    text-align: center;
}
.lw-finder-scale span { flex: 1; padding: 3px 0; }
.lw-finder-toggles {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
}
.lw-seg {
    display: inline-flex;
    background: #fff;
    border-radius: 20px;
    padding: 3px;
}
.lw-seg button {
    border: none;
    background: none;
    padding: 7px 16px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    color: #185FA5;
    cursor: pointer;
}
.lw-seg button.is-active {
    background: #185FA5;
    color: #fff;
}
.lw-finder-count {
    font-size: 13px;
    color: #5f6e80;
    margin: 0 6px 12px;
}
.lw-finder-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.lw-finder-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #E6F1FB;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, transform 0.1s;
}
.lw-finder-item:hover {
    border-color: #85B7EB;
    transform: translateY(-1px);
}
.lw-finder-arrow { flex-shrink: 0; display: flex; }
.lw-finder-name {
    flex: 1;
    font-size: 15px;
    color: #0C447C;
    font-weight: 500;
}
.lw-finder-lake {
    font-size: 11px;
    font-weight: 500;
    color: #185FA5;
    background: #E6F1FB;
    border-radius: 10px;
    padding: 2px 8px;
    margin-left: 6px;
    vertical-align: 1px;
}
.lw-finder-vals {
    text-align: right;
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}
.lw-finder-vals strong { font-size: 17px; color: #042C53; }
.lw-finder-vals .lw-muted { font-size: 12px; }

/* Schwellen-Eingabe im Einstellungen-Panel */
.lw-settings-panel .lw-thr {
    width: 100%;
    border: 1px solid #B5D4F4;
    border-radius: 10px;
    padding: 7px 10px;
    font-size: 13px;
    color: #0C447C;
    margin-bottom: 12px;
}

.lw-meas { margin: -4px 0 10px; font-size: 11px; }

/* Kompass als vierte Spalte, vertikal eingemittet */
.lw-dir-ico { align-self: center; display: flex; }
.lw-modal-card h3 { cursor: move; user-select: none; }

/* ---- Spot-Popup im Kachel-Stil ---- */
.lw-popup-spot .lw-spot-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.lw-popup-spot h3 { margin: 0; }
.lw-spot-live { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 4px 9px; white-space: nowrap; }
.lw-spot-live svg { display: block; }
.lw-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.lw-chip { font-size: 11px; color: #0C447C; background: #E6F1FB; border-radius: 999px; padding: 3px 9px; }

/* ---- Ebenen-Pins & Favoriten-Sterne ---- */
.lw-cam-pin { background: none; border: none; }
button.lw-fav-btn, button.lw-fav-star {
    background: none;
    border: none;
    padding: 2px 4px;
    font-size: 19px;
    line-height: 1;
    color: #D3DEE9;
    cursor: pointer;
    flex: 0 0 auto;
}
button.lw-fav-btn:hover, button.lw-fav-star:hover { background: none; color: #F5A93B; }
button.lw-fav-btn.is-fav, button.lw-fav-star.is-fav { color: #F5A93B; }
.lw-finder-item button.lw-fav-star { margin-left: 8px; }

/* ---- Popup "Zeitstrahl": So war's -> Jetzt -> So kommt's ---- */
.lw-sec { margin: 12px 0 6px; font-size: 13px; font-weight: 600; color: #0C447C; }
.lw-sec span { font-weight: 400; color: #6b7a8d; }
.lw-spot-head + .lw-sec { margin-top: 10px; }
.lw-now { background: #E6F1FB; border-radius: 10px; padding: 8px 10px 10px; margin: 10px 0 4px; }
.lw-now .lw-sec { margin: 0 0 6px; }
.lw-now .lw-vals { margin-bottom: 0; }
.lw-note { margin: 10px 0 0; font-size: 11px; color: #6b7a8d; }

/* ---- Cam-Pin & Popup mit Live-Vorschaubild ---- */
.lw-cam-pin-in { display: flex; align-items: center; justify-content: center; width: 58px; height: 40px; border-radius: 8px; overflow: hidden; background: #0C447C; border: 2px solid #FFFFFF; box-shadow: 0 2px 8px rgba(4, 44, 83, 0.35); }
.lw-cam-pin-in img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lw-cam-pin-in .lw-cam-pin-ico { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.lw-popup-img { width: 100%; max-height: 130px; object-fit: cover; border-radius: 10px; display: block; margin: 2px 0 8px; }

/* ---- Cam-Popup: Panorama laeuft im festen Fenster durch ---- */
.lw-pan-wrap { margin: 2px 0 8px; }
.lw-popup-pan { display: block; width: 264px; height: 190px; overflow: hidden; border-radius: 10px; margin: 0 0 4px; background: #E6F1FB; }
.lw-pan-range { display: block; width: 100%; margin: 0; accent-color: #185FA5; cursor: ew-resize; }
.lw-popup-pan img { height: 100%; width: auto; max-width: none; display: block; animation: lw-pan 45s linear infinite alternate; }
@keyframes lw-pan {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-100% + 264px)); }
}
@media (prefers-reduced-motion: reduce) {
    .lw-popup-pan img { animation: none; }
}

/* ---- Cam-Popup: Aufnahmezeit fett, kaputtes Bild sauber ausblenden ---- */
.lw-cam-taken { margin: 6px 0 2px; font-size: 12px; font-weight: 600; color: #0C447C; }
/* v1.8.95: Faellt ein Bild aus, darf der Cam-Umschalter nicht mitverschwinden -
   sonst kommt man nicht mehr zur funktionierenden Cam zurueck. Nur das Bild
   und die Aufnahmezeit gehen weg, dafuer erscheint ein Hinweis. */
.lw-popup.lw-noimg .lw-popup-pan,
.lw-popup.lw-noimg .lw-pan-range,
.lw-popup.lw-noimg .lw-frame-row,
.lw-popup.lw-noimg .lw-cam-taken { display: none; }
.lw-popup.lw-noimg .lw-pan-wrap::after {
    content: "Diese Cam liefert gerade kein Bild.";
    display: block; padding: 14px 12px; border-radius: 10px; background: #EEF3F8;
    color: #6b7a8d; font-size: 14px; text-align: center;
}

/* ---- Session-Prognose im Finder (Mini-Buddy-Tipp) ---- */
.lw-finder-item { flex-wrap: wrap; }
.lw-sess { display: none; flex-basis: 100%; margin-top: 6px; font-size: 11.5px; font-weight: 500; color: #0C447C; }
.lw-sess.is-on { display: block; }

/* ---- Gruppentitel im Einstellungs-Panel ---- */
.lw-seg .lw-seg-label { flex-basis: 100%; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; color: #6b7a8d; margin: 6px 2px 2px; }
.lw-seg .lw-seg-label:first-child { margin-top: 0; }

/* ---- Such-Vorschlaege ---- */
.lw-search-wrap { position: relative; flex: 1 1 auto; min-width: 0; display: flex; }
.lw-search-wrap .lw-search { width: 100%; }
.lw-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #FFFFFF; border-radius: 12px; box-shadow: 0 8px 24px rgba(4, 44, 83, 0.18); z-index: 1500; max-height: 300px; overflow: auto; padding: 6px; }
.lw-suggest-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: #0C447C; font-size: 14px; }
.lw-suggest-item:hover, .lw-suggest-item.is-hover { background: #E6F1FB; }
.lw-suggest-kind { font-size: 10px; color: #0C447C; background: #E6F1FB; border-radius: 999px; padding: 2px 8px; flex: 0 0 auto; }

.lw-suggest-hint { color: #6b7a8d; }

/* ---- Finder/Favoriten: durchgehend weisse Flaeche bis zum Footer ---- */
body.lw-app-page .lw-finder {
    background: #FFFFFF;
    margin-top: 0;
    min-height: calc(100vh - 120px);
    box-sizing: border-box;
}

/* ---- Favoriten-Kopf im Stil des Mindestwind-Panels ---- */
.lw-fav-head { background: #E6F1FB; border-radius: 16px; padding: 16px 18px; margin: 0 0 14px; }
.lw-fav-head h2 { margin: 0 0 6px; font-size: 18px; color: #0C447C; }
.lw-fav-head .lw-fav-top { margin: 0 0 6px; font-size: 14px; color: #042C53; }
.lw-fav-head .lw-favseg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.lw-fav-head .lw-favseg .lw-seg { box-shadow: 0 2px 8px rgba(4,44,83,0.10); }
.lw-fav-head .lw-fav-hint { margin: 0; font-size: 12px; color: #6b7a8d; }

@media (max-width: 782px) {
    .lw-app .lw-legend { bottom: calc(var(--lw-footer-h) + 40px); }
}

.lw-fav-head .lw-fav-note { font-size: 12px; color: #6b7a8d; font-weight: 400; }


/* Inhaltsseiten (Ueber uns, Impressum, Datenschutz, Unterstuetzen, Spots-Einzelseiten) */
body.lw-content { background: #F4F8FC; }
body.lw-content .site, body.lw-content #page { background: transparent; }
body.lw-content .site-content { padding: 36px 16px calc(var(--lw-footer-h, 54px) + 56px); }
body.lw-content main > article {
    max-width: 720px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(4, 44, 83, 0.12);
    padding: 44px 48px;
}
body.lw-content .entry-title { color: #0C447C; font-size: 30px; line-height: 1.2; margin: 0; }
body.lw-content .entry-title::after {
    content: '';
    display: block;
    width: 36px;
    height: 32px;
    margin-top: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23185FA5' stroke-width='2' stroke-linecap='round'%3E%3Cpath pathLength='40' stroke-dasharray='40' d='M5 8h8.5a2.5 2.5 0 1 0-2.4-3.2'%3E%3Canimate attributeName='stroke-dashoffset' values='40;0;0' keyTimes='0;0.55;1' dur='1.8s' repeatCount='indefinite'/%3E%3C/path%3E%3Cpath pathLength='40' stroke-dasharray='40' d='M3 12h13.5a2.5 2.5 0 1 1-2.4 3.2'%3E%3Canimate attributeName='stroke-dashoffset' values='40;0;0' keyTimes='0;0.55;1' begin='0.15s' dur='1.8s' repeatCount='indefinite'/%3E%3C/path%3E%3Cpath pathLength='40' stroke-dasharray='40' d='M4 16h7.5a2 2 0 1 1-1.9 2.6'%3E%3Canimate attributeName='stroke-dashoffset' values='40;0;0' keyTimes='0;0.55;1' begin='0.3s' dur='1.8s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E") no-repeat left center / contain;
}
@media (prefers-reduced-motion: reduce) {
    body.lw-content .entry-title::after {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23185FA5' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 8h8.5a2.5 2.5 0 1 0-2.4-3.2'/%3E%3Cpath d='M3 12h13.5a2.5 2.5 0 1 1-2.4 3.2'/%3E%3Cpath d='M4 16h7.5a2 2 0 1 1-1.9 2.6'/%3E%3C/svg%3E");
    }
}
body.lw-content .entry-content { color: #042C53; font-size: 16px; line-height: 1.65; margin-top: 22px; }
body.lw-content .entry-content h2,
body.lw-content .entry-content h3 { color: #0C447C; margin: 1.5em 0 0.4em; line-height: 1.25; }
body.lw-content .entry-content h2 { font-size: 21px; }
body.lw-content .entry-content h3 { font-size: 18px; }
body.lw-content .entry-content p { margin: 0.8em 0; }
body.lw-content .entry-content ul { padding-left: 1.2em; margin: 0.8em 0; }
body.lw-content .entry-content li { margin: 0.35em 0; }
body.lw-content .entry-content li::marker { color: #378ADD; }
body.lw-content .entry-content a { color: #185FA5; }
body.lw-content .entry-content a:hover { color: #0C447C; }
.lw-box {
    background: #E6F1FB;
    border-radius: 12px;
    padding: 22px 26px;
    margin: 1.4em 0;
    text-align: center;
}
.lw-box p { margin: 0.5em 0; }
.lw-box img { border-radius: 8px; max-width: 260px; height: auto; }
@media (max-width: 640px) {
    body.lw-content main > article { padding: 28px 20px; border-radius: 12px; }
    body.lw-content .entry-title { font-size: 25px; }
}

/* Heute-Modus im Finder: 30-Min-Schnitt gibt es nur live -> ausgrauen */
.lw-finder-controls.lw-today [data-metric="avg"] {
    opacity: 0.35;
    pointer-events: none;
}
/* Kopfzeile: Modus-Buttons + Schwellwert */
.lw-finder-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.lw-finder-head strong { color: #185FA5; font-size: 20px; white-space: nowrap; }
.lw-seg-range button { font-weight: 600; }
/* Gewitter-Saisonhinweis */
.lw-finder-storm {
    margin: 14px 4px 0;
    font-size: 12.5px;
    color: #6b7a8d;
    text-align: center;
}
/* v1.8.89 Hinweis im Morgen-Modus */
.lw-finder-note { margin: 10px 4px 0; font-size: 12.5px; color: #6b7a8d; text-align: center; }
.lw-seg-lead { font-weight: 600; color: #0C447C; font-size: 13px; margin-right: 8px; align-self: center; }

/* v1.8.89 Logo als Link zur Startseite */
.lw-logo-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; border-radius: 8px; }
.lw-logo-link:hover .lw-logo, .lw-logo-link:focus-visible .lw-logo { opacity: 0.85; }
.lw-logo-link:focus-visible { outline: 2px solid #85B7EB; outline-offset: 3px; }

/* v1.8.89 Bild-Upload im Spot-Melder */
.lw-uploadfield { display: flex; flex-direction: column; gap: 8px; }
.lw-uploadlabel { font-weight: 600; color: #0C447C; font-size: 14px; }
.lw-uploadlabel .lw-muted { font-weight: 400; display: block; }
.lw-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    padding: 22px 16px; border: 2px dashed #B5D4F4; border-radius: 16px; background: #F4F9FE;
    color: #185FA5; font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s; }
.lw-drop:hover, .lw-drop.is-over { border-color: #185FA5; background: #E6F1FB; }
.lw-drop.has-files { border-style: solid; }
.lw-drop svg { width: 30px; height: 30px; color: #378ADD; }
.lw-drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.lw-drop-txt b { font-weight: 700; text-decoration: underline; }
.lw-drop-prev { display: flex; flex-wrap: wrap; gap: 10px; }
.lw-drop-item { margin: 0; width: 84px; }
.lw-drop-item img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; display: block; }
.lw-drop-item figcaption { font-size: 11px; color: #6b7a8d; text-align: center; margin-top: 3px; }
.lw-melder-consent { flex-direction: row !important; align-items: flex-start; gap: 8px !important; font-weight: 400 !important; font-size: 13px; }
.lw-melder-consent input { margin-top: 2px; flex-shrink: 0; }
.lw-consent-req { color: #185FA5; font-weight: 600; }

/* Seiten-Hintergrund (Bild/Video) via Shortcode-Attribut */
.lw-bg-media { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.lw-bg-media img, .lw-bg-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lw-bg-veil { position: absolute; inset: 0; background: #FFFFFF; }
.lw-finder { position: relative; z-index: 1; }
/* Windbahnen-Hintergrund (Standard auf Finder/Favoriten) */
.lw-bg-wind { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: #FFFFFF; }
.lw-bg-wind svg { width: 100%; height: 100%; display: block; }
@media (prefers-reduced-motion: no-preference) {
    .lw-bg-wind .lw-wb {
        animation-name: lw-windbahn;
        animation-timing-function: linear;
        animation-iteration-count: infinite;
    }
}
@keyframes lw-windbahn { to { stroke-dashoffset: -120; } }

/* Webcam-Studio: Cam-Tabs + Zeitreihen-Slider */
.lw-cam-tabs { display: flex; gap: 6px; margin: 0 0 6px; }
.lw-cam-tabs button {
    flex: 1;
    background: #E6F1FB;
    color: #0C447C;
    border: none;
    border-radius: 999px;
    font-size: 12px;
    padding: 5px 0;
    cursor: pointer;
}
.lw-cam-tabs button.is-active { background: #185FA5; color: #FFFFFF; }
.lw-frame-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.lw-frame-row .lw-frame-range { flex: 1; }
.lw-frame-lbl { font-size: 11px; color: #6b7a8d; min-width: 54px; text-align: right; }
.lw-pan-wrap { overflow: hidden; }

/* Hintergrund auf Inhaltsseiten: hinter die weisse Karte */
.lw-bg-page { z-index: -1; }
.lw-bg-wind .lw-sea { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; display: block; }
.lw-bg-wind .lw-windpaths { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
    .lw-bg-wind .lw-sea {
        animation-name: lw-wave-drift;
        animation-timing-function: linear;
        animation-iteration-count: infinite;
    }
}
body.lw-has-bg,
body.lw-has-bg .site,
body.lw-has-bg #page,
body.lw-has-bg .site-content { background: transparent; }

/* Fav-Ansicht: Filter + Cam-Karten */
.lw-favview { margin: 0 0 12px; display: inline-flex; }
.lw-cam-item .lw-cam-thumb { width: 56px; height: 38px; object-fit: cover; border-radius: 8px; border: 1px solid #B5D4F4; flex: 0 0 auto; }
.lw-now-cam { margin-bottom: 8px; }
.lw-windnote { margin: 2px 0 6px; font-size: 12px; }
/* ---- Lade-Logo (v1.8.54) ---- */
.lw-loadlogo { width: 20px; height: 20px; vertical-align: -5px; margin-right: 6px; }
.lw-loadlogo path { stroke-dasharray: 40; animation: lw-loaddraw 1.6s ease-in-out infinite; }
.lw-loadlogo path:nth-child(2) { animation-delay: 0.15s; }
.lw-loadlogo path:nth-child(3) { animation-delay: 0.3s; }
@keyframes lw-loaddraw { 0% { stroke-dashoffset: 40; } 55% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -40; } }
@media (prefers-reduced-motion: reduce) { .lw-loadlogo path { animation: none; stroke-dashoffset: 0; } }

/* ---- Spot-Popup (v1.8.54) ---- */
.lw-photo-frame { display: block; width: 100%; height: 176px; overflow: hidden; border-radius: 10px; background: #E6F1FB; cursor: pointer; margin: 0 0 6px; }
.lw-photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lw-photo-dots { display: flex; gap: 5px; justify-content: center; margin: 0 0 10px; }
.lw-photo-dots span { width: 7px; height: 7px; border-radius: 50%; background: #B5D4F4; cursor: pointer; }
.lw-photo-dots span.is-on { background: #185FA5; }
.lw-spot-desc { font-size: 13px; line-height: 1.5; color: #042C53; margin: 0 0 10px; }
.lw-spot-info { font-size: 12.5px; color: #042C53; line-height: 1.45; margin: 0 0 10px; }
.lw-spot-info p { margin: 0 0 7px; display: flex; gap: 8px; }
.lw-spot-info svg { width: 15px; height: 15px; flex: none; margin-top: 1px; color: #185FA5; }
.lw-spot-info b { color: #0C447C; font-weight: 600; }

/* ---- Stern-Zeile im Cam-Popup (v1.8.55) ---- */
.lw-favline { margin: 0 0 12px; }

/* ---- v1.8.58: Favoriten-Kopf – beide Segmentgruppen identisch, Scope rechts ---- */
.lw-favseg { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.lw-favseg .lw-seg { width: auto; }
.lw-favseg .lw-seg button { flex: 0 0 auto; padding: 7px 16px; font-size: 13px; }
.lw-favseg .lw-favscope { margin-left: auto; }

/* ---- v1.8.58: Spotmelder ---- */
.lw-melder { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.lw-melder label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; color: #0C447C; font-size: 14px; }
.lw-melder .lw-muted { font-weight: 400; }
.lw-melder-intro { color: #0C447C; }
.lw-melder input[type=text], .lw-melder input[type=url], .lw-melder input[type=email], .lw-melder textarea, .lw-melder select {
    border: 1px solid #D3DEE9; border-radius: 12px; padding: 9px 12px; font: inherit; background: #fff; color: #042C53;
}
.lw-melder textarea { resize: vertical; }
#lw-melder-map { height: 280px; border-radius: 16px; box-shadow: 0 2px 8px rgba(4, 44, 83, 0.25); }
.lw-melder fieldset { border: 1px dashed #85B7EB; border-radius: 12px; padding: 10px 12px; margin: 0; }
.lw-melder legend { font-weight: 600; color: #0C447C; font-size: 14px; padding: 0 6px; }
.lw-mchk { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 6px !important; margin: 2px 14px 2px 0; font-weight: 500 !important; }
.lw-mrose { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.lw-mdir { position: relative; display: block !important; margin: 0 !important; }
.lw-mdir input { position: absolute; opacity: 0; }
.lw-mdir span { display: block; text-align: center; padding: 7px 0; border: 1px solid #D3DEE9; border-radius: 999px; font-size: 12px; font-weight: 600; color: #185FA5; cursor: pointer; background: #fff; }
.lw-mdir input:checked + span { background: #185FA5; color: #fff; border-color: #185FA5; }
.lw-mdir input:focus-visible + span { outline: 2px solid #378ADD; outline-offset: 2px; }
.lw-mhp { position: absolute; left: -9999px; }
.lw-melder-send { align-self: flex-start; background: #185FA5; color: #fff; border: none; border-radius: 999px; padding: 11px 24px; font-size: 15px; font-weight: 600; cursor: pointer; }
.lw-melder-send:hover { background: #0C447C; }
.lw-melder-send:disabled { opacity: 0.6; cursor: default; }
.lw-melder-msg { min-height: 1.2em; color: #0C447C; font-weight: 600; }
@media (max-width: 540px) { .lw-mrose { grid-template-columns: repeat(4, 1fr); } }

/* ---- v1.8.59: Favoriten-Segmente exakt auf einer Linie, Fokus nur bei Tastatur ---- */
.lw-favseg .lw-seg { margin: 0; }
.lw-seg button:focus { outline: none; }
.lw-seg button:focus-visible { outline: 2px solid #378ADD; outline-offset: 2px; }

/* ---- v1.8.59: Spotmelder – Kompassrose, Sportarten-Pills, Live-Zeile, Basemap-Umschalter ---- */
.lw-rose { width: 250px; max-width: 100%; display: block; margin: 4px auto 0; }
.lw-rose-seg { fill: #fff; stroke: #D3DEE9; stroke-width: 1.5; cursor: pointer; transition: fill 0.12s; }
.lw-rose-seg:hover { fill: #E6F1FB; }
.lw-rose-seg.on { fill: #185FA5; stroke: #185FA5; }
.lw-rose-seg.on:hover { fill: #0C447C; }
.lw-rose-seg:focus { outline: none; }
.lw-rose-seg:focus-visible { stroke: #378ADD; stroke-width: 3; }
.lw-rose text { font-size: 13px; font-weight: 600; fill: #0C447C; pointer-events: none; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.lw-mrose-hidden { position: absolute; left: -9999px; }
.lw-mchk { position: relative; }
.lw-mchk input { position: absolute; opacity: 0; }
.lw-mchk span { display: inline-block; padding: 7px 14px; border: 1px solid #D3DEE9; border-radius: 999px; font-size: 13px; font-weight: 600; color: #185FA5; background: #fff; cursor: pointer; }
.lw-mchk input:checked + span { background: #185FA5; border-color: #185FA5; color: #fff; }
.lw-mchk input:focus-visible + span { outline: 2px solid #378ADD; outline-offset: 2px; }
.lw-melder-near { min-height: 1.2em; margin: 6px 0 0; color: #0C447C; font-weight: 600; font-size: 14px; }
.lw-basetgl { background: #fff; border-radius: 999px; padding: 3px; box-shadow: 0 2px 8px rgba(4, 44, 83, 0.25); display: flex; gap: 2px; }
.lw-basetgl button { border: none; background: none; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #185FA5; cursor: pointer; }
.lw-basetgl button.on { background: #185FA5; color: #fff; }

/* ---- v1.8.60: Scope-Gruppe wirklich rechtsbuendig (Kaskaden-Fix), Stern-Abstand einheitlich ---- */
.lw-favseg .lw-favscope { margin: 0 0 0 auto; }
.lw-popup .lw-favline { margin: 2px 0 14px; }

/* ---- v1.8.61: Session-Zeile unter Spot-Favoriten ---- */
.lw-spot-sess { margin: -6px 2px 12px; padding: 0 14px; font-size: 13px; font-weight: 600; color: #0C447C; }
.lw-spot-sess:empty { display: none; }

/* ---- v1.8.63: Sponsoren-Band + Sponsoren-Seite ---- */
.lw-sponsorband { max-width: 720px; margin: 28px auto calc(var(--lw-footer-h, 54px) + 16px); padding: 8px 14px 10px; background: #fff; border-radius: 16px; box-shadow: 0 2px 8px rgba(4, 44, 83, 0.25); position: relative; z-index: 1; }
.lw-spb-head { display: flex; align-items: center; justify-content: space-between; }
.lw-spb-label { font-size: 11px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: #6b7a8d; }
.lw-spb-tgl { border: none; background: none; color: #185FA5; cursor: pointer; padding: 4px; line-height: 0; border-radius: 999px; }
.lw-spb-tgl:hover { background: #E6F1FB; }
.lw-spb-tgl svg { transition: transform 0.2s; }
.lw-sponsorband.lw-collapsed .lw-spb-tgl svg { transform: rotate(180deg); }
.lw-sponsorband.lw-collapsed .lw-spb-viewport { display: none; }
.lw-sponsorband.lw-collapsed { padding-bottom: 8px; }
.lw-spb-viewport { overflow: hidden; margin-top: 6px; }
.lw-spb-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: lw-spband 28s linear infinite; }
.lw-spb-item { display: inline-flex; align-items: center; text-decoration: none; color: #0C447C; font-weight: 600; font-size: 14px; }
.lw-spb-item img { height: 34px; width: auto; display: block; }
@keyframes lw-spband { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .lw-spb-track { animation: none; } }
/* v1.8.92: ruhige Logoreihe. Bewusst ohne Rahmen und Raster - ein einzelnes
   Logo soll nicht wie ein leerer Platzhalter neben freien Feldern wirken. */
.lw-sponsorrow { margin: 48px 0 44px; text-align: center; }
.lw-sponsorrow-title { margin: 0 0 20px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6b7a8d; }
.lw-sponsorrow-items { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 30px 44px; }
.lw-sponsor-item { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: #0C447C; }
.lw-sponsor-item img { height: 52px; width: auto; max-width: 190px; object-fit: contain; display: block; opacity: .82; transition: opacity .15s ease, transform .15s ease; }
.lw-sponsor-item:hover img { opacity: 1; transform: translateY(-1px); }
.lw-sponsor-name { font-weight: 600; font-size: 15px; }
@media (max-width: 480px) {
    .lw-sponsorrow-items { gap: 22px 28px; }
    .lw-sponsor-item img { height: 42px; max-width: 150px; }
}
/* Altbestand: Kartenraster bleibt fuer bestehende Seiten nutzbar */
.lw-sponsorgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 18px 0; }
.lw-sponsor-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; border: 1px solid #D3DEE9; border-radius: 12px; text-decoration: none; color: #0C447C; font-weight: 600; font-size: 14px; text-align: center; background: #fff; }
.lw-sponsor-card:hover { box-shadow: 0 2px 8px rgba(4, 44, 83, 0.25); }
.lw-sponsor-card img { max-height: 56px; width: auto; max-width: 100%; }

/* Foto-Lightbox (Spot-Bilder, v1.8.72) */
.lw-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(4, 44, 83, 0.82); display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.lw-lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; box-shadow: 0 12px 40px rgba(4, 44, 83, 0.5); cursor: zoom-in; }
/* v1.9.6: gezoomt in Originalgroesse, Overlay wird scrollbar */
.lw-lightbox:has(img.is-zoom) { display: block; overflow: auto; cursor: default; }
.lw-lightbox img.is-zoom { max-width: none; max-height: none; border-radius: 0; cursor: zoom-out; }
.lw-popup-pan img { max-width: none; }
.lw-cam-pin { overflow: visible !important; }
.lw-campin-w { position: absolute; right: -8px; bottom: -7px; z-index: 3; font-size: 10px; font-weight: 600; line-height: 1; padding: 3px 6px; border-radius: 999px; border: 2px solid #FFFFFF; white-space: nowrap; box-shadow: 0 1px 4px rgba(4, 44, 83, 0.25); pointer-events: none; }
.lw-lightbox iframe { width: min(92vw, 960px); aspect-ratio: 16 / 9; max-height: 88vh; border: 0; border-radius: 12px; box-shadow: 0 12px 40px rgba(4, 44, 83, 0.5); background: #000; }
.lw-yt-wrap { position: relative; margin: 0 0 8px; }
button.lw-yt-open { display: block; position: relative; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 10px; overflow: hidden; }
button.lw-yt-open img { display: block; width: 100%; height: auto; }
.lw-yt-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 999px; background: rgba(4, 44, 83, 0.72); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.lw-yt-play svg { width: 18px; height: 18px; fill: #FFFFFF; margin-left: 3px; }
button.lw-yt-open:hover .lw-yt-play { background: rgba(24, 95, 165, 0.9); }
.lw-yt-live { position: absolute; top: 8px; left: 8px; background: #C21F1F; color: #FFFFFF; font-size: 10px; font-weight: 600; letter-spacing: 0.4px; padding: 2px 7px; border-radius: 999px; pointer-events: none; }
.lw-lb-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 999px; background: #fff; color: #0C447C; font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(4, 44, 83, 0.35); }
.lw-lb-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 12px; font-weight: 600; background: rgba(4, 44, 83, 0.6); padding: 4px 10px; border-radius: 999px; }

/* Nach-oben-Pfeil (v1.8.78): livewind-Windpfeil, GP-sichere button-Selektoren;
   Ruhelage 45 Grad wie das Live-Icon, Hover richtet auf - Touch-Geraete direkt aufrecht */
button.lw-totop { position: fixed; right: 16px; bottom: calc(var(--lw-footer-h, 54px) + 16px); z-index: 1600; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 999px; background: #FFFFFF; color: #185FA5; box-shadow: 0 2px 8px rgba(4, 44, 83, 0.25); cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
button.lw-totop svg { width: 22px; height: 22px; transition: transform 0.25s; }
button.lw-totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
button.lw-totop:hover { background: #E6F1FB; color: #0C447C; }
@media (hover: hover) {
    button.lw-totop svg { transform: rotate(var(--lw-totop-rot, 45deg)); }
    button.lw-totop:hover svg { transform: rotate(var(--lw-totop-rot-hover, 0deg)); }
}
@media (prefers-reduced-motion: reduce) { button.lw-totop, button.lw-totop svg { transition: none; } }

/* lw-Header klebt auf Inhaltsseiten (v1.8.79) */
body.lw-content .lw-header { position: sticky; top: 0; z-index: 1700; }
body.lw-content.admin-bar .lw-header { top: 32px; }
@media (max-width: 782px) { body.lw-content.admin-bar .lw-header { top: 46px; } }

/* Melder: Rechte-Checkbox (v1.8.79) */
.lw-melder-consent { display: flex; align-items: center; gap: 8px; }
.lw-melder-consent input[type=checkbox] { width: auto; margin: 0; }

/* Team-Raster (v1.8.79) */
.lw-teamgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px 24px; margin: 16px 0; justify-items: center; }
/* v1.8.88 Bullauge (Variante A): quadratischer Kreis mit Ring in livewind-Blau.
   Der Zuschnitt ist enger als das alte 220-px-Rechteck, Fotos brauchen das
   Gesicht mittig. Ring per box-shadow, damit das Bild seine Groesse behaelt. */
.lw-teamcard { text-align: center; max-width: 220px; }
.lw-teamcard img.lw-teamimg { width: 180px; height: 180px; max-width: 100%; object-fit: cover; border-radius: 50%; display: block; margin: 6px auto 0; box-shadow: 0 0 0 4px #fff, 0 0 0 10px #185FA5; }
.lw-teamcard .lw-teamname { margin: 22px 0 2px; font-weight: 600; color: #0C447C; }
.lw-teamcard .lw-teamrole { margin: 0; font-size: 14px; color: #6b7a8d; }
@media (max-width: 480px) { .lw-teamcard img.lw-teamimg { width: 150px; height: 150px; } }

/* --- v1.8.90: Zugangspunkte und weitere Webcams im Spot-Popup --- */
.lw-access-list { margin: 4px 0 0; padding-left: 16px; list-style: disc; }
.lw-access-list li { margin-bottom: 4px; line-height: 1.35; }
.lw-access-pin { background: none; border: 0; }
.lw-camrow { margin-top: 10px; }
.lw-camrow-btns { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; }
/* v1.9.0: Cam-Knoepfe stehen neben "Webcam oeffnen" und sahen dort aus wie
   gleichrangige Aktionen. Jetzt heller und mit Kamerasymbol - sie schalten
   eine Ansicht um, sie fuehren nicht weg. */
button.lw-camrow-btn.lw-btn,
button.lw-camrow-btn {
    display: inline-flex !important; align-items: center; gap: 6px;
    border: 1px solid #B5D4F4 !important; background: #E6F1FB !important;
    color: var(--lw-blau, #185FA5) !important;
    border-radius: 999px !important; padding: 5px 12px !important;
    font-size: 12px !important; font-weight: 600 !important; cursor: pointer;
}
button.lw-camrow-btn svg { flex: 0 0 auto; opacity: 0.75; }
button.lw-camrow-btn:hover { background: #D3E6F9 !important; color: var(--lw-blau, #185FA5) !important; }
button.lw-camrow-btn.is-on,
button.lw-camrow-btn.is-on:hover {
    background: var(--lw-blau, #185FA5) !important; border-color: var(--lw-blau, #185FA5) !important; color: #fff !important;
}
button.lw-camrow-btn.is-on svg { opacity: 1; }
.lw-camrow-frame .lw-muted a { color: var(--lw-blau, #185FA5); }
.lw-camrow-frame { margin-top: 8px; }
.lw-camrow-frame img { width: 100%; border-radius: 8px; display: block; }

/* --- v1.8.97: Nebencams als Chip, Cam-Reihe, Wetter-Link --- */
.lw-camchip-pin { background: none; border: 0; }
.lw-camchip-pin .lw-camchip {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 20px; border-radius: 7px; background: #185FA5;
    box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(4,44,83,.35); vertical-align: middle;
}
.lw-camchip-pin .lw-camchip-lbl {
    display: inline-block; margin-left: 5px; padding: 1px 7px; border-radius: 999px;
    background: #fff; color: #0C447C; font-size: 12px; font-weight: 600; white-space: nowrap;
    box-shadow: 0 1px 3px rgba(4,44,83,.25); vertical-align: middle;
}
.lw-camrow-err { margin: 8px 0 0; padding: 14px 12px; border-radius: 10px; background: #EEF3F8; color: #6b7a8d; font-size: 14px; text-align: center; }
.lw-wxline { margin-top: 10px; }
button.lw-btn.lw-camrow-btn { border: 0; cursor: pointer; font: inherit; }

/* ---- Windstaerken-Seite: [livewind_windstaerken] (v1.9.10) ---- */
.lwft {
    --lwft-bd: #0C447C;
    --lwft-bdd: #042C53;
    --lwft-mut: #6b7a8d;
    --lwft-line: #D3DEE9;
    --lwft-bg: #F4F8FC;
    color: var(--lwft-bdd);
    max-width: 920px;
    margin: 0 auto;
    padding: 8px 0 32px;
    line-height: 1.55;
}
.lwft h2 { color: var(--lwft-bd); font-size: 26px; margin: 0 0 6px; letter-spacing: -.01em; }
.lwft h3 { color: var(--lwft-bd); font-size: 19px; margin: 34px 0 10px; }
.lwft .lead { color: var(--lwft-mut); margin: 0 0 22px; max-width: 60ch; }

/* Beschriftete Baender, Aufbau wie die Legende auf der Karte */
.lwband {
    display: flex;
    border-radius: 999px;
    overflow: hidden;
    margin: 0 0 8px;
    font-size: 11px;
    box-shadow: 0 1px 4px rgba(4, 44, 83, 0.14);
}
.lwband + .lwband { margin-bottom: 22px; }
.lwband span {
    background: var(--c);
    color: var(--t);
    padding: 5px 4px;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
    flex: 1;
}
.lwband-t { font-size: 12px; color: var(--lwft-mut); margin: 0 0 4px; font-weight: 600; }

.lwtab { width: 100%; border-collapse: collapse; }
.lwtab th {
    text-align: left; font-size: 12px; letter-spacing: .05em; text-transform: uppercase;
    color: var(--lwft-mut); padding: 0 10px 8px;
    border-bottom: 1px solid var(--lwft-line); font-weight: 700;
}
.lwtab td { padding: 12px 10px; border-bottom: 1px solid var(--lwft-line); vertical-align: top; }
/* Zwei Streifen je Zeile: Regenbogen aussen, Blau innen */
/* v1.9.11: float in einer 12px-Zelle liess den zweiten Streifen umbrechen,
   und height:100% greift in einer Tabellenzelle nicht. Darum absolut. */
.lwtab .sw { width: 20px; padding: 0; position: relative; }
.lwtab .sw i { position: absolute; top: 0; bottom: 0; width: 8px; }
.lwtab .sw i:first-child { left: 0; }
.lwtab .sw i:last-child { left: 11px; }
.lwtab .p1 { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lwtab .p2 { color: var(--lwft-mut); font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lwtab .nm { font-weight: 600; color: var(--lwft-bd); }
.lwtab .wa { font-size: 14px; }
.lwtab .mat { font-size: 13px; color: var(--lwft-mut); margin-top: 3px; }

.lwconv { background: var(--lwft-bg); border-radius: 16px; padding: 18px 20px; margin: 26px 0; }
.lwconv p { margin: 0 0 8px; }
/* v1.9.12: Formeln standen im Fliesstext und brachen mitten in der Zeile um. */
.lwconv-h { font-weight: 600; margin: 0 0 12px; }
.lwrule { margin: 0 0 12px; }
.lwrule code {
    display: inline-block;
    background: #fff; border: 1px solid var(--lwft-line); border-radius: 8px;
    padding: 6px 12px; font-size: 15px; font-weight: 600; color: var(--lwft-bdd);
    white-space: nowrap;
}
.lwrule span {
    display: block; margin: 5px 0 0 2px;
    font-size: 14px; color: var(--lwft-mut);
}
.lwnote {
    font-size: 14px; color: var(--lwft-mut); border-left: 3px solid #85B7EB;
    padding: 2px 0 2px 14px; margin: 22px 0 0;
}
@media (max-width: 640px) {
    .lwft h2 { font-size: 23px; }
    .lwtab .opt { display: none; }
    .lwtab td, .lwtab th { padding-left: 7px; padding-right: 7px; }
    .lwband { font-size: 9px; }
    .lwband span { padding: 4px 2px; }
}

/* ---- Umrechner auf der Windstaerken-Seite (v1.9.11) ---- */
.lwcalc {
    margin: 18px 0 0; padding: 16px 0 0;
    border-top: 1px solid var(--lwft-line);
}
.lwcalc input[type="range"] {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 8px; border-radius: 999px; margin: 0 0 14px;
    background: var(--lwft-line); outline: none; cursor: pointer;
}
.lwcalc input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--lwc, #185FA5); border: 3px solid #fff; cursor: pointer;
    box-shadow: 0 1px 5px rgba(4, 44, 83, 0.35);
}
.lwcalc input[type="range"]::-moz-range-thumb {
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--lwc, #185FA5); border: 3px solid #fff; cursor: pointer;
    box-shadow: 0 1px 5px rgba(4, 44, 83, 0.35);
}
.lwcalc-out { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lwcalc-v {
    background: #fff; border: 1px solid var(--lwft-line); border-radius: 10px;
    padding: 7px 12px; font-variant-numeric: tabular-nums; font-size: 15px;
    color: var(--lwft-bdd); white-space: nowrap;
}
.lwcalc-v b { font-weight: 700; }
.lwcalc-v span { color: var(--lwft-mut); font-size: 13px; margin-left: 3px; }
.lwcalc-st {
    display: inline-flex; align-items: center; gap: 8px;
    border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600;
    background: var(--lwc, #E6F1FB); color: var(--lwc-t, #0C447C);
}
@media (max-width: 640px) {
    .lwcalc-out { gap: 7px; }
    .lwcalc-v { padding: 6px 9px; font-size: 14px; }
}
