/* Kopfzeile und Fusszeile. Frueher kam beides aus dem Theme, jetzt eigener,
   deutlich schlankerer Code: Logo links, vier Links rechts. */

.bb-head {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-height);
  padding: 10px max(20px, calc((100% - var(--page-width)) / 2));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #f0ebf7;
}

.bb-head__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.bb-head__logo img {
  display: block;
  height: 28px;
  width: auto;
}

.bb-head__nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
}

.bb-head__link {
  font-family: var(--bb-font-body);
  font-size: 15px;
  color: var(--bb-ink);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

.bb-head__link:hover { color: var(--bb-pink); }
.bb-head__link[aria-current='page'] { border-bottom-color: var(--bb-pink); }

/* Auf der Startseite traegt das Foto die Flaeche: die Kopfzeile faehrt erst
   ein, wenn die About-Sektion oben ankommt. Am Handy navigiert die Blase. */
body.bb-home .bb-head {
  position: fixed;
  left: 0;
  right: 0;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .32s cubic-bezier(0.2, 0.7, 0.2, 1), opacity .24s ease;
}

body.bb-home.bb-header-on .bb-head {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

@media screen and (max-width: 749px) {
  body.bb-home .bb-head,
  body.bb-links-page .bb-head { display: none; }
  .bb-head__nav { gap: 14px; }
  .bb-head__link { font-size: 14px; }
}

body.bb-links-page .bb-head { display: none; }
