/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* ------------------------------------------------------------------
   Base colour scale — single source of truth for CSS *and* the light
   field shader (assets/lw-light-field.js reads these variables).

   To switch the whole site between the two bases, swap this block and
   re-run the generator with the matching LW_BASE value:

     schwarz  : --lw-base #111315 · --lw-base-rgb 17,19,21   (design original)
     ral7024  : --lw-base #45494E · --lw-base-rgb 69,73,78   (Graphitgrau)
   ------------------------------------------------------------------ */
:root {
  --lw-base: #24262A;
  --lw-base-rgb: 36, 38, 42;
  --lw-accent: #E7F35A;

  /* light-field palette: two steps above the base, then olive, then accent */
  --lw-field-bg: #24262A;
  --lw-field-c1: #323A40;
  --lw-field-c2: #424D4B;
  --lw-field-c3: #5c6a2c;
  --lw-field-c4: #E7F35A;
}

/* Header: shrink nav-menu dropdown caret to a subtle small arrow (design uses 9px opacity .65) */
.lw-header-nav .sub-arrow {
  margin-left: 6px;
  opacity: .65;
}
.lw-header-nav .sub-arrow svg {
  width: 9px;
  height: 9px;
}

/* Hero: glowing accent underline behind the last headline word */
.lw-hl {
  position: relative;
  white-space: nowrap;
}
.lw-hl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .06em;
  height: 5px;
  background: #E7F35A;
  box-shadow: 0 0 22px rgba(231, 243, 90, .65);
}

/* Hero washes — Elementor's overlay control only takes two colour stops, the design needs three */
.lw-hero::before,
.lw-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.lw-hero::before {
  background: linear-gradient(90deg, var(--lw-base) 8%, rgba(var(--lw-base-rgb), .88) 44%, rgba(var(--lw-base-rgb), .42) 100%);
}
.lw-hero::after {
  background: linear-gradient(0deg, rgba(var(--lw-base-rgb), .75), transparent 55%);
}
/* keep the content column above both washes */
.lw-hero > .e-con {
  position: relative;
  z-index: 1;
}

/* Photo panels keep the design's ratios instead of a fixed pixel height */
.lw-ratio-16-11 { aspect-ratio: 16 / 11; }
.lw-ratio-4-5   { aspect-ratio: 4 / 5; }
.lw-ratio-5-3   { aspect-ratio: 5 / 3; }
.lw-ratio-4-3   { aspect-ratio: 4 / 3; }
.lw-ratio-3-2   { aspect-ratio: 3 / 2; }

/* Links inside headings keep the heading's own colour, not the theme's link colour */
.lw-plainlink a {
  color: inherit;
  text-decoration: none;
}
.lw-breakall a {
  word-break: break-all;
}

/* On phones the panels are narrow enough that overlaid copy can outgrow a fixed
   ratio — let the box grow instead of letting the text overlap. */
@media (max-width: 767px) {
  .lw-ratio-16-11,
  .lw-ratio-4-5,
  .lw-ratio-4-3 {
    aspect-ratio: auto;
    min-height: 260px;
  }
}

/* Text link with the accent underline ("… entdecken →") */
.lw-textlink .elementor-button {
  border-bottom: 2px solid #E7F35A;
  border-radius: 0;
}
.lw-textlink .elementor-button:hover {
  background: transparent;
}

/* Service cards lift slightly on hover, matching the prototype's card hover */
.lw-card:hover {
  background-color: #E4E4DC !important;
}

/* Endless keyword band */
.lw-marquee {
  overflow: hidden;
}
.lw-marquee .lw-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 44px;
  font-family: Archivo, system-ui, sans-serif;
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: -.02em;
  white-space: nowrap;
  animation: lwMarquee 42s linear infinite;
}
.lw-marquee .lw-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #E7F35A;
  box-shadow: 0 0 12px rgba(231, 243, 90, .8);
}
@keyframes lwMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Prozess: accent dot sitting on the step rule */
.lw-stepdot .elementor-divider {
  position: relative;
  padding-left: 23px;
}
.lw-stepdot .elementor-divider::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #E7F35A;
  box-shadow: 0 0 14px rgba(231, 243, 90, .8);
}

/* Unternehmen: accent dash in front of each reason */
.lw-dash {
  color: #E7F35A;
  margin-right: 6px;
}

/* Kontakt: inherit the band's ink instead of the theme link colour */
.lw-contact-row a {
  color: #111315;
  text-decoration: none;
}

