@media only screen and (max-width: 850px) {
  :root {
    --header-height: 60px;
    --tabbar-height: 75px;
  }

  .tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #ddd;
    z-index: 5000;
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
  }

  .tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #8e8e93;
    font-size: 0.65rem;
    flex: 1;
    padding: 5px 0;
  }

  .tab-item.active { color: #007AFF; }
  .tab-item i { font-size: 1.3rem; margin-bottom: 3px; }
}

@media (min-width: 768px) {
  .tab-bar {
    height: 65px;
  }
  .tab-item {
    font-size: 0.6rem;
  }
  .tab-item i {
    font-size: 1.2rem;
  }

  .tab-item span {
   font-size: 1.0rem;
   font-weight: 500;
   }
}

/* ============================================
   Handy Optimierung (unter 480px)
   ============================================ */
@media (max-width: 480px) {
    .tab-bar {
    height: 80px;
  }
  .tab-item {
    font-size: 0.7rem;
  }
  .tab-item i {
    font-size: 1.4rem;
  }

  .tab-item span {
   font-size: 0.7rem;
   font-weight: 400;
   }
}