/* Shared navigation: stable header, links supplied by the HTML. */
@layer adaptive-navigation {
  body .cl-header {
    position: fixed !important; inset: 0 0 auto; z-index: 1000;
    display: grid !important; grid-template-columns: auto minmax(0,1fr) auto !important;
    align-items: center !important; gap: clamp(1rem,3vw,3rem) !important;
    min-height: 88px !important; padding: 8px clamp(1rem,4vw,4rem) !important;
    background: #08090b !important; border: 0 !important;
    box-shadow: 0 1px 0 #ffffff12 !important; backdrop-filter: none !important;
  }
  body .cl-header::before, body .cl-header::after { display: none !important; }
  body .cl-header .cl-brand {
    position: relative; z-index: 1002; display: flex; align-items: center;
    width: clamp(10rem,19vw,16rem) !important; height: 72px !important; margin: 0 !important;
    visibility: visible !important; opacity: 1 !important; pointer-events: auto !important;
  }
  body .cl-header .cl-brand img { width: 100%; height: 100%; object-fit: contain; object-position: left center; transform: none; }
  body .cl-header > .dm-header-actions {
    position: static !important; display: flex !important; justify-content: flex-end;
    align-items: center; gap: clamp(1rem,2.5vw,2.5rem); min-width: 0;
    padding: 0 !important; background: transparent !important;
  }
  body .cl-header > .dm-header-actions a {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    min-height: 44px; padding: .5rem 0; white-space: nowrap;
    color: #dce0e5 !important; -webkit-text-fill-color: currentColor !important;
    background: transparent !important; border: 0 !important; border-radius: 0;
    font: 500 .9375rem/1.35 'Manrope','Segoe UI',sans-serif !important;
    text-decoration: none !important; transition: color 180ms ease;
  }
  body .cl-header > .dm-header-actions a[href="/premium/digital-analyse/"] {
    padding: .65rem 1rem; border: 1px solid #ffffff30 !important; border-radius: 5px;
  }
  body .cl-header > .dm-header-actions a:hover { color: #E5BE6F !important; border-color: #E5BE6F !important; }
  body .cl-header > .dm-header-actions .header-analysis-free { color: inherit; font-weight: 400; }
  body .cl-header > .dm-header-actions .header-analysis-name { font-weight: 600; }
  body .cl-header .cl-mobile-menu { position: static !important; z-index: 1002; justify-self: end; }
  body .cl-header .cl-mobile-menu > summary {
    position: relative; display: flex; align-items: center; justify-content: center; gap: .8rem;
    min-height: 44px; padding: .5rem 0 .5rem 1.5rem !important;
    color: #f5f7fa !important; -webkit-text-fill-color: currentColor !important;
    border: 0 !important; border-left: 1px solid #ffffff26 !important;
    border-radius: 0; background: transparent !important; box-shadow: none !important;
    font: 500 .9375rem/1.3 'Manrope','Segoe UI',sans-serif !important;
    visibility: visible !important; opacity: 1 !important; pointer-events: auto !important; cursor: pointer;
  }
  body .cl-header .cl-mobile-menu > summary::-webkit-details-marker { display: none; }
  body .cl-header .cl-mobile-menu > summary .cl-menu-label { display: inline !important; }
  body .cl-header .cl-mobile-menu > summary .dm-menu-icon { position: relative; display: block; width: 22px; height: 16px; }
  body .cl-header .dm-menu-icon::before, body .cl-header .dm-menu-icon::after {
    content: ''; position: absolute; left: 0; width: 22px; height: 1.5px; background: currentColor;
    top: 4px; transition: transform 220ms ease, top 220ms ease;
  }
  body .cl-header .dm-menu-icon::after { top: 11px; }
  body .cl-header .cl-mobile-menu[open] .dm-menu-icon::before { top: 8px; transform: rotate(45deg); }
  body .cl-header .cl-mobile-menu[open] .dm-menu-icon::after { top: 8px; transform: rotate(-45deg); }
  body .cl-header .cl-mobile-menu:not([open]) nav { display: none !important; }
  body .cl-header .cl-mobile-menu[open] nav[aria-label] {
    position: absolute !important; inset: 100% 0 auto !important; width: 100% !important;
    display: flex !important; flex-flow: row nowrap !important; align-items: stretch !important;
    margin: 0 !important; padding: 0 !important; gap: 0 !important;
    min-height: 0 !important; max-height: calc(100dvh - 100px); overflow-x: hidden !important; overflow-y: auto !important;
    background: #08090b !important; border: 0 !important; border-radius: 0;
    box-shadow: 0 14px 24px #00000038 !important;
    transform: none !important; animation: none !important; clip-path: inset(0);
  }
  body .cl-header .cl-mobile-menu nav a[href*='/websites/'] { --menu-fill: #46B9FD; --menu-ink: #071722; }
  body .cl-header .cl-mobile-menu nav a[href*='/film-video/'] { --menu-fill: #78BB93; --menu-ink: #0b2115; }
  body .cl-header .cl-mobile-menu nav a[href*='/social-media/'] { --menu-fill: #B11C2B; --menu-ink: #ffffff; }
  body .cl-header .cl-mobile-menu nav a[href*='/hosting/'] { --menu-fill: #E5BE6F; --menu-ink: #241a08; }
  body .cl-header .cl-mobile-menu[open] nav[aria-label] a {
    position: relative; display: flex !important; align-items: center; justify-content: center;
    flex: 1 1 0%; width: auto; min-width: 0; min-height: 92px; padding: 1rem .25rem !important;
    background: var(--menu-fill,#E5BE6F) !important; color: var(--menu-ink,#241a08) !important;
    -webkit-text-fill-color: currentColor !important; border: 0 !important; border-radius: 0;
    font: 600 clamp(.75rem,1.6vw,1.4rem)/1.3 'Manrope','Segoe UI',sans-serif !important;
    white-space: normal !important; overflow-wrap: anywhere; text-align: center; text-decoration: none !important;
    box-shadow: inset -1px 0 #00000012; transition: box-shadow 180ms ease;
  }
  body .cl-header .cl-mobile-menu nav a:hover { box-shadow: inset 0 -3px var(--menu-ink); }
  body .cl-header .cl-mobile-menu nav a[aria-current='page']::after { content: ''; position: absolute; bottom: 12px; width: 4px; height: 4px; border-radius: 50%; background: var(--menu-ink); }
  body .cl-header :is(a,summary):focus-visible { outline: 2px solid #E5BE6F !important; outline-offset: 4px !important; }
  body .cl-header .cl-mobile-menu nav a:focus-visible { outline: 2px solid var(--menu-ink) !important; outline-offset: -6px !important; }
  @media(max-width: 800px) {
    body .cl-header { min-height: 76px !important; padding: 6px 1rem !important; gap: 1rem !important; }
    body .cl-header .cl-brand { width: 140px !important; height: 64px !important; }
    body .cl-header > .dm-header-actions { gap: .9rem; }
    body .cl-header > .dm-header-actions a { font-size: .8125rem !important; }
    body .cl-header .cl-mobile-menu > summary { padding-left: 1rem !important; }
    body .cl-header .cl-mobile-menu > summary .cl-menu-label { display: none !important; }
  }
  @media(max-width: 540px) {
    body .cl-header { min-height: 68px !important; padding: 4px .7rem !important; gap: .6rem !important; }
    body .cl-header .cl-brand { width: clamp(75px,22vw,110px) !important; height: 60px !important; }
    body .cl-header > .dm-header-actions { gap: .6rem; }
    body .cl-header > .dm-header-actions a { font-size: .6875rem !important; }
    body .cl-header > .dm-header-actions a[href="/premium/digital-analyse/"] { display: flex; flex-direction: column; gap: .1rem; padding: .4rem .55rem; }
    body .cl-header .cl-mobile-menu > summary { padding-left: .6rem !important; }
    body .cl-header .cl-mobile-menu[open] nav[aria-label] { flex-wrap: wrap !important; }
    body .cl-header .cl-mobile-menu[open] nav[aria-label] a { flex-basis: 50%; min-height: 72px; font-size: clamp(.875rem,3.5vw,1rem) !important; }
  }
  @media(prefers-reduced-motion:reduce) {
    body .cl-header *, body .cl-header *::before, body .cl-header *::after { transition: none !important; }
  }
}
.menu-waterline { position:absolute; left:0; right:0; top:var(--menu-water-top,100%); height:10px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); overflow:hidden; pointer-events:none; z-index:1004; background:#08090b; }
.menu-waterline__chamber { position:relative; overflow:hidden; background:var(--water-color); box-shadow:inset 0 1px #ffffff40,inset 0 -1px #00000035; }
.menu-waterline { transition:grid-template-columns 520ms cubic-bezier(.16,1,.3,1); }
.menu-waterline[data-motion='follow'],.menu-waterline[data-motion='still'] { transition:none; }
.menu-waterline__chamber { min-width:0; }
.menu-waterline__chamber--blue { --water-color:#46B9FD; --water-delay:0s; }
.menu-waterline__chamber--green { --water-color:#78BB93; --water-delay:-2s; }
.menu-waterline__chamber--gold { --water-color:#E5BE6F; --water-delay:-1s; }
.menu-waterline__chamber::before { content:''; position:absolute; inset:-3px -45%; background:radial-gradient(ellipse at 20% 50%,#ffffff60,transparent 28%); animation:menu-water-reflection 9s ease-in-out infinite alternate; animation-delay:var(--water-delay); }
@keyframes menu-water-reflection { from { transform:translateX(-12%); } to { transform:translateX(12%); } }
@media(prefers-reduced-motion:reduce) { .menu-waterline__chamber::before { animation:none; } }

/* Angular controls and a truly centered gold analysis action. */
@layer adaptive-navigation {
  body .cl-header {
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) !important;
    gap: clamp(.5rem,1.5vw,1.5rem) !important;
  }
  body .cl-header .cl-brand { grid-column: 1; grid-row: 1; }
  body .cl-header > .dm-header-actions { display: contents !important; }
  body .cl-header > .dm-header-actions a[href="/premium/kontakt/"] {
    grid-column: 3; grid-row: 1; justify-self: end;
    margin-right: 112px;
  }
  body .cl-header > .dm-header-actions a[href="/premium/digital-analyse/"] {
    grid-column: 2; grid-row: 1; justify-self: center;
    position: relative; overflow: hidden;
    display: inline-flex !important; flex-direction: row !important;
    gap: .35em !important; padding: .75rem 1.25rem !important;
    border-radius: 0 !important; border: 1px solid #efd294 !important;
    background: linear-gradient(115deg,#a7792f 0%,#e5be6f 28%,#f6e2a9 50%,#c2964c 76%,#e5be6f 100%) !important;
    color: #211707 !important; -webkit-text-fill-color: #211707 !important;
    box-shadow: inset 0 1px #fff0c5,0 3px 14px #e5be6f15;
    font-weight: 650 !important;
  }
  body .cl-header > .dm-header-actions a[href="/premium/digital-analyse/"]::after {
    content: ''; position: absolute; inset: -70% auto -70% -45%; width: 28%;
    background: linear-gradient(90deg,transparent,#ffffff80,transparent);
    transform: skewX(-20deg); transition: left 650ms ease; pointer-events: none;
  }
  body .cl-header > .dm-header-actions a[href="/premium/digital-analyse/"]:is(:hover,:focus-visible)::after { left: 125%; }
  body .cl-header > .dm-header-actions a[href="/premium/digital-analyse/"]:hover { color: #211707 !important; }
  body .cl-header .cl-mobile-menu { grid-column: 3; grid-row: 1; justify-self: end; }
  body .cl-header :is(a,summary,nav), body .cl-header .menu-waterline { border-radius: 0 !important; }
  body .cl-header .dm-menu-item-label { display: inline-block; color: inherit; -webkit-text-fill-color: currentColor; }
  @media(max-width:800px) {
    body .cl-header > .dm-header-actions a[href="/premium/kontakt/"] { margin-right: 52px; }
    body .cl-header > .dm-header-actions a[href="/premium/digital-analyse/"] { padding: .65rem .85rem !important; font-size: .75rem !important; }
    body .cl-header .cl-brand { width: clamp(80px,18vw,140px) !important; }
  }
  @media(max-width:540px) {
    body .cl-header > .dm-header-actions a[href="/premium/kontakt/"] { margin-right: 34px; font-size: .65rem !important; }
    body .cl-header > .dm-header-actions a[href="/premium/digital-analyse/"] { flex-direction: column !important; gap: .05rem !important; padding: .4rem .55rem !important; font-size: .65rem !important; }
    body .cl-header .cl-mobile-menu > summary { border-left: 0 !important; padding-left: .2rem !important; }
    body .cl-header .cl-brand { width: clamp(70px,20vw,100px) !important; }
  }
  @media(prefers-reduced-motion:reduce) { body .cl-header > .dm-header-actions a[href="/premium/digital-analyse/"]::after { display: none; } }
}

@layer adaptive-navigation {
 body .cl-header > .dm-header-actions a[href="/premium/digital-analyse/"] { min-height:44px; padding:.65rem 1rem !important; gap:.65rem !important; background:linear-gradient(115deg,#bd9145,#e5be6f 42%,#f3d99b 60%,#d0a65e) !important; box-shadow:inset 0 1px #ffedbc; }
 body .cl-header .header-analysis-free { padding-left:.65rem; border-left:1px solid #21170740; font-size:.75em; font-weight:700 !important; text-transform:uppercase; letter-spacing:.06em; }
 @media(max-width:540px) { body .cl-header > .dm-header-actions a[href="/premium/digital-analyse/"] { flex-direction:column !important; gap:.1rem !important; padding:.35rem .5rem !important; } body .cl-header .header-analysis-free { padding-left:0; border-left:0; font-size:.7em; } }
}

/* The logo stays within the header on the homepage and every subpage. */
@layer adaptive-navigation {
 body .cl-header .cl-brand { width:clamp(10rem,19vw,16rem) !important; }
 @media(max-width:800px) { body .cl-header .cl-brand { width:clamp(100px,19vw,150px) !important; } }
 @media(max-width:540px) { body .cl-header .cl-brand { width:clamp(82px,21vw,110px) !important; } }
}

@layer adaptive-navigation {
 body.dm-shared-navigation .cl-header .cl-brand {
   height:72px !important;
   max-height:72px !important;
   overflow:hidden !important;
   align-self:center;
 }
 body.dm-shared-navigation .cl-header .cl-brand img {
   width:100% !important;
   height:100% !important;
   max-height:100% !important;
   object-fit:contain !important;
   transform:none !important;
 }
 @media(max-width:800px) {
   body.dm-shared-navigation .cl-header .cl-brand { height:64px !important; max-height:64px !important; }
 }
 @media(max-width:540px) {
   body.dm-shared-navigation .cl-header .cl-brand { height:60px !important; max-height:60px !important; }
 }
}
