/* In-flow navigation keeps the film unobstructed at every viewport size. */
.header {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}
.header nav {
  display: flex;
  justify-self: center;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  border: 1px solid #344f77;
  border-radius: 16px;
  background: #0a1422;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: .015em;
}
.header nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 11px;
  color: #d0dcf0;
  text-align: center;
  white-space: nowrap;
  touch-action: manipulation;
  transition: color 160ms ease, background-color 160ms ease;
}
.header nav a[aria-current="location"] {
  color: #fff;
  background: #203857;
  text-decoration: underline;
  text-decoration-color: #a7c6ff;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
.header nav a:focus-visible {
  outline: 3px solid #eff5ff;
  outline-offset: 2px;
}
.header .small-cta { justify-self: end; }
.brand { width: fit-content; min-height: 48px; justify-content: center; }
.footer-links a { display: inline-flex; align-items: center; min-height: 48px; }
#main, #workshop, #livio, #interviews, #faq, #einsteigen { scroll-margin-top: 28px; }
.skip:focus-visible {
  top: 12px;
  border-radius: 8px;
  outline: 3px solid #91b8ff;
  outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  .header nav a:hover { color: #fff; background-color: #182c46; }
}
@media (max-width: 1100px) {
  .header { grid-template-columns: 1fr auto; column-gap: 20px; row-gap: 18px; }
  .header nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }
  .header .small-cta { grid-column: 2; grid-row: 1; }
}
@media (max-width: 700px) {
  .header { padding-block: 20px; gap: 18px 12px; }
  .header nav { padding: 5px; border: 1px solid #344f77; border-radius: 14px; gap: 4px; font-size: 16px; }
  .header nav a { padding: 12px 8px; }
}
@media (max-width: 560px) {
  .header nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .header .small-cta { max-width: 178px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .header nav a { transition: none; }
}
