/* =========================================================================
   Sektion „Websites – Digitale Auftritte, die überzeugen.“ – AutomaNext im Apple-Design
   Nutzt die globalen Tokens der Seite, wenn vorhanden, sonst eigene Fallbacks.
   Alle Klassen sind mit „wh-“ präfixiert und kollidieren nicht mit der Seite.
   ========================================================================= */

websites-hero {
  --wh-blue: var(--blue, #1735ff);
  --wh-blue-hover: var(--blue-hover, #2b47ff);
  --wh-blue-active: var(--blue-active, #102bdb);
  --wh-text: var(--text, #1d1d1f);
  --wh-text-secondary: var(--text-secondary, #6e6e73);
  /* Exakt der Hintergrundton des Bildes, damit kein Kasten sichtbar wird */
  --wh-bg: #f7f9fb;
  --wh-font-display: var(--font-display, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif);
  --wh-font-text: var(--font-text, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif);
  position: relative;
  z-index: 1;
  display: block;
}

websites-hero *,
websites-hero *::before,
websites-hero *::after {
  box-sizing: border-box;
}

.wh {
  display: flex;
  flex-direction: column;
  height: 692px;
  padding: 0;
  overflow: hidden;
  background: var(--wh-bg);
  font-family: var(--wh-font-text);
  text-align: center;
  color: var(--wh-text);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Text ---------- */

.wh-copy {
  flex: none;
  padding: 52px 22px 0;
}

.wh-headline {
  margin: 0;
  font-family: var(--wh-font-display);
  font-size: 56px;
  line-height: 1.07143;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.wh-subhead {
  margin: 6px auto 0;
  font-family: var(--wh-font-display);
  font-size: 28px;
  line-height: 1.14286;
  font-weight: 400;
  letter-spacing: 0.007em;
  text-wrap: balance;
}

.wh-price {
  margin: 8px 0 0;
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  color: var(--wh-text-secondary);
}

/* ---------- Buttons ---------- */

.wh-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 16px;
  margin-top: 18px;
}

.wh-btn {
  display: inline-block;
  padding: 11px 21px;
  border: 1px solid transparent;
  border-radius: 980px;
  font-size: 17px;
  line-height: 1.17648;
  letter-spacing: -0.022em;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.1s linear, color 0.1s linear, border-color 0.1s linear;
}

.wh-btn:hover {
  text-decoration: none;
}

.wh-btn:focus-visible {
  outline: 3px solid rgba(23, 53, 255, 0.55);
  outline-offset: 2px;
}

.wh-btn--primary {
  background: var(--wh-blue);
  color: #fff;
}

.wh-btn--primary:hover {
  background: var(--wh-blue-hover);
}

.wh-btn--primary:active {
  background: var(--wh-blue-active);
}

.wh-btn--secondary {
  border-color: var(--wh-blue);
  background: transparent;
  color: var(--wh-blue);
}

.wh-btn--secondary:hover {
  background: var(--wh-blue);
  color: #fff;
}

/* ---------- Bild ---------- */

.wh-media {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 20px;
}

/* Weich ausgeblendete Ränder lassen das Bild nahtlos in den Hintergrund übergehen */
.wh-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0, #000 6%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0, #000 6%);
  mask-composite: intersect;
}

/* ---------- Responsive ---------- */

@media (max-width: 1068px) {
  .wh-headline {
    font-size: 48px;
    line-height: 1.08349;
    letter-spacing: -0.003em;
  }

  .wh-subhead {
    font-size: 24px;
    line-height: 1.16667;
    letter-spacing: 0.009em;
  }
}

@media (max-width: 734px) {
  .wh {
    height: 600px;
  }

  .wh-copy {
    padding-top: 44px;
  }

  .wh-headline {
    font-size: 32px;
    line-height: 1.125;
    letter-spacing: 0.004em;
  }

  .wh-subhead {
    font-size: 19px;
    line-height: 1.21053;
    letter-spacing: 0.012em;
  }

  .wh-price {
    font-size: 15px;
  }

  .wh-btn {
    padding: 7px 14px;
    font-size: 15px;
    line-height: 1.2;
  }

  .wh-media {
    margin: 16px -10% 0;
  }
}
