/* Navigation aller Seiten (HTML aus werkzeuge/leiste.py, Verhalten js/leiste.js). Lädt nach hallen.css.
   Laptop: Kopfleiste mit Preise · Beispiele · Demo bauen · Anrufen/Rückruf · Chat · [Kontakt].
   Handy (<= 720 px): Kopf mit Logo, Ton (nur Hallen), Menü; feste Leiste unten mit Anrufen/Rückruf · Chat · Demo bauen. */
:root { --leiste-h: 0px; }
.leiste { gap: var(--s2); }
/* Gescrollt: dichter Grund, damit kein Text hinter Logo und Menü durchscheint (Unterseiten immer, Hallen nur am Handy) */
.unterseite .leiste.gescrollt { background: rgba(8, 9, 8, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(232, 181, 110, .14); padding-bottom: 0; transition: background-color .25s; }
@media (max-width: 720px) { .leiste.gescrollt { background: rgba(8, 9, 8, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(232, 181, 110, .14); padding-bottom: 0; } }
.leiste .leiste-nav { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 26px); margin-left: auto; }
.leiste .leiste-nav a, .leiste .leiste-nav button {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 4px;
  font: inherit; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--leise); text-decoration: none; background: none; border: 0; cursor: pointer; transition: color .3s, border-color .3s, background .3s;
}
.leiste .leiste-nav a:hover, .leiste .leiste-nav button:hover, .leiste .leiste-nav [aria-current] { color: var(--text); }
.leiste .leiste-nav svg, .leiste-unten svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.leiste .leiste-nav .lk-demo { color: var(--licht); }
.leiste .leiste-nav .lk-kontakt { padding: 0 18px; border: 1px solid var(--licht); border-radius: 999px; color: #17120a; background: var(--licht); }
.leiste .leiste-nav .lk-kontakt:hover { background: #f2c888; border-color: #f2c888; color: #17120a; }
.leiste .ton { min-height: 44px; padding: 0 12px; font-size: .75rem; }
.menue-knopf, .leiste-menue, .leiste-unten { display: none; }
@media (max-width: 1180px) and (min-width: 721px) {
  .leiste .leiste-nav { gap: 10px; }
  .leiste .leiste-nav a, .leiste .leiste-nav button { letter-spacing: .08em; }
  .leiste .leiste-nav .lk-tel span, .leiste .leiste-nav .lk-chat span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .leiste .leiste-nav .lk-tel, .leiste .leiste-nav .lk-chat { min-width: 44px; justify-content: center; }
  .leiste .ton .ton-text { display: none; }
}

@media (max-width: 720px) {
  :root { --leiste-h: calc(60px + env(safe-area-inset-bottom, 0px)); }   /* js/leiste.js misst nach */
  .leiste .leiste-nav { display: none; }
  .leiste .ton { margin-left: auto; min-width: 44px; min-height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
  .leiste .ton .ton-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  /* nur Symbol: Lautsprecher statt leerem Kreis, sonst weiß niemand, wofür der Knopf ist */
  .leiste .ton .ton-icon { width: 18px; height: 18px; border: 0; border-radius: 0; background: currentColor; box-shadow: none;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M4 9.5h3.5L12 5.5v13l-4.5-4H4z' fill='%23000'/%3E%3Cpath d='M15.5 9a4 4 0 0 1 0 6M18 6.5a7.5 7.5 0 0 1 0 11'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M4 9.5h3.5L12 5.5v13l-4.5-4H4z' fill='%23000'/%3E%3Cpath d='M15.5 9a4 4 0 0 1 0 6M18 6.5a7.5 7.5 0 0 1 0 11'/%3E%3C/svg%3E") center / contain no-repeat; opacity: .6; }
  .leiste .ton[aria-pressed="true"] .ton-icon { opacity: 1; background: var(--licht, #e8b56e); box-shadow: none; }
  .menue-knopf { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 14px; margin-left: auto;
    font: inherit; font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--text); background: rgba(12,11,9,.55); border: 1px solid rgba(232,181,110,.35); border-radius: 999px; cursor: pointer; }
  .leiste .ton + .menue-knopf { margin-left: 0; }
  .mk-strich, .mk-strich::before, .mk-strich::after { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform .25s, opacity .25s; }
  .mk-strich { position: relative; }
  .mk-strich::before, .mk-strich::after { content: ""; position: absolute; left: 0; }
  .mk-strich::before { top: -5px; } .mk-strich::after { top: 5px; }
  .menue-auf .mk-strich { background: transparent; }
  .menue-auf .mk-strich::before { transform: translateY(5px) rotate(45deg); }
  .menue-auf .mk-strich::after { transform: translateY(-5px) rotate(-45deg); }

  .leiste-menue:not([hidden]) { display: grid; position: fixed; z-index: 40; left: 12px; right: 12px; top: calc(66px + env(safe-area-inset-top, 0px));
    padding: 8px; background: #0e0c0a; border: 1px solid rgba(232,181,110,.3); border-radius: 10px; box-shadow: 0 20px 50px rgba(0,0,0,.6); }
  .leiste-menue a { display: flex; align-items: center; min-height: 52px; padding: 0 14px; border-bottom: 1px solid rgba(232,181,110,.14);
    font-family: var(--f-mono); font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text); text-decoration: none; }
  .leiste-menue a:last-child { border-bottom: 0; }
  /* Gauntlet: offenes Menü dunkelt die Seite ab (Kopfleiste mit Schließen bleibt oben) */
  .leiste-menue:not([hidden])::before { content: ""; position: fixed; z-index: -1; inset: 0; background: rgba(5,4,3,.84); }
  .menue-auf .leiste { z-index: 41; }

  .leiste-unten { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); gap: 6px;
    background: rgba(10,9,8,.94); border-top: 1px solid rgba(232,181,110,.28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .leiste-unten a, .leiste-unten button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 0 6px;
    font: inherit; font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
    color: var(--text); text-decoration: none; background: rgba(255,255,255,.03); border: 1px solid rgba(232,181,110,.22); border-radius: 8px; cursor: pointer; }
  .leiste-unten .lk-demo { color: #17120a; background: var(--licht); border-color: var(--licht); }

  /* nichts darf hinter der Leiste verschwinden: feste Elemente unten um --leiste-h anheben */
  body { padding-bottom: var(--leiste-h); }
  .gl-an .raum-ablauf .schritt { bottom: calc(var(--s3) + var(--leiste-h)); }
  .gl-an .raum-beispiele .nische-schild[data-seite] { bottom: calc(var(--s4) + var(--leiste-h)); }
  .gl-an .raum-anker.raum-beispiele .raumkopf[data-halt] { bottom: calc(var(--s4) + var(--leiste-h)); }
  .gl-an .raum-anker.raum-preise .quelle[data-halt] { bottom: calc(var(--s4) + var(--leiste-h)); }
  .gl-an .raum-preise .pk-huelle { bottom: calc(14px + var(--leiste-h)); }
  .kugel-leiste { bottom: calc(var(--s3) + var(--leiste-h)); }
  .unter-fuss { padding-bottom: var(--s5); }
}
@media print { .leiste-unten, .leiste-menue, .menue-knopf { display: none !important; } }
/* P7: Einfache Ansicht <-> Erlebnis – leise, ganz rechts (Laptop) bzw. letzter Menüpunkt (Handy) */
.leiste .leiste-nav .lk-ansicht { font-size: .75rem; letter-spacing: .08em; text-decoration: underline; text-underline-offset: 4px; color: var(--leise); }
@media (max-width: 1180px) and (min-width: 721px) { .leiste .leiste-nav .lk-ansicht { display: none; } }
.leiste-menue .lk-ansicht { color: var(--licht); }
