/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Child theme for Astra Theme
Author: Your Name
Author URI: https://yourwebsite.com
Template: astra
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
*/

/* Add your custom styles after this line */

/* Custom colors */
:root {
    --primary-main: rgb(24, 72, 101);
    --primary-supportingBlue: rgb(21, 132, 156);
    --primary-supportingBlueHover: rgb(21, 130, 154);
    --primary-primaryGreen: rgb(0, 67, 74);
    --primary-100: rgb(24, 72, 101);
    --primary-200: rgb(94, 201, 191);
    --primary-300: rgb(75, 160, 152);
    --primary-600: rgb(16, 114, 135);
    --primary-800: rgb(24, 72, 101);
    --primary-50: rgb(246, 251, 251);
    --white-white: rgb(255, 255, 255);
    --white-main: rgb(245, 245, 245);
    --white-greenish: rgb(225, 243, 242);
    --white-blueish: rgb(247, 251, 251);
    --white-hovered: rgb(236, 236, 236);
}

/* Essential Tailwind classes for the header */
.fixed { position: fixed; }
.top-0 { top: 0; }
.z-\[100\] { z-index: 100; }
.w-full { width: 100%; }
.bg-primary-50 { background-color: rgb(246, 251, 251); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.mx-auto { margin-left: auto; margin-right: auto; }
.hidden { display: none; }
.w-1\/4 { width: 25%; }
.h-48 { height: 12rem; }
.h-54 { height: 13.5rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.rounded-lg { border-radius: 0.5rem; }
.p-5 { padding: 1.25rem; }
.h-20 { height: 5rem; }
.h-16 { height: 4rem; }
.h-6 { height: 1.5rem; }
.mr-0 { margin-right: 0; }
.text-primary-main { color: rgb(24, 72, 101); }
.bg-white-main { background-color: rgb(245, 245, 245); }
.hover\:bg-white-greenish:hover { background-color: rgb(225, 243, 242); }
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.transform { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.hover\:scale-105:hover { --tw-scale-x: 1.05; --tw-scale-y: 1.05; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.cursor-pointer { cursor: pointer; }
.flex-col { flex-direction: column; }
.justify-center { justify-content: center; }
.space-x-4 > :not([hidden]) ~ :not([hidden]) { --tw-space-x-reverse: 0; margin-right: calc(1rem * var(--tw-space-x-reverse)); margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse))); }
.rotate-180 { --tw-rotate: 180deg; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.pl-12 { padding-left: 3rem; }
.pt-2\.5 { padding-top: 0.625rem; }
.pb-6 { padding-bottom: 1.5rem; }
.flex-wrap { flex-wrap: wrap; }
.max-w-screen-xl { max-width: 1280px; }
.pb-3 { padding-bottom: 0.75rem; }
.pt-2 { padding-top: 0.5rem; }
.scale-150 { --tw-scale-x: 1.5; --tw-scale-y: 1.5; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.inline-flex { display: inline-flex; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.text-white { color: white; }
.mr-3 { margin-right: 0.75rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-white-main { color: rgb(245, 245, 245); }
.rounded-lg { border-radius: 0.5rem; }
.bg-primary-supportingBlue { background-color: rgb(21, 132, 156); }
.hover\:bg-primary-600:hover { background-color: rgb(16, 114, 135); }
.hover\:text-white-main:hover { color: rgb(245, 245, 245); }
.p-2 { padding: 0.5rem; }
.text-gray-500 { color: rgb(107, 114, 128); }
.hover\:text-gray-700:hover { color: rgb(55, 65, 81); }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:text-gray-700:focus { color: rgb(55, 65, 81); }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.lg\:order-1 { order: 1; }
.lg\:order-2 { order: 2; }
.flex-col { flex-direction: column; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.pr-4 { padding-right: 1rem; }
.pl-3 { padding-left: 0.75rem; }
.text-gray-700 { color: rgb(55, 65, 81); }
.border-b { border-bottom-width: 1px; }
.border-gray-100 { border-color: rgb(243, 244, 246); }
.hover\:bg-gray-50:hover { background-color: rgb(249, 250, 251); }
.ml-2 { margin-left: 0.5rem; }
.w-full { width: 100%; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.w-18 { width: 4.5rem; }
.h-18 { height: 4.5rem; }
.fill-current { fill: currentColor; }

/* Media queries */
@media (min-width: 640px) {
  .sm\:scale-150 { --tw-scale-x: 1.5; --tw-scale-y: 1.5; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
  .sm\:mr-3 { margin-right: 0.75rem; }
  .sm\:ml-0 { margin-left: 0; }
  .sm\:h-9 { height: 2.25rem; }
  .sm\:pb-0 { padding-bottom: 0; }
  .sm\:pt-4 { padding-top: 1rem; }
  .sm\:px-4 { padding-left: 1rem; padding-right: 1rem; }
  .sm\:px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
  .sm\:py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
  .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .sm\:font-medium { font-weight: 500; }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:w-auto { width: auto; }
  .lg\:flex-row { flex-direction: row; }
  .lg\:space-x-8 > :not([hidden]) ~ :not([hidden]) { --tw-space-x-reverse: 0; margin-right: calc(2rem * var(--tw-space-x-reverse)); margin-left: calc(2rem * calc(1 - var(--tw-space-x-reverse))); }
  .lg\:border-0 { border-width: 0px; }
  .lg\:p-0 { padding: 0px; }
  .lg\:px-4 { padding-left: 1rem; padding-right: 1rem; }
  .lg\:hover\:bg-transparent:hover { background-color: transparent; }
  .lg\:hover\:text-primary-600:hover { color: rgb(16, 114, 135); }
}

@media (min-width: 1536px) {
  .\32xl\:pt-4 { padding-top: 1rem; }
}

.list-none {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

/* Fix for Funktionen menu item */
#megaMenuToggler {
    display: flex !important;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* Fix for submenu */
#megaMenuContent {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 50;
}

/* Fix for mobile menu */
@media (max-width: 1023px) {
    #navbarCollapse ul {
        padding-left: 0;
        margin-left: 0;
    }
    
    #navbarCollapse li {
        margin-bottom: 0.5rem;
    }
}

/* Add these styles to fix the drop shadow on the Funktionen button */
#megaMenuToggler {
    display: flex !important;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    box-shadow: none !important;
    outline: none !important;
    text-shadow: none !important;
}

/* Fix for the Integrationen image size */
.h-20 img {
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Fix for font consistency */
.heimat-page-header,
.heimat-page-header *,
#megaMenuContent,
#megaMenuContent * {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

/* Ensure proper image sizing in cards */
.w-1\/4 .h-20 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.w-1\/4 .h-20 img {
    width: auto;
    height: auto;
    max-width: 4.5rem;
    max-height: 4.5rem;
    object-fit: contain;
}

/* Fix font weight and color consistency for all navigation items */
#navbarCollapse ul li a,
#navbarCollapse ul li button,
.lg\:order-2 a {
    font-weight: 500 !important; /* Adjust this value to match your vanilla HTML */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    color: rgb(55, 65, 81) !important; /* This is text-gray-700 */
}

/* Specific fix for "Demo anfordern" button */
a[href*="#demo"] {
    font-weight: 500 !important;
    color: rgb(245, 245, 245) !important; /* This is text-white-main */
    background-color: rgb(21, 132, 156) !important; /* This is bg-primary-supportingBlue */
}

/* Ensure hover states work correctly */
#navbarCollapse ul li a:hover,
#navbarCollapse ul li button:hover {
    color: rgb(16, 114, 135) !important; /* This is text-primary-600 */
}

a[href*="#demo"]:hover {
    background-color: rgb(16, 114, 135) !important; /* This is bg-primary-600 */
    color: rgb(245, 245, 245) !important; /* This is text-white-main */
}

/* Force consistent text rendering */
#navbarCollapse ul li a,
#navbarCollapse ul li button,
.lg\:order-2 a,
#megaMenuContent {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fix vertical alignment and padding for the Funktionen button */
#megaMenuToggler {
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    line-height: inherit !important;
    vertical-align: middle !important;
    box-shadow: none !important;
    outline: none !important;
    text-shadow: none !important;
    border: none !important;
    background: none !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
}

/* Ensure all navigation items have consistent spacing and alignment */
#navbarCollapse ul.list-none {
    display: flex !important;
    align-items: center !important;
}

#navbarCollapse ul.list-none li {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

#navbarCollapse ul.list-none li a,
#navbarCollapse ul.list-none li button {
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    line-height: normal !important;
    display: flex !important;
    align-items: center !important;
}

/* Fix for desktop view */
@media (min-width: 1024px) {
    #navbarCollapse ul.list-none {
        height: 100% !important;
    }
    
    #navbarCollapse ul.list-none li {
        margin-right: 2rem !important;
    }
    
    #navbarCollapse ul.list-none li:last-child {
        margin-right: 0 !important;
    }
}

