/* OMION / SMD News-Ticker – lokal, keine externen Ressourcen, feste Höhe gegen CLS */
.ont-ticker {
  --ont-h: 44px;
  box-sizing: border-box;
  height: var(--ont-h);
  min-height: var(--ont-h);
  max-height: var(--ont-h);
  margin: 0;
  padding: 0;
  width: 100%;
  overflow: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}

.ont-ticker *,
.ont-ticker *::before,
.ont-ticker *::after {
  box-sizing: border-box;
}

.ont-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}

.ont-label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.ont-viewport {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.ont-ticker.is-animated .ont-viewport {
  overflow: hidden;
}

.ont-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  height: 100%;
  will-change: auto;
}

.ont-ticker.is-animated .ont-track {
  animation-name: ont-scroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: var(--ont-duration, 40s);
}

.ont-ticker.is-animated.is-paused .ont-track,
.ont-ticker.is-animated:hover .ont-track,
.ont-ticker.is-animated:focus-within .ont-track {
  animation-play-state: paused;
}

@keyframes ont-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ont-item {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 100%;
  padding: 0 2.5em 0 0;
  white-space: nowrap;
  color: inherit;
}

.ont-item + .ont-item::before,
.ont-sep {
  content: "";
}

.ont-item + .ont-item::before {
  content: "·";
  display: inline-block;
  margin-right: 2.5em;
  opacity: 0.55;
  font-weight: 700;
}

.ont-date {
  font-weight: 600;
  margin-right: 0.4em;
}

.ont-text {
  margin-right: 0.35em;
}

.ont-source {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.ont-source:hover,
.ont-source:focus-visible {
  text-decoration-thickness: 2px;
}

.ont-source:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.ont-ext {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ont-controls {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 2px;
}

.ont-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  line-height: 1;
}

.ont-btn:hover,
.ont-btn:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.ont-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.ont-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
}

.ont-prev,
.ont-next {
  display: none;
}

.ont-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  min-height: 30px;
  margin-left: 0.8em;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
}

.ont-more svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ont-more:hover,
.ont-more:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ont-more:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* —— Thema OMION: dunkler Balken, Akzent #f7c643 —— */
.ont-theme-omion {
  background: #1c1c1c;
  color: #ffffff;
  border-bottom: 0;
}

.ont-theme-omion .ont-label {
  background: #f7c643;
  color: #1a1a1a;
}

.ont-theme-omion .ont-source {
  color: #f7c643;
}

.ont-theme-omion .ont-more {
  background: #f7c643;
  color: #1a1a1a;
}

.ont-theme-omion .ont-more:focus-visible {
  outline-color: #ffffff;
}

.ont-theme-omion .ont-btn:hover,
.ont-theme-omion .ont-btn:focus-visible {
  background: rgba(247, 198, 67, 0.22);
}

/* —— Thema SMD: dezenter Sonnenton, Navy-Text —— */
.ont-theme-smd {
  background: #FFF6D9;
  color: #12305A;
  border-bottom: 1px solid #E9E4D9;
}

.ont-theme-smd .ont-label {
  background: #F7BE16;
  color: #1B1606;
}

.ont-theme-smd .ont-source {
  color: #12305A;
}

.ont-theme-smd .ont-more {
  background: #12305A;
  color: #ffffff;
}

.ont-theme-smd .ont-btn:hover,
.ont-theme-smd .ont-btn:focus-visible {
  background: rgba(18, 48, 90, 0.1);
}

/* prefers-reduced-motion: keine Laufschrift, statische Anzeige / Blättern */
@media (prefers-reduced-motion: reduce) {
  .ont-ticker {
    height: auto;
    max-height: none;
    min-height: var(--ont-h);
  }

  .ont-ticker.is-animated .ont-track,
  .ont-track {
    animation: none !important;
    width: 100%;
    transform: none !important;
  }

  .ont-ticker.is-animated .ont-viewport,
  .ont-viewport {
    overflow: hidden;
  }

  .ont-inner {
    align-items: flex-start;
    padding-top: 8px;
    padding-bottom: 8px;
    min-height: var(--ont-h);
    height: auto;
  }

  .ont-label {
    margin-top: 4px;
  }

  .ont-item {
    white-space: normal;
    height: auto;
    padding: 4px 0;
    max-width: 100%;
  }

  .ont-item + .ont-item::before {
    display: none;
  }

  .ont-ticker.is-reduced .ont-item {
    display: none;
  }

  .ont-ticker.is-reduced .ont-item.is-current {
    display: block;
    white-space: normal;
    max-width: 100%;
  }
  .ont-ticker.is-reduced .ont-date,
  .ont-ticker.is-reduced .ont-text,
  .ont-ticker.is-reduced .ont-srcwrap {
    display: inline;
  }
  .ont-ticker.is-reduced .ont-viewport {
    max-height: 6.2em;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .ont-ticker.is-reduced .ont-clone {
    display: none !important;
  }

  .ont-ticker.is-reduced .ont-prev,
  .ont-ticker.is-reduced .ont-next {
    display: inline-flex;
  }

  .ont-controls {
    margin-top: 2px;
  }
}

@media (max-width: 427px) {
  .ont-ticker {
    font-size: 13px;
  }

  .ont-inner {
    padding: 0 10px;
    gap: 6px;
  }

  .ont-label {
    font-size: 10px;
    padding: 0 6px;
    height: 22px;
  }
}
