/* Shared chrome for impressum, datenschutz, support */
:root { --paper:#FBFAF7; --ink:#14161B; --ink-2:#50545E; --ink-3:#8A8E98; --hair:#E3E0D6; --accent:#4F46E5; --accent-deep:#3730A3; --accent-soft:#EEF0FB; --green:#1E7F4F; --serif:"Source Serif 4",Georgia,serif; --sans:"Hanken Grotesk",sans-serif; --ease:cubic-bezier(.22,.61,.2,1); }
.subhead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,247,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
}
.subwrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.subhead .nav { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.subhead .brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.subhead .brand img { width: 28px; height: 28px; }
.subhead .brand .brand-mark { width: 26px; height: 26px; }
.subhead .brand .brand-word { width: auto; height: 19px; }
.subhead .nav-links { display: flex; gap: 24px; font-size: 14.5px; font-weight: 500; margin-left: 4px; }
.subhead .nav-links a { color: var(--ink-2); text-decoration: none; }
.subhead .nav-links a:hover { color: var(--ink); }
.subhead .nav-links a.act { color: var(--accent-deep); font-weight: 600; }
.subhead .nav-right { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 14.5px; font-weight: 500; }
.subhead .nav-right a { color: var(--ink-2); text-decoration: none; }
.subhead .nav-right a:hover { color: var(--accent-deep); }
.subhead .nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--hair);
  border-radius: 8px;
  background: #fff;
  flex-shrink: 0;
  cursor: pointer;
}
.subhead .nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s;
}
header.subhead.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header.subhead.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
header.subhead.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.subhead .nav-panel { display: contents; }
.subfoot {
  max-width: 1180px; margin: 0 auto; padding: 28px 32px 40px;
  border-top: 1px solid var(--hair); font-size: 14px; color: var(--ink-3);
  display: flex; gap: 20px; flex-wrap: wrap;
}
.subfoot a { color: var(--ink-2); text-decoration: none; }
.subfoot a:hover { color: var(--accent-deep); text-decoration: underline; }
@media (max-width: 720px) {
  .subwrap, .subfoot { padding-left: 20px; padding-right: 20px; }
  .subhead .nav { gap: 12px; position: relative; }
  .subhead .nav-toggle { display: flex; margin-left: auto; position: relative; z-index: 2; }
  .subhead .brand { position: relative; z-index: 2; }
  header.subhead.nav-open { z-index: 60; }
  /* backdrop-filter macht den Header sonst zum Containing-Block für das
     position:fixed-Panel – dann öffnet das Menü am Dokumentanfang statt am
     aktuellen Viewport. Beim geöffneten Menü deaktivieren. */
  header.subhead.nav-open { backdrop-filter: none; -webkit-backdrop-filter: none; }
  header.subhead.nav-open .nav-toggle {
    border-color: var(--accent);
    background: var(--accent-soft);
  }
  body.nav-open { overflow: hidden; }
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(20,22,27,.16);
    z-index: 54;
    pointer-events: none;
  }
  .subhead .nav-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    height: 100dvh;
    z-index: 55;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 76px 20px max(28px, env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background:
      radial-gradient(520px 320px at 110% -8%, rgba(79,70,229,.09), transparent 62%),
      radial-gradient(380px 260px at -15% 105%, rgba(30,127,79,.07), transparent 58%),
      var(--paper);
    box-sizing: border-box;
  }
  header.subhead.nav-open .nav-panel {
    display: flex;
    animation: navPanelIn .3s var(--ease);
  }
  @keyframes navPanelIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: none; }
  }
  .subhead .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 16px;
  }
  .subhead .nav-links::before {
    content: "Navigation";
    display: block;
    padding: 0 4px 14px;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent-deep);
  }
  .subhead .nav-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 16px 14px 16px 18px;
    border: none;
    border-left: 3px solid transparent;
    border-radius: 12px;
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 550;
    letter-spacing: -.02em;
    line-height: 1.2;
    color: var(--ink);
    text-align: left;
    text-decoration: none;
    transition: background .15s, border-color .15s;
  }
  .subhead .nav-links a::after {
    content: "";
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 1px solid var(--hair);
    border-radius: 50%;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10' fill='none'%3E%3Cpath d='M3 2l4 3-4 3' stroke='%2350545E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
  }
  .subhead .nav-links a:active,
  .subhead .nav-links a:focus-visible {
    background: var(--accent-soft);
    border-left-color: var(--accent);
  }
  .subhead .nav-links a[aria-current="page"],
  .subhead .nav-links a.act {
    background: rgba(238,240,251,.65);
    border-left-color: var(--accent);
  }
  header.subhead.nav-open .nav-links a {
    animation: navLinkIn .35s var(--ease) backwards;
  }
  header.subhead.nav-open .nav-links a:nth-child(1) { animation-delay: .05s; }
  header.subhead.nav-open .nav-links a:nth-child(2) { animation-delay: .09s; }
  header.subhead.nav-open .nav-links a:nth-child(3) { animation-delay: .13s; }
  header.subhead.nav-open .nav-links a:nth-child(4) { animation-delay: .17s; }
  @keyframes navLinkIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: none; }
  }
  .subhead .nav-right {
    margin: 28px 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    padding-top: 24px;
    border-top: 1px solid var(--hair);
  }
  .subhead .nav-right::before {
    content: "Konto";
    display: block;
    padding: 0 4px 4px;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .subhead .nav-right a {
    display: block;
    text-align: center;
    padding: 13px 16px;
    border: 1px solid var(--hair);
    border-radius: 10px;
    background: #fff;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-2);
    text-decoration: none;
  }
}
