/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/* A) ZUM ARBEITEN im Block Editor (CSS+PHP) – Vorschau nur im Editor mit dunklem Design --> kann man später beide löschen.*/
.editor-styles-wrapper {
  background-color: #0F2841;
  color: #eeeeee;
}
 

/* ============================================
   B) hannas edit: Astra Child Theme – Custom Sticky Header (Free Version)
   ============================================ */
/* ============================================
   B) hannas edit: Astra Child Theme – Custom Sticky Header (Free Version)
   ============================================ */

/* --- STARTSEITE: transparenter Header über Hero --- */
body.home .main-header-bar {
  background-color: transparent !important;
  box-shadow: none !important;
  transition: all 0.35s ease, padding 0.35s ease;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 99;
  padding: 28px 0;
  box-sizing: border-box;
}

/* Menüfarbe auf Startseite (transparent) */
body.home .main-header-menu a {
  color: #ffffff !important;
}
body.home .main-header-menu a:hover {
  color: #3269BE !important;
}

/* Normaler Header Logo */
.site-logo-img img {
  height: auto;       /* Höhe passt sich automatisch an */
  max-height: 110px;   /* maximale Höhe */
  width: auto;        /* Breite passt sich proportional an */
  transition: max-height 0.35s ease, transform 0.35s ease;
}

/* --- UNTERSEITEN: Dunkler Header --- */
body:not(.home) .main-header-bar {
  background-color: #0F2841 !important;
  padding: 12px 0;
}
body:not(.home) .main-header-menu a {
  color: #ffffff !important;
}
body:not(.home) .main-header-menu a:hover {
  color: #3269BE !important;
}

/* --- BEIM SCROLLEN: Sticky Header --- */
.main-header-bar.is-sticky {
  position: fixed !important;
  top: 10px;        /* header liegt oben nicht exakt an -> wenn wert = 0 ja */
  width: 100%;
  background-color: #0F2841 !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  padding: 10px 0 !important;
  transition: all 0.35s ease;
  z-index: 9999;   /* Header nie von Blöcken überlappt */
}

/* Sticky Header Logo */
.main-header-bar.is-sticky .site-logo-img img {
  max-height: 60px;   /* maximale Höhe beim Scrollen */
  width: auto;        /* proportional zur Höhe */
  transform: none;    /* keine verzerrungen beim logo */

/* --- Inhalt nach unten verschieben, damit Header nichts verdeckt --- */
body {
  --header-height: 110px;
}
body.home {
  --header-height: 0px; /* Startseite: Header überlagert Hero */
}
.site-content {
  padding-top: var(--header-height);
}

	
/* --- MOBILE & TABLET ANPASSUNGEN --- */
@media (max-width: 1024px) {
  body.home .main-header-bar {
    background-color: transparent !important;
  }
  body:not(.home) .main-header-bar,
  .main-header-bar.is-sticky {
    background-color: #0F2841 !important;
	padding: 0 !important
  }
  .site-logo-img img {
    max-height: 60px;
  }
  .main-header-bar.is-sticky .site-logo-img img {
    max-height: 36px;
  }
}
	
	

	
/* ================================
   Mobile Menu Fix für Sticky + Transparent Header 22.10.2025
   ================================ */

/* Burger-Icon auf Startseite weiß 
body.home .ast-header-break-point .main-header-menu-toggle {
    color: #ffffff;
}

/* Burger-Icon beim Scrollen oder Unterseiten dunkel (optional) 
body.scrolled .ast-header-break-point .main-header-menu-toggle,
body:not(.home) .ast-header-break-point .main-header-menu-toggle {
    color: #ffffff; /* auf dunkel immer sichtbar, kann auch #ffffff bleiben */
}

/* Menü sichtbar über Content 
.main-header-bar .main-header-bar-navigation {
    z-index: 1000; /* über Content 
    position: relative;
}

/* Menü auf mobilen Geräten 
/*.ast-header-break-point .main-header-menu {
    display: none; /* Standard: ausgeblendet 
}

/* Menü sichtbar, wenn geöffnet 
.ast-header-break-point .main-header-menu.toggled-on {
    display: block;
    background-color: #0F2841; /* Dunkler Hintergrund für mobile Ansicht 
    padding: 10px 0;
}

/* Menülinks im mobilen Menü 
.ast-header-break-point .main-header-menu.toggled-on li a {
    color: #ffffff !important;
    padding: 12px 20px;
    display: block;
    text-decoration: none;
}

/* Menülinks hover 
.ast-header-break-point .main-header-menu.toggled-on li a:hover {
    color: #a6c8ff !important;
} 