.app_header {
  background-color: var(--surface_inverse_color);
  height: 64px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 90;
  display: flex;
  align-items: center;
}
.header_content_div {
  width: 100%;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand_wrapper_div {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand_title {
  font-size: 24px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -1px;
  color: var(--primary_color);
}
/* The mascot stands on its own — no disc behind it, and it fills the space the
   disc used to take */
.mascot_wrapper_div {
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mascot_image {
  height: 40px;
  width: 40px;
  object-fit: contain;
  display: block;
}

.main_layout_wrapper_div {
  display: flex;
  padding-top: 64px;
  height: 100%;
}
.sidebar_nav {
  width: var(--sidebar_width);
  background-color: var(--surface_container_low_color);
  border-right: 1px solid var(--border_color);
  padding: 96px 0 32px 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 80;
}
.content_column_div {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar_width);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  /*
   * The scrollbar takes its width off the right edge only, which pulls
   * everything inside a little to the left — visible wherever content runs to
   * both edges. The same width is kept free on the left so the two sides match.
   * Where the scrollbar floats over the content, as on a phone, there is
   * nothing to reserve and this has no effect.
   */
  scrollbar-gutter: stable both-edges;
}
.main_content_area {
  width: 100%;
  max-width: var(--content_max_width);
  margin: 0 auto;
  padding: 64px var(--content_gutter);
  display: flex;
  flex-direction: column;
}
.app_footer {
  margin-top: auto;
  padding: 32px 0;
  border-top: 1px solid var(--border_color);
  background-color: var(--surface_container_low_color);
}
.footer_inner_div {
  width: 100%;
  max-width: var(--content_max_width);
  margin: 0 auto;
  padding: 0 var(--content_gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  flex-wrap: wrap;
}
.footer_links_div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text_secondary_color);
}
/* Real links to the legal views — the underline only on hover, so the row keeps
   reading as a footer rather than as a paragraph of links */
.footer_link_anchor {
  color: inherit;
  text-decoration: none;
  transition: 0.2s ease;
}
.footer_link_anchor:hover,
.footer_link_anchor:focus-visible {
  color: var(--primary_color);
  text-decoration: underline;
}
.footer_copyright_text {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text_tertiary_color);
}

/* Tablet — sidebar collapses to an icon rail */
@media (max-width: 1024px) {
  :root {
    --sidebar_width: 80px;
    --content_gutter: 32px;
  }
  .sidebar_nav {
    padding: 88px 0 32px 0;
    align-items: center;
  }
  .header_content_div {
    padding: 0 16px;
  }
}

/* Mobile — sidebar becomes a bottom bar */
@media (max-width: 720px) {
  :root {
    --sidebar_width: 0px;
    --content_gutter: 20px;
  }
  .sidebar_nav {
    width: 100%;
    height: var(--mobile_nav_height);
    top: auto;
    bottom: 0;
    flex-direction: row;
    padding: 0;
    border-right: none;
    border-top: 1px solid var(--border_color);
    background-color: var(--surface_inverse_color);
  }
  .content_column_div {
    padding-bottom: calc(var(--mobile_nav_height) + 20px);
  }
  /* Impressum, Datenschutz and AGB move into Einstellungen at this width */
  .app_footer {
    display: none;
  }
  .main_content_area {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .brand_title {
    font-size: 20px;
  }
}
