/* AlpenPuls Portal - Mobile Header One-Line Overrides (V3.3.2) */
@media (max-width: 900px) {
  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px 10px;
    min-height: 0;
    overflow: hidden;
  }

  .top-brand {
    flex: 0 1 auto;
    min-width: 0;
    gap: 6px;
  }

  .top-brand img {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }

  .top-brand strong {
    font-size: clamp(1.2rem, 3.8vw, 1.8rem);
    line-height: 1;
    white-space: nowrap;
  }

  .top-brand em {
    font-size: clamp(0.48rem, 1.35vw, 0.66rem);
    line-height: 1;
    letter-spacing: 0.18em;
    white-space: nowrap;
  }

  .top-claim {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 4px;
    font-size: clamp(0.56rem, 1.55vw, 0.82rem);
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .top-right-zone {
    flex: 0 0 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: nowrap;
  }

  .top-signature,
  .refresh-hint,
  .share-hint,
  .install-hint {
    display: none !important;
  }

  .admin-state,
  .ghost-button {
    flex: 0 0 auto;
    white-space: nowrap;
    line-height: 1;
  }

  .admin-state {
    padding: 4px 8px;
    font-size: 0.68rem;
  }

  .header-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 11px;
    flex: 0 0 34px;
  }

  .header-icon svg {
    width: 17px;
    height: 17px;
  }
}

@media (max-width: 640px) {
  .topbar {
    gap: 6px;
    padding: 7px 8px;
  }

  .top-brand img {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .top-brand strong {
    font-size: clamp(1rem, 4.4vw, 1.45rem);
  }

  .top-brand em {
    font-size: 0.42rem;
    letter-spacing: 0.14em;
  }

  .top-claim {
    font-size: clamp(0.5rem, 1.8vw, 0.72rem);
    margin: 0 2px;
  }

  .admin-state {
    padding: 3px 7px;
    font-size: 0.6rem;
  }

  .header-icon {
    width: 31px;
    height: 31px;
    min-width: 31px;
    min-height: 31px;
    border-radius: 10px;
    flex-basis: 31px;
  }

  .header-icon svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 440px) {
  .top-claim {
    max-width: 30vw;
  }

  .top-brand em {
    display: none;
  }

  .top-right-zone {
    gap: 5px;
  }
}
