/*
 * Huisstijl van de Padel Cup Intern (plan pagina 16, mock-up 1 op pagina 6), in de huisstijl
 * van hero.eu: Exo voor alles, ExtraBold (800) voor koppen en cijfers, Caveat voor hooguit
 * één handgeschreven accent per scherm, Hero Blauw en Hero Oranje, kop van elk scherm als
 * verloop van Hero Blauw naar Blauw Black, één hoofdknop per scherm (oranje, witte tekst),
 * tikvlakken van minstens 48 pixels. Fonts staan in /assets/fonts (OFL), niets van buiten.
 */

@font-face {
  font-family: 'Exo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/exo-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Exo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/exo-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Exo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/exo-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Exo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/exo-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Exo';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/exo-latin-800-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Exo';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/exo-latin-ext-800-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/caveat-latin-700-normal.woff2') format('woff2');
}

:root {
  --hero-blauw: #073889;
  --hero-oranje: #f46015;
  --blauw-black: #03153f;
  --blauw-bold: #0065cc;
  --blauw-soft: #d3e6f0;
  --oranje-thin: #fde1b6;
  --groen: #38bd47;
  --rood: #b71525;
  --geel: #ffbd0d;
  --wit: #ffffff;
  --achtergrond-licht: #f3f7fa;
  --tekst: #03153f;
  --radius-kaart: 18px;
  --radius-knop: 14px;
  --schaduw-kaart: 0 6px 24px rgba(3, 21, 63, 0.12);
  --tikvlak: 48px;
  --font: 'Exo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand: 'Caveat', 'Segoe Print', cursive;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--wit);
  background: linear-gradient(180deg, var(--hero-blauw) 0%, var(--blauw-black) 100%) fixed;
}

.scherm {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  padding: calc(20px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
}

.kop {
  display: flex;
  align-items: center;
  min-height: 56px;
}

.logo {
  display: block;
  width: 72px;
  height: auto;
}

.intro {
  margin-top: 48px;
}

.label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oranje-thin);
}

.titel {
  margin: 0;
  font-size: clamp(40px, 11vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.accent {
  color: var(--hero-oranje);
}

.feiten {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.feiten li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.icoon {
  flex: none;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.feiten .icoon {
  color: var(--hero-oranje);
}

.handschrift {
  margin: 28px 0 0;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.1;
  color: var(--hero-oranje);
  transform: rotate(-4deg);
  transform-origin: left center;
}

.actie {
  margin-top: auto;
  padding-top: 32px;
  display: grid;
  gap: 12px;
}

.knop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--tikvlak);
  padding: 12px 20px;
  border: 0;
  border-radius: var(--radius-knop);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.knop--hoofd {
  width: 100%;
  min-height: 56px;
  font-size: 17px;
  color: var(--wit);
  background: var(--hero-oranje);
  box-shadow: 0 8px 24px rgba(244, 96, 21, 0.35);
}

.knop--hoofd:hover {
  background: #e25510;
}

.knop--tekst {
  justify-self: center;
  color: var(--wit);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.knop:disabled {
  opacity: 0.6;
  cursor: progress;
}

.knop:focus-visible,
.link:focus-visible {
  outline: 3px solid var(--oranje-thin);
  outline-offset: 3px;
}

.voetnoot {
  margin: 0;
  font-size: 14px;
  text-align: center;
  color: var(--blauw-soft);
}

.melding {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--rood);
  background: var(--wit);
}

.melding[hidden] {
  display: none;
}

.kaart {
  padding: 20px;
  border-radius: var(--radius-kaart);
  color: var(--tekst);
  background: var(--wit);
  box-shadow: var(--schaduw-kaart);
}

.kaart p {
  margin: 8px 0 0;
}

.kaart-kop {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--hero-blauw);
}

.kaart-icoon {
  margin: 0 0 8px;
}

.kaart-icoon .icoon {
  width: 32px;
  height: 32px;
  color: var(--groen);
}

.scherm--kort .kaart {
  margin-top: 48px;
}

.link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tikvlak);
  font-weight: 800;
  color: var(--blauw-bold);
}

.link[hidden] {
  display: none;
}

/*
 * De schermen na het inloggen (plan pagina 6, mock-up 1, scherm 2 en 3): een kop met het verloop van Hero Blauw naar
 * Blauw Black en witte tekst, daaronder witte kaarten op een lichte achtergrond. Elk tikvlak minstens 48 pixels hoog.
 */

body[data-pagina="aanmelden"],
body[data-pagina="organisatie"] {
  color: var(--tekst);
  background: var(--achtergrond-licht);
}

.scherm--app {
  padding: 0;
  max-width: 520px;
  background: var(--achtergrond-licht);
}

.scherm--breed {
  max-width: 1120px;
}

.appkop {
  padding: calc(16px + env(safe-area-inset-top)) 20px 28px;
  color: var(--wit);
  background: linear-gradient(180deg, var(--hero-blauw) 0%, var(--blauw-black) 100%);
  text-align: left;
}

.logo--klein {
  width: 48px;
  margin-bottom: 12px;
}

.appkop-teken {
  margin: 4px 0 8px;
}

.appkop-teken .icoon {
  color: var(--wit);
}

.icoon--groot {
  width: 44px;
  height: 44px;
}

.appkop-label {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blauw-soft);
}

.appkop-titel {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}

.appkop-onder {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--blauw-soft);
}

.inhoud {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 20px 16px calc(28px + env(safe-area-inset-bottom));
}

.kaart-regel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kaart-label {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hero-blauw);
}

.pil {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: var(--hero-blauw);
  background: var(--blauw-soft);
  white-space: nowrap;
}

