/* =========================================================================
   Sektion „Automatisierung – Weniger manuell. Mehr automatisch.“ – AutomaNext im Apple-Design
   Nutzt die globalen Tokens der Seite, wenn vorhanden, sonst eigene Fallbacks.
   Alle Klassen sind mit „ah-“ präfixiert und kollidieren nicht mit der Seite.
   ========================================================================= */

automatisierung-hero {
  --ah-blue: var(--blue, #1735ff);
  --ah-blue-hover: var(--blue-hover, #2b47ff);
  --ah-blue-active: var(--blue-active, #102bdb);
  --ah-link: var(--link-on-dark, #7d8cff);
  --ah-text: #f5f5f7;
  --ah-text-secondary: var(--text-on-dark-secondary, #a1a1a6);
  --ah-bg: #000;
  --ah-font-display: var(--font-display, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif);
  --ah-font-text: var(--font-text, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif);
  display: block;
}

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

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

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

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

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

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

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

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

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

.ah-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;
}

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

.ah-btn:focus-visible {
  outline: 3px solid rgba(125, 140, 255, 0.6);
  outline-offset: 2px;
}

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

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

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

.ah-btn--secondary {
  border-color: var(--ah-link);
  background: transparent;
  color: var(--ah-link);
}

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

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

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

/* Weich ausgeblendete Ränder lassen das Bild nahtlos ins Schwarz übergehen */
.ah-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  -webkit-mask-image: radial-gradient(ellipse 92% 96% at 50% 50%, #000 78%, transparent 100%);
  mask-image: radial-gradient(ellipse 92% 96% at 50% 50%, #000 78%, transparent 100%);
}

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

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

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

@media (max-width: 734px) {
  /* Höhe folgt dem Bild, damit der Laptop die volle Breite nutzt */
  .ah {
    height: auto;
  }

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

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

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

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

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

  .ah-media {
    flex: none;
    aspect-ratio: var(--ah-ratio, 1672 / 941);
  }
}
