/* Forecast-Tabelle, Einheiten, Monatsbalken (forecast.js) und Schulvergleich/Anreise (compare.js). Konzept docs/rider-feedback.md */

/* Wind-Farbskala (Knoten), Text dunkel bis 25 kn, danach hell */
.w0 { background: #F4F1EA; } .w1 { background: #DCEFEA; } .w2 { background: #B5E2D3; } .w3 { background: #86D19C; }
.w4 { background: #EBDD5E; } .w5 { background: #F3AE48; } .w6 { background: #EE5A2F; color: #fff; }
.w7 { background: #C2302A; color: #fff; } .w8 { background: #86379E; color: #fff; }

.fc-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-start; justify-content: space-between; }
.fc-head .pp-live { flex: 1 1 320px; margin: 0; }
.fc-units { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; flex: none; }
.fc-units button { border: 0; background: var(--paper); font: 600 13px var(--f-mono); padding: 0 12px; min-height: 36px; cursor: pointer; color: var(--ink); }
.fc-units button + button { border-left: 1.5px solid var(--ink); }
.fc-units button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.fc-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 22px 0 8px; }
.fc-bar .pl-sub-h { margin: 0; margin-right: auto; }
.fc-rel { display: inline-block; font: 600 11px var(--f-mono); text-transform: uppercase; letter-spacing: .03em; padding: 2px 7px; border-radius: 999px; vertical-align: 1px; }
.fc-rel--on, .fc-rel--side-on, .fc-rel--ok { background: #D7EEDF; color: var(--palm); }
.fc-rel--side { background: #E3EEF0; color: var(--deep-water); }
.fc-rel--side-off { background: #FBE3C4; color: #8A4B0B; }
.fc-rel--off { background: #F8D3C6; color: var(--kite-text); }
.warn--soft { color: #8A4B0B; font-weight: 600; }
.fc-arrow { vertical-align: -3px; flex: none; }

/* Tabelle: horizontal wischbar, erste Spalte bleibt stehen */
.fc-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1.5px solid var(--sand-line); border-radius: 12px; background: var(--paper); }
.fc-wrap:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 2px; }
.fc-table { border-collapse: separate; border-spacing: 0; font: 13px var(--f-mono); min-width: 100%; }
.fc-table th, .fc-table td { padding: 5px 6px; text-align: center; white-space: nowrap; border-bottom: 1px solid var(--sand-light); }
.fc-table td { min-width: 38px; }
.fc-table tbody th, .fc-table thead tr:last-child th, .fc-corner { position: sticky; left: 0; z-index: 1; background: var(--paper); text-align: left; font: 600 12px var(--f-display);
  border-right: 1.5px solid var(--sand-line); padding-left: 10px; min-width: 92px; }
.fc-table th small { font: 11px var(--f-mono); color: var(--ink-soft); }
.fc-day { font: 700 12px var(--f-display); text-align: left !important; background: var(--sand-light); }
.fc-d0 { border-left: 2px solid var(--sand-dark); }
.fc-h { color: var(--ink-soft); font-size: 12px; }
.fc-night { background-image: linear-gradient(rgba(23, 38, 43, .07), rgba(23, 38, 43, .07)); }
.fc-w { font-weight: 600; }
.fc-g { font-size: 12px; }
.fc-dir { line-height: 1; }
.fc-dir .fc-sec { display: block; font-size: 10px; color: var(--ink-soft); margin-top: 2px; }
.fc-dot { display: block; width: 8px; height: 8px; border-radius: 50%; margin: 3px auto 0; }
.fc-dot.fc-rel--on, .fc-dot.fc-rel--side-on, .fc-dot.fc-rel--ok { background: var(--palm); }
.fc-dot.fc-rel--side { background: var(--lagoon); }
.fc-dot.fc-rel--side-off { background: #E08A1E; }
.fc-dot.fc-rel--off { background: var(--kite); }
.fc-dir--off { background-color: #FCE9E2; }
.fc-muted { color: var(--ink-soft); }
.fc-mid { color: #8A4B0B; font-weight: 600; }
.fc-bad { color: var(--kite-text); font-weight: 700; }
.fc-models { display: none; }
.fc-show-models .fc-models { display: table-row; }
.fc-model { font: 600 11px var(--f-mono); color: var(--ink-soft); }
.fc-w--model { font-weight: 400; font-size: 12px; opacity: .85; }
.fc-sky { font-size: 15px; }
.fc-rain { color: var(--deep-water); }
.fc-wave--mid { background: #E3EEF0; } .fc-wave--big { background: #C3DDE3; font-weight: 600; }
.fc-tide--high b, .fc-tide--low b { font-family: var(--f-display); }
.fc-tide--high { color: var(--deep-water); } .fc-tide--low { color: var(--ink-soft); }
.fc-vibe--top { background: #D7EEDF; font-weight: 700; } .fc-vibe--good { background: #EAF5EC; }

/* Kompakt im Karten-Steckbrief */
.fc-days { list-style: none; margin: 6px 0 4px; padding: 0; display: grid; gap: 4px; }
.fc-days li { display: grid; grid-template-columns: 62px 38px 36px 1fr auto 26px 44px; gap: 6px; align-items: center; font: 13px var(--f-mono); }
.fc-days li b { font: 700 13px var(--f-display); }
.fc-days .fc-w { text-align: center; border-radius: 6px; padding: 2px 0; }
.fc-days small { display: none; }
.fc-g-s { color: var(--ink-soft); font-size: 12px; }
.fc-days .fc-rel { font-size: 10px; padding: 1px 5px; }
.pp-units { display: flex; justify-content: flex-end; margin: 4px 0; }
.pp-units .fc-units button { min-height: 30px; padding: 0 9px; font-size: 12px; }

/* Monatsbalken (When to go) */
.fc-months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: end; }
.fc-m { display: grid; justify-items: center; gap: 3px; border: 0; background: none; padding: 4px 0; border-radius: 8px; cursor: pointer; font: inherit; color: var(--ink); }
.fc-m:hover { background: var(--sand-light); }
.fc-m.is-sel { background: var(--sand); }
.fc-m-bar { position: relative; width: 70%; max-width: 28px; height: 90px; background: var(--sand-light); border-radius: 4px; overflow: hidden; }
.fc-m-bar i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--shallows); }
.fc-m-bar i.fc-m-15 { background: var(--lagoon); }
.fc-m b { font: 600 11px var(--f-mono); border-radius: 4px; padding: 1px 4px; }
.fc-m small { font: 11px var(--f-mono); color: var(--ink-soft); }
.fc-legend { font: 11px var(--f-mono); color: var(--ink-soft); margin: 6px 0 0; }
.fc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--shallows); vertical-align: -1px; margin-left: 6px; }
.fc-legend i.fc-m-15 { background: var(--lagoon); margin-left: 0; }

/* Rangliste «Best wind in …» unter der Karte */
.ww { margin: 14px 0 0; }
.ww h3 { margin: 0 0 4px; }
.ww ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.ww li button { width: 100%; display: grid; grid-template-columns: 28px 1fr 120px 64px; gap: 10px; align-items: center; text-align: left;
  border: 1.5px solid var(--sand-line); background: var(--paper); border-radius: 10px; padding: 8px 12px; font: 14px var(--f-display); color: var(--ink); cursor: pointer; }
.ww li button:hover { border-color: var(--ink); }
.ww .ww-n { font: 700 14px var(--f-mono); color: var(--ink-soft); }
.ww .ww-name small { display: block; font: 12px var(--f-mono); color: var(--ink-soft); }
.ww .ww-bar { height: 10px; background: var(--sand-light); border-radius: 5px; overflow: hidden; }
.ww .ww-bar i { display: block; height: 100%; background: var(--lagoon); }
.ww .ww-kn { font: 600 13px var(--f-mono); text-align: center; border-radius: 6px; padding: 3px 0; }
.ww-more { margin-top: 8px; }

/* Schulvergleich */
.cmp-tools { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-bottom: 12px; }
.cmp-tools select { min-height: 40px; }
.cmp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.cmp-card { border: 1.5px solid var(--sand-line); border-radius: 12px; background: var(--paper); padding: 14px; display: grid; gap: 10px; align-content: start; }
.cmp-card.is-self { border-color: var(--kite); box-shadow: 0 0 0 1px var(--kite); }
.cmp-card h3 { margin: 2px 0 0; font: 700 17px var(--f-display); }
.cmp-card h3 a { color: var(--ink); text-decoration: none; }
.cmp-card h3 a:hover { text-decoration: underline; }
.cmp-type { font: 12px var(--f-mono); color: var(--ink-soft); }
.cmp-ver { color: var(--palm); }
.cmp-dl { margin: 0; display: grid; gap: 6px; }
.cmp-dl div { display: grid; grid-template-columns: 104px 1fr; gap: 8px; font-size: 14px; }
.cmp-dl dt { font: 12px var(--f-mono); color: var(--ink-soft); padding-top: 2px; }
.cmp-dl dd { margin: 0; }
.cmp-dl small, .cmp-none { color: var(--ink-soft); font-size: 12px; }
.cmp-more { font-size: 14px; justify-self: start; }
.cmp-prices, .cmp-air { list-style: none; margin: 6px 0 12px; padding: 0; display: grid; gap: 6px; }
.cmp-prices li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.cmp-prices li span { min-width: 120px; color: var(--ink-soft); font-size: 14px; }
.cmp-prices small { color: var(--ink-soft); font: 12px var(--f-mono); }
.cmp-air li { display: grid; grid-template-columns: 44px 1fr auto auto auto; gap: 10px; align-items: baseline; font-size: 14px; }
.cmp-air b { font-family: var(--f-mono); }
.cmp-modes { display: flex; flex-wrap: wrap; gap: 6px; }
.cmp-modes span { background: var(--sand-light); border-radius: 999px; padding: 4px 10px; font-size: 14px; }
.cmp-modes small { font: 600 12px var(--f-mono); color: var(--ink-soft); margin-left: 2px; }

/* Bewertung: Preise + Anreise */
.rate-prac { border: 1.5px dashed var(--sand-line); border-radius: 12px; padding: 4px 14px; margin: 12px 0; }
.rate-prac summary { cursor: pointer; font: 600 15px var(--f-display); padding: 10px 0; }
.rate-prac summary span { font: 13px var(--f-display); color: var(--ink-soft); font-weight: 400; }
.rate-prices { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px 12px; margin-bottom: 10px; }
.rate-prices input { width: 100%; }

@media (max-width: 640px) {
  .fc-table tbody th, .fc-table thead tr:last-child th, .fc-corner { min-width: 74px; padding-left: 6px; }
  .fc-table td { min-width: 34px; padding: 5px 4px; }
  .fc-m-bar { height: 64px; }
  .fc-m b { font-size: 10px; padding: 1px 2px; }
  .ww li button { grid-template-columns: 22px 1fr 54px; }
  .ww .ww-bar { display: none; }
  .cmp-air li { grid-template-columns: 40px 1fr auto; }
  .cmp-air li a { grid-column: auto; }
  .cmp-air li span:nth-child(3) { text-align: right; }
}
