/* euphonia.eu — Ersatz-Styles für die entfernten OnePage/React-Teile.
   Farben werden nach Browser-Abgleich mit dem Original justiert. */

:root {
  --euph-dark: #1c2b27;   /* dunkles Grün (Header/Hero) */
  --euph-orange: #e55920; /* CTA-Orange */
  --euph-light: #ffffff;
}

.euph-no-scroll { overflow: hidden; }

/* ---------- Sticky-Header: Inhalte invertieren gegen den Hintergrund ----------
   Logo, Navigation und Burger sind reinweiss; mix-blend-mode:difference
   rechnet sie gegen den Untergrund — auf dunklen Sektionen bleiben sie
   hell, auf weissen werden sie dunkel. Der Blend muss auf der Sticky-
   Sektion selbst liegen (position:sticky erzeugt einen eigenen Stacking-
   Context, Kinder wuerden sonst nur gegen den transparenten Header
   blenden). Der orange CTA-Button wird deshalb per JS in ein eigenes
   fixiertes Element ausgelagert und bleibt unveraendert. */
/* Nur die helle Header-Variante (weisse Inhalte) invertieren —
   Datenschutz/Impressum nutzen "menumodul-dark" mit dunklen Inhalten
   auf weissen Seiten und brauchen keinen Blend. */
.con-kit-section--type-header:not(.menumodul-dark) {
  mix-blend-mode: difference;
}
.euph-header-cta {
  position: fixed;
  z-index: 600;
}
@media (max-width: 992px) {
  .euph-header-cta { display: none !important; }
}

/* ---------- Burger-Button (nur mobil sichtbar) ---------- */
.euph-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}
.euph-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  color: var(--euph-light);
}
@media (max-width: 992px) {
  .euph-burger { display: flex; flex: 0 0 44px; margin-left: auto; }
  /* Desktop-Navigation mobil ausblenden */
  .con-kit-atom-menu-v2--device-desktop { display: none !important; }
  /* Header mobil: nur Logo + Burger (wie das Original) — alle anderen
     Header-Atome (CTA-Button, Spacer) ausblenden */
  .con-kit-molecule-header-v2__atoms > div:not(:has(.con-kit-component-logo)) {
    display: none !important;
  }
  /* Logo mobil verkleinern */
  .con-kit-component-logo { max-width: 150px; }
}

/* ---------- Mobile-Menü-Overlay ---------- */
.euph-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  background: var(--euph-light);
  padding: 24px;
}
.euph-menu--open { display: block; }
.euph-menu__close {
  position: absolute;
  top: 16px;
  right: 20px;
  border: 0;
  background: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: #191919;
}
.euph-menu nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 72px;
}
.euph-menu nav a {
  color: #191919;
  text-decoration: none;
  font-size: 20px;
  font-family: Figtree, sans-serif;
}
.euph-menu__cta {
  background: var(--euph-orange);
  color: var(--euph-light) !important;
  text-align: center;
  padding: 14px 20px;
  border-radius: 4px;
  font-weight: 600;
}

/* ---------- Video-Embed ---------- */
[data-yt] { cursor: pointer; }
.euph-video-frame {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  border-radius: inherit;
}

/* ---------- Karte (statischer Ersatz für Leaflet) ---------- */
.euph-map {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  min-height: 240px;
  background: #f2f2f2;
  border-radius: inherit;
  padding: 24px;
  text-align: center;
}
.euph-map__label { font-weight: 600; margin: 0; }
.euph-map__links { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin: 0; }
.euph-map__links a { color: var(--euph-orange); font-weight: 600; }

/* ---------- Slider -> horizontales Scroll-Snap ohne JS ---------- */
.con-kit-component-slider__items {
  display: flex !important;
  transform: none !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 16px;
  scrollbar-width: thin;
}
.con-kit-component-slider-item {
  scroll-snap-align: start;
  flex: 0 0 auto;
}
.con-kit-component-slider-item--cloned { display: none !important; }
.con-kit-component-slider-arrow,
.con-kit-component-slider-pagination { display: none !important; }

/* ---------- Mobile: mehrspaltige Bereiche untereinander stapeln ----------
   Ohne das React-JS bleiben Slider (Kund*innenstimmen) und die
   3-spaltige Grid-List (Einzelleistungen / Pakete) auf schmalen Screens
   nebeneinander und dadurch unlesbar (Karten ~90px breit). Auf Mobile
   werden sie einspaltig. Nur columns-3 wird umgebrochen — columns-1 ist
   bereits einspaltig, andere Spaltenzahlen werden im DOM nicht genutzt. */
@media (max-width: 768px) {
  /* Slider (Testimonials) vertikal stapeln */
  .con-kit-component-slider__items {
    flex-direction: column;
    overflow-x: hidden;
    scroll-snap-type: none;
  }
  .con-kit-component-slider-item {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 3-spaltige Grid-List (Einzelleistungen, Pakete) vertikal stapeln */
  .con-kit-component-grid-list--columns-3 {
    flex-direction: column;
  }
  .con-kit-component-grid-list--columns-3 .con-kit-component-grid-list-item {
    width: 100% !important;
  }
}

/* ---------- Hero-Halbkreise (SVG, ersetzen das Header-Bild) ---------- */
.euph-halfcircle { pointer-events: none; line-height: 0; }
.euph-halfcircle svg { display: block; width: clamp(90px, 6.8vw, 140px); height: auto; }
.euph-halfcircle--bottom { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 60; }
.euph-halfcircle--top { position: fixed; left: 50%; top: 0; transform: translateX(-50%); z-index: 60; }

/* AAS-Signet (nur /about-aas), zentriert über der Typo */
.euph-signet { display: flex; justify-content: center; margin: 0 0 20px; }
.euph-signet img { height: clamp(110px, 18vh, 190px); width: auto; display: block; }
