/*
 Theme Name: Aino Child
 Template: aino
 Version: 1.0.1
*/
/* Weissee Karte ueberlappt das Video */
.hero-card{
  position: relative;
  z-index: 3;
  margin-top: -96px;                 /* Ueberlappung: groesserer negativer Wert = weiter ins Video */
}

/* Optional: etwas Platz unter dem Video, damit die Karte nicht "beißt" */
.hero-video{ padding-bottom: 24px; }  /* bei Bedarf anpassen */

/* Desktop: etwas mehr Overlap */
@media (min-width: 1024px){
  .hero-card{ margin-top: -128px; }
}
/* Erzwinge die richtigen Familien im Frontend */
/* Body Text - Ohne !important, damit Headlines Vorrang haben */
body {
  font-family: var(--wp--preset--font-family--futura), system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Headlines */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--wp--preset--font-family--cabinetgrotesk), system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}
.has-cabinetgrotesk-font-family {
  font-family: var(--wp--preset--font-family--cabinetgrotesk), sans-serif !important;
}

.has-futura-font-family {
  font-family: var(--wp--preset--font-family--futura), sans-serif !important;
}
/* Headlines Gewicht korrigieren */
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
  font-weight: 700 !important;
}
body, p {
  font-weight: 300;
}
/* Stellt sicher, dass alle Ueberschriften-Elemente Cabinet Grotesk nutzen */
h1, h2, h3, h4, h5, h6, 
.wp-block-post-title, 
.wp-block-heading {
  font-family: var(--wp--preset--font-family--cabinetgrotesk), sans-serif !important;
}
/* Erzwungene Zuweisung für alle Elemente innerhalb von Headlines */
h1 *, h2 *, h3 *, h4 *, h5 *, h6 *,
.wp-block-heading * {
    font-family: var(--wp--preset--font-family--cabinetgrotesk), sans-serif !important;
}

/* Accordion: Headline und Icon bleiben zentriert beim Aufklappen */
.wp-block-ainoblocks-accordion-faq-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wp-block-ainoblocks-accordion-faq-block .accordion {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}

.wp-block-ainoblocks-accordion-faq-block .panel {
  width: 100%;
}
.shader-hero {
  position: relative;
  min-height: calc(100vh - 120px) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Der Shader-Container legt sich als Hintergrund flächig hin */
.shader-hero #mesh-gradient-header {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.shader-hero #mesh-gradient-header canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Headline darüber */
.shader-hero h1,
.shader-hero h2,{
  position: 0 1.5rem;
  z-index: 1;
  color: #fff;           /* an deine Farbwelt anpassen */
  text-align: center;
  margin: 0;
  padding: 0 1rem !important;
}
/* NEU: Grid Container über dem Shader */
.shader-hero .wp-block-ainoblocks-grid-container {
  position: relative;
  z-index: 1;
}