/**
Theme Name: Astra Child
Author: Brainstorm Force
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: astra-child
Template: astra
*/

/* Grundlegende Typografie */
body, p, ul, li { hyphens: auto; }
.elementor-heading-title   {
  white-space: pre-wrap !important;
	hyphens: none;
}

/* Header Anpassungen */
.ast-desktop-header { z-index: 9999 !important; }

/* Transparenter Header */
#white-header {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Wenn Elementor den Sticky-Zustand aktiviert, wird der weiße Header sichtbar */
.elementor-sticky--effects #white-header {
    opacity: 1 !important;
    visibility: visible !important;
}


/* Transparenter Header */
#white-header-mobile {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Wenn Elementor den Sticky-Zustand aktiviert, wird der weiße Header sichtbar */
.elementor-sticky--effects #white-header-mobile {
    opacity: 1 !important;
    visibility: visible !important;
}
/* Header-Breadcrumbs */
.ast-header-breadcrumb { border: none !important; }

/* Buttons */
button, .ast-button, .button { box-shadow: none !important; }

/* Mobile Menü-Anpassungen */
.ast-mobile-popup-drawer.active .menu-toggle-close { z-index: 9999; }
svg.ast-mobile-svg.ast-close-svg {
    width: 30px;
    height: 30px;
}

/* Hauptheader ohne Border */
.main-header-bar { border: none !important; }

/* Flip-Box Titel Schatten */
.elementor-flip-box__front h3.elementor-flip-box__layer__title {
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3) !important;
}

/* Image-Button Abstand */
.premium-image-button .premium-image-button-text-icon-wrapper span {
    padding-top: 80px;
}

/* Link Hover Farbe */
h6.elementor-heading-title.elementor-size-default a:hover { color: #ffb200; }
.current-language-menu-item a { color: #ffb200 !important; }

/* Fix für Sticky Header */
#masthead { z-index: 9999 !important; }

/* Tabellen Anpassungen */
td.uael-table-col.no-border, table { border: none !important; }

td.uael-table-col.border-right {
    border-right-style: solid !important;
}

td.uael-table-col.border-top {
    border-top-style: solid !important;
}

td.uael-table-col.border-left-top {
    border-top-style: solid !important;
    border-left-style: solid !important;
}

td.uael-table-col.border-left {
    border-left-style: solid !important;
}

td.org-hover:hover {
    background-color: #ffb200 !important;
}

td { hyphens: none !important; }

/* Menüanker für festen Header */
body:not(.elementor-editor-active) .elementor-menu-anchor:before {
    content: "";
    display: block;
    height: 180px !important;
    margin: -180px 0 0 !important;
    visibility: hidden;
    pointer-events: none;
}

/* Mega Menu Dropdown richtig positionieren */
.elementor-widget-n-menu .e-n-menu-layout-horizontal ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: max-content;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    display: none; /* Standardmäßig ausblenden */
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 9999;
}

/* Dropdown sichtbar machen, wenn Hover oder Klick */
.elementor-widget-n-menu:hover .e-n-menu-layout-horizontal ul.sub-menu,
.elementor-widget-n-menu:focus-within .e-n-menu-layout-horizontal ul.sub-menu {
    display: block;
    opacity: 1;
}

/* Mobile Anpassung */
@media (max-width: 1024px) {
    .elementor-widget-n-menu .e-n-menu-layout-horizontal ul.sub-menu {
        position: relative;
        width: 100%;
    }
}
/* Standardmäßig ist das Off-Canvas-Menü unsichtbar */
.eael-offcanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: -1; /* Sicherstellen, dass es nicht über anderen Elementen liegt */
}

/* Off-Canvas-Header und -Body beim Laden unsichtbar machen */
.eael-offcanvas-header,
.eael-offcanvas-body {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* Wenn das Off-Canvas-Menü aktiv ist, wird es sichtbar */
.eael-offcanvas.eael-offcanvas-active .eael-offcanvas-header,
.eael-offcanvas.eael-offcanvas-active .eael-offcanvas-body {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}


/* Entfernt bestehende Separatoren, falls sie als Text enthalten sind */
.trail-items li::after {
    content: "\f054"; /* Unicode für Font Awesome fa-chevron-right */
    font-family: "Font Awesome 5 Free"; /* Falls FA5 oder neuer */
    font-weight: 900; /* Wichtig für solid Icons */
    margin: 0 8px; /* Abstand anpassen */
    color: #999; /* Farbe anpassen */
}

/* Entfernt den Separator beim letzten Element */
.trail-items li:last-child::after {
    content: "";
}

ol, ul {
    margin: 0 0 0.5em 1.2em !important;
}
#image-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem; /* Optional: Abstand zwischen den Buttons */
}

#image-buttons .premium-image-button {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
 /* min-height: 275px; /* Optional, kannst du auch weglassen */
}

    @media (max-width: 768px) {
        .form-field,
       .form-field-anrede {
            flex: 0 0 100% !important;
        }
    }


