/* Grundlayout und Design-Tokens — gilt markenübergreifend.
   Seiten- und markenspezifisches Layout kommt in späteren Tasks dazu. */

:root {
  /* Abstandsskala */
  --abstand-6: 6px;
  --abstand-8: 8px;
  --abstand-10: 10px;
  --abstand-12: 12px;
  --abstand-14: 14px;
  --abstand-16: 16px;
  --abstand-18: 18px;
  --abstand-20: 20px;
  --abstand-22: 22px;
  --abstand-24: 24px;
  --abstand-26: 26px;
  --abstand-30: 30px;
  --abstand-34: 34px;
  --abstand-40: 40px;

  /* Radien */
  --radius-6: 6px;
  --radius-10: 10px;
  --radius-12: 12px;
  --radius-18: 18px;
  --radius-20: 20px;

  /* Schatten */
  --schatten-sticker-klein: 5px 5px 0;
  --schatten-sticker-gross: 7px 7px 0;
  --schatten-knopf: 0 4px 0;
}

/* Reset */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--schrift-text);
}

.nav-toggle {
  display: none;
}

/* Content-Container */
.container {
  max-width: 1180px;
  margin: 0 auto;
  border-radius: var(--radius-18);
}

/* Fußzeile */
.fuss {
  background: var(--f-dunkel_tief);
  color: var(--f-text_auf_dunkel);
  padding: var(--abstand-22) var(--abstand-40);
}

.fuss-kanal a {
  color: var(--f-highlight);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* Kleine Fenster: Die öffentliche Navigation bekommt eine eigene Zeile.
   Ohne min-width: 0 übernimmt die lange Linkzeile die Breite des Dokuments. */
@media (max-width: 620px) {
  .nav {
    min-width: 0;
    padding: var(--abstand-8) var(--abstand-14);
    gap: var(--abstand-8);
  }

  .nav-marke {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .nav-marke img {
    max-width: 100%;
    height: 36px;
  }

  .nav-links {
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    padding: 8px 10px;
    border: 2px solid var(--f-dunkel, #1c1e33);
    background: transparent;
    color: var(--f-dunkel, #1c1e33);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
  }

  .nav-toggle-icon {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
  }

  .nav-toggle-icon span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
  }

  .nav:not(.nav-offen) .nav-links {
    display: none;
  }

  .nav.nav-offen .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-basis: 100%;
  }

  .nav-links li {
    min-width: 0;
    flex: 1 1 auto;
  }

  .nav-links a {
    width: 100%;
    padding: var(--abstand-6) 4px;
    border-width: 2px;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
  }
}
