

:root {
  --leiste-h: 78px;
  --leiste-abstand: 10px;          
  --leiste-ueberstand: 24px;       
  --leiste-r: 999px;               
  --leiste-kurve: cubic-bezier(.25, 1, .5, 1);
  
  --chrom-textur: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='140'%3E%3Cfilter id='c' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='turbulence' baseFrequency='.006 .02' numOctaves='3' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='.6 .4 0 0 0 .6 .4 0 0 0 .6 .4 0 0 0 0 0 0 0 1'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='table' tableValues='.04 .9 .15 .05 .7 1 .2 .04'/%3E%3CfeFuncG type='table' tableValues='.04 .9 .15 .05 .7 1 .2 .04'/%3E%3CfeFuncB type='table' tableValues='.05 .93 .17 .06 .73 1 .22 .05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
  --leiste-zeit: .5s;
  
  --leiste-seite: max(var(--leiste-abstand), calc((100% - var(--hf-breite)) / 2 - var(--leiste-ueberstand)));
}
html { scroll-padding-top: calc(var(--leiste-h) + 16px); }


.kopf-waechter { position: absolute; top: 0; left: 0; width: 1px; height: 32px; pointer-events: none; }

.kopf { position: sticky; top: 0; z-index: 80; height: var(--leiste-h); color: #F3F6FB; }


.kopf::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 0; opacity: 0;
  background: rgb(var(--g-d2) / .58);
  backdrop-filter: blur(32px) saturate(150%); -webkit-backdrop-filter: blur(32px) saturate(150%);
  box-shadow:
    inset 0 0 0 1px rgb(243 246 251 / .14),
    inset 0 1px 0 rgb(255 255 255 / .2),
    0 18px 40px -22px rgb(0 0 0 / .6);
  transition: inset var(--leiste-zeit) var(--leiste-kurve), border-radius var(--leiste-zeit) var(--leiste-kurve), opacity var(--leiste-zeit) var(--leiste-kurve);
}
html[data-gescrollt="ja"] .kopf::before {
  inset: var(--leiste-abstand) var(--leiste-seite) 0 var(--leiste-seite);
  border-radius: var(--leiste-r); opacity: 1;
}

html[data-ueber-hero="ja"] .kopf::before { background: rgb(var(--hero) / .58); }

html:not(.js) .kopf { background: rgb(var(--g-d2) / .96); }

.kopf__innen {
  height: 100%; padding-top: var(--leiste-abstand);
  width: min(var(--hf-breite), 100% - 2 * var(--hf-rand)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.kopf__logo { display: flex; align-items: center; border-radius: 10px; text-decoration: none; }

.hf-marke { display: inline-flex; align-items: center; gap: 14px; color: #F3F6FB; }
.hf-marke__bild {
  flex: none; display: block; height: 50px; aspect-ratio: 640 / 621;
  background: linear-gradient(165deg, #FFFFFF 8%, #DADDE2 38%, #9A9FA7 52%, #F1F2F4 66%, #B7BCC3 92%);
  -webkit-mask: url("medien/logo-dunkel.png") center / contain no-repeat; mask: url("medien/logo-dunkel.png") center / contain no-repeat;
}
.hf-marke__unter {
  display: flex; align-items: center; gap: 14px; padding-top: 1px;
  font-family: var(--hf-font); font-size: 27px; font-weight: 500; line-height: 1;
  letter-spacing: .2em; margin-right: -.2em; text-transform: uppercase;
  
  background: var(--chrom-textur) 0 50% / 220px 86px,
    linear-gradient(180deg, #FFFFFF 0%, #C8CCD2 45%, #30333A 52%, #E6E8EB 82%, #FFFFFF 100%);
  background-blend-mode: hard-light;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: .4px rgb(255 255 255 / .45);
  filter: drop-shadow(0 1px 0 rgb(255 255 255 / .12)) drop-shadow(0 4px 10px rgb(0 0 0 / .65));
  animation: hf-chrom 18s linear infinite;
}
@keyframes hf-chrom { to { background-position: 220px 50%, 0 0; } }
.hf-marke__unter::before { content: ""; width: 1px; height: 32px; background: rgb(255 255 255 / .3); }
.kopf__haupt {
  display: inline-flex; align-items: center; gap: .3em; padding: 12px 22px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font-size: 14.5px; font-weight: 550; color: var(--knopf-text);
  background: linear-gradient(180deg, var(--knopf-a), var(--knopf-b));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .95), 0 0 0 1px rgb(255 255 255 / .16), 0 10px 28px -12px rgb(255 255 255 / .35);
  transition: transform .25s var(--leiste-kurve), box-shadow .25s;
}
.kopf__haupt:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .95), 0 0 0 1px rgb(255 255 255 / .24), 0 14px 34px -12px rgb(255 255 255 / .45); }
.kopf :focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

@media (max-width: 767px) {
  :root { --leiste-h: 66px; }
  .kopf__logo .hf-marke__bild { height: 40px; }
  .kopf__logo.hf-marke, .kopf__logo .hf-marke__unter { gap: 9px; }
  .kopf__logo .hf-marke__unter { font-size: 19px; letter-spacing: .16em; margin-right: -.16em; }
  .kopf__logo .hf-marke__unter::before { height: 22px; }
  .kopf__haupt { padding: 9px 14px; font-size: 13.5px; }
}
@media (max-width: 440px) { .kopf__lang { display: none; } }
@media (max-width: 360px) { .kopf__logo .hf-marke__unter { font-size: 16px; letter-spacing: .12em; margin-right: -.12em; } .kopf__haupt { padding: 9px 11px; font-size: 13px; } }
@media (forced-colors: active) { .kopf::before { border: 1px solid CanvasText; } }
@media (prefers-reduced-motion: reduce) { .kopf::before { transition: none; } }


.kopf__nav { position: absolute; left: 50%; translate: -50% 0; display: flex; gap: 30px; padding-top: var(--leiste-abstand); font-size: 14.5px; font-weight: 500; }
.kopf__nav a { color: rgb(243 246 251 / .72); text-decoration: none; transition: color .2s; }
.kopf__nav a:hover { color: #FFFFFF; }
@media (max-width: 1100px) { .kopf__nav { display: none; } }
.kopf__nav a { position: relative; }
.kopf__nav a.ist-aktuell { color: #FFFFFF; }
.kopf__nav a::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 4px; height: 4px; border-radius: 50%; background: var(--akzent); translate: -50% 0; opacity: 0; transition: opacity .25s; box-shadow: 0 0 8px var(--akzent); }
.kopf__nav a.ist-aktuell::after { opacity: 1; }


.kopf__logo .hf-marke__bild { transition: height var(--leiste-zeit) var(--leiste-kurve); }
.kopf__logo { transition: margin var(--leiste-zeit) var(--leiste-kurve); }
html[data-gescrollt="ja"] .kopf__logo { margin-left: 8px; }
html[data-gescrollt="ja"] .kopf__logo .hf-marke__bild { height: 40px; }
@media (max-width: 767px) {
  html[data-gescrollt="ja"] .kopf__logo { margin-left: 10px; }
  html[data-gescrollt="ja"] .kopf__logo .hf-marke__bild { height: 30px; }
}
