/* =========================================================
   Relaunch 2026 – Patrick Schulz Consulting
   Ergänzt das bestehende Webflow-Stylesheet. Nutzt dessen
   Tokens (--handy-text, --paragraph-text, --background-3,
   --handy-blue) und die Schriften PT Serif / DM Sans.
   ========================================================= */

:root {
  --ps-line: #dfe5ea;
  --ps-muted: rgba(30, 34, 69, .65); /* gleiche Deckkraft wie Copytext, WCAG AA */
  --ps-accent: #0f58c5;
}

/* ---------- Hero ---------- */
.ps-hero-title { font-size: 54px; line-height: 62px; text-wrap: balance; }
.ps-hero-title .ps-h1-sub {
  display: block;
  margin-top: 12px;
  font-size: 30px;
  line-height: 40px;
  letter-spacing: -0.5px;
  font-weight: 400;
}
.ps-hero-text { opacity: 1; }
.ps-hero-text p { max-width: 34em; }
.ps-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }
.ps-link {
  color: var(--handy-text);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--ps-line);
  padding-bottom: 2px;
  transition: color .25s, border-color .25s;
}
.ps-link:hover { color: var(--ps-accent); border-color: var(--ps-accent); }
.button.ps-cta:hover { background-color: var(--ps-accent); }

/* ---------- Manifest (Vertrauen) ---------- */
.ps-manifest { max-width: 760px; margin: 0 auto; text-align: center; }
/* Overline = kurze Zeile direkt über einer Überschrift (Definition Nico, 26.10.2026).
   Schrift wie die Schlusssätze der Leistungen: PT Serif kursiv 17/26, #1e2245. */
.ps-overline {
  font-family: "PT Serif", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  line-height: 26px;
  color: var(--handy-text);
}
.ps-manifest .ps-overline { margin: 0; }
.ps-product-body .ps-overline { margin: 0 0 6px; }
.ps-product-body h3 + .ps-intro { margin-top: 16px; }
.ps-manifest h2 { font-family: PT Serif, serif; margin-top: 8px; text-wrap: balance; }
.ps-trust { margin: 24px auto 0; max-width: 36em; }
.ps-gap { margin-top: 56px; }
.ps-gap > .ps-contrast:first-child { margin-top: 0; }
.ps-contrast {
  margin: 28px auto 0; max-width: 560px;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ps-line);
}
.ps-contrast span {
  padding: 14px 8px; border-bottom: 1px solid var(--ps-line);
  font-size: 17px; line-height: 24px;
}
.ps-contrast span:nth-child(odd) { color: var(--ps-muted); text-align: right; padding-right: 20px; }
.ps-contrast span:nth-child(even) { color: var(--handy-text); font-weight: 700; text-align: left; padding-left: 20px; border-left: 1px solid var(--ps-line); }
.ps-manifest .ps-body { margin: 0 auto; max-width: 36em; }

/* ---------- Leistungen ---------- */
.ps-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 8px auto 0; max-width: 900px; }
.ps-jump a {
  font-size: 14px; font-weight: 500; line-height: 20px;
  color: var(--handy-text); text-decoration: none;
  border: 1px solid var(--ps-line); border-radius: 999px; padding: 7px 14px;
  transition: border-color .25s, color .25s;
}
.ps-jump a:hover { border-color: var(--ps-accent); color: var(--ps-accent); }
.ps-products { display: grid; gap: 140px; margin-top: 64px; }
.ps-product { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; scroll-margin-top: 96px; }
.ps-product:nth-child(even) .ps-product-media { order: 2; }
.ps-product-media {
  border-radius: 8px; min-height: 420px; height: 100%;
  background-position: 50%; background-size: cover; background-repeat: no-repeat;
  background-color: var(--background-3);
}
.ps-product-body { min-width: 0; padding-top: 8px; }
.ps-product-body h3 { font-family: PT Serif, serif; margin-top: 0; margin-bottom: 8px; text-wrap: balance; }
.ps-benefits { list-style: none; padding: 0; margin: 24px 0 20px; display: grid; gap: 10px; }
.ps-benefits li {
  display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start;
  font-size: 15px; line-height: 22px; font-weight: 500; color: var(--handy-text);
}
.ps-benefits img { width: 22px; height: 22px; margin-top: 0; }
.ps-note {
  font-family: PT Serif, serif; font-style: italic; font-size: 17px; line-height: 26px;
  color: var(--handy-text); margin: 0; padding-top: 16px; border-top: 1px solid var(--ps-line);
}

