/* Flowlee · Persönliche Vorstellung (19.10.2026, Auftrag Dennis, Textfassung B)
   Führt das Anthrazit der Galerie weiter; die Trennung schafft der große Abstand, den Blickfang das echte Foto.
   Mobil: Überschrift → Foto (Querformat-Ausschnitt) → Text → Link. Desktop: Text links, Foto rechts, Foto beginnt höher.
   Keine Umrandung, keine Icons, keine Animation. Türkis nur am Link. */

.person {
  --p-pad: clamp(20px, 5.6vw, 40px);
  --p-grund: #202124;
  --p-text: #FFFFFF;
  --p-fliess: #B8BAC0;        /* weiches Grau für den Fließtext – das Foto bleibt im Mittelpunkt */
  --p-tuerkis: #00C8BE;
  background: var(--p-grund);
  color: var(--p-text);
  font-family: "Onest", system-ui, sans-serif;
  padding: 56px var(--p-pad) 96px;   /* halbiert (Dennis): die Galerie läuft direkt hier hinein */
}

.person__raster {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* dem Hero untergeordnet, deutlich über dem Fließtext */
.person__titel {
  margin: 0;
  font-weight: 900;
  font-size: clamp(27px, 7.9vw, 34px);
  line-height: 1.06;
  letter-spacing: -0.015em;
}

.person__titel span {
  display: block;
}

/* Foto: größer, asymmetrisch – links am Textrand, rechts über den Seitenrand hinaus (Dennis, 19.10.);
   Höhe ≈ 60 % der Bildschirmbreite, Gesicht im rechten Drittel */
.person__foto {
  margin: 0 calc(-1 * var(--p-pad)) 0 0;
  height: 60vw;
  max-height: 320px;
  overflow: hidden;
  border-radius: 12px 0 0 12px;
}

/* Das Bild ist 12 % breiter als sein Fenster und wandert beim Scrollen leicht nach links
   (person.js setzt --foto-x 0…1); bei Berührung rückt es zusätzlich ein Stück (Dennis, 19.10.2026). */
.person__foto img {
  --foto-x: 0;
  display: block;
  width: 128%;                   /* breiter: das Gesicht steht im rechten Drittel, nicht in der Mitte */
  height: 100%;
  object-fit: cover;
  object-position: 50% 24%;
  transform: translateX(calc(-1 * var(--foto-x) * 6%));
  transition: transform .25s ease-out;
  will-change: transform;
}

.person__foto:active img {
  transform: translateX(calc(-1 * var(--foto-x) * 6% - 2%));
}

.person__text {
  max-width: 34em;
}

/* kleiner und luftiger als zuvor: klare Staffelung Überschrift → Foto → Text (Dennis, 19.10.) */
.person__text p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--p-fliess);
}

/* Der eine Button außerhalb des Hero: kräftiges Türkis, dunkle Schrift, fast volle Textbreite,
   kein Verlauf, kein Leuchten (Dennis, 19.10.2026). Ziel = Kontaktziel des Haupt-CTA. */
.person__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;   /* Beschriftung links, Pfeil rechts */
  gap: 16px;
  width: 100%;
  max-width: 420px;
  min-height: 58px;
  margin-top: 28px;
  padding: 16px 22px 16px 24px;
  border-radius: 10px;
  background: var(--p-tuerkis);
  color: #0D0E11;
  font-weight: 800;
  font-size: 19px;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}

.person__cta-pfeil {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}

.person__cta:hover {
  background: #15D6CC;
}

.person__cta:hover .person__cta-pfeil {
  transform: translateX(4px);
}

.person__cta:active {
  transform: translateY(1px);
}

.person__cta:focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 4px;
}

/* ---------- Tablet / Desktop: Text links, Foto rechts, Foto beginnt höher ---------- */

@media (min-width: 768px) {
  .person {
    padding: 96px var(--p-pad) 160px;
  }

  .person__raster {
    max-width: 1040px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    grid-template-rows: auto 1fr;
    column-gap: 64px;
    row-gap: 32px;
    align-items: start;
  }

  .person__titel {
    grid-column: 1;
    grid-row: 1;
    margin-top: 48px;          /* Foto beginnt 48px höher als der Textbereich */
    font-size: 48px;
    max-width: 11em;
  }

  .person__text {
    grid-column: 1;
    grid-row: 2;
  }

  .person__foto {
    grid-column: 2;
    grid-row: 1 / 3;
    margin: 0;
    height: auto;
    max-height: none;
    aspect-ratio: 4 / 5;
    border-radius: 12px;
  }

  .person__foto img {
    object-position: 50% 30%;
  }

  .person__text p {
    font-size: 18px;
  }

  .person__cta {
    max-width: 380px;
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .person__foto img {
    width: 100%;
    transform: none;
    transition: none;
  }

  .person__foto:active img {
    transform: none;
  }
}
