/* 3 · Payments. Desktop 1440: Kopf (Eyebrow y 120, Titel bis ~294, Lead rechts x 999), Kacheln 2×2 à 300×292
   (x 80/396, y 348/656, Abstand 16), Bild rechts 648×600 (x 712). Aktive Kachel = lila Fläche über der weißen
   (zwei Gesichter, Überblendung in 03-payments.js). */
.s03 { overflow: hidden; }

.s03__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.s03__title { margin-top: 21px; color: var(--text-primary); }
.s03__title .line { display: block; text-wrap: balance; }
.s03__lead { max-width: 346px; margin: 0 15px 1px 0; flex-shrink: 0; }

.s03__body {
  margin-top: 55px;
  display: grid; grid-template-columns: minmax(0, 616fr) minmax(0, 648fr); gap: 16px;
}

/* Kacheln */
.s03__tiles { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.s03__tile {
  position: relative; aspect-ratio: 300 / 292; min-height: 0;
  border-radius: 28px; background: var(--surface);
}
.s03__face {
  position: absolute; inset: 0; border-radius: inherit; padding: 24px;
  display: flex; flex-direction: column;
}
.s03__face--plain { color: var(--text-primary); }
.s03__face--hi {
  background: var(--brand); color: var(--text-on-dark);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--color-primary-600) 12%, transparent);
  opacity: 0; pointer-events: none;
}
.s03__tile.is-active .s03__face--hi { opacity: 1; }
.s03__tile.is-active .s03__face--plain { opacity: 0; }

.s03__icon {
  width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--color-primary-100); color: var(--brand);
}
.s03__icon svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.s03__icon .f { fill: var(--color-primary-200); }
.s03__icon .f.n { stroke: none; }
.s03__face--hi .s03__icon { background: var(--color-white-a16); color: var(--text-on-dark); }
.s03__face--hi .s03__icon .f { fill: var(--color-primary-500); }

.s03__name { margin-top: auto; }
.s03__desc { margin-top: 12px; color: var(--color-neutral-muted); }
.s03__face--hi .s03__desc { color: var(--color-white-a80); }

/* Fortschrittsbalken 252 × 3 (Spur White/20 auf Primary 600 = #7c65b9, Füllung Lime 300) */
.s03__bar {
  display: block; position: relative; margin-top: 12px; height: 3px; border-radius: 2px; overflow: hidden;
  background: var(--color-white-a20);
}
.s03__fill {
  position: absolute; inset: 0; border-radius: 2px; background: var(--color-lime-300);
  transform-origin: 0 50%; transform: scaleX(var(--fill, 0.397));
}

/* Ganze Kachel ist die Schaltfläche (Knopf im h3, Fläche per ::after) */
.s03__btn {
  all: unset; cursor: pointer; font: inherit; color: inherit;
}
.s03__btn::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 28px; }
.s03__btn:focus-visible { outline: none; }
.s03__tile:has(.s03__btn:focus-visible) { outline: 2px solid var(--brand); outline-offset: 3px; }
.s03__tile:not(.is-active):hover .s03__face--plain { background: var(--color-primary-25); }

/* Bild rechts: vier Ebenen übereinander, die aktive oben */
.s03__visual {
  position: relative; border-radius: 32px; overflow: hidden; isolation: isolate;
  background: var(--color-primary-300);
}
.s03__layer { position: absolute; inset: 0; opacity: 0; transform-origin: 50% 50%; }
.s03__layer.is-active { opacity: 1; z-index: 1; }
.s03__layer > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.s03__logos { position: absolute; top: 24px; right: 28px; width: 337px; height: auto; }

.s03__toast {
  position: absolute; left: 28px; bottom: 24px;
  display: flex; align-items: center; gap: 12px;
  padding: 13px 20px 13px 12px; border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--color-black) 12%, transparent);
  white-space: nowrap;
}
.s03__check {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; background: var(--brand); color: var(--text-on-dark);
}
.s03__check .c { fill: var(--surface); }
.s03__check svg { fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.s03__toast-text { display: flex; flex-direction: column; }
.s03__toast-text b { color: var(--text-primary); }
.s03__toast-text span { color: var(--color-neutral-muted); }

/* 1024–1439: fließend (Kachelhöhe folgt der Breite, Bild füllt die Rasterhöhe) */
@media (max-width: 1279px) {
  .s03__tile { aspect-ratio: auto; min-height: 260px; }
}

/* Kopf untereinander, sobald Titel und Lead nebeneinander zu eng werden */
@media (max-width: 1199px) {
  .s03__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .s03__lead { max-width: 560px; margin: 0; }
}

/* Tablet: Bild über den Kacheln */
@media (max-width: 1099px) {
  .s03__body { grid-template-columns: 1fr; margin-top: 40px; }
  .s03__tile { min-height: 220px; }
  .s03__visual { order: -1; aspect-ratio: 4 / 3; } /* Bild zuerst: Antippen einer Kachel wechselt es sichtbar darüber */
}

/* Mobil 390: eine Spalte, Kacheln kompakt (Icon oben, Text darunter) */
@media (max-width: 767px) {
  .s03__title { margin-top: 12px; }
  .s03__body { margin-top: 32px; gap: 12px; }
  .s03__tiles { grid-template-columns: 1fr; gap: 12px; }
  .s03__tile { min-height: 0; border-radius: var(--radius-card); }
  .s03__btn::after { border-radius: var(--radius-card); }
  .s03__face { padding: 20px; }
  .s03__face--plain { position: relative; padding-bottom: 35px; }
  .s03__name { margin-top: 20px; }
  .s03__desc { margin-top: 8px; }
  .s03__visual { border-radius: var(--radius-card); aspect-ratio: 648 / 600; }
  .s03__logos { top: 14px; right: 14px; width: 222px; }
  .s03__toast { left: 14px; bottom: 14px; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 16px; }
  .s03__check { width: 34px; height: 34px; }
}