.pil--oranje {
  color: #a43c06;
  background: var(--oranje-thin);
}

.teller-strip {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-weight: 600;
  color: var(--hero-blauw);
}

.teller-strip > span:last-child {
  margin-left: 8px;
}

.avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: 800;
  color: var(--hero-blauw);
  background: var(--blauw-soft);
}

.avatar--klein {
  width: 30px;
  height: 30px;
  font-size: 13px;
  border: 2px solid var(--achtergrond-licht);
}

.avatar--meer {
  color: var(--wit);
  background: var(--hero-blauw);
}

.notitie {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 600;
  color: var(--hero-blauw);
  background: var(--blauw-soft);
}

.notitie--vol {
  color: #7a2e05;
  background: var(--oranje-thin);
}

.formulier {
  display: grid;
  gap: 18px;
}

.veld {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.veld-label {
  padding: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--hero-blauw);
}

.invoer {
  width: 100%;
  min-height: var(--tikvlak);
  padding: 10px 14px;
  border: 1px solid #b9cbe0;
  border-radius: 12px;
  font: inherit;
  color: var(--tekst);
  background: var(--wit);
}

/* WebKit (iPhone) negeert min-height en padding van een keuzelijst met het eigen uiterlijk (gemeten: 28 px); zonder
   dat uiterlijk telt het tikvlak van 48 px, met een eigen pijl in Hero Blauw (img-src staat data: toe). */
select.invoer {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%23073889' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px 20px;
}

.invoer:focus-visible {
  outline: 3px solid var(--blauw-bold);
  outline-offset: 1px;
}

.invoer--kort {
  width: 96px;
}

.invoer--vak {
  min-height: 96px;
  resize: vertical;
}

.invoer-rij {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hint {
  margin: 0;
  font-size: 14px;
  color: #45577a;
}

.segmenten {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--blauw-soft);
}

.segment {
  position: relative;
  display: flex;
}

.segment input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.segment span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tikvlak);
  padding: 8px 4px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--hero-blauw);
  text-align: center;
}

.segment input:checked + span {
  color: var(--wit);
  background: var(--hero-blauw);
}

.segment input:focus-visible + span {
  outline: 3px solid var(--blauw-bold);
  outline-offset: 1px;
}

.schakelaars {
  display: grid;
  border-radius: 14px;
  background: var(--achtergrond-licht);
}

.schakelaar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 8px 14px;
  cursor: pointer;
}

.schakelaar + .schakelaar {
  border-top: 1px solid #dde7f1;
}

.schakelaar-tekst {
  display: grid;
  font-weight: 800;
  color: var(--tekst);
}

.schakelaar-tekst small {
  font-size: 13px;
  font-weight: 400;
  color: #45577a;
}

.schakelaar-invoer {
  flex: none;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 52px;
  height: 32px;
  margin: 0;
  border-radius: 999px;
  background: #b9c3d0;
  cursor: pointer;
  transition: background 120ms ease;
}

.schakelaar-invoer::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--wit);
  box-shadow: 0 1px 3px rgba(3, 21, 63, 0.3);
  transition: transform 120ms ease;
}

.schakelaar-invoer:checked {
  background: var(--groen);
}

.schakelaar-invoer:checked::after {
  transform: translateX(20px);
}

.schakelaar-invoer:focus-visible {
  outline: 3px solid var(--blauw-bold);
  outline-offset: 2px;
}

.voetnoot--donker {
  color: #45577a;
}

.knop--tweede {
  color: var(--hero-blauw);
  background: var(--wit);
  border: 2px solid var(--blauw-soft);
}

.knop--breed {
  width: 100%;
}

.knop--tekst-donker {
  color: var(--hero-blauw);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.knop--gevaar {
  color: var(--wit);
  background: var(--rood);
}

.knoppen {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.link--midden {
  justify-self: center;
}

.aftellen {
  text-align: center;
}

.aftellen-cijfers {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  margin: 4px 0 0;
}

.cijfer {
  display: grid;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: var(--hero-blauw);
}

.cijfer small {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #45577a;
}

.dubbelepunt {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  color: var(--blauw-soft);
}

.deelnemerslijst {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.deelnemer {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 6px 0;
}

.deelnemer + .deelnemer {
  border-top: 1px solid #e3ebf3;
}

.persoon {
  flex: 1;
  display: grid;
  min-width: 0;
}

.persoon-naam {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.persoon-kantoor {
  font-size: 14px;
  color: #45577a;
}

.niveau {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: var(--hero-blauw);
  background: var(--blauw-soft);
}

.niveau--beginner {
  color: #a43c06;
  background: var(--oranje-thin);
}

.leeg {
  color: #45577a;
}

.plek {
  text-align: center;
}

.plek-cijfer {
  margin: 4px 0 0;
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: var(--hero-oranje);
}

.acties-klein {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 20px;
}

.bevestig[hidden],
.notitie[hidden] {
  display: none;
}

.voet {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid #dde7f1;
}

.voet .link .icoon,
.voet .knop .icoon {
  width: 20px;
  height: 20px;
}

.voet .link {
  gap: 8px;
}

.tellers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.teller .teller-getal {
  margin: 4px 0 0;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--hero-blauw);
}

.teller .teller-onder {
  margin: 2px 0 0;
  font-size: 14px;
  color: #45577a;
}

.tabelkaart .hint {
  margin-top: 6px;
}

.tabel-rol {
  margin-top: 12px;
  overflow-x: auto;
}

.tabel {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.tabel th,
.tabel td {
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e3ebf3;
}

.tabel thead th {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #45577a;
  white-space: nowrap;
}

.tabel tbody th {
  font-weight: 800;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .handschrift {
    transform: none;
  }
}
