/* Landing-Header CSS — wird auf allen Marketing-Subpages geladen
 * Quelle: extrahiert aus public/mockup/desktop-landing.html und
 * public/mockup/mobile-landing.html. Auf Subpages soll der Header IMMER
 * sichtbar sein (kein scroll-reveal), daher dh-nav-Override unten. */

:root {
  --brand: #0F4C81;
  --brand-deep: #0A2847;
  --brand-mid: #1a6aad;
  --brand-light: #4A8FC4;
  --teal: #14B8A6;
  --teal-light: #7EE7D0;
  --teal-deep: #0E7C70;
  --ink: #0A2847;
  --ink-soft: #475569;
  --ink-mute: #94A3B8;
  --rule: #E5EAF0;
  --bg-soft: #F8FAFC;
  --container: 1280px;
}

/* ─── Viewport-Toggle (Desktop vs Mobile) ─── */
/* !important damit nicht durch spaetere Cascade-Regeln (z.B. lh-nav-sticky)
   ueberschrieben wird. */
.lh-desktop { display: none !important; }
.lh-mobile { display: none !important; }
@media (min-width: 980px) {
  .lh-desktop { display: flex !important; }
  .lh-mobile { display: none !important; }
}

.dh-header {
  position: sticky; top: 0; z-index: 50;
  width: 100%; max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: nowrap; gap: 16px;
  padding: 14px 28px;
  box-sizing: border-box;
  /* Subpages haben kein scroll-reveal — Header IMMER im "scrolled"-Style. */
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(40px) saturate(220%);
  -webkit-backdrop-filter: blur(40px) saturate(220%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 12px 32px -8px rgba(15, 23, 40, 0.14);
  border-radius: 0 0 16px 16px;
}
/* Direct child wrapper (Logo+Audience-Toggle) — explizit horizontal halten */
.dh-header > div:first-child { display: flex !important; align-items: center !important; flex-wrap: nowrap !important; flex-shrink: 0 !important; }
.dh-brand { display: flex; align-items: center; flex-shrink: 0; }
.dh-brand img { height: 36px; width: auto; display: block; }

.dh-aud { display: inline-flex; align-items: center; gap: 14px; margin-left: 24px; flex-shrink: 0; flex-wrap: nowrap; white-space: nowrap; font-family: var(--font-inter), 'Inter', system-ui, sans-serif; font-size: 13px; font-weight: 600; color: var(--ink-mute); }
.dh-aud-btn { position: relative; padding: 8px 0; color: inherit; background: transparent; border: 0; cursor: pointer; letter-spacing: -0.005em; transition: color .2s ease; text-decoration: none; }
.dh-aud-btn:hover { color: var(--ink-soft); }
.dh-aud-btn.active { color: var(--brand); }
.dh-aud-btn.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: linear-gradient(90deg, var(--brand) 0%, var(--teal) 100%); border-radius: 1px; }
.dh-aud-sep { width: 1px; height: 14px; background: var(--rule); }

.dh-nav { align-self: stretch; display: flex; align-items: center; gap: 28px; }
/* WICHTIG: Subpage-Override — dh-nav IMMER sichtbar (kein scroll-reveal),
   nur fuer den LandingHeaderShared (.lh-desktop) — NICHT fuer den Mockup-
   Slot-Engine-Header auf der Landing, der weiterhin opacity:0 default hat
   und beim Scrollen via .is-scrolled-Class eingeblendet wird. */
.lh-desktop.dh-header .dh-nav { opacity: 1 !important; transform: none !important; pointer-events: auto !important; }
.dh-nav-item { align-self: stretch; position: relative; display: inline-flex; align-items: center; }
.dh-nav-item::after { content: ""; position: absolute; top: 100%; left: -16px; right: -16px; height: 26px; pointer-events: auto; }
.dh-nav-link { font-size: 14.5px; font-weight: 500; color: var(--ink-soft); letter-spacing: -0.005em; transition: color .2s ease; cursor: pointer; position: relative; padding: 6px 0; display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.dh-nav-link:hover { color: var(--brand); }
.dh-nav-link.active { color: var(--brand); }
.dh-nav-link.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--brand), var(--teal)); border-radius: 1px; }
.dh-nav-link .dh-caret { width: 10px; height: 10px; opacity: 0.45; transition: transform .25s cubic-bezier(.4, 0, .2, 1), opacity .2s ease; }
.dh-nav-item:hover .dh-nav-link .dh-caret { transform: rotate(-180deg); opacity: 1; color: var(--brand); }

