/* =========================================================================
   Sektion „Was soll Ihre Website für Sie erreichen?“ – AutomaNext im Apple-Design
   Nutzt die globalen Tokens der Seite, wenn vorhanden, sonst eigene Fallbacks.
   Alle Klassen sind mit „zk-“ präfixiert und kollidieren nicht mit der Seite.
   ========================================================================= */

ziele-karten {
  --zk-blue: var(--blue, #1735ff);
  --zk-text: var(--text, #1d1d1f);
  --zk-text-secondary: var(--text-secondary, #6e6e73);
  --zk-bg: #fff;
  --zk-font-display: var(--font-display, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif);
  --zk-font-text: var(--font-text, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif);
  --zk-content: 980px;
  --zk-gutter: max(22px, calc((100% - var(--zk-content)) / 2));
  display: block;
}

ziele-karten *,
ziele-karten *::before,
ziele-karten *::after {
  box-sizing: border-box;
}

.zk {
  padding: 100px 0 120px;
  background: var(--zk-bg);
  font-family: var(--zk-font-text);
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  color: var(--zk-text);
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Überschrift ---------- */

.zk-head {
  max-width: calc(var(--zk-content) + 44px);
  margin: 0 auto;
  padding: 0 22px;
}

.zk-headline {
  margin: 0;
  font-family: var(--zk-font-display);
  font-size: 48px;
  line-height: 1.08349;
  font-weight: 600;
  letter-spacing: -0.003em;
  text-wrap: balance;
}

.zk-intro {
  max-width: 720px;
  margin: 16px 0 0;
  font-size: 21px;
  line-height: 1.381;
  letter-spacing: 0.011em;
  color: var(--zk-text-secondary);
  text-wrap: pretty;
}

/* ---------- Karten ---------- */

.zk-scroller {
  display: flex;
  gap: 20px;
  margin: 48px 0 0;
  padding: 12px var(--zk-gutter) 36px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--zk-gutter);
  scrollbar-width: none;
}

.zk-scroller::-webkit-scrollbar {
  display: none;
}

.zk-card {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  width: 372px;
  min-height: 320px;
  padding: 34px 30px 30px;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.08);
  scroll-snap-align: start;
  transition: transform 0.3s cubic-bezier(0, 0, 0.5, 1), box-shadow 0.3s cubic-bezier(0, 0, 0.5, 1);
}

.zk-card:hover {
  transform: scale(1.0118);
  box-shadow: 2px 4px 16px rgba(0, 0, 0, 0.16);
}

.zk-step {
  margin: 0;
  font-size: 14px;
  line-height: 1.28577;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--zk-blue);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
}

.zk-card-headline {
  margin: 18px 0 0;
  font-family: var(--zk-font-display);
  font-size: 24px;
  line-height: 1.16667;
  font-weight: 600;
  letter-spacing: 0.009em;
  color: var(--zk-text);
  text-wrap: balance;
}

.zk-card-text {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  color: var(--zk-text-secondary);
  text-wrap: pretty;
}

/* ---------- Pfeile ---------- */

.zk-paddlenav {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  max-width: calc(var(--zk-content) + 44px);
  margin: 0 auto;
  padding: 0 22px;
}

.zk-paddle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(210, 210, 215, 0.64);
  color: rgba(0, 0, 0, 0.56);
  cursor: pointer;
  transition: background-color 0.1s linear, color 0.1s linear, opacity 0.1s linear;
}

.zk-paddle:hover:not(:disabled) {
  background: rgba(223, 223, 227, 0.7);
  color: rgba(0, 0, 0, 0.64);
}

.zk-paddle:disabled {
  opacity: 0.42;
  cursor: default;
}

.zk-paddle svg {
  width: 8px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

@media (max-width: 1068px) {
  .zk-headline {
    font-size: 40px;
    line-height: 1.1;
  }
}

@media (max-width: 734px) {
  .zk {
    padding: 64px 0 80px;
  }

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

  .zk-intro {
    font-size: 17px;
    line-height: 1.47059;
    letter-spacing: -0.022em;
  }

  .zk-scroller {
    gap: 14px;
    margin-top: 32px;
  }

  .zk-card {
    width: 300px;
    min-height: 300px;
    padding: 28px 24px 24px;
  }

  .zk-card-headline {
    font-size: 21px;
    line-height: 1.19048;
  }

  .zk-card-text {
    font-size: 15px;
    line-height: 1.46667;
  }
}

/* ---------- Reduzierte Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  .zk-card,
  .zk-paddle {
    transition: none;
  }
}
