/*
 * Wetter-Menü (asset/js/weather.js)
 * Bewusst als eigenständiges CSS – unabhängig vom Tailwind-Build (npm run build).
 * Farben entsprechen den Tailwind-Skalen der BOS-UI (emerald / amber / red / slate).
 */

/* Eingabeformular */
.wx-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    align-items: end;
}
@media (min-width: 768px) {
    .wx-form { grid-template-columns: 1fr 1fr; }
    .wx-form-place { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
    .wx-form { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1.2fr) auto; }
    .wx-form-place { grid-column: auto; }
}
.wx-place-row { display: flex; gap: 0.5rem; align-items: stretch; }
.wx-place-row > .form-control { min-width: 0; }
.wx-form-submit .btn { width: 100%; justify-content: center; }

.wx-choices { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.wx-choices.hidden { display: none; }
.wx-choices-label { margin: 0; }

/* .card-title aus der BOS-UI (im gebauten style.css nicht enthalten, da bisher ungenutzt) */
#view-weather .card-title { font-weight: 700; color: #0f172a; display: flex; align-items: center; gap: 0.5rem; }

.wx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }

/* Flugeinschätzung */
.wx-verdict {
    display: flex;
    gap: 0.875rem;
    padding: 1rem 1.125rem;
    border-radius: 0.75rem;
    border: 1px solid;
}
.wx-verdict-icon { font-size: 1.5rem; line-height: 1.5rem; margin-top: 0.125rem; }
.wx-verdict-title { font-weight: 700; font-size: 1rem; }
.wx-verdict-text { font-size: 0.8125rem; opacity: 0.9; margin-top: 0.125rem; }
.wx-verdict.is-ok   { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.wx-verdict.is-warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.wx-verdict.is-bad  { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

.wx-reasons { margin: 0.375rem 0 0; padding-left: 1.1rem; list-style: disc; font-size: 0.8125rem; }
.wx-reasons li { margin-top: 0.125rem; }

/* Kennzahl-Kacheln */
.wx-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.75rem;
}
.wx-tile {
    padding: 0.75rem 0.875rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}
.wx-tile-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}
.wx-tile-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 0.25rem;
    font-variant-numeric: tabular-nums;
}
.wx-tile-value .fa-solid { color: #2563eb; }
.wx-tile-sub { font-size: 0.75rem; color: #64748b; margin-top: 0.125rem; }
.wx-tile.wx-warn { background: #fffbeb; border-color: #fde68a; }
.wx-tile.wx-bad  { background: #fef2f2; border-color: #fecaca; }
.wx-tile.wx-warn .wx-tile-value { color: #b45309; }
.wx-tile.wx-bad  .wx-tile-value { color: #b91c1c; }

/* Windrichtungspfeil */
.wx-dir-arrow { display: inline-block; font-size: 0.85em; }

/* Stundentabelle */
.data-table td { font-variant-numeric: tabular-nums; }
.data-table tr.wx-row-active td { background: #eff6ff; font-weight: 600; }
.wx-icon-muted { color: #64748b; width: 1.25em; text-align: center; }
.wx-dot {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    vertical-align: middle;
}
.wx-dot.is-ok   { background: #10b981; }
.wx-dot.is-warn { background: #f59e0b; }
.wx-dot.is-bad  { background: #ef4444; }

.wx-reasons li.wx-warn { color: #92400e; }
.wx-reasons li.wx-bad  { color: #991b1b; font-weight: 600; }
