@charset "UTF-8";
/* Responsive CSS - Maakt de Competitietool volledig responsive */

/* Tablet en grotere schermen - geen wijzigingen nodig */
@media screen and (min-width: 1025px) {
  /* Desktop layout blijft zoals het is */
}

/* Tablet landscape (1024px en kleiner) */
@media screen and (max-width: 1024px) {
  section {
    margin: 0 var(--spacing-md);
  }
  
  header {
    padding: var(--spacing-sm) var(--spacing-md);
  }
  
  div.registreren, div.informatie {
    width: 90%;
    max-width: 500px;
    left: 0;
    margin: 0 auto;
  }
  
  div.registreren a {
    margin-left: auto;
    margin-right: auto;
    left: 0;
  }
  
  table {
    font-size: 0.95em;
  }
  
  h4 {
    width: auto;
  }
}

/* Tablet portrait en kleine tablets (768px en kleiner) */
@media screen and (max-width: 768px) {
  body {
    margin: var(--spacing-sm) 0 50px 0;
    font-size: 0.95em;
  }
  
  /* Menu aanpassingen */
  #menu {
    width: 100%;
    height: auto;
    position: relative;
    padding: var(--spacing-sm) 0;
  }
  
  #menu ol {
    padding: var(--spacing-sm);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
  }
  
  #menu ol li {
    display: inline-block;
  }
  
  /* Header aanpassingen */
  header {
    width: 100%;
    text-align: center;
    padding: var(--spacing-sm);
    margin: 0;
  }
  
  header h1 {
    font-size: 1.5em;
  }
  
  /* Section aanpassingen */
  section {
    margin: var(--spacing-sm);
  }
  
  /* Footer aanpassingen */
  footer {
    height: auto;
    line-height: 1.4;
    padding: var(--spacing-sm);
    text-align: center;
    position: relative;
  }
  
  /* Tabellen responsive maken */
  table {
    width: 100%;
    font-size: 0.9em;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  table.formulier {
    display: table;
  }
  
  /* Schema tabel specifiek responsive */
  table.schema {
    font-size: 0.85em;
  }
  
  table.schema th,
  table.schema td {
    padding: 4px;
    min-width: 80px;
  }
  
  table.schema th:first-child,
  table.schema td:first-child {
    position: sticky;
    left: 0;
    background-color: var(--white);
    z-index: 1;
    min-width: 30px;
  }
  
  table.schema th:nth-child(2),
  table.schema td:nth-child(2) {
    position: sticky;
    left: 30px;
    background-color: var(--white);
    z-index: 1;
    min-width: 90px;
  }
  
  /* Wedstrijd tabel in cellen */
  table.schema table.wedstrijd {
    font-size: 0.9em;
    min-width: auto;
    width: auto;
  }
  
  /* Knoppen onder schema */
  table.schema button {
    font-size: 0.85em;
    padding: 5px 8px;
    margin: 3px 2px;
    white-space: normal;
    display: inline-block;
  }
  
  /* Input velden in criteria */
  .inputCriterium {
    width: 60px;
    font-size: 0.9em;
  }
  
  /* Uitleg sectie onder schema */
  table.schema h4 {
    font-size: 1em;
    margin-top: var(--spacing-sm);
  }
  
  table.schema ul {
    padding-left: 20px;
    font-size: 0.9em;
  }
  
  table.schema li {
    margin-bottom: 5px;
    line-height: 1.4;
  }
  
  /* Meldingen aanpassen */
  span.melding {
    width: calc(100% - var(--spacing-lg));
    right: var(--spacing-sm);
    font-size: 0.9em;
  }
  
  /* Progress container */
  .progress-container {
    width: calc(100% - var(--spacing-lg));
  }
  
  /* Home divs */
  div.home {
    padding: var(--spacing-sm);
    margin: var(--spacing-sm) 0;
  }
  
  div.registreren, div.informatie {
    width: 95%;
  }
  
  /* Headings aanpassen */
  h1 {
    font-size: 1.5em;
  }
  
  h2 {
    font-size: 1.3em;
  }
  
  h3 {
    font-size: 1.15em;
  }
  
  h4 {
    font-size: 1.05em;
  }
}

/* Mobiele telefoons landscape (640px en kleiner) */
@media screen and (max-width: 640px) {
  body {
    font-size: 0.9em;
  }
  
  header h1 {
    font-size: 1.3em;
  }
  
  section {
    margin: var(--spacing-xs);
  }
  
  div.home {
    padding: var(--spacing-xs);
    margin: var(--spacing-xs) 0;
  }
  
  /* Compactere spacing */
  h1, h2, h3, h4 {
    margin: var(--spacing-xs) 0;
    padding: 0 0 var(--spacing-xs) 0;
  }
  
  h1 {
    font-size: 1.3em;
  }
  
  h2 {
    font-size: 1.2em;
  }
  
  h3 {
    font-size: 1.1em;
  }
  
  h4, h5 {
    font-size: 1em;
  }
  
  /* Tabellen nog compacter */
  table {
    font-size: 0.85em;
  }
  
  td, th {
    padding: var(--spacing-xs);
  }
  
  /* Schema tabel extra compact */
  table.schema {
    font-size: 0.75em;
  }
  
  table.schema th,
  table.schema td {
    padding: 2px;
    min-width: 60px;
  }
  
  table.schema th:nth-child(2),
  table.schema td:nth-child(2) {
    left: 25px;
    min-width: 75px;
  }
  
  table.schema button {
    font-size: 0.8em;
    padding: 4px 6px;
    margin: 2px 1px;
  }
  
  table.schema h4 {
    font-size: 0.95em;
  }
  
  table.schema ul {
    padding-left: 15px;
    font-size: 0.85em;
  }
  
  table.schema li {
    margin-bottom: 4px;
  }
  
  /* Kleinere knoppen en inputs */
  input, select, textarea, button {
    font-size: 16px; /* Voorkomt zoom op iOS */
  }
  
  .inputCriterium {
    width: 50px;
    font-size: 0.85em;
  }
  
  div.registreren a {
    width: 180px;
    height: 36px;
    line-height: 36px;
    font-size: 0.95em;
  }
  
  footer {
    font-size: 0.7em;
    padding: var(--spacing-xs);
  }
}

