/*
  site-header.css — gemeinsame Header-/Footer-Styles für ALLE Seiten
  in website-v2/ (index, cockpit, impressum, datenschutz, zanshin).
  Gehört zusammen mit partials/header.html + partials/footer.html
  (per assets/js/layout.js geladen) zur einzigen, gemeinsamen Quelle
  für Header und Footer.

  Variablen sind bewusst auf #site-header/#site-footer gescoped
  (nicht :root) statt die Variablen aus home.css/base.css zu nutzen:
  home.css lädt nicht jede Seite, und base.css definiert --ink/--bg
  mit ABWEICHENDEN Werten — eine globale :root-Änderung hätte auf
  Impressum/Datenschutz/Zanshin den kompletten Seiteninhalt mit-
  umgefärbt. So sieht der Header/Footer auf jeder Seite identisch
  aus, unabhängig davon welche anderen Stylesheets sie sonst lädt.

  .hbtn/.hbtn-primary sind hier bewusst dupliziert (nicht aus
  home.css importierbar) — home.css braucht sie zusätzlich für
  Content-Buttons (Hero, Abschluss-CTA) und bleibt dafür unverändert.
*/

@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/urbanist-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/urbanist-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/urbanist-600.woff2') format('woff2');
}

#site-header,
#site-footer {
  --ink:        #0b0f19;
  --ink-soft:   #3a4256;
  --ink-mute:   #6b7280;
  --line:       #e7e9ee;
  --white:      #ffffff;
  --brand:      #6366f1;
  --brand-2:    #a855f7;
  --brand-grad: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reservierte Mindesthöhe, bis layout.js die Partials per fetch()
   eingefügt hat — verhindert sichtbares "Springen" der Seite.
   display:flow-root auf #site-header ist nötig, weil .hnav einen
   margin-top von 16px hat: ohne eigenen Rand/Padding "entkommt"
   dieser Margin sonst per Margin-Collapsing nach oben aus dem
   Container heraus (zeigt dann body-Hintergrund statt dem hier
   gesetzten Farbton) — flow-root erzeugt einen eigenen Block-
   Formatting-Context und dämmt das sauber ein, ohne wie
   overflow:hidden den Kapsel-Schatten abzuschneiden. */
#site-header { min-height: 96px; display: flow-root; }
#site-footer { min-height: 360px; }

/* ============================================
   NAV — schwebende Kapsel mit Blur-Backdrop
   ============================================ */
.hnav {
  position: sticky; top: 16px; z-index: 50;
  width: calc(100% - 48px);
  max-width: 1200px;
  margin: 16px auto 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(11, 15, 25, 0.10), 0 2px 8px rgba(11, 15, 25, 0.06);
}
.hnav-inner {
  padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.hnav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: 18px; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
  flex-shrink: 0;
}
.hnav-logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--brand-grad);
  overflow: hidden;
  flex-shrink: 0;
}
.hnav-logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hnav-links {
  display: flex; gap: 32px; align-items: center;
  font-size: 14px; color: var(--ink-soft); font-weight: 500;
}
.hnav-links a { color: inherit; text-decoration: none; transition: color .2s; }
.hnav-links a:hover { color: var(--ink); }
.hnav-links a.is-active { color: var(--ink); font-weight: 600; }
.hnav-links a.hbtn-primary,
.hnav-links a.hbtn-primary:hover { color: var(--white); }
.hnav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hnav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 860px) {
  .hnav-links { display: none; }
  .hnav-toggle { display: flex; }
  #site-nav.open .hnav-links {
    display: flex; flex-direction: column; align-items: flex-start;
    gap: 4px;
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(11, 15, 25, 0.14);
    padding: 16px 20px 20px;
  }
  #site-nav.open .hnav-links a { padding: 8px 0; width: 100%; }
  #site-nav.open .hnav-links .hnav-cta-mobile { margin-top: 8px; }
}

/* ============================================
   NAV-BUTTON
   ============================================ */
.hbtn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 500; text-decoration: none;
  border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.hbtn-primary {
  background: var(--brand-grad);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.28);
}
.hbtn-primary:hover {
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

/* Nav-Kapsel-CTA "Erstgespräch" — Lila-Verlauf mit weichem Glow */
.hnav-cta-mobile {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
}
.hnav-cta-mobile:hover {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  box-shadow: 0 0 26px rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}

/* ============================================
   FOOTER — 4-Spalten-Grid (Marke / Lösungen /
   Unternehmen / Kontakt) + rechtliche Bottom-Bar.
   Feiner Marken-Gradient als oberer Abschluss.
   ============================================ */
.hfooter {
  position: relative;
  background: #1c1f26;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 72px 32px 32px;
}
/* Gradient-Haarlinie als Marken-Akzent über der Border */
.hfooter::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--brand-grad);
  opacity: 0.85;
}
.hfooter-inner { max-width: 1200px; margin: 0 auto; }

.hfooter-grid {
  display: grid;
  grid-template-columns: 2.4fr 1.2fr 1fr 1.6fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* — Marken-Spalte — */
.hfooter-brand .hnav-logo { margin-bottom: 18px; color: #fff; }
.hfooter-claim {
  font-size: 14.5px; line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  max-width: 320px;
  margin: 0 0 22px;
}
.hfooter-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.hfooter-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12.5px; font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}
.hfooter-badge svg { color: #818cf8; flex-shrink: 0; }

/* — Link-Spalten — */
.hfooter-col h3 {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.45);
  margin: 4px 0 18px;
}
.hfooter-col ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.hfooter-col a {
  font-size: 14px; color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color .2s;
}
.hfooter-col a:hover { color: #fff; }

/* — Kontakt-Spalte — */
.hfooter-contact-line {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; color: rgba(255, 255, 255, 0.65);
}
.hfooter-contact-line svg { color: rgba(255, 255, 255, 0.4); flex-shrink: 0; }
.hfooter-cta {
  margin-top: 22px;
  padding: 12px 22px;
  font-size: 14px;
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}
.hfooter-cta:hover {
  background: var(--brand-grad);
  box-shadow: 0 0 26px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}

/* — Bottom-Bar — */
.hfooter-bottom {
  margin-top: 26px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(255, 255, 255, 0.35);
}
.hfooter-legal { display: flex; gap: 20px; }
.hfooter-legal a { color: rgba(255, 255, 255, 0.5); text-decoration: none; transition: color .2s; }
.hfooter-legal a:hover { color: #fff; }

/* — Responsive — */
@media (max-width: 980px) {
  .hfooter-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hfooter-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .hfooter { padding: 56px 24px 28px; }
  .hfooter-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 44px; }
  .hfooter-bottom { flex-direction: column; align-items: flex-start; }
}
