/* ============================================
   SÄGER Header Stylesheet
   ============================================ */

:root {
  --page-bg: #FEFFFE;
  --nav-bg: #042A1F;
  --mint: #73C79E;
  --cta-bg: #19755A;
  --cta-circle: #DFFFB9;
  --cta-arrow: #297D60;
  --txt: #FAFBFB;
  --txt2: #6EA18A;
  --scale: 1;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page-bg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
}

/* Header Container */
.header-container {
  width: 100%;
  background: var(--page-bg);
  position: relative;
  z-index: 1000;
}

/* Responsive wrapper */
.header-stage {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.header-frame {
  position: relative;
  width: 100%;
  height: 105px; /* 16px top + 73px navbar + 16px bottom */
  background: var(--page-bg);
  overflow: hidden;
}

/* OPTIONAL: reference overlay (put the attached image next to this html and uncomment) */
/*
.header-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./Bildschirmfoto%202026-01-21%20um%2006.34.54.png") no-repeat 0 0 / 2048px 150px;
  opacity: 0.25;
  pointer-events: none;
  mix-blend-mode: multiply;
}
*/

/* Navbar */
.header-navbar {
  position: absolute;
  left: 50%;
  top: 16px;
  width: calc(100% - 40px);
  max-width: 1334px;
  height: 73px;
  background: var(--nav-bg);
  border-radius: 16px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  overflow: hidden;
}

/* Brand Block - Logo */
.header-brand {
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.header-brand:hover {
  opacity: 0.9;
}

.header-brand-logo {
  height: auto;
  max-height: 45px;
  max-width: 200px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Hamburger Menu Button */
.header-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10001;
  position: relative;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 15px;
}

.header-hamburger-line {
  width: 100%;
  height: 3px;
  background: var(--txt);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.header-hamburger[aria-expanded="true"] .header-hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.header-hamburger[aria-expanded="true"] .header-hamburger-line:nth-child(2) {
  opacity: 0;
}

.header-hamburger[aria-expanded="true"] .header-hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation Area */
.header-nav {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 42px; /* tuned to match spacing between items */
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 600;
  flex: 1;
  justify-content: center;
  margin: 0 auto;
  position: relative;
}

.header-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 24px;
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.header-nav-item:hover {
  opacity: 0.9;
}

.header-nav-item:hover .header-nav-label {
  opacity: 0.9;
}

.header-nav-item.no-icon {
  gap: 10px;
}

.header-mini-s {
  width: 18px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #73C59D;
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  transform: translateY(-1px);
}

.header-nav-label {
  color: rgba(235, 240, 238, 0.95);
  font-weight: 600;
  font-size: 13px;
  line-height: 13px;
}

.header-chev {
  width: 14px;
  height: 14px;
  display: inline-block;
  transform: translateY(1px);
  opacity: 0.9;
}

.header-chev svg {
  display: block;
}

/* CTA Button Desktop */
.header-cta {
  width: 155px;
  height: 35px;
  background: var(--cta-bg);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.1s ease;
  flex-shrink: 0;
}

/* CTA Button Mobile (versteckt auf Desktop) */
.header-cta-mobile {
  display: none;
}

.header-cta:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.header-cta:active {
  transform: translateY(0);
}

.header-cta-text {
  color: #EBF2F0;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}

.header-cta-circle {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--cta-circle);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.header-cta:hover .header-cta-circle {
  transform: scale(1.05);
}

.header-cta-circle svg {
  width: 14px;
  height: 10px;
}

/* Responsive Scaling Script Support */
.header-scaling-active {
  display: block;
}

/* ============================================
   Mobile Menu Styles
   ============================================ */

/* Hamburger Button - Standardmäßig versteckt */
.header-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10002;
  position: relative;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 15px;
}

.header-hamburger-line {
  width: 100%;
  height: 3px;
  background: #FAFBFB;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.header-hamburger[aria-expanded="true"] .header-hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.header-hamburger[aria-expanded="true"] .header-hamburger-line:nth-child(2) {
  opacity: 0;
}

.header-hamburger[aria-expanded="true"] .header-hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.header-mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.header-mobile-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile Menu Container */
.header-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: -100%;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: #042A1F;
  z-index: 9999;
  transition: left 0.3s ease;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.header-mobile-menu.active {
  left: 0;
}

/* Mobile Menu Content */
.header-mobile-menu-content {
  padding: 80px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Mobile Menu Items */
.header-mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease;
  width: 100%;
}

.header-mobile-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #FAFBFB;
}

.header-mobile-menu-item:last-of-type {
  border-bottom: none;
}

.header-mobile-menu-label {
  font-size: 16px;
  font-weight: 600;
  color: rgba(235, 240, 238, 0.95);
}

.header-mobile-menu-icon {
  width: 24px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #73C59D;
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.header-mobile-menu-chev {
  margin-left: auto;
  width: 14px;
  height: 14px;
  opacity: 0.9;
  flex-shrink: 0;
}

.header-mobile-menu-chev svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Mobile CTA Button */
.header-mobile-cta {
  display: block;
  width: 100%;
  margin-top: 30px;
  padding: 18px;
  background: #19755A;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  color: #EBF2F0;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  transition: background 0.2s ease;
}

.header-mobile-cta:hover {
  background: #1a8564;
}

/* Responsive Design - Media Queries */
@media (max-width: 1400px) {
  .header-nav {
    gap: 32px;
  }
  
  .header-nav-label {
    font-size: 12px;
  }
}

@media (max-width: 1200px) {
  .header-nav {
    gap: 24px;
  }
  
  .header-nav-item {
    gap: 8px;
  }
  
  .header-cta-text {
    font-size: 10px;
  }
  
  .header-cta {
    width: 140px;
    height: 32px;
    padding: 0 10px;
  }
}

@media (max-width: 992px) {
  .header-nav {
    gap: 18px;
  }
  
  .header-mini-s {
    font-size: 16px;
    width: 16px;
    height: 18px;
  }
  
  .header-nav-label {
    font-size: 11px;
  }
  
  .header-chev {
    width: 12px;
    height: 12px;
  }
  
  .header-brand-logo {
    max-height: 40px;
    max-width: 150px;
  }
}

@media (max-width: 992px) {
  /* Hamburger Menu für Tablet und Mobile */
  .header-hamburger {
    display: flex;
  }
  
  /* CTA Button Desktop auf Mobile verstecken */
  .header-cta {
    display: none;
  }
  
  /* CTA Button Mobile anzeigen */
  .header-cta-mobile {
    display: block;
  }
  
  /* Navigation wird zu Mobile Menu */
  .header-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 320px !important;
    height: 100vh !important;
    background: var(--nav-bg) !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 80px 30px 30px !important;
    gap: 0 !important;
    margin: 0 !important;
    flex: none !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s ease, visibility 0.3s ease, opacity 0.3s ease !important;
    z-index: 10000 !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3) !important;
    overflow-y: auto !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    border-radius: 0 !important;
  }
  
  .header-nav[aria-expanded="true"] {
    transform: translateX(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  
  .header-nav-item {
    width: 100% !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    height: auto !important;
    justify-content: flex-start !important;
    display: flex !important;
    align-items: center !important;
    color: rgba(255, 255, 255, 0.92) !important;
  }
  
  .header-nav-item:last-child {
    border-bottom: none !important;
  }
  
  /* CTA Button im Mobile Menu */
  .header-cta-mobile {
    display: block !important;
    width: 100% !important;
    margin-top: 20px !important;
    padding: 15px !important;
    background: var(--cta-bg) !important;
    border-radius: 8px !important;
    text-align: center !important;
    text-decoration: none !important;
    color: #EBF2F0 !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
  }
  
  .header-nav-label {
    font-size: 16px !important;
    color: rgba(235, 240, 238, 0.95) !important;
  }
  
  .header-mini-s {
    color: #73C59D !important;
    font-size: 24px !important;
    width: 24px !important;
    height: 28px !important;
  }
  
  .header-mini-s {
    font-size: 24px;
    width: 24px;
    height: 28px;
  }
  
  .header-chev {
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  .header-navbar {
    padding: 0 15px;
  }
  
  .header-nav {
    max-width: 280px;
    padding: 70px 20px 20px;
  }
  
  .header-nav-item {
    padding: 12px 0;
  }
  
  .header-nav-label {
    font-size: 14px;
  }
  
  .header-cta {
    width: 120px;
    height: 30px;
    padding: 0 8px;
  }
  
  .header-cta-text {
    font-size: 9px;
  }
  
  .header-cta-circle {
    width: 20px;
    height: 20px;
  }
  
  .header-cta-circle svg {
    width: 12px;
    height: 8px;
  }
}

/* Overlay für Mobile Menu */
.header-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.header-nav-overlay.active {
  display: block;
  opacity: 1;
}

@media (max-width: 992px) {
  .header-nav-overlay.active {
    display: block;
  }
}