/* Fix alignment of the arrow icon in the Funktionen button */
#megaMenuToggler {
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    line-height: inherit !important;
    vertical-align: middle !important;
}

/* Specifically target the arrow icon container */
#megaMenuIcon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 0.5rem !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    height: auto !important;
}

/* Target the SVG itself */
#megaMenuIcon svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    vertical-align: middle !important;
}

/* Ensure the text and icon are properly aligned */
#megaMenuToggler span {
    display: flex !important;
    align-items: center !important;
}

/* Fix vertical alignment of all menu items */
#navbarCollapse ul.list-none li a,
#navbarCollapse ul.list-none li button {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    line-height: normal !important;
}

.w-1\/4 .h-20 img {
    height: 4.5rem !important; /* Match the height of other icons */
    width: auto !important; /* Allow width to adjust proportionally */
    max-width: none !important; /* Override any max-width constraints */
    object-fit: contain !important;
}

Specific fix for the Integrationen image
a[href*="integrations/index.html"] .h-20 > img {
    height: 4.5rem !important;
    width: auto !important;
    max-height: 4.5rem !important;
}

/* Force font colors in menu and mega menu */
#navbarCollapse ul li a,
#navbarCollapse ul li button,
#megaMenuContent .text-xl,
#megaMenuContent .text-sm {
    color: rgb(24, 72, 101) !important; /* primary-main color */
}

/* Force hover colors */
#navbarCollapse ul li a:hover,
#navbarCollapse ul li button:hover {
    color: rgb(16, 114, 135) !important; /* primary-600 color */
}

/* Force colors for mega menu card titles and descriptions */
.w-1\/4 .text-xl {
    color: rgb(24, 72, 101) !important; /* primary-main color */
    font-weight: 700 !important;
}

.w-1\/4 .text-sm {
    color: rgb(24, 72, 101) !important; /* primary-main color */
}

/* Fix for the logo size */
header a[href*="index"] img,
header a[href$="/"] img {
    height: 2.25rem !important; /* Equivalent to sm:h-9 */
    width: auto !important;
    max-width: none !important;

}

/* Ensure the logo container has proper sizing */
header a[href*="index"],
header a[href$="/"] {
    align-items: center !important;
    transform: scale(1.5) !important; /* Match the scale-150 class */

}

/* Media query for smaller screens */
@media (max-width: 640px) {
    header a[href*="index"] img,
    header a[href$="/"] img {
        height: 1.5rem !important; /* Equivalent to h-6 */
    }
}
