@charset "UTF-8";

/* ============================================================
   menu.css — gemeinsame Menü- & Footer-Logik
   Desktop : schwarzes Band (~77% links), farbige Linie, Footer
             spiegelbildlich (Band rechts).
   Handy   : Band wird zum Kopf mit Hamburger; die Menüpunkte
             klappen als volles Band darunter auf.
   Wird von den Galerie-Seiten UND (ab nächstem Schritt) den
   Unterseiten geladen – eine Logik für alles.
   Setzt die Tokens aus style.css voraus.
   ============================================================ */

/* ---- Kopf / schwarzes Band ---------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 10px;
}

.menu-col {
  width: 77%;
}

.menu-band {
  position: relative;
  display: flex;
  align-items: center;
  background: #000;
  box-shadow: 0 12px 6px -7px rgba(0,0,0,.75);
}

.brand {
  color: var(--olive);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .02em;
  text-decoration: none;
  padding: 0 16px;
  white-space: nowrap;
}

.brand:hover {
  color: #FF9;
}

/* Hauptpunkte – fluide Abstände, damit kurz vor dem Umbruch nichts springt */
.switches {
  display: flex;
  align-items: center;
  list-style: none;
  min-height: 2.6em;
}

.switches a {
  display: block;
  color: var(--olive);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 11px clamp(8px,1.6vw,18px);
}

.switches a:hover {
  color: #FF9;
}

/* Sprachauswahl – sitzt am rechten Ende des Bandes */
.lang {
  margin-left: auto;
  display: flex;
  align-items: center;
  padding-right: 12px;
  font-family: var(--mono);
}

.lang a {
  color: #9c986f;
  text-decoration: none;
  font-size: 10px;
  letter-spacing: .06em;
  padding: 11px 4px;
  white-space: nowrap;
}

.lang a:hover {
  color: var(--olive);
}

.lang .abbr {
  display: none;
}

/* farbige Linie wie früher #line2: ab 33% des Bandes, läuft nach rechts hinaus */
.menu-line {
  position: absolute;
  left: 77%;
  width: 52.8%;
  bottom: 3px;
  height: 8px;
  border-top: 1px solid #6F6;
  border-bottom: 4px solid var(--olive);
  z-index: 4;
}

/* Hamburger – nur am Handy sichtbar */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 11px;
  background: none;
  border: 0;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--olive);
  transition: transform .25s ease, opacity .2s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---- Sprachkürzel ab ~1000px: English/Français → EN/FR ------------ */
@media (max-width: 1000px) and (min-width: 769px) {

  .lang .full {
    display: none;
  }

  .lang .abbr {
    display: inline;
  }

  .lang a {
    font-size: 12px;
    letter-spacing: .08em;
    padding: 11px 5px;
  }

}

/* ---- Footer (fix, spiegelbildlich: Band rechts) ------------------- */
.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 40;
}

.footer-col {
  width: 77%;
  margin-left: auto;
}

.footer-band {
  position: relative;
  background: #000;
  color: var(--olive);
  box-shadow: 0 -12px 6px -7px rgba(0,0,0,.75);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 11px 24px;
}

/* farbige Linie gespiegelt: ab 33% von rechts, läuft nach links hinaus */
.footer-line {
  position: absolute;
  right: 77%;
  width: 52.8%;
  top: 3px;
  height: 8px;
  border-bottom: 1px solid #6F6;
  border-top: 4px solid var(--olive);
  z-index: 4;
}

.footer-band a {
  display: inline-flex;
  color: var(--olive);
  text-decoration: none;
}

.footer-band img {
  height: 22px;
  width: auto;
  display: block;
  padding: 2px;
}

.footer-band .fb {
  background: #747A88;
}

.footer-band .insta {
  background: #ED0061;
}

/* ============================================================
   Handy (≤768px): Band → Kopf mit Hamburger, Menü klappt auf
   ============================================================ */
@media (max-width: 768px) {

  .topbar {
    padding-top: 0;
  }

  .menu-col {
    width: 100%;
  }

  .menu-band {
    flex-wrap: wrap;
    border-bottom: 3px solid var(--olive);
    padding: 11px 14px;
    box-shadow: 0 8px 8px -7px rgba(0,0,0,.6);
  }

  .brand {
    margin-right: auto;
    padding: 0;
    font-size: 18px;
    order: 0;
  }

  .menu-line {
    display: none;
  }

  .lang {
    order: 1;
    margin-left: 0;
    padding-right: 8px;
  }

  .lang .full {
    display: none;
  }

  .lang .abbr {
    display: inline;
  }

  .lang a {
    font-size: 11px;
    padding: 5px 3px;
  }

  .burger {
    display: flex;
    order: 2;
    margin: -11px -11px -11px 0;
  }

  /* Menüpunkte: standardmäßig zu, klappen als volles Band auf */
  .switches {
    order: 3;
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    margin: 11px -14px -11px;
    background: #000;
    text-transform: uppercase;
  }

  .topbar.open .switches {
    display: flex;
  }

  .switches li {
    border-top: .5px solid rgba(208,206,163,.25);
  }

  .switches a {
    padding: 13px 16px;
    font-size: 13px;
  }

  .switches a:hover,
  .switches a:focus-visible {
    background: #161616;
    color: #fff;
    outline: none;
  }

  /* Footer mobil: volle Breite, bündig unten, Band unten */
  .site-footer {
    bottom: 0;
  }

  .footer-col {
    width: 100%;
  }

  .footer-band {
    justify-content: flex-start;
    gap: 16px;
    border-top: 3px solid var(--olive);
    box-shadow: 0 -8px 8px -7px rgba(0,0,0,.55);
    padding: 9px 16px calc(9px + env(safe-area-inset-bottom));
  }

  .footer-line {
    display: none;
  }

}