.ps-img-health  { background-image: url('../images/leistung-health-check.jpg'); }
.ps-img-close   { background-image: url('../images/leistung-abschluss.jpg'); }
.ps-img-capital { background-image: url('../images/leistung-working-capital.jpg'); }
.ps-img-sparring{ background-image: url('../images/leistung-sparring.jpg'); }
.ps-img-process { background-image: url('../images/leistung-prozesse.jpg'); }
/* Illustrationen haben einen hellgrauen Grund – Fläche dahinter passend einfärben */
.ps-product-media { background-color: #dadde2; }

/* ---------- Über mich ---------- */
.ps-about { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.ps-about-title { font-family: PT Serif, serif; margin-top: 0; margin-bottom: 24px; }
.ps-about > div { min-width: 0; }
.ps-about .grey-description { margin-top: 0; }

/* ---------- Kontakt / Abschluss ---------- */
.ps-closing { max-width: 760px; margin: 0 auto; text-align: center; }
.ps-closing h2 { font-family: PT Serif, serif; margin-top: 0; text-wrap: balance; font-size: 40px; line-height: 50px; }
.ps-closing p { max-width: 36em; margin: 0 auto 28px; }

/* ---------- Responsive ---------- */
@media screen and (max-width: 991px) {
  .ps-hero-title { font-size: 44px; line-height: 52px; }
  .ps-hero-title .ps-h1-sub { font-size: 26px; line-height: 34px; }
  .ps-product, .ps-about { gap: 48px; }
  .ps-products { gap: 112px; }
  .ps-product-media { min-height: 360px; }
}
@media screen and (max-width: 767px) {
  .ps-product, .ps-about { grid-template-columns: 1fr; gap: 28px; }
  .ps-product:nth-child(even) .ps-product-media { order: 0; }
  .ps-product-media { min-height: 0; height: 260px; }
  .ps-products { gap: 80px; margin-top: 44px; }
  .ps-closing h2 { font-size: 32px; line-height: 42px; }
  }
@media screen and (max-width: 479px) {
  .ps-hero-title { font-size: 36px; line-height: 44px; letter-spacing: -1px; }
  .ps-hero-title .ps-h1-sub { font-size: 22px; line-height: 30px; }
  .ps-contrast span { font-size: 15px; padding-left: 4px; padding-right: 4px; }
  .ps-contrast span:nth-child(odd) { padding-right: 12px; }
  .ps-contrast span:nth-child(even) { padding-left: 12px; }
  .ps-product-media { height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ps-link, .ps-jump a { transition: none; }
}
html { scroll-behavior: smooth; }
#Leistungen, #Profil, #Kontakt { scroll-margin-top: 80px; }


/* --- Hero (26.10.2026): Porträt auf Tablet & Mobile oben, in reduzierter Höhe,
       damit Headline und CTA weiterhin im ersten Screen sichtbar bleiben --- */
@media screen and (max-width: 991px) {
  .header-2-grid { grid-template-columns: 1fr; }
  .header-2-hero { order: -1; min-height: 0; height: 460px; background-position: 50% 62%; }
  .header-2-text { padding-top: 8px; padding-bottom: 16px; padding-right: 0; }
}
@media screen and (max-width: 767px) {
  .header-2-hero { height: 280px; }
}
@media screen and (max-width: 479px) {
  .header-2-hero { height: 200px; }
}

/* Labels (z. B. „Werdegang") kontrastreicher, analog Copytext */
.grey-description { color: rgba(30, 34, 69, .65); }

/* --- Hero-CTA auf Mobile: Button volle Breite, Link zentriert darunter --- */
@media screen and (max-width: 767px) {
  .ps-actions { flex-direction: column; align-items: stretch; gap: 20px; }
  .ps-actions .ps-cta { display: block; width: 100%; text-align: center; }
  .ps-actions .ps-link { align-self: center; }
}

/* --- Scroll-Animationen: sanftes Einblenden mit leichter Y-Bewegung (Ease-out) --- */
.ps-anim [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.22, 1, .36, 1), transform .8s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.ps-anim [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ps-anim [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* --- Skeleton-Loading für Bilder (nur mit JS aktiv, Klasse .ps-skel im <head>) --- */
.ps-skel [data-skeleton] { position: relative; overflow: hidden; }
.ps-skel [data-skeleton]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-color: #eceef2;
  background-image: linear-gradient(100deg, rgba(255,255,255,0) 20%, rgba(255,255,255,.65) 50%, rgba(255,255,255,0) 80%);
  background-size: 200% 100%;
  background-repeat: no-repeat;
  animation: ps-shimmer 1.4s linear infinite;
  opacity: 1;
  transition: opacity .5s cubic-bezier(.22, 1, .36, 1);
}
.ps-skel [data-skeleton].is-loaded::after { opacity: 0; animation: none; }
@keyframes ps-shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) {
  .ps-skel [data-skeleton]::after { animation: none; }
}

/* --- Leistungsbilder (Illustrationen 1400×1094): festes Seitenverhältnis statt
       Höhe der Textspalte, damit nichts angeschnitten wird --- */
.ps-product-media { min-height: 0; height: auto; aspect-ratio: 1400 / 1094; align-self: center; }

/* --- Header-Foto (02.11.2026, Querformat 1536×1024, Person rechts im Bild):
       Ausschnitt so setzen, dass Gesicht und Oberkörper mittig im Bildfeld stehen --- */
.header-2-hero { background-position: 90% 50%; }
@media screen and (max-width: 1199px) and (min-width: 992px) {
  .header-2-hero { background-position: 80% 50%; }
}
@media screen and (max-width: 991px) {
  .header-2-hero { background-position: 70% 28%; }
}
@media screen and (max-width: 767px) {
  /* Mobile: etwas näher ran, damit Patrick im flachen Bildfeld nicht zu klein wirkt */
  .header-2-hero { background-size: 130% auto; background-position: 85% 18%; }
}

/* --- Kontakt: E-Mail-Adresse ausgeschrieben unter dem Button (03.11.2026) --- */
.ps-closing .ps-contact-alt { margin: 16px auto 0; font-size: 14px; line-height: 20px; }
/* Adresse bewusst ohne Link (Button übernimmt mailto); ein Klick markiert sie komplett zum Kopieren */
.ps-contact-mail { color: var(--handy-text); font-weight: 500; white-space: nowrap; -webkit-user-select: all; user-select: all; }
