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

/* Mobieltjes */
@media screen and (max-width: 640px) {
  body {
    margin: 0;
    font-size: 0.95em;
  }
  
  /* Menu aanpassingen */
  #menu {
    width: 100vw;
    max-width: 100vw;
    height: auto;
    position: relative;
    padding: 0;
    margin: 0;
    left: 0;
    right: 0;
    box-sizing: border-box;
  }
  
  #menu ol {
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
  }
  
  #menu ol li {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    width: 33.33%;
    box-sizing: border-box;
  }
  
  /* Header aanpassingen */
  header {
    position: relative;
    width: 100vw;
    padding: 80px 0 0 0;
    margin: 0 0 0 0;
  }
  header h4 {
    position: absolute;
    top: 65px;
    left: 0px;
    width: 100vw;
    height: 30px;;
    overflow: hidden;
    font-size: 1em;
    margin:0;
    background-color: orange;
  }
  /* sandwich menu */
	.button-menu {position:absolute;top:-4px; left:5px;display:block;width:27px;height:27px;margin:0;cursor: pointer;}
	.button-menu span {position: absolute; top:8px;left:0px;display:block;width:17px; height: 2px;background-color: white;margin-top:10px;margin-left: 2px;transition: transform 0.2s ease-in;}
	.button-menu span:before {content:'';position: absolute;top:-5px;left:0;width:17px; height: 2px;background-color: white;transition: transform 0.2s ease-in;}
	.button-menu span:after {content:'';position: absolute;top:5px;left:0;width:17px; height: 2px;background-color: white;transition: transform 0.2s ease-in;}
	.button-menu.active span {width:0px}
	.button-menu.active span:before {transform:translateY(5px) rotate(-45deg);}
	.button-menu.active span:after {transform:translateY(-5px) rotate(45deg);}
	/* einde sandwich menu */

  /* ul#submenu aanpassingen */
  ul#submenu {
    position: fixed;
    top: 165px;
    left: -250px;
    width: 250px;
    height: auto;
    background-color: orange;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 10px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease-in-out;
    z-index: 1000;
  }
  ul#submenu li {
    float:none;
    width:100%;
    padding: 0px;
  }
  ul#submenu li a {
    display: block;
    padding: 10px 15px;
    font-size: 16px;
    color: white;
    text-decoration: none;
  }
  ul#submenu li a:hover {
    background-color: darkorange;
  }
  /* Einde ul#submenu aanpassingen */

    /* html en body breedte aanpassen */
  html, body {
    width: 100vw;
    max-width: 100vw;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }

  /* section breedte aanpassen */
  section {
    width: 100vw;
    max-width: 100vw;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }
  
  /* Koppen aanpassen */
  header h1 {
    position: absolute;
    top: 0px;
    left: 30px;
    font-size: 1.5em;
    margin:10px 10px 10px 0;
  }
  
  header h3 {
    position: absolute;
    top: 30px;
    left: 30px;
    display: block;
    width: calc(100vw - 60px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 1.2em;
    margin: 10px auto 5px auto;
  }

  /* Headings aanpassen */
  h1 {
    font-size: 1.5em;
  }
  
  h2 {
    font-size: 1.3em;
  }
  
  h3 {
    font-size: 1.15em;
  }
  
  h4 {
    font-size: 1.05em;
  }
  
  /* Footer aanpassingen */
  footer {
    width: 100vw;
    height: auto;
    line-height: 1.4;
    margin-top: 20px;
    padding: var(--spacing-sm);
    text-align: center;
    position: relative;
  }
  
  /* Tabellen responsive maken */
  
  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%;
  }
  
  /* Apple-style kalender met klikbare speeldagen, volledige begin/eindweek en witte tekst op blauw */
  .kalender-wrapper {
    max-width: 100vw;
  }
  .kalender-maand {
    margin: 0 auto;
  }
  .kalender-maand table {
    min-width: auto;
    width: auto;
  }
  .kalender .dagblok {
    width: 38px;
    height: 48px;
  }
}
