/* Header and compact menu: keep the existing mobile navigation. */
.nav-aquarium-teaser {
  display: none;
}

@media screen and (min-width: 1024px) {
  #home #logo img {
    max-width: 260px;
  }

  #navigation .cd-main-header {
    position: static;
    transform: none;
    will-change: auto;
  }

  #cd-primary-nav {
    transform: none;
  }

  #navigation .cd-overlay {
    top: 140px;
    height: calc(100% - 140px);
  }

  #tierpark-menuitem {
    padding: 6px 34px 7px 120px !important;
    background: linear-gradient(to right, transparent 84px, #1e6a33 84px);
    border-radius: 6px;
    /* font-size: 13px; */
    font-size: 0.93rem;
    font-weight: 400;
    white-space: nowrap;
  }

  #tierpark-menuitem:hover,
  #tierpark-menuitem.selected,
  #tierpark-menuitem:focus-visible {
    background: linear-gradient(to right, transparent 84px, #d2291c 84px);
  }

  #tierpark-menuitem .compact-menu-icons {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
  }

  .compact-menu-icon,
  .aquarium-teaser-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    border-radius: 50%;
  }

  .compact-menu-icon-tierpark {
    background: #1e6a33;
  }

  .compact-menu-icon-aquarium {
    margin-left: -6px;
    background: #003874;
  }

  .compact-menu-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
  }

  #cd-primary-nav > #tropen-aq {
    display: none;
  }

  #cd-primary-nav #interaktive_zookarte {
    background: #d2291c;
  }

  #cd-primary-nav #interaktive_zookarte:hover,
  #cd-primary-nav #interaktive_zookarte:focus-visible {
    background: #003874;
  }

  #home .header-social {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 0 22px 0 16px;
  }

  .header-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 44px;
    color: #1e6a33;
    font-size: 44px;
    line-height: 1;
  }

  .header-social a:hover,
  .header-social a:focus-visible {
    color: #d2291c;
  }

  .header-social a::after {
    content: none;
  }

  #hagenbeck-kompakt-nav.cd-secondary-nav {
    background-image: none;
    top: 180px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    > li:nth-child(9) {
        border-top: 0;
        border-left: 1px solid #fff;
    }
  }

  #hagenbeck-kompakt-nav > .nav-aquarium-teaser {
    display: flex;
    flex: 0 0 25%;
    width: 25%;
    padding: 18px 16px 18px 22px;
  }

  .aquarium-teaser {
    width: 100%;
    padding: 8px 20px 20px;
    border-radius: 16px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
  }

  .aquarium-teaser-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #003874;
    font-family: 'Averia Libre', sans-serif;
    font-size: clamp(18px, 1.6vw, 25px);
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
  }

  .aquarium-teaser-icon {
    width: 44px;
    height: 44px;
    background: #003874;
  }

  .aquarium-teaser-icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
  }

  .aquarium-teaser-content {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .aquarium-teaser-content p {
    flex: 1;
    margin: 0;
    color: #333;
    font-size: 15px;
    line-height: 20px;
  }

  .aquarium-teaser-photo {
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
  }

  .aquarium-teaser-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateY(7%) scale(1.22);
  }

  #hagenbeck-kompakt-nav .aquarium-teaser-link {
    display: block;
    height: auto;
    padding: 10px 8px;
    border-radius: 6px;
    background: #003874;
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
  }

  #hagenbeck-kompakt-nav .aquarium-teaser-link:hover,
  #hagenbeck-kompakt-nav .aquarium-teaser-link:focus-visible {
    background: #d2291c;
    color: #fff;
  }
}

@media screen and (min-width: 1024px) and (max-width: 1240px) {
  #home #logo img {
    max-width: 220px;
  }

  #cd-primary-nav > li > a {
    font-size: 13px;
    padding-left: 10px;
    padding-right: 10px;
  }

  #home .header-social {
    gap: 6px;
    padding-right: 0;
    padding-left: 8px;
  }

  .aquarium-teaser {
    padding: 8px 12px 14px;
  }

  .aquarium-teaser-title {
    gap: 6px;
    font-size: 18px;
  }

  .aquarium-teaser-icon {
    width: 32px;
    height: 32px;
  }

  .aquarium-teaser-icon img {
    width: 26px;
    height: 26px;
  }

  .aquarium-teaser-photo {
    flex-basis: 60px;
    width: 60px;
    height: 60px;
  }
}
