/* Hütten-Cockpit Mobile-Fix 1.0.0 – nur Handy */
@media (max-width: 767px) {

  /* 1. Kategorie-Tabs: eine wischbare Zeile, klebt beim Scrollen oben */
  .hcm-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px !important;
    position: sticky;
    top: var(--hcm-top, 0px);
    z-index: 40;
    margin-left: -12px !important;
    margin-right: -12px !important;
    padding: 10px 12px !important;
    background: #F4EBDD;
    box-shadow: 0 1px 0 rgba(43, 47, 44, .14);
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    list-style: none;
  }
  .hcm-tabs::-webkit-scrollbar { display: none; }

  /* Weicher Auslauf rechts, solange noch Tabs folgen (deckend, nichts scheint durch) */
  .hcm-tabs::after {
    content: "";
    position: sticky;
    right: -12px;
    flex: 0 0 36px;
    margin-left: -44px;
    margin-right: -12px;
    align-self: stretch;
    background: linear-gradient(to right, rgba(244, 235, 221, 0), #F4EBDD 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s;
  }
  .hcm-tabs.hcm-more::after { opacity: 1; }

  .hcm-tab {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 9px 14px !important;
    font-size: 14px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    scroll-snap-align: center;
  }
  .hcm-tab > a,
  .hcm-tab > button {
    white-space: nowrap !important;
    padding: 0 !important;
    font-size: inherit !important;
  }

  /* 2. Gerichtszeile: Name links, Preis fest rechts, Badge unter dem Namen */
  .hcm-row {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 12px;
  }
  .hcm-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 22px !important;
    line-height: 1.15 !important;
  }
  .hcm-badge {
    display: block !important;
    width: max-content;
    max-width: 100%;
    margin: 6px 0 0 !important;
    font-size: 11px !important;
    vertical-align: baseline;
  }
  .hcm-price {
    flex: 0 0 auto;
    white-space: nowrap;
    text-align: right;
  }
}