/* Closing CTA: animated WebGL light field, mounted by assets/lw-light-field.js.
   The gradient stays as the fallback for browsers without WebGL. */
.lw-closing {
  background-image: radial-gradient(ellipse at 50% 50%, rgba(231, 243, 90, .07), rgba(var(--lw-base-rgb), .6) 70%);
  overflow: hidden;
}
.lw-closing .lw-light-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--lw-field-bg);
  z-index: 0;
}
.lw-closing .lw-light-field canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
/* the prototype lays a dark radial wash over the field to keep the copy legible */
.lw-closing::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 50%, rgba(var(--lw-base-rgb), .1), rgba(var(--lw-base-rgb), .6));
}
.lw-closing > .e-con {
  position: relative;
  z-index: 2;
}

/* Respect reduced-motion, like the prototype does */
@media (prefers-reduced-motion: reduce) {
  .lw-marquee .lw-marquee-track { animation: none; }
}

/* Mobile call bar — pinned to the bottom of the viewport on phones only */
.lw-callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
}
@media (max-width: 767px) {
  body { padding-bottom: 60px; }
}

/* ---------------------------------------------------------------------------
   Heller Hero (Kundenwunsch 09/2026: erster Eindruck hell & freundlich,
   kein Firmengebäude — der Betrieb hat keinen repräsentativen Firmensitz).

   Gleicher Aufbau wie .lw-hero — vollflächiges Foto, Text darüber — aber der
   Verlauf läuft nach Warmweiß statt nach Graphit. Links deckend, damit die
   Schrift ruhig steht; nach rechts gibt er das Kundenfoto frei.
   --------------------------------------------------------------------------- */
.lw-hero-light {
  position: relative;
  background-color: #F4F4F0;
}
.lw-hero-light::before,
.lw-hero-light::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
/* Wash von links: trägt die Textspalte */
.lw-hero-light::before {
  background: linear-gradient(90deg,
    #F4F4F0 8%,
    rgba(244, 244, 240, .94) 44%,
    rgba(244, 244, 240, .58) 72%,
    rgba(244, 244, 240, .10) 100%);
}
/* Aufhellung von unten — nimmt auch dunkleren Fotos die Schwere */
.lw-hero-light::after {
  background: linear-gradient(0deg, rgba(244, 244, 240, .45), transparent 52%);
}
/* Inhaltsspalte über beide Washes heben */
.lw-hero-light > .e-con {
  position: relative;
  z-index: 1;
}
/* Auf schmalen Viewports steht die Schrift über der Bildmitte —
   dort deckt ein flächiger Wash statt des Verlaufs. */
@media (max-width: 1024px) {
  .lw-hero-light::before {
    background: linear-gradient(90deg,
      #F4F4F0 0%,
      rgba(244, 244, 240, .95) 55%,
      rgba(244, 244, 240, .80) 100%);
  }
}

/* Akzent-Unterstreichung auf hellem Grund kräftiger,
   sonst verschwindet das Gelbgrün im Warmweiß */
.lw-hero-light .lw-hl::after {
  height: 6px;
  background: #E7F35A;
  box-shadow: 0 0 18px rgba(231, 243, 90, .9);
}

/* Galerie-Kacheln auf den Leistungs-Unterseiten */
.lw-gallery-item {
  border-radius: 4px;
  overflow: hidden;
  transition: transform .25s ease;
}
.lw-gallery-item:hover {
  transform: translateY(-3px);
}
.lw-gallery-caption {
  margin-top: 10px;
}

/* Brotkrumen-Zeile auf den Unterseiten */
.lw-crumbs a {
  color: inherit;
  text-decoration: none;
}
.lw-crumbs a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------------------
   Sticky Header (Desktop, Tablet, Handy)

   Reines CSS statt Elementors Sticky-Effekt: der Header bleibt ein normales
   Element im Fluss (kein Platzhalter, kein Springen), und er ist zugleich
   Bezugsrahmen für das angedockte Burger-Menü weiter unten.
   Die Admin-Leiste angemeldeter Nutzer wird über die WP-Variable berücksichtigt.
   --------------------------------------------------------------------------- */
