@font-face { font-family: "B612"; src: url("fonts/b612-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "B612"; src: url("fonts/b612-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --mist: #e9eeee;
  --paper: #f7f9f9;
  --sea: #12343b;
  --ink: #0f2a30;
  --muted: #4b646a;
  --line: #bccac9;
  --sock: #e8440f;
  --sock-ink: #b93208;
  --good: #1f9d5c;
  --good-2: #a6e6c3;
  --stripe: #ffffff;
  --band-off: #d7e0df;
  --on-sea: #e9f1f1;
  --on-sea-muted: #a9c0c2;
  --error-bg: #fbe6df;
  --error-ink: #8f2606;
  --focus: #e8440f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --mist: #0d2227;
    --paper: #143037;
    --sea: #0a1b1f;
    --ink: #e3eded;
    --muted: #9db3b6;
    --line: #2f4c53;
    --sock: #f2622f;
    --sock-ink: #ff9a75;
    --good: #2fb86e;
    --good-2: #a6e6c3;
    --stripe: #e3eded;
    --band-off: #1c3a41;
    --error-bg: #43200f;
    --error-ink: #ffc2aa;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: "B612", Verdana, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}
a { color: inherit; text-underline-offset: 0.15em; }
a:hover { color: var(--sock-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }

h1 { font-size: clamp(1.6rem, 4.6vw, 2.35rem); line-height: 1.2; margin: 0 0 1rem; text-wrap: balance; }
h2 { font-size: 1.25rem; line-height: 1.3; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1rem; line-height: 1.3; margin: 0 0 0.5rem; }
p { margin: 0 0 0.9rem; max-width: 68ch; }
.hint { color: var(--muted); font-size: 0.875rem; font-weight: 400; }
.legend { color: var(--muted); font-size: 0.875rem; margin-top: 2rem; }
code, pre { font-family: "B612", Verdana, sans-serif; font-size: 0.8125rem; }
pre { background: var(--paper); border: 1px solid var(--line); padding: 0.75rem; white-space: pre-wrap; word-break: break-all; margin: 0 0 1rem; }

header.site {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.75rem;
  background: var(--sea); color: var(--on-sea);
  padding: 0.75rem clamp(1rem, 4vw, 2.5rem);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--on-sea); }
.brand:hover { color: var(--on-sea); }
.brand .pole { fill: var(--on-sea-muted); }
.brand .s0 { fill: var(--sock); }
.brand .s1 { fill: #fff; }
header.site nav { display: flex; flex-wrap: wrap; gap: 0.15rem 1.15rem; }
header.site nav a { color: var(--on-sea-muted); text-decoration: none; padding: 0.3rem 0; border-bottom: 3px solid transparent; font-size: 0.9375rem; }
header.site nav a:hover { color: #fff; }
header.site nav a[aria-current] { color: #fff; border-bottom-color: var(--sock); }

.flash { margin: 0; max-width: none; background: var(--paper); border-bottom: 1px solid var(--line); padding: 0.6rem clamp(1rem, 4vw, 2.5rem); font-size: 0.9375rem; }
.page { max-width: 58rem; margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2.5rem) 3rem; }
.narrow { max-width: 36rem; }
footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8125rem; padding: 1.25rem clamp(1rem, 4vw, 2.5rem) 2rem; }
footer.site p { margin: 0 0 0.3rem; max-width: none; }
.error { background: var(--error-bg); color: var(--error-ink); padding: 0.6rem 0.8rem; }

/* De melding is het hoofdonderwerp: groot gezet, als een zin die je zo voorgelezen krijgt. */
.hero { background: var(--sea); color: var(--on-sea); padding: clamp(2rem, 7vw, 4.5rem) 0 clamp(2rem, 5vw, 3rem); }
.hero-inner { max-width: 58rem; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.hero h1 { font-size: clamp(1.7rem, 5.4vw, 3.25rem); line-height: 1.16; margin: 0 0 1.25rem; max-width: 24ch; }
.hero-sub { color: var(--on-sea-muted); font-size: 1.0625rem; margin-bottom: 2rem; max-width: 52ch; }
.hero-note { color: var(--on-sea-muted); font-size: 0.8125rem; margin: 0.6rem 0 0; }
.hero .strip { --strip-muted: var(--on-sea-muted); --strip-line: #2f525a; --strip-off: #1d444c; --strip-white: #ffffff; --strip-sock: #f2622f; color: var(--on-sea); }
.lead-sentence { max-width: 30ch; }
.signup form.stack, .signup > p { max-width: 30rem; }
.signup h2, .how h2 { margin-top: 0; }
.how { padding-top: 0; }
.how ol { margin: 0; padding-left: 1.4rem; max-width: 62ch; }
.how li { margin-bottom: 0.7rem; }

/* De windstrook: één kolom per uur, elk gestreept blok is een vliegbaar uur, zoals de banen van een windzak. */
.strip {
  --strip-muted: var(--muted); --strip-line: var(--line); --strip-off: var(--band-off); --strip-white: var(--stripe); --strip-sock: var(--sock);
  max-width: 46rem;
}
.strip .hours, .strip .wind, .strip .bands { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.strip .hours { color: var(--strip-muted); font-size: 0.75rem; text-align: center; margin-bottom: 0.15rem; }
.strip .cell { display: flex; flex-direction: column; align-items: center; line-height: 1.15; padding: 0.15rem 0 0.35rem; }
.strip .cell b { font-size: 0.875rem; }
.strip .cell small { font-size: 0.6875rem; color: var(--strip-muted); min-height: 0.8rem; }
.strip .arrow { fill: currentColor; margin-bottom: 0.15rem; }
.strip .arrow-off { opacity: 0.35; }
.strip .past { opacity: 0.45; }
.wingrow { margin-top: 0.45rem; }
.wingname { font-size: 0.875rem; margin: 0 0 0.2rem; max-width: none; }
.wingname span { color: var(--strip-muted); margin-left: 0.35rem; }
.bands { height: 1.15rem; gap: 0; }
.bands i { display: block; background: var(--strip-off); border-top: 1px solid var(--strip-off); border-bottom: 1px solid var(--strip-off); }
.bands i.on { border-color: var(--good); }
.bands i.s0 { background: var(--good); }
.bands i.s1 { background: var(--good-2); }

.day { border-top: 2px solid var(--ink); margin-top: 2rem; padding-top: 0.6rem; }
.day h2 { margin: 0 0 1rem; }
.day h2 span { color: var(--muted); font-weight: 400; font-size: 1rem; margin-left: 0.35rem; }
.spot-day { margin-bottom: 1.75rem; }
.spot-day h3 a { text-decoration: none; }
.spot-day h3 a:hover { text-decoration: underline; }

form.stack { display: flex; flex-direction: column; gap: 1rem; max-width: 34rem; }
form.stack > button { align-self: flex-start; }
fieldset { border: 0; border-top: 1px solid var(--line); margin: 0.5rem 0 0; padding: 0.9rem 0 0; display: flex; flex-direction: column; gap: 0.8rem; min-width: 0; }
legend { font-weight: 700; padding: 0 0.6rem 0 0; }
label { display: block; font-size: 0.9375rem; font-weight: 700; }
label .hint { display: inline; }
.fieldlabel { font-size: 0.9375rem; font-weight: 700; margin: 0 0 -0.4rem; }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=password], select, textarea {
  display: block; width: 100%; margin-top: 0.25rem; padding: 0.55rem 0.65rem;
  font: inherit; font-weight: 400; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--muted); border-radius: 2px;
}
input.code { font-size: 1.5rem; letter-spacing: 0.3em; max-width: 12rem; }
input[type=checkbox] { width: 1.15rem; height: 1.15rem; accent-color: var(--sock); margin: 0; flex: none; }
.check { display: flex; align-items: center; gap: 0.55rem; font-weight: 400; }
.inline { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 400; font-size: 0.875rem; }
.inline select { width: auto; margin: 0; padding: 0.3rem 0.45rem; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; align-items: end; }
.triple { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; align-items: end; }
.weekdays { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }

button, .btn, .btn-quiet {
  display: inline-block; font: inherit; font-size: 0.9375rem; font-weight: 700; cursor: pointer;
  padding: 0.6rem 1rem; border: 1.5px solid var(--sea); border-radius: 2px; text-decoration: none; line-height: 1.3;
  background: var(--sea); color: #fff;
}
button:hover, .btn:hover { background: var(--sock-ink); border-color: var(--sock-ink); color: #fff; }
.btn-quiet, button.btn-quiet { background: transparent; color: var(--ink); border-color: var(--muted); }
.btn-quiet:hover, button.btn-quiet:hover { background: transparent; color: var(--sock-ink); border-color: var(--sock-ink); }
button.btn-danger { background: transparent; color: var(--error-ink); border-color: var(--error-ink); }
button.btn-danger:hover { background: var(--error-ink); color: var(--mist); }
button:disabled { opacity: 0.6; cursor: default; }
@media (prefers-color-scheme: dark) {
  button, .btn { background: var(--on-sea); color: var(--sea); border-color: var(--on-sea); }
  .btn-quiet, button.btn-quiet { background: transparent; color: var(--ink); border-color: var(--muted); }
  button.btn-danger { background: transparent; color: var(--error-ink); border-color: var(--error-ink); }
}
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.danger-form { margin-top: 1.5rem; }
.sticky-actions { position: sticky; bottom: 0; background: var(--mist); padding: 0.75rem 0; }

.rows { list-style: none; margin: 0 0 1.5rem; padding: 0; border-top: 1px solid var(--line); }
.rows > li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.rows > li > div { flex: 1 1 18rem; min-width: 0; }
.rows p { margin: 0.15rem 0 0; font-size: 0.9375rem; }
.rows p.hint { font-size: 0.875rem; }
.rows li.off strong { color: var(--muted); }
.spot-rows > li { display: block; }
.spot-check { margin-bottom: 0.3rem; }
.spot-meta { padding-left: 1.7rem; }
.spot-meta p { margin-bottom: 0.4rem; }

.setup { padding-left: 1.4rem; max-width: 40rem; }
.setup li { margin-bottom: 0.7rem; font-size: 1.0625rem; }
.setup li.done a { color: var(--muted); }
.setup li span { color: var(--muted); font-size: 0.875rem; }
.push { margin-top: 2.5rem; }
details { margin-top: 1rem; }
summary { cursor: pointer; font-weight: 700; font-size: 0.9375rem; }

@media (max-width: 30rem) {
  .triple { grid-template-columns: 1fr; }
  .strip .cell b { font-size: 0.75rem; }
  .strip .cell small { font-size: 0.625rem; }
  .strip .arrow { width: 13px; height: 13px; }
  .strip .hours { font-size: 0.6875rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; transition: none !important; } }

/* Toegevoegd voor de weerpagina en het beheer */
.wide { max-width: 72rem; }
.weer-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 8px; }
.weer-head h1 { margin: 0; }
.weer-head .hint { margin: 2px 0 0; }
.inline-form label { font-weight: 400; font-size: 0.875rem; color: var(--muted); }
.inline-form select { min-width: 16rem; }
.short { max-width: 5rem; display: inline-block !important; margin-left: 6px; }
.thumb { width: 96px; height: 72px; object-fit: cover; display: block; flex: none; }
.flash-inline { background: var(--paper); border: 1px solid var(--line); padding: 0.5rem 0.75rem; }
.w-days { display: flex; gap: 4px; flex-wrap: wrap; margin: 12px 0 18px; }
.w-days button { background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 5px 10px; font-weight: 400; font-size: 0.875rem; }
.w-days button[aria-pressed="true"] { background: var(--sea); color: #fff; border-color: var(--sea); font-weight: 700; }
.w-section { margin: 0 0 30px; }
.w-section > h2 { margin: 0 0 4px; font-size: 1.125rem; }
.w-section > p.hint { margin: 0 0 10px; max-width: 72ch; }
.w-note { color: var(--muted); font-size: 0.875rem; padding: 8px 0; }
.w-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 10px 22px; margin: 0 0 22px; }
.w-tiles div { min-width: 0; border-top: 2px solid var(--ink); padding-top: 5px; }
.w-tiles dt { color: var(--muted); font-size: 0.8125rem; }
.w-tiles dd { margin: 0; font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.w-tiles small { display: block; font-weight: 400; font-size: 0.75rem; color: var(--muted); }
.w-scroll { overflow-x: auto; }
.wtable { border-collapse: collapse; font-size: 0.75rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wtable th { font-weight: 400; color: var(--muted); text-align: right; padding: 2px 8px 2px 0; position: sticky; left: 0; background: var(--mist); }
.wtable thead th { text-align: center; padding: 2px 0; position: static; }
.wtable td { text-align: center; min-width: 30px; height: 30px; padding: 0; border: 1px solid var(--mist); }
.wtable td svg { display: block; margin: 0 auto; fill: currentColor; }
.wtable .now { outline: 2px solid var(--ink); outline-offset: -2px; }
.chart { position: relative; max-width: 46rem; }
.w-section .chart-legend { max-width: 46rem; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; opacity: 0.6; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: inherit; }
.chart .hit { fill: transparent; }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--sea); color: #fff; font-size: 12px; padding: 5px 8px; border-radius: 3px; white-space: nowrap; line-height: 1.4; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.8125rem; color: var(--muted); margin: 0 0 4px; }
.chart-legend i { display: inline-block; width: 12px; height: 3px; margin-right: 5px; vertical-align: 3px; border-radius: 2px; }
.w-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr)); gap: 24px 32px; }
.w-grid > * { min-width: 0; }
.w-grid h3 { margin: 0 0 2px; font-size: 0.9375rem; }
.w-grid .hint { margin: 0 0 6px; }
:root { --viz-1: #2a78d6; --viz-2: #eb6834; --viz-3: #1baf7a; --viz-4: #eda100; }
@media (prefers-color-scheme: dark) { :root { --viz-1: #3987e5; --viz-2: #d95926; --viz-3: #199e70; --viz-4: #c98500; } }
.dtable { border-collapse: collapse; font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.dtable th, .dtable td { text-align: left; padding: 4px 14px 4px 0; border-bottom: 1px solid var(--line); font-weight: 400; white-space: nowrap; }
.dtable thead th { color: var(--muted); }
details.tbl { margin-top: 4px; }
details.tbl summary { font-size: 0.75rem; font-weight: 400; color: var(--muted); }
.cbox { min-width: 0; }

.brand-switch { position: relative; }
.brand-switch summary { cursor: pointer; list-style: none; }
.brand-switch summary::-webkit-details-marker { display: none; }
.brand-switch summary::after { content: ""; display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); margin-left: 2px; opacity: 0.7; }
.brand-list { position: absolute; z-index: 30; left: 0; top: calc(100% + 6px); min-width: 11rem; display: flex; flex-direction: column; padding: 4px; background: var(--sea); border: 1px solid var(--on-sea-muted); border-radius: 3px; }
.brand-list a { padding: 8px 10px; color: var(--on-sea); text-decoration: none; border-radius: 2px; }
.brand-list a:hover, .brand-list a:focus-visible { background: rgba(255, 255, 255, 0.12); }

/* Telefoon: staat onderaan, zodat het de regels hierboven overschrijft */
@media (max-width: 700px) {
  a, button, label, summary { touch-action: manipulation; }
  header.site { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0; padding: 0.35rem 0 0; }
  header.site .brand-switch { padding: 0 1rem; margin: 0; }
  header.site summary.brand { min-height: 44px; }
  header.site nav { flex-wrap: nowrap; gap: 0; overflow-x: auto; scrollbar-width: none; padding: 0 0.5rem; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 1.5rem), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 1.5rem), transparent); }
  header.site nav::-webkit-scrollbar { display: none; }
  header.site nav a { flex: none; display: flex; align-items: center; min-height: 44px; padding: 0 0.6rem; white-space: nowrap; }
  .brand-list { left: 1rem; right: 1rem; }
  .brand-list a { padding: 12px; }
  .page { padding-top: 1.25rem; padding-bottom: 2rem; }
  h2 { margin-top: 2rem; }
  button, .btn, .btn-quiet { min-height: 44px; }
  input[type=checkbox] { width: 1.4rem; height: 1.4rem; }
  .check { min-height: 2.5rem; }
  input[type=text], input[type=email], input[type=url], input[type=number], input[type=password], select, textarea { min-height: 44px; font-size: 16px; }
  .inline select { font-size: 16px; }
  summary { min-height: 2.5rem; display: flex; align-items: center; gap: 0.4rem; }
  summary::before { content: ""; flex: none; width: 0; height: 0; border-left: 6px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
  details[open] > summary::before { transform: rotate(90deg); }
  summary::-webkit-details-marker { display: none; }
  .brand-switch summary::before { content: none; }
  .brand-switch summary { display: inline-flex; }
  /* Weerpagina: land en plek naast elkaar, dagen op één rij die meeloopt tijdens het scrollen */
  .weer-head { display: block; }
  .inline-form { display: grid; grid-template-columns: 2fr 3fr; gap: 0.6rem; margin-top: 0.75rem; }
  .inline-form label { min-width: 0; }
  .inline-form select { min-width: 0; }
  .w-days { position: sticky; top: 0; z-index: 6; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 10px -1rem 14px; padding: 8px 1rem; background: var(--mist); }
  .w-days::-webkit-scrollbar { display: none; }
  .w-days button { flex: none; min-height: 40px; white-space: nowrap; }
  .w-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
  .w-tiles dd { font-size: 1.125rem; }
  .w-section > h2 { margin-top: 0; }
  details.tbl summary { min-height: 2.25rem; }
}
@media (max-width: 30rem) {
  .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