/* Kleine mobiele telefoons (480px en kleiner) */
@media screen and (max-width: 480px) {
  body {
    font-size: 0.85em;
    line-height: 1.4;
  }
  
  header h1 {
    font-size: 1.2em;
  }
  
  section {
    margin: var(--spacing-xs);
  }
  
  /* Nog compactere tabellen */
  table {
    font-size: 0.8em;
  }
  
  /* Schema tabel zeer compact */
  table.schema {
    font-size: 0.7em;
  }
  
  table.schema th,
  table.schema td {
    padding: 2px;
    min-width: 50px;
  }
  
  table.schema th:first-child,
  table.schema td:first-child {
    min-width: 20px;
  }
  
  table.schema th:nth-child(2),
  table.schema td:nth-child(2) {
    left: 20px;
    min-width: 60px;
  }
  
  /* Knoppen stapelen op zeer kleine schermen */
  table.schema button {
    display: inline-block;
    width: auto;
    min-width: 120px;
    margin: 2px 1px;
    font-size: 0.75em;
    padding: 4px 6px;
  }
  
  /* Uitleg sectie zeer compact */
  table.schema h4 {
    font-size: 0.9em;
  }
  
  /* Lijst items compacter */
  table.schema ul {
    padding-left: 12px;
    font-size: 0.8em;
  }
  
  table.schema li {
    margin-bottom: 3px;
    line-height: 1.3;
  }
  
  /* Formulieren stapelen */
  table.formulier td {
    display: block;
    width: 100%;
    border: none;
    padding: var(--spacing-xs) 0;
  }
  
  table.formulier tr {
    display: block;
    margin-bottom: var(--spacing-sm);
    border: 1px solid var(--border-gray);
    border-radius: 5px;
    padding: var(--spacing-xs);
  }
  
  /* Input velden volle breedte */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="date"],
  select,
  textarea {
    width: 100%;
    max-width: 100%;
  }
  
  .inputCriterium {
    width: 45px;
  }
  
  /* Menu items compacter */
  #menu ol {
    gap: var(--spacing-xs);
  }
  
  /* Meldingen */
  span.melding {
    width: calc(100% - var(--spacing-md));
    font-size: 0.85em;
    padding: var(--spacing-xs);
  }
  
  div.registreren a {
    width: 160px;
    height: 32px;
    line-height: 32px;
    font-size: 0.9em;
  }
  
  h1 {
    font-size: 1.2em;
  }
  
  h2 {
    font-size: 1.15em;
  }
  
  h3 {
    font-size: 1.05em;
  }
  
  h4, h5 {
    font-size: 0.95em;
  }
}

/* Extra kleine schermen (360px en kleiner) */
@media screen and (max-width: 360px) {
  body {
    font-size: 0.8em;
  }
  
  header h1 {
    font-size: 1.1em;
  }
  
  table {
    font-size: 0.75em;
  }
  
  div.registreren, div.informatie {
    width: 100%;
  }
  
  div.registreren a {
    width: 140px;
    margin-left: auto;
    margin-right: auto;
  }
  
  footer {
    font-size: 0.65em;
  }
}

/* Landscape mode voor mobiele telefoons */
@media screen and (max-height: 500px) and (orientation: landscape) {
  header {
    padding: var(--spacing-xs);
  }
  
  header h1 {
    font-size: 1.2em;
  }
  
  #menu {
    position: relative;
    height: auto;
  }
  
  section {
    margin: var(--spacing-xs);
  }
  
  footer {
    position: relative;
  }
}

/* Touchscreen optimalisaties */
@media (hover: none) and (pointer: coarse) {
  /* Grotere klikbare elementen voor touch */
  a, button, .fa {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Grotere padding voor touch targets */
  td, th {
    padding: var(--spacing-sm);
  }
  
  /* Menu items groter voor touch */
  #menu ol li {
    padding: var(--spacing-sm);
  }
}

/* Print styles */
@media print {
  #menu, footer, span.melding {
    display: none;
  }
  
  section {
    margin: 0;
  }
  
  header {
    border-bottom: 2px solid var(--black);
    page-break-after: avoid;
  }
  
  table {
    page-break-inside: avoid;
  }
  
  a {
    color: var(--black);
    text-decoration: none;
  }
}