.elementor-location-header {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 100;
  /* Der Header hatte keine eigene Fläche — dunkel wirkte er nur, weil der
     Seitenhintergrund dahinter dunkel ist. Beim Kleben scheint sonst der
     Inhalt durch. */
  background-color: var(--lw-base);
  /* feine Kante, damit er sich über den dunklen Abschnitten abhebt */
  box-shadow: 0 1px 0 rgba(244, 244, 240, .08);
}
/* Sprungmarken (#referenzen, #anlagen …) nicht unter dem Header verstecken */
html {
  scroll-padding-top: 135px;
}
@media (max-width: 767px) {
  html {
    scroll-padding-top: 110px;
  }
}
/* Auf dem Handy ist die Admin-Leiste nicht fixiert, sie scrollt weg */
@media (max-width: 600px) {
  .elementor-location-header {
    top: 0;
  }
}

/* ---------------------------------------------------------------------------
   Burger-Menü (Tablet + Handy, bis 1024px)

   Elementor hängt das ausgeklappte Menü mit festem Abstand unter den Burger.
   Da der Burger je nach Breite unterschiedlich hoch im Header sitzt, blieb
   eine helle Lücke zur Seite darunter. Stattdessen dockt das Menü jetzt an
   die Unterkante des ganzen Headers an: der Header ist Bezugsrahmen, alle
   Container dazwischen stehen statisch.
   --------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .elementor-location-header .e-con,
  .elementor-location-header .e-flexbox,
  .elementor-location-header .lw-header-nav,
  .elementor-location-header .lw-header-nav .elementor-widget-container {
    position: static;
  }
  .elementor-location-header .lw-header-nav nav.elementor-nav-menu--dropdown {
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    margin-top: 0 !important;
    /* Header ist sticky: langes Menü muss in sich scrollen, sonst ist das
       Ende auf kleinen Displays nicht erreichbar. 100% = Headerhöhe. */
    max-height: calc(100dvh - 100%) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    border-top: 1px solid rgba(244, 244, 240, .08);
    box-shadow: 0 24px 40px rgba(0, 0, 0, .28);
  }

  /* Trennlinien zwischen den Punkten, Pfeil ans rechte Ende */
  .lw-header-nav .elementor-nav-menu--dropdown li {
    border-bottom: 1px solid rgba(244, 244, 240, .07);
  }
  .lw-header-nav .elementor-nav-menu--dropdown li:last-child {
    border-bottom: 0;
  }
  .lw-header-nav .elementor-nav-menu--dropdown .sub-arrow {
    margin-left: auto;
    padding-left: 24px;
    opacity: .9;
  }
  .lw-header-nav .elementor-nav-menu--dropdown .sub-arrow svg {
    width: 12px;
    height: 12px;
  }

  /* Untermenü: eingerückt, eine Spur dunkler und kleiner als die Hauptpunkte */
  .lw-header-nav .elementor-nav-menu--dropdown .sub-menu {
    border-top: 1px solid rgba(244, 244, 240, .07);
  }
  .elementor-location-header .elementor-element.lw-header-nav .elementor-nav-menu--dropdown a.elementor-sub-item {
    padding-left: 46px;
    font-size: 15px;
    color: #C9CBC7;
    background-color: #1D1F22;
    border-left: 0;
  }
  .elementor-location-header .elementor-element.lw-header-nav .elementor-nav-menu--dropdown a.elementor-sub-item:hover,
  .elementor-location-header .elementor-element.lw-header-nav .elementor-nav-menu--dropdown a.elementor-sub-item.elementor-item-active {
    color: #E7F35A;
  }

  /* Aufgeklappter Elternpunkt: kein grauer Block, nur der Pfeil dreht sich.
     Gelb bleibt der aktiven Seite vorbehalten. */
  .elementor-location-header .elementor-element.lw-header-nav .elementor-nav-menu--dropdown a.highlighted:not(.elementor-item-active) {
    color: #F4F4F0;
    background-color: #24262A;
  }
  .lw-header-nav .elementor-nav-menu--dropdown a.highlighted .sub-arrow svg {
    transform: rotate(180deg);
  }
}

/* iPad quer und kleine Laptops: Desktop-Menü bleibt einzeilig */
@media (min-width: 1025px) and (max-width: 1280px) {
  .lw-header-nav .elementor-nav-menu--main > .elementor-nav-menu {
    flex-wrap: nowrap;
  }
  .elementor-location-header .elementor-element.lw-header-nav .elementor-nav-menu--main .elementor-item {
    padding-left: 10px;
    padding-right: 10px;
    white-space: nowrap;
  }
}
