/* Macherzentrale · Kopf und Fuß der neuen Startseite für Seiten mit eigener Gestaltung (03.10.2026).
   Gleiche Bausteine wie home-scene.css (.bar, .brand, .bar-nav, .bar-login, .theme-btn, .foot),
   aber ohne eigene Seitenfarben: Hintergrund und Schrift kommen von der Seite selbst
   (Beispielprofile, später weitere Seiten). Nicht zusammen mit home-scene.css laden. */
.bar,.foot{
  --chrome-display:'Syne','Inter',system-ui,sans-serif;
  --chrome-text:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  --chrome-gutter:clamp(16px,4vw,56px);
  --chrome-muted:color-mix(in srgb,currentColor 66%,transparent);
  --chrome-line:color-mix(in srgb,currentColor 16%,transparent);
  font-family:var(--chrome-text);
}
.skip{position:absolute;left:-999px;top:8px;z-index:99;padding:8px 14px;border-radius:8px;background:#211a20;color:#fff;font:600 .95rem/1.2 'Inter',system-ui,sans-serif}
.skip:focus{left:8px}

.bar{position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px var(--chrome-gutter);background-color:inherit;color:inherit;border-bottom:1px solid transparent;transition:border-color .25s,box-shadow .25s}
/* Trennlinie erscheint beim Scrollen (nur wo der Browser scroll-gesteuerte Animationen kann, sonst ohne Linie) */
@supports (animation-timeline:scroll()){
  .bar{animation:bar-line linear both;animation-timeline:scroll(root);animation-range:0 120px}
  @keyframes bar-line{to{border-bottom-color:var(--chrome-line);box-shadow:0 10px 30px -24px rgba(0,0,0,.45)}}
}
.brand{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none;font:700 1.05rem/1 var(--chrome-display);letter-spacing:-.01em}
.brand img{width:40px;height:40px;object-fit:contain}
html[data-gz-theme="dark"] .brand img{filter:invert(1) sepia(.35) brightness(.95)}
.bar-nav{display:flex;align-items:center;gap:clamp(12px,2.4vw,28px);font-size:.95rem}
.bar-nav a{color:var(--chrome-muted);text-decoration:none}
.bar-nav a:hover,.bar-nav a[aria-current]{color:inherit}
.bar-nav .bar-login{color:inherit;border:1px solid var(--chrome-line);padding:8px 16px;border-radius:999px}
.bar-nav .bar-login:hover{border-color:currentColor}
.theme-btn{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:999px;border:1px solid var(--chrome-line);background:none;color:inherit;cursor:pointer;line-height:1}
.theme-btn:hover{border-color:currentColor}
.bar :focus-visible,.foot :focus-visible{outline:3px solid currentColor;outline-offset:3px;border-radius:6px}

.foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px 24px;margin-top:clamp(40px,8vw,90px);padding:28px var(--chrome-gutter);border-top:1px solid var(--chrome-line);font-size:.9rem;color:inherit}
.foot>span{color:var(--chrome-muted)}
.foot nav{display:flex;flex-wrap:wrap;gap:8px 20px}
.foot a{color:var(--chrome-muted)}
.foot a:hover{color:inherit}

@media (max-width:860px){.brand{font-size:.92rem}.brand img{width:32px;height:32px}.bar-nav .bar-login{padding:7px 13px}}
@media (max-width:700px){.bar-nav a[href="/holzvisitenkarten"]{display:none}}
@media (max-width:520px){.bar-nav a:not(.bar-login){display:none}}
@media (prefers-reduced-motion:reduce){.bar{transition:none}}

/* Kopfzeile auf schmalen Handys (03.10.2026): Schriftzug, Anmelden und Hell/Dunkel passen nebeneinander */
.brand span{white-space:nowrap}
.bar-nav{flex:none}
@media (max-width:480px){
  .brand{gap:8px}.brand img{width:30px;height:30px}.brand span{font-size:.78rem}
  .bar-nav{gap:8px}.bar-nav .bar-login{padding:6px 12px;font-size:.9rem}
  .theme-btn{width:40px;height:40px}
}
@media (max-width:400px){.brand span{font-size:.7rem}}
@media (max-width:350px){.brand span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}
