/* Einheitliche Kopf- & Fußzeile (Editorial Engineering) — nutzt zentrale Tokens aus /src/tokens.css */
.hk-f2.hk-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 242, 0.92);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}

.hk-f2 *, .hk-f2 *::before, .hk-f2 *::after { box-sizing: border-box; }
.hk-f2 a { color: inherit; text-decoration: none; }
.hk-f2 ul { margin: 0; padding: 0; list-style: none; }
.hk-f2 a:focus-visible, .hk-f2 button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

.hk-f2 .hk-wrap {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.hk-f2 .hk-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.hk-f2 .hk-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  flex: 0 0 auto;
}

.hk-f2 .hk-logo-img {
  display: block;
  height: 32px;
  width: auto;
}

.hk-f2 .hk-nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.hk-f2 .hk-nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  transition: color 0.16s ease;
}

.hk-f2 .hk-nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 1.5px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.hk-f2 .hk-nav-links a:hover,
.hk-f2 .hk-nav-links a[aria-current="page"] {
  color: var(--ink);
}

.hk-f2 .hk-nav-links a:hover::after,
.hk-f2 .hk-nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.hk-f2 .hk-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.hk-f2 .hk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.hk-f2 .hk-btn-primary {
  background: var(--brand);
  color: #ffffff;
}
.hk-f2 .hk-btn-primary:hover { background: var(--brand-hover); color: #ffffff; }

.hk-f2 .hk-btn-secondary {
  background: var(--surface);
  border-color: var(--rule-strong);
  color: var(--ink);
}
.hk-f2 .hk-btn-secondary:hover {
  border-color: var(--ink);
  background: var(--paper-alt);
}

.hk-f2 .hk-header-cta { min-height: 44px; padding: 10px 18px; font-size: 0.9rem; }
.hk-f2 .hk-cta-short { display: none; }

.hk-f2 .hk-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  flex: 0 0 auto;
}
.hk-f2 .hk-nav-toggle:hover { border-color: var(--ink); background: var(--paper-alt); }
.hk-f2 .hk-nav-toggle svg { width: 20px; height: 20px; display: block; }

.hk-f2 .hk-mobile-nav {
  border-top: 1px solid var(--rule);
  background: var(--paper);
  padding: 14px var(--gutter) 22px;
}
.hk-f2 .hk-mobile-nav[hidden] { display: none; }
.hk-f2 .hk-mobile-nav li + li { border-top: 1px solid var(--rule); }
.hk-f2 .hk-mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 11px 0;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
}
.hk-f2 .hk-mobile-nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }

@media (max-width: 960px) {
  .hk-f2 .hk-nav-links { display: none; }
  .hk-f2 .hk-nav-actions { margin-left: auto; }
  .hk-f2 .hk-nav-toggle { display: inline-flex; }
}

@media (max-width: 560px) {
  .hk-f2 .hk-nav { min-height: 64px; gap: 12px; }
  .hk-f2 .hk-logo-img { height: 28px; }
  .hk-f2 .hk-cta-full { display: none; }
  .hk-f2 .hk-cta-short { display: inline; }
  .hk-f2 .hk-header-cta { padding: 10px 14px; font-size: 0.86rem; }
}

/* ── Einheitlicher 4-Spalten-Editorial-Footer (identisch auf allen Seiten) ── */
.hk-editorial-footer {
  margin-top: clamp(48px, 6vw, 84px);
  border-top: 1px solid var(--rule);
  background: var(--paper-alt);
  padding: 52px 0 32px;
  font-family: var(--font-sans);
  color: var(--ink);
  text-align: left;
}
.hk-editorial-footer *, .hk-editorial-footer *::before, .hk-editorial-footer *::after { box-sizing: border-box; }
.hk-editorial-footer a { color: inherit; text-decoration: none; }
.hk-editorial-footer ul { list-style: none; margin: 0; padding: 0; }
.hk-editorial-footer .hk-wrap {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}
.hk-editorial-footer .hk-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.8fr));
  gap: 32px;
}
.hk-editorial-footer .hk-footer-about p {
  margin: 14px 0 0;
  max-width: 38ch;
  font-size: 0.89rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.hk-editorial-footer .hk-logo {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}
.hk-editorial-footer .hk-logo-img {
  display: block;
  height: 30px;
  width: auto;
}
.hk-editorial-footer .hk-footer-col h2 {
  font-family: var(--mono, "IBM Plex Mono", monospace);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin: 0 0 14px;
}
.hk-editorial-footer .hk-footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.hk-editorial-footer .hk-footer-col a {
  font-size: 0.9rem;
  color: var(--ink-2);
  transition: color 0.15s ease;
}
.hk-editorial-footer .hk-footer-col a:hover { color: var(--brand); }
.hk-editorial-footer .hk-footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--mono, "IBM Plex Mono", monospace);
  font-size: 0.76rem;
  color: var(--ink-3);
}
@media (max-width: 960px) {
  .hk-editorial-footer .hk-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .hk-editorial-footer .hk-footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hk-f2 *, .hk-editorial-footer * { transition: none !important; }
}
