/* =============================================================================
   HAWA Custom Dark Header — Child-Theme Override
   Phase 1: Header-Replace (Storefront Hook-basiert)
   Stand: 2026-04-26
   ============================================================================= */

:root {
  --hawa-green:        #049B4E;
  --hawa-green-dark:   #037A3E;
  --hawa-green-text:   #036B37;
  --hawa-taupe:        #ECECE7;
  --hawa-black:        #1a1a1a;
  --hawa-text-light:   rgba(255,255,255,0.85);
  --hawa-text-muted:   rgba(255,255,255,0.55);
}

/* -----------------------------------------------------------------------------
   Default Storefront Header verstecken (Reste vom Inline-Style entfernen)
----------------------------------------------------------------------------- */
.site-header {
  background: var(--hawa-black) !important;
  background-color: var(--hawa-black) !important;
  border-bottom: 1px solid var(--hawa-green);
  padding: 0 !important;
  margin: 0 !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
/* Wenn Storefront Default-Hooks doch noch was rendern würden (sollten entfernt sein) */
.site-header .col-full > * { display: none; }
.site-header .hawa-header-wrapper,
.site-header .hawa-header-wrapper * { display: revert; }

.site-header .hawa-header-wrapper {
  display: block !important;
}

/* -----------------------------------------------------------------------------
   Header-Container
----------------------------------------------------------------------------- */
.hawa-header-wrapper {
  background: var(--hawa-black);
  color: #fff;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Top-Bar: kleine Kontakt-Zeile */
.hawa-header-top-bar {
  background: #111;
  padding: 6px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #ccc;
  border-bottom: 1px solid #2a2a2a;
}
.hawa-header-top-bar a {
  color: #ccc !important;
  text-decoration: none !important;
}
.hawa-header-top-bar a:hover {
  color: var(--hawa-green) !important;
  text-decoration: none !important;
}
.hawa-header-contacts {
  display: flex;
  gap: 20px;
  align-items: center;
}
.hawa-header-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hawa-header-contacts svg,
.hawa-header-top-bar svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Main-Header: Logo + Mega-Nav + Account/Cart */
.hawa-header-main {
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Burger (mobile) */
.hawa-burger-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
}
.hawa-burger-btn svg {
  width: 26px;
  height: 26px;
}

/* Logo */
.hawa-site-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none !important;
  flex-shrink: 0;
  line-height: 1;
}
.hawa-site-logo img {
  height: 44px;
  width: auto;
  display: block;
  max-width: 100%;
}
.hawa-site-logo span {
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #999;
  margin-top: 4px;
  font-weight: 600;
  line-height: 1.2;
}

/* Mega-Nav */
.hawa-mega-nav {
  display: flex;
  gap: 2px;
  flex-grow: 1;
  justify-content: center;
}
.hawa-mega-nav a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 18px;
  color: #ddd !important;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none !important;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.hawa-mega-nav a:hover,
.hawa-mega-nav a:focus {
  background: rgba(255,255,255,0.08);
  color: #fff !important;
  text-decoration: none !important;
}
.hawa-mega-nav svg {
  width: 22px;
  height: 22px;
  opacity: 0.85;
}

/* Header-Actions: Account + Cart */
.hawa-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.hawa-header-actions a {
  color: #ccc !important;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none !important;
  position: relative;
}
.hawa-header-actions a:hover {
  color: var(--hawa-green) !important;
  text-decoration: none !important;
}
.hawa-header-actions svg {
  width: 20px;
  height: 20px;
}
.hawa-cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--hawa-green);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  letter-spacing: 0;
}

/* -----------------------------------------------------------------------------
   Storefront Default Header-Reste komplett ausblenden
----------------------------------------------------------------------------- */
.site-header .site-branding,
.site-header .secondary-navigation,
.site-header .site-search,
.site-header .main-navigation,
.site-header .site-header-cart,
.site-header .storefront-handheld-footer-bar,
.site-header .skip-link,
.site-header .social-icons {
  display: none !important;
}

/* Body-Class falls Storefront Layout-Hooks Inhalt ausserhalb wrappen */
body.hawa-dark-header .site-header {
  text-align: left;
}

/* -----------------------------------------------------------------------------
   Geister-Bars VOR dem <header> ausblenden (HW-Plugin & secondary-navigation)
----------------------------------------------------------------------------- */
body.hawa-dark-header .woa-top-bar-wrap,
body.hawa-dark-header > #page > .woa-top-bar-wrap,
body.hawa-dark-header .secondary-navigation,
body.hawa-dark-header #site-header-cart,
body.hawa-dark-header .storefront-secondary-navigation {
  display: none !important;
}
/* Handheld-Footer-Bar nur auf Desktop verstecken — Mobile zeigt sie */
@media (min-width: 769px) {
  body.hawa-dark-header .storefront-handheld-footer-bar {
    display: none !important;
  }
}

/* -----------------------------------------------------------------------------
   Mobile
----------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hawa-header-top-bar { display: none; }
  .hawa-mega-nav { display: none; }
  .hawa-burger-btn { display: inline-flex; }
  .hawa-site-logo img { height: 36px; }
  .hawa-header-main { padding: 12px 16px; }
  .hawa-header-actions { gap: 8px; }
  .hawa-header-actions a span.label { display: none; }
}
