/* Filialmonitor – mobiler Header v1. Nur Layout, keine JS-/HTML-Funktionen. */
@media (max-width: 800px) {
  .topbar {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
  }
  .topbar > .brand {
    display: flex;
    align-items: center;
    align-self: flex-start;
    flex-wrap: nowrap;
    min-width: 0;
    max-width: 100%;
    gap: 9px;
    white-space: nowrap;
  }
  .topbar > .brand > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 17px;
  }
  .topbar .account {
    box-sizing: border-box;
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "theme admin"
      "user logout";
    align-items: center;
    gap: 8px 10px;
  }
  .topbar .account > .theme-toggle {
    grid-area: theme;
    justify-self: start;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
  }
  .topbar .account > a {
    grid-area: admin;
    justify-self: end;
    min-width: 0;
    max-width: 100%;
    font-size: 12px;
    white-space: nowrap;
  }
  .topbar .account > span {
    grid-area: user;
    display: block;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    text-align: left;
    font-size: 12px;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .topbar .account > span small {
    display: block;
    font-size: 10px;
    white-space: nowrap;
  }
  .topbar .account > form {
    grid-area: logout;
    justify-self: end;
    min-width: 0;
    margin: 0;
  }
  .topbar .account > form button {
    white-space: nowrap;
    max-width: 100%;
  }
}
@media (max-width: 380px) {
  .topbar { padding: 10px 12px; }
  .topbar > .brand > span { font-size: 15px; }
  .topbar .account { gap: 7px; }
  .topbar .account > a { font-size: 11px; }
}
