/* App-Shell: Kopfbereich, Inhalt, untere Navigation. Mobil zuerst ab 360px. */

#app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.kopf {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--farbe-hintergrund);
  border-bottom: 1px solid var(--farbe-rand);
  padding: var(--abstand-3) var(--abstand-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--abstand-3);
}

.kopf__titelgruppe {
  min-width: 0;
}

.kopf__ueberschrift {
  font-size: 1.15rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kopf__unterzeile {
  font-size: 0.8rem;
  color: var(--farbe-schrift-gedaempft);
  margin: 0;
}

.kopf__zurueck {
  background: none;
  border: none;
  color: var(--farbe-schrift);
  font-size: 1.4rem;
  line-height: 1;
  padding: var(--abstand-2);
  margin: calc(var(--abstand-2) * -1);
  cursor: pointer;
  border-radius: var(--radius-klein);
}

.inhalt {
  flex: 1 1 auto;
  padding: var(--abstand-4) var(--abstand-4) calc(var(--nav-hoehe) + var(--abstand-6));
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.seite {
  display: flex;
  flex-direction: column;
  gap: var(--abstand-4);
}

/* Untere Navigation */
.tabnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-hoehe);
  background: var(--farbe-flaeche-erhoeht);
  border-top: 1px solid var(--farbe-rand);
  display: flex;
  z-index: 30;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.tabnav__item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: none;
  border: none;
  color: var(--farbe-schrift-gedaempft);
  font-size: 0.68rem;
  cursor: pointer;
  padding: var(--abstand-1);
  min-width: 0;
}

.tabnav__item svg {
  width: 22px;
  height: 22px;
}

.tabnav__item[aria-current='page'] {
  color: var(--farbe-akzent);
  font-weight: 600;
}

.tabnav__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Mehr-Übersicht */
.mehr-liste {
  display: flex;
  flex-direction: column;
  gap: var(--abstand-3);
}

@media (min-width: 640px) {
  .inhalt {
    padding-left: var(--abstand-6);
    padding-right: var(--abstand-6);
  }
}
