/* Anwendungsgebiete – Uebersicht + Einzelseiten (Vorlage: preview_20913_anwendungsgebiete_la06_bb.pdf)
   Alle Werte in Design-Pixeln der Vorlage (Artboard 1440). Farben/Karten wie auf /produkte/. */

.oma-page {
  --om-navy: #25539c;
  --om-navy-deep: #1c4179;
  --om-cyan: #6ec1e3;
  --om-cyan-deep: #4ea9d1;
  --om-gray: #f1f3f4;
  --om-text: #000;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 96px;
  color: var(--om-text);
  font-family: Signika, "Segoe UI", sans-serif;
}

.oma-page * { box-sizing: border-box; }
.oma-page h1,
.oma-page h2,
.oma-page h3 { text-transform: none; letter-spacing: 0; }

/* ---------- Hero (volle Breite) ---------- */
.oma-hero,
.oma-hero .elementor-widget-container { width: 100%; }

.oma-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 700px;
  aspect-ratio: 4000 / 1842;
  object-fit: cover;
  object-position: center;
}

/* ---------- Textspalte ---------- */
.oma-page .oma-col.e-con,
.oma-page .oma-intro.e-con {
  width: 100%;
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.oma-page .oma-h1 .elementor-heading-title {
  margin: 0;
  color: var(--om-navy);
  font-size: 40px;
  font-weight: 600;
  line-height: 48px;
  text-align: center;
}

.oma-page--detail .oma-col--text .oma-h1 { margin: 64px 0 22px; }

.oma-page .oma-text .elementor-widget-container,
.oma-page .oma-lead .elementor-widget-container { color: var(--om-text); }

.oma-page .oma-text p {
  margin: 0 0 24px;
  color: var(--om-text);
  font-size: 22px;
  font-weight: 500;
  line-height: 33px;
  text-align: left;
}

.oma-page .oma-text p:last-child { margin-bottom: 0; }
.oma-page .oma-text sup { font-size: .6em; line-height: 0; }
.oma-page .oma-text a { color: var(--om-cyan-deep); text-decoration: none; }
.oma-page .oma-text a:hover { color: var(--om-navy); }

/* ---------- Pillen-Buttons ---------- */
.oma-page .oma-btn { width: auto; max-width: 100%; }

.oma-page .oma-btn .elementor-button,
.oma-page .oma-btn .elementor-button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  border: 0;
  box-shadow: none;
  fill: #fff;
}

/* Gleicher Abstand ueber und unter dem Button (Elementor setzt sonst margin-bottom auf 0). */
.oma-page .oma-col .oma-btn--anchor.elementor-widget { align-self: center; margin-top: 40px !important; margin-bottom: 40px !important; }
/* Zurueck-Button: eigene Zeile in Breite der Produktkacheln, linksbuendig mit deren Kante. */
.oma-page .om-pw.oma-backrow {
  width: 100%;
  max-width: 1140px;
  margin: 56px auto 0;
  padding: 0 24px;
  align-items: flex-start;
}
.oma-page .oma-backrow .oma-btn--back.elementor-widget {
  align-self: flex-start;
  width: auto;
  max-width: 100%;
  margin: 0;
}
.oma-page .oma-btn--back .elementor-widget-container,
.oma-page .oma-btn--back .elementor-button-wrapper { text-align: left; }
.oma-page .oma-btn--back .elementor-button { margin: 0; }

/* ---------- Passende Produkte + Karussell ---------- */
.oma-page .om-pw.oma-products {
  width: 100%;
  max-width: 1140px;
  margin: 72px auto 0;
  padding: 0 24px;
  scroll-margin-top: 150px;
}

.oma-page .oma-products__head.e-con { padding: 0; }

.oma-page .oma-h2 .elementor-heading-title {
  margin: 0 0 28px;
  color: var(--om-navy);
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  text-align: left;
}

.oma-page .oma-carousel.e-con {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
}

.oma-page .oma-carousel__track.e-con {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 21px;
  width: 100%;
  padding: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.oma-page .oma-carousel__track.e-con::-webkit-scrollbar { display: none; }

.oma-page .oma-carousel .oma-card.e-con {
  flex: 0 0 calc((100% - 42px) / 3);
  min-width: 0;
  min-height: 520px;
  padding: 36px 18px 28px;
  scroll-snap-align: start;
}

.oma-page .oma-card .om-card__visual { height: 250px; margin-bottom: 28px; }
.oma-page .oma-card .om-card__visual img { max-height: 250px; }

.oma-carousel__btn-slot {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: auto;
  transform: translateY(-50%);
}

.oma-carousel__btn-slot--prev { left: -76px; }
.oma-carousel__btn-slot--next { right: -76px; }

.oma-carousel__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--om-navy);
  cursor: pointer;
  transition: color .2s, background .2s;
}

/* Nur die Pfeilfarbe wechselt; der Hello-Theme-Standard (button:hover = rosa Hintergrund) wird neutralisiert. */
.oma-page .oma-carousel__btn:hover,
.oma-page .oma-carousel__btn:focus,
.oma-page .oma-carousel__btn:focus-visible,
.oma-page .oma-carousel__btn:active {
  background: transparent;
  background-color: transparent;
  border: 0;
  outline: none;
  color: var(--om-cyan);
}
.oma-page .oma-carousel__btn:focus-visible { outline: 2px solid var(--om-cyan); outline-offset: 2px; }
.oma-page .oma-carousel__btn:disabled:hover { color: var(--om-navy); }
.oma-carousel__btn[hidden] { display: none; }
.oma-carousel__btn:disabled { opacity: .3; cursor: default; }

