/* block-01-navigation: Mobile Dock getrennt von Desktop-Navigation. */
.mobile-dock,
.mobile-sheet,
.mobile-theme-sheet {
  display: none;
}

@media (max-width: 720px) {
  body {
    padding-bottom: calc(132px + env(safe-area-inset-bottom));
  }

  .topbar,
  .site-nav {
    position: sticky !important;
    top: 0;
    z-index: 34;
    min-height: 62px;
    align-items: center !important;
    flex-direction: row !important;
    padding: 12px 18px !important;
    margin-bottom: 0 !important;
    background: rgba(10, 8, 16, 0.70) !important;
    backdrop-filter: blur(18px);
  }

  .topbar .nav-links,
  .topbar .nav-actions,
  .site-nav .nav-links,
  .site-nav .nav-actions {
    display: none !important;
  }

  .brand {
    font-size: 22px !important;
  }

  .mobile-dock {
    position: fixed;
    left: max(14px, env(safe-area-inset-left));
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 80;
    display: grid;
    grid-template-columns: minmax(166px, 1.75fr) repeat(3, 50px);
    gap: 7px;
    align-items: center;
    pointer-events: auto;
  }

  .mobile-dock button,
  .mobile-sheet a,
  .mobile-theme-sheet button {
    min-height: 56px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    color: var(--text);
    background: rgba(35, 30, 43, 0.92);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255,255,255,0.06);
    backdrop-filter: blur(18px);
    font-weight: 900;
  }

  .mobile-dock button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
  }

  .mobile-dock svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
  }

  .mobile-login {
    justify-content: flex-start !important;
    gap: 10px;
    padding: 0 14px !important;
    border-color: rgba(145, 70, 255, 0.60) !important;
    color: #fff !important;
    background: linear-gradient(135deg, #9b4dff, #5a35df) !important;
  }

  .mobile-login .twitch-box {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #111018;
    background: #fff;
    box-shadow:
      inset 0 0 0 1px rgba(0,0,0,0.08),
      0 8px 18px rgba(0,0,0,0.20);
  }

  .mobile-login .twitch-box svg {
    width: 24px;
    height: 24px;
    stroke: none;
    fill: currentColor;
  }

  .mobile-login .twitch-box img {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
    filter: brightness(0) invert(1);
  }

  .mobile-login span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-sheet,
  .mobile-theme-sheet {
    position: fixed;
    left: max(14px, env(safe-area-inset-left));
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(88px + env(safe-area-inset-bottom));
    z-index: 79;
    max-height: min(68vh, 560px);
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    padding: 12px;
    background:
      radial-gradient(circle at 0 0, rgba(217,185,95,0.18), transparent 32%),
      rgba(12, 10, 20, 0.94);
    box-shadow: 0 24px 90px rgba(0,0,0,0.58);
    backdrop-filter: blur(22px);
  }

  .mobile-sheet:not([hidden]),
  .mobile-theme-sheet:not([hidden]) {
    display: grid;
    gap: 10px;
  }

  .mobile-sheet a,
  .mobile-theme-sheet button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 16px;
    padding: 0 18px;
    text-decoration: none;
    text-transform: none;
    cursor: pointer;
  }

  .mobile-sheet a.is-active,
  .mobile-theme-sheet button.is-active {
    border-color: rgba(245, 217, 129, 0.55);
    background:
      linear-gradient(135deg, rgba(217,185,95,0.30), rgba(125,67,255,0.18)),
      rgba(35, 30, 43, 0.94);
  }
}