.dh-mega {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 580px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(32px) saturate(220%);
  -webkit-backdrop-filter: blur(32px) saturate(220%);
  border: 1px solid rgba(15, 23, 40, 0.07);
  border-top: none;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 28px 70px -14px rgba(15, 23, 40, 0.26), 0 10px 24px -6px rgba(15, 23, 40, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.96);
  display: grid; grid-template-columns: 1.25fr 1fr;
  overflow: hidden;
  opacity: 0; visibility: hidden;
  transition: opacity .22s cubic-bezier(.4, 0, .2, 1), transform .22s cubic-bezier(.4, 0, .2, 1), visibility .22s;
  z-index: 60;
}
.dh-nav-item:hover .dh-mega,
.dh-nav-item:focus-within .dh-mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dh-mega-left { padding: 18px 14px; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(241, 245, 249, 0.45) 100%); }
.dh-mega-eyebrow { display: block; padding: 2px 8px 12px; font-family: var(--font-jetbrains-mono), 'JetBrains Mono', 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700; color: #6B7280; letter-spacing: 0.12em; text-transform: uppercase; position: relative; }
.dh-mega-eyebrow::before { content: ""; position: absolute; left: 0; top: 4px; width: 3px; height: 11px; border-radius: 2px; background: linear-gradient(180deg, var(--brand) 0%, var(--teal) 100%); }
.dh-mega-left a { display: block; padding: 5px 12px 5px 24px; font-size: 14px; font-weight: 500; color: #3F4856; letter-spacing: -0.005em; border-radius: 7px; transition: color .15s ease, background .15s ease, padding .15s ease; text-decoration: none; }
.dh-mega-left a:hover { color: var(--ink); background: rgba(15, 76, 129, 0.06); padding-left: 28px; }
.dh-mega-right {
  position: relative;
  padding: 22px 22px 20px;
  background: radial-gradient(120% 80% at 100% 0%, rgba(126, 231, 208, 0.18) 0%, transparent 60%), linear-gradient(155deg, #0A2847 0%, #0F2E50 60%, #0B2A48 100%);
  color: #FFFFFF;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 14px;
  box-shadow: inset 0 1px 0 rgba(126, 231, 208, 0.20);
}
.dh-mega-right > * { position: relative; z-index: 1; }
.dh-mega-tag { display: block; font-family: var(--font-jetbrains-mono), 'JetBrains Mono', 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700; color: #7EE7D0; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; }
.dh-mega-title { font-family: var(--font-space-grotesk), 'Space Grotesk', var(--font-inter), 'Inter', sans-serif; font-size: 18px; font-weight: 700; line-height: 1.20; letter-spacing: -0.020em; color: #FFFFFF; margin: 0 0 8px 0; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12); }
.dh-mega-desc { font-size: 12.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.74); margin: 0; }
.dh-mega-cta { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-jetbrains-mono), 'JetBrains Mono', 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 700; color: #7EE7D0; letter-spacing: 0.08em; text-transform: uppercase; transition: color .15s ease, gap .15s ease; text-decoration: none; }
.dh-mega-cta:hover { color: #A5F0DD; gap: 10px; }
.dh-mega-cta::after { content: "→"; font-family: inherit; }
.dh-actions { display: flex; align-items: center; gap: 14px; }
.dh-link-quiet { font-size: 14px; font-weight: 500; color: var(--ink-soft); transition: color .2s ease; text-decoration: none; }
.dh-link-quiet:hover { color: var(--ink); }
.dh-cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%); color: #FFFFFF; font-size: 14px; font-weight: 600; letter-spacing: -0.005em; border-radius: 8px; box-shadow: 0 6px 18px -4px rgba(15, 76, 129, 0.30); transition: transform .2s ease, box-shadow .2s ease; text-decoration: none; }
.dh-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -6px rgba(15, 76, 129, 0.40); }
/* Override-Regeln 1:1 aus desktop-landing.html (Karl-Mod): Glossy-Sheen +
   Shimmer beim Hover. Pfeil kommt aus Markup als <span class="arrow">,
   nicht aus ::after — daher content:"" mit !important. */
.dh-cta { position: relative !important; overflow: hidden !important; border-radius: 10px !important; color: #ffffff !important; box-shadow: 0 8px 20px -6px rgba(15,76,129,0.40), inset 0 1px 0 rgba(255,255,255,0.18) !important; transition: transform .25s ease, box-shadow .25s ease !important; }
.dh-cta::before { content: "" !important; position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: auto !important; width: auto !important; height: 50% !important; background: linear-gradient(180deg, rgba(255,255,255,0.30) 0%, transparent 100%) !important; pointer-events: none !important; z-index: 0 !important; }
.dh-cta::after { content: "" !important; display: block !important; position: absolute !important; top: 0 !important; left: -100% !important; right: auto !important; bottom: auto !important; width: 100% !important; height: 100% !important; background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.45) 50%, transparent 100%) !important; transition: left .8s ease !important; opacity: 1 !important; pointer-events: none !important; z-index: 1 !important; }
.dh-cta > * { position: relative !important; z-index: 2 !important; }
.dh-cta .arrow { display: inline-block !important; transition: transform .25s ease !important; color: #ffffff !important; }
.dh-cta:hover { transform: translateY(-1px) !important; box-shadow: 0 12px 28px -8px rgba(15,76,129,0.55), inset 0 1px 0 rgba(255,255,255,0.22) !important; color: #ffffff !important; }
.dh-cta:hover::after { left: 100% !important; }
.dh-cta:hover .arrow { transform: translateX(3px) !important; }

/* ─── Mobile Header (auf Subpages always-visible) ─── */
@media (max-width: 979px) {
  .lh-mobile { display: block !important; }
  .lh-desktop { display: none !important; }
  nav.lh-nav-sticky.lh-mobile { display: flex !important; }
}

.lh-nav-sticky {
  position: sticky; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(15, 23, 40, 0.06);
}
.lh-brand { display: flex; align-items: center; }
.lh-brand img { height: 30px; width: auto; display: block; }
.lh-nav-actions { display: flex; align-items: center; gap: 10px; }
.lh-nav-cta { padding: 8px 16px; background: var(--ink); color: #FFFFFF; border-radius: 6px; font-size: 12.5px; font-weight: 600; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap; }
.lh-nav-burger { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 36px; height: 36px; background: transparent; border: 0; border-radius: 8px; cursor: pointer; padding: 0; }
.lh-nav-burger span { width: 18px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform 0.25s; }

.lh-menu-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(2, 16, 31, 0.50); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; pointer-events: none; transition: opacity 0.30s ease; }
.lh-menu-overlay.open { opacity: 1; pointer-events: auto; }
.lh-menu-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(85%, 360px); background: #FFFFFF; display: flex; flex-direction: column; padding: 18px 24px 24px; transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: -32px 0 80px -16px rgba(0, 0, 0, 0.40); overflow-y: auto; }
.lh-menu-overlay.open .lh-menu-panel { transform: translateX(0); }
.lh-menu-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--rule); margin-bottom: 18px; }
.lh-menu-head .lh-brand img { height: 28px; }
.lh-menu-aud { display: flex; align-items: stretch; gap: 0; padding: 3px; border-radius: 999px; background: #F1F5F9; border: 1px solid var(--rule); margin-bottom: 22px; }
.lh-menu-aud-btn { flex: 1 1 0; padding: 9px 14px; font-family: var(--font-inter), 'Inter', sans-serif; font-size: 13px; font-weight: 600; color: var(--ink-soft); border: 0; background: transparent; border-radius: 999px; cursor: pointer; letter-spacing: -0.005em; transition: color .2s ease, background .2s ease; text-align: center; text-decoration: none; }
.lh-menu-aud-btn:hover { color: var(--ink); }
.lh-menu-aud-btn.active { background: #FFFFFF; color: var(--brand); box-shadow: 0 1px 3px rgba(15, 23, 40, 0.10), 0 0 0 1px rgba(15, 76, 129, 0.06); }
.lh-menu-close { width: 36px; height: 36px; background: transparent; border: none; font-size: 28px; line-height: 1; color: var(--ink-soft); cursor: pointer; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.lh-menu-close:hover { background: #F1F5F9; }
.lh-menu-group { margin: 0; }
.lh-menu-group-label { font-family: var(--font-jetbrains-mono), 'JetBrains Mono', 'IBM Plex Mono', monospace; font-size: 14px; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase; color: var(--ink); display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--rule); cursor: pointer; list-style: none; text-decoration: none; }
.lh-menu-group-label::-webkit-details-marker { display: none; }
.lh-menu-group-label:hover { color: var(--brand); }
.lh-menu-group-chev { font-family: var(--font-inter), 'Inter', sans-serif; font-size: 24px; font-weight: 300; color: var(--ink-mute); transition: transform 0.2s ease; line-height: 1; margin-left: 8px; }
.lh-menu-group[open] .lh-menu-group-chev { transform: rotate(90deg); }
.lh-menu-items { list-style: none; display: flex; flex-direction: column; gap: 0; padding: 6px 0 12px 22px; margin: 0; border-left: 2px solid var(--rule); margin-left: 2px; }
.lh-menu-items li a { display: block; padding: 9px 0; font-family: var(--font-inter), 'Inter', sans-serif; font-size: 15px; font-weight: 500; color: var(--ink-soft); letter-spacing: -0.010em; text-decoration: none; }
.lh-menu-items li a:hover { color: var(--teal); }
.lh-menu-bottom { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 14px; }
.lh-menu-bottom .lh-menu-quiet { font-weight: 500; color: var(--ink-soft); font-size: 15px; text-decoration: none; text-align: center; padding: 6px 0; }
.lh-menu-cta { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; background: linear-gradient(135deg, var(--teal) 0%, #0FA391 100%); color: #FFFFFF; border-radius: 10px; font-size: 15px; font-weight: 600; letter-spacing: -0.005em; text-decoration: none; box-shadow: 0 8px 20px -6px rgba(20, 184, 166, 0.40); }
.lh-menu-cta::after { content: "→"; font-size: 16px; }

body.lh-menu-open { overflow: hidden; }

/* ===== Hero-Dark-Subpages: Hero-Hintergrund laeuft bis top:0 hinter den
   Header. Header behaelt seinen Glossy-White-Style — er schwebt mit
   abgerundeter Pille (max-width: container) ueber dem dunklen Hero,
   sodass der dunkle Verlauf links/rechts und oberhalb sichtbar ist. ===== */
.hero-dark { margin-top: -80px !important; padding-top: 160px !important; }
@media (min-width: 768px) {
  .hero-dark { padding-top: 192px !important; }
}
