/* =============================================================================
   THEME COMPONENTS
   ============================================================================= */

/* .theme-headline */
.elementor-element.theme-headline {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  font-style: italic;
  font-variation-settings:
    "wdth" 92,
    "wght" 800,
    "slnt" -10;
  font-size: var(--step-5);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.theme-headline div {
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

.theme-headline strong {
  font-weight: inherit;
  color: var(--orange-500);
  background-image: linear-gradient(180deg, transparent 78%, rgba(227, 69, 15, 0.18) 78%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 0.05em;
}

.theme-headline--white strong {
  color: #ffffff;
  background-image: linear-gradient(180deg, transparent 78%, rgba(255, 255, 255, 0.18) 78%);
}

/* .ludwig-stat__value — the four figures in the facts row

   They were set to a flat 42px in Elementor, so they stayed 42px on a phone
   where the column is 298px wide and "AP-Netzwerk" no longer fits. The size
   now grows with the viewport between 26px and the 42px the design uses on a
   desktop — an own token rather than .theme-headline, whose 64px would be a
   different design decision, not a fix. */
.elementor-element.ludwig-stat__value,
.elementor-element.ludwig-stat__value .elementor-heading-title {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  font-style: italic;
  font-variation-settings:
    "wdth" 92,
    "wght" 800,
    "slnt" -10;
  font-size: clamp(1.625rem, 1.254rem + 1.524vw, 2.625rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* .theme-justify-mobile — justified body copy on phones

   Client decision 20.09.2026 (variant C of the four we compared): on a phone
   the ragged right edge of long German compounds reads restlessly, so running
   text is justified there. Justification alone tears the word spacing apart on
   a column that narrow, so it only ever comes together with hyphenation —
   which needs the lang attribute WordPress already prints on <html>.

   Tablet and up keep the ragged edge: there the columns are wide enough for
   the ragged edge to look calm and for justification to gain nothing.

   The class goes on the individual text widgets rather than on every text
   widget at once, so headings, card copy, short labels and the address block
   in the footer of the home page keep their own alignment. */
@media (max-width: 767px) {
  /* The bare element is skipped on widgets that carry a heading of their own —
     an icon box and an accordion. Justifying the wrapper would drag that
     heading along; their running text sits in a <p> and is covered by the
     selector below like any other. */
  .theme-justify-mobile:not(.elementor-widget-icon-box):not(.elementor-widget-accordion),
  .theme-justify-mobile p,
  .theme-justify-mobile li {
    /* !important because Elementor writes the per-widget alignment as
       `.elementor-218 .elementor-element.elementor-element-xxx`, which outweighs
       any single class. Without it a centred paragraph keeps its alignment while
       the hyphenation below still applies — ragged on both sides and full of
       hyphens, the worst of both. */
    text-align: justify !important;
    hyphens: auto;
  }
}

/* .theme-tag — eyebrow label */
.elementor-element.theme-tag .elementor-heading-title {
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  color: var(--text-on-light-mut);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.elementor-element.theme-tag .elementor-heading-title::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
  flex-shrink: 0;
}
