/*******************************************/
/*Below 1200px (landscape tablets) */
/*******************************************/

@media (max-width: 75em) {
  html {
    font-size: 56.25%;
  }
}

/*******************************************/
/*Below 944px (Tablets) */
/*******************************************/

@media (max-width: 59em) {
  html {
    font-size: 50%;
  }
  /*MOBILE NAVIGATION*/
  .btn-mobile-nav {
    display: block;
    z-index: 9999;
  }

  .nav {
    background-color: #333333e6;
    color: #fff;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(10px);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    transform: translateX(100%);

    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease-in;

    /*Hide navigation*/
    /*Allows no transitions at all*/
    /* display: none; */

    /*1: Hide it visually*/
    opacity: 0;

    /*2: Make it unaccessible */
    pointer-events: none;

    /*3: Hide it from screenreaders*/
    visibility: hidden;
  }

  .nav-open .nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0);
  }
  .nav-open .icon-mobile-nav[name="close-outline"] {
    display: block;
    /* transform: translateX(0); <-- nutzt hier nix */
  }
  .nav-open .icon-mobile-nav[name="menu-outline"] {
    display: none;
    /* transform: translateX(0); <-- nutzt hier nix */
  }

  .nav__list {
    flex-direction: column;
    gap: 4.8rem;
  }

  .games-side-by-side {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  .section-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .section-filter input,
  .section-filter button {
    width: 100%;
    margin: 10px 0;
  }
}

/*******************************************/
/*Below 704px (Smaller Tablets) */
/*******************************************/

@media (max-width: 44em) {
  .game {
    grid-template-columns: repeat(2, 1fr);
  }
  .game-venue {
    order: 2;
  }
  .btn-verfuegbar {
    margin: auto;
    order: 4;
  }
}
/*******************************************/
/*Below 600px (Smaller Tablets) */
/*******************************************/
@media (max-width: 600px) {
  .game-entry-modal {
    max-width: 100%;
  }
  .game-entry-modal__body {
    padding: 1.2rem;
  }
  .score-input {
    width: 3.8rem;
    font-size: 1.2rem;
  }
  .entry-table td,
  .entry-table th {
    padding: 0.5rem 0.3rem;
    font-size: 1.1rem;
  }

  .game-entry-modal__footer {
    flex-direction: column;
    align-items: stretch;
  }
  .gem-footer-actions {
    margin-left: 0;
  }
}

/*******************************************/
/*Below 544px (Phones) */
/*******************************************/

@media (max-width: 34em) {
  .game {
    /* display: flex;
          flex-direction: column;
          gap: 1.4rem; */
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 1.4rem;
  }
  .game-venue {
    order: 2;
  }
  .btn-verfuegbar {
    margin: auto;
    order: 4;
  }

  .last-games-section table td:first-child,
  .upcoming-games-section table td:first-child {
    display: none; /* Datum auf sehr kleinen Screens ausblenden */
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .btn {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}

/*******************************************/
/*Fixing Safari Flexbox Gap */
/*******************************************/

.no-flexbox-gap .main-nav-list li:not(:last-child) {
  margin-right: 4.8rem;
}

.no-flexbox-gap .list-item:not(:last-child) {
  margin-bottom: 1.6rem;
}

.no-flexbox-gap .list-icon:not(:last-child) {
  margin-right: 1.6rem;
}

.no-flexbox-gap .delivered-faces {
  margin-right: 1.6rem;
}

.no-flexbox-gap .meal-attribute:not(:last-child) {
  margin-bottom: 2rem;
}

.no-flexbox-gap .meal-icon {
  margin-right: 1.6rem;
}

.no-flexbox-gap .footer-row div:not(:last-child) {
  margin-right: 6.4rem;
}

.no-flexbox-gap .social-links li:not(:last-child) {
  margin-right: 2.4rem;
}

.no-flexbox-gap .footer-nav li:not(:last-child) {
  margin-bottom: 2.4rem;
}

@media (max-width: 75em) {
  .no-flexbox-gap .main-nav-list li:not(:last-child) {
    margin-right: 3.2rem;
  }
}

@media (max-width: 59em) {
  .no-flexbox-gap .main-nav-list li:not(:last-child) {
    margin-right: 0;
    margin-bottom: 4.8rem;
  }
}
