/* The Rider App, nieuwe website: wat het ontwerp niet zelf regelt.
   De opmaak van het ontwerp staat inline in elke pagina; hier alleen:
   - de bedankstand van het wachtlijstformulier;
   - smalle schermen: geen horizontaal scrollen. Er is nog GEEN mobiel ontwerp; dit voorkomt
     alleen dat de desktoppagina breekt. Boven 1100 px breed doet dit bestand niets aan de opmaak. */

/* Een voetlink breekt niet midden in zijn tekst ("Press & Media", "Presse & Medien"). */
#dc-root footer a { white-space: nowrap; }

/* Taalkeuze: eigen vaste klassen, want hij staat op elke pagina en de hoverklassen van het
   ontwerp (scp0, scp1, ...) zijn per pagina anders genummerd. Waarden uit "Lang Switcher". */
.tk-knop:hover { color: rgb(188, 24, 35) !important; }
.tk-rij:hover { background: rgb(238, 238, 241) !important; }

[data-wachtlijst] .wl-dank { display: none; }

/* E-mailveld in elke taal minstens zo breed als in het Engelse ontwerp (290,8 px; daar is de rij 480 px
   met een button van 177 px). Een langere buttontekst drukte het veld weg (NL 183 px, 16 tekens).
   De rij is minstens 480 px en groeit mee met de button, tot 550 px (de kolom van de hero; `max-width` begrenst
   ook de ruimte die de rij in de kolommen vraagt, dus de telefoon schuift niet op). Past veld plus button daarna
   niet, dan valt de button onder het veld. Engels blijft zoals het ontwerp. */
@media (min-width: 641px) {
  html:not([lang="en"]) #dc-root form[data-wachtlijst] { flex-wrap: wrap; width: max-content; min-width: 480px; max-width: 550px !important; }
  html:not([lang="en"]) #dc-root form[data-wachtlijst] input { flex: 1000 1 290.8px !important; min-width: 290.8px !important; min-height: 52px; }
  html:not([lang="en"]) #dc-root form[data-wachtlijst] button { flex: 1 1 auto; max-width: 100%; white-space: normal; }
}
[data-wachtlijst][data-klaar] input { border-color: rgb(231, 231, 236) !important; }
form[data-wachtlijst] input[type="email"][aria-invalid="true"]:focus:not(:placeholder-shown),
form[data-wachtlijst] input[type="email"][aria-invalid="true"] { border-color: #bc1823 !important; }

@media (max-width: 1099px) {
  #dc-root section > div, #dc-root header > div, #dc-root footer > div { max-width: 100% !important; }
  #dc-root section > div[style*="grid-template-columns"],
  #dc-root section > div > div[style*="grid-template-columns"],
  #dc-root footer > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  /* Voet van ontwerp d952 (links de linkrij, rechts jaartal en iconen): onder elkaar als het smal wordt. */
  #dc-root footer > div[style*="space-between"] { flex-wrap: wrap; justify-content: center !important; }
  #dc-root [style*="border-left: 1px solid rgba(255, 255, 255"] { border-left: 0 !important; padding-left: 0 !important; }
  #dc-root h1 { font-size: 46px !important; }
  #dc-root [style*="width: 780px"] { width: 100% !important; }
  #dc-root .tst { display: none; }
}

@media (max-width: 640px) {
  #dc-root section { padding-left: 16px !important; padding-right: 16px !important; }
  #dc-root section > div { padding-left: 20px !important; padding-right: 20px !important; }
  #dc-root header > div { padding-left: 16px !important; padding-right: 16px !important; }
  #dc-root header [data-taalkeuze] + a, #dc-root header a.cta { padding: 9px 12px !important; font-size: 13px !important; }
  /* Het ontwerp heeft geen telefoonstand; de wachtlijstbutton in de kop blijft op een regel
     (op 360 en 390 brak hij anders in twee). */
  #dc-root header [data-taalkeuze] + a, #dc-root header a.cta { white-space: nowrap; }
  #dc-root form[data-wachtlijst] { flex-direction: column; }
  #dc-root form[data-wachtlijst] input { min-height: 52px; }
  #dc-root h2 { font-size: 32px !important; }
  /* Het venster na inschrijven: de titel zoals het mobiele ontwerp (22 px), niet de 32 van de pagina. */
  #dc-root h2.wl-h { font-size: 22px !important; }
  #dc-root [data-count-to] { font-size: 60px !important; }
  #dc-root footer > div > div { justify-self: center !important; flex-wrap: wrap; justify-content: center; }
  /* Geen hyphens: auto (eigen ontwerp, brak woorden als "ac-cess"); break-word houdt ze in beeld. */
  #dc-root h1, #dc-root h2, #dc-root h3, #dc-root p, #dc-root li { overflow-wrap: break-word; }
}

/* Kop op een telefoon (geen telefoonontwerp): logo, taalkeuze en de wachtlijstbutton op een regel.
   Op 390 en 430 alleen de ruimte ertussen kleiner; op 360 ook logo en button iets kleiner. */
@media (max-width: 420px) {
  #dc-root header > div > div { gap: 10px !important; }
  #dc-root header [data-taalkeuze] + a, #dc-root header a.cta { padding: 9px 10px !important; }
}
@media (max-width: 379px) {
  #dc-root header > div > a img { height: 18px !important; }
  #dc-root header [data-taalkeuze] + a, #dc-root header a.cta { font-size: 12px !important; }
}
