/**
 * @file
 * Paginaopbouw.
 */

.tkd-site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Kop */

.tkd-kop {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--tkd-zwart);
  color: #fff;
  border-bottom: 3px solid var(--tkd-rood);
}

.tkd-kop__binnen {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: .65rem 1.25rem;
}

.tkd-merk {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  text-decoration: none;
  flex: 0 0 auto;
}

.tkd-merk__logo {
  width: auto;
  height: 2.75rem;
  display: block;
}

.tkd-merk__naam {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.tkd-merk__regel1 {
  font-size: .8125rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .8;
}

.tkd-merk__regel2 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

/* Navigatie */

.tkd-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.tkd-nav__lijst {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tkd-nav__lijst a {
  display: block;
  padding: .5rem .8rem;
  border-radius: var(--tkd-radius-klein);
  color: rgba(255, 255, 255, .85);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
}

.tkd-nav__lijst a:hover,
.tkd-nav__lijst a:focus-visible {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.tkd-nav__lijst .tkd-nav__aanmaken {
  background: var(--tkd-rood);
  color: #fff;
  font-weight: 600;
}

.tkd-nav__lijst .tkd-nav__aanmaken:hover {
  background: #a70d26;
}

/* Dropdown (bv. het Admin-menu) */

.tkd-nav__heeft-submenu {
  position: relative;
}

/* Een klein pijltje bij een item met een submenu. */
.tkd-nav__heeft-submenu > a::after {
  content: "";
  display: inline-block;
  margin-left: .4rem;
  border: .3rem solid transparent;
  border-top-color: currentColor;
  border-bottom: 0;
  vertical-align: middle;
  opacity: .7;
}

.tkd-nav__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 60;
  min-width: 12.5rem;
  margin: .35rem 0 0;
  padding: .3rem;
  list-style: none;
  background: var(--tkd-zwart);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-.25rem);
  transition: opacity .12s ease, transform .12s ease, visibility .12s;
}

.tkd-nav__heeft-submenu:hover > .tkd-nav__submenu,
.tkd-nav__heeft-submenu:focus-within > .tkd-nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tkd-nav__submenu a {
  display: block;
  white-space: nowrap;
  border-radius: 6px;
}

.tkd-menuknop {
  display: none;
  margin-left: auto;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--tkd-radius-klein);
  background: none;
  cursor: pointer;
}

.tkd-menuknop__streep,
.tkd-menuknop__streep::before,
.tkd-menuknop__streep::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0 auto;
  background: #fff;
  content: "";
}

.tkd-menuknop__streep::before {
  transform: translateY(-6px);
}

.tkd-menuknop__streep::after {
  transform: translateY(4px);
}

/* Inhoud */

.tkd-hoofd {
  flex: 1 1 auto;
  display: flex;
  gap: 2rem;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.tkd-hoofd__binnen {
  flex: 1 1 auto;
  min-width: 0;
}

.tkd-hoofd__binnen nav li {
  list-style: none;
}

.tkd-zijbalk {
  flex: 0 0 16rem;
}

.tkd-app--wide .tkd-hoofd {
  max-width: 100rem;
}

/* Voettekst */

.tkd-voet {
  background: var(--tkd-zwart);
  color: rgba(255, 255, 255, .7);
}

.tkd-voet__binnen {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  font-size: .875rem;
}

.tkd-voet a {
  color: #fff;
}

/* Aanmeldscherm */

.tkd-toegang {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: 100vh;
}

.tkd-toegang__zijde {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--tkd-zwart);
  color: #fff;
}

.tkd-toegang__merk {
  text-align: center;
}

.tkd-toegang__logo {
  width: 8.5rem;
  height: auto;
}

.tkd-toegang__slogan {
  margin: 1.25rem 0 0;
  line-height: 1.2;
}

.tkd-toegang__slogan span {
  display: block;
  font-size: .875rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .8;
}

.tkd-toegang__slogan strong {
  display: block;
  font-size: 1.75rem;
  letter-spacing: -.01em;
}

.tkd-toegang__paneel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background: #fff;
}

.tkd-toegang__binnen {
  width: 100%;
  max-width: 26rem;
}

.tkd-toegang__terug {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: .875rem;
  text-decoration: none;
}

/* Kleine link onder het wachtwoordveld naar 'wachtwoord vergeten'. */
.tkd-toegang__wachtwoord-reset {
  margin-top: -.5rem;
  margin-bottom: 1.1rem;
  font-size: .8125rem;
  text-align: right;
}

.tkd-toegang__wachtwoord-reset a {
  color: var(--tkd-grijs);
  text-decoration: none;
}

.tkd-toegang__wachtwoord-reset a:hover,
.tkd-toegang__wachtwoord-reset a:focus-visible {
  color: var(--tkd-blauw);
  text-decoration: underline;
}

@media (max-width: 60rem) {
  .tkd-toegang {
    grid-template-columns: 1fr;
  }

  .tkd-toegang__zijde {
    padding: 2rem 1.5rem;
    min-height: 12rem;
  }
}

@media (max-width: 48rem) {
  .tkd-hoofd {
    flex-direction: column;
    padding-top: 1.5rem;
  }

  .tkd-menuknop {
    display: block;
  }

  .tkd-nav {
    display: none;
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .tkd-nav.is-open {
    display: block;
  }

  .tkd-kop__binnen {
    flex-wrap: wrap;
  }

  .tkd-nav__lijst {
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
    padding-bottom: .5rem;
  }

  .tkd-nav__lijst a {
    padding: .7rem .8rem;
  }

  /* In het uitklapmenu staat het submenu gewoon ingesprongen onder het item,
     niet als zwevende dropdown. */
  .tkd-nav__submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    margin: 0 0 .25rem;
    padding: 0 0 0 1rem;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .tkd-nav__heeft-submenu > a::after {
    display: none;
  }
}
