/* =========================================================
   Freibad Anzeigetafel – Frontend (LED-Look)
   Elementor-Variablen als Standard, per Widget überschreibbar
   ========================================================= */

.fbat-board {
    --fbat-bg:        #0c1118;
    --fbat-panel:     #131b25;
    --fbat-led:       #ffb000;            /* Bernstein-LED */
    --fbat-led-dim:   rgba(255,176,0,.18);
    --fbat-text:      #cfd8e3;
    --fbat-muted:     #6b7888;
    --fbat-open:      #36e07a;
    --fbat-soon:      #ffd23f;
    --fbat-closed:    #ff5a5a;
    --fbat-radius:    16px;
    --fbat-font:      var(--e-global-typography-primary-font-family, "Segoe UI", system-ui, sans-serif);

    max-width: 520px;
    margin: 0 auto;
    background: radial-gradient(120% 140% at 50% 0%, var(--fbat-panel), var(--fbat-bg));
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--fbat-radius);
    box-shadow: 0 18px 50px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04);
    padding: clamp(18px, 4vw, 28px);
    font-family: var(--fbat-font);
    color: var(--fbat-text);
}

/* Helle Variante */
.fbat-board.fbat-theme-light {
    --fbat-bg:    #f4f7fb;
    --fbat-panel: #ffffff;
    --fbat-led:   #0a6cff;
    --fbat-text:  #1d2733;
    --fbat-muted: #6b7888;
    border-color: rgba(0,0,0,.08);
    box-shadow: 0 12px 36px rgba(20,40,80,.12);
}

/* --- Kopf --- */
.fbat-board__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(255,255,255,.08);
}
.fbat-theme-light .fbat-board__head { border-bottom-color: rgba(0,0,0,.1); }

.fbat-board__title {
    font-size: clamp(1.05rem, 2.6vw, 1.4rem);
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--fbat-text);
}
.fbat-board__clock {
    font-variant-numeric: tabular-nums;
    font-size: .95rem;
    color: var(--fbat-muted);
    letter-spacing: .08em;
}

/* --- Zeilen --- */
.fbat-board__rows { display: flex; flex-direction: column; gap: 12px; }

.fbat-row {
    display: grid;
    grid-template-columns: 2.2em 1fr auto;
    align-items: center;
    gap: 14px;
    background: var(--fbat-bg);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 12px;
    padding: 14px 18px;
}
.fbat-theme-light .fbat-row { border-color: rgba(0,0,0,.06); background: #fbfdff; }

.fbat-row__icon {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--fbat-led);
    text-align: center;
}
.fbat-row__label {
    font-size: .95rem;
    color: var(--fbat-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.fbat-row__note {
    font-size: .75em;
    opacity: .8;
    margin-left: 4px;
}

.fbat-row__value {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    justify-self: end;
}

/* LED-Ziffern */
.fbat-digits {
    font-family: "DS-Digital", "Courier New", ui-monospace, monospace;
    font-size: clamp(1.9rem, 7vw, 2.7rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: .04em;
    color: var(--fbat-led);
    text-shadow: 0 0 8px var(--fbat-led-dim), 0 0 18px var(--fbat-led-dim);
    line-height: 1;
}
.fbat-theme-light .fbat-digits { text-shadow: none; }

.fbat-unit {
    font-size: 1rem;
    font-weight: 600;
    color: var(--fbat-muted);
}

/* Status-Zeile */
.fbat-row__value--status {
    font-size: clamp(1rem, 3.4vw, 1.25rem);
    font-weight: 700;
    letter-spacing: .02em;
}
.fbat-row--status.is-open    .fbat-row__value--status,
.fbat-row--status.is-open    .fbat-row__icon { color: var(--fbat-open);   text-shadow: 0 0 10px rgba(54,224,122,.35); }
.fbat-row--status.is-soon    .fbat-row__value--status,
.fbat-row--status.is-soon    .fbat-row__icon { color: var(--fbat-soon);   text-shadow: 0 0 10px rgba(255,210,63,.3); }
.fbat-row--status.is-closed  .fbat-row__value--status,
.fbat-row--status.is-closed  .fbat-row__icon { color: var(--fbat-closed); text-shadow: 0 0 10px rgba(255,90,90,.3); }
.fbat-theme-light .fbat-row__value--status { text-shadow: none; }

/* Status-Punkt animiert */
.fbat-row--status.is-open .fbat-row__icon { animation: fbat-pulse 2s ease-in-out infinite; }
@keyframes fbat-pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) {
    .fbat-row--status.is-open .fbat-row__icon { animation: none; }
}

/* --- Fuß --- */
.fbat-board__foot {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed rgba(255,255,255,.08);
    font-size: .72rem;
    color: var(--fbat-muted);
    text-align: center;
    letter-spacing: .03em;
}
.fbat-theme-light .fbat-board__foot { border-top-color: rgba(0,0,0,.1); }

@media (max-width: 420px) {
    .fbat-row { grid-template-columns: 1.8em 1fr auto; gap: 10px; padding: 12px 14px; }
    .fbat-row__label { font-size: .8rem; }
}