/* ---------- Quellen ---------- */
.oma-page .oma-col--sources.e-con { margin-top: 56px; }

.oma-page .oma-sources .elementor-widget-container { color: var(--om-navy); }

.oma-page .oma-sources p {
  margin: 0 0 14px;
  color: var(--om-navy);
  font-size: 17px;
  font-weight: 400;
  line-height: 24px;
  overflow-wrap: anywhere;
}

.oma-page .oma-sources p:has(> sup:first-child) { padding-left: 32px; text-indent: -32px; }

.oma-page .oma-sources sup {
  display: inline-block;
  width: 32px;
  text-indent: 0;
  font-size: inherit;
  line-height: inherit;
  vertical-align: baseline;
  /* Das Theme hebt sup per top:-.5em an - in den Quellen steht die Ziffer auf der Grundlinie des Textes. */
  position: static;
  top: auto;
}

.oma-page .oma-sources a { color: inherit; text-decoration: underline; }

/* ---------- Uebersicht ---------- */
.oma-page .oma-intro.e-con { max-width: 816px; margin-top: 64px; margin-bottom: 64px; }

.oma-page .oma-intro .oma-h1 .elementor-heading-title { margin-bottom: 24px; }

.oma-page .oma-lead p {
  margin: 0 0 24px;
  color: var(--om-text);
  font-size: 22px;
  font-weight: 500;
  line-height: 33px;
  text-align: center;
}

.oma-page .oma-lead p:last-child { margin-bottom: 0; }

.oma-page .oma-tiles-wrap.e-con {
  width: 100%;
  max-width: 1188px;
  margin: 0 auto;
  padding: 0 24px;
}

.oma-page .oma-tiles.e-con { width: 100%; padding: 0; }

.oma-page .oma-tile.e-con {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  padding: 0 0 36px;
  background: var(--om-gray);
  text-align: center;
  text-decoration: none;
  transition: background .2s;
}

/* Kein Hover auf der Kachel selbst - nur der Button wird navy (siehe .oma-tile__arrow). */

.oma-page .oma-tile__img,
.oma-page .oma-tile__img .elementor-widget-container { width: 100%; }

.oma-page .oma-tile__img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.oma-page .oma-tile__title {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 60px;
  margin: 32px 0 24px;
  padding: 0 24px;
}

.oma-page .oma-tile__title .elementor-heading-title {
  margin: 0;
  color: var(--om-navy);
  font-size: 24px;
  font-weight: 600;
  line-height: 30px;
  text-align: center;
}

.oma-page .oma-tile__arrow-slot { margin-top: auto; }

.oma-tile__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 50px;
  border-radius: 999px;
  background: var(--om-cyan);
  color: #fff;
  transition: background .2s;
}

.oma-tile:hover .oma-tile__arrow,
.oma-tile:focus-visible .oma-tile__arrow { background: var(--om-navy); }

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
  /* Pfeile liegen innerhalb der Karten-Spur, sonst ragen sie aus dem Viewport */
  .oma-carousel__btn-slot--prev { left: 4px; }
  .oma-carousel__btn-slot--next { right: 4px; }
  .oma-carousel__btn {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 2px 10px rgba(37, 83, 156, .18);
  }
  /* Innen liegende Pfeile behalten ihren weissen Kreis, auch bei Hover/Fokus. */
  .oma-page .oma-carousel__btn:hover,
  .oma-page .oma-carousel__btn:focus,
  .oma-page .oma-carousel__btn:focus-visible,
  .oma-page .oma-carousel__btn:active {
    background: rgba(255, 255, 255, .92);
    background-color: rgba(255, 255, 255, .92);
  }
}

@media (max-width: 1024px) {
  .oma-page .oma-carousel .oma-card.e-con { flex-basis: calc((100% - 21px) / 2); }
  .oma-page .oma-tiles.e-con { gap: 16px; }
}

@media (max-width: 720px) {
  .oma-page { padding-bottom: 64px; }
  .oma-page .oma-h1 .elementor-heading-title { font-size: 30px; line-height: 38px; }
  .oma-page--detail .oma-col--text .oma-h1 { margin: 40px 0 16px; }
  .oma-page .oma-text p,
  .oma-page .oma-lead p { font-size: 18px; line-height: 28px; }
  .oma-page .oma-intro.e-con { margin-top: 40px; margin-bottom: 40px; }
  .oma-page .oma-col .oma-btn--anchor.elementor-widget { margin-top: 32px !important; margin-bottom: 32px !important; }
  .oma-page .om-pw.oma-products { margin-top: 48px; }
  .oma-page .oma-h2 .elementor-heading-title { font-size: 26px; line-height: 34px; }
  .oma-page .oma-carousel .oma-card.e-con { flex-basis: 84%; min-height: 480px; }
  .oma-page .oma-tile__title .elementor-heading-title { font-size: 21px; line-height: 27px; }
  .oma-page .oma-sources p { font-size: 15px; line-height: 22px; }
  .oma-page .oma-col--sources.e-con { margin-top: 40px; }
  .oma-page .om-pw.oma-backrow { margin-top: 40px; }
}
