/* ==========================================================================
   paulpistorius.de
   Schriften: Sora (Überschriften), Inter (Text) – lokal gehostet
   ========================================================================== */

@font-face { font-family: "Sora"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/sora-regular.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/sora-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/inter-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-700.woff2") format("woff2"); }

:root {
  --dark: #1a1f24;
  --light: #eeeef3;
  --muted: #717171;
  --line: rgba(26, 31, 36, .15);
  --key: #7169e0;
  --navy: #211a80;
  --health: #2b5f57;
  --health-deep: #1f4741;
  --font-head: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --container: 1250px;
  --gutter: 32px;
  --col-gap: 56px;
  --section: 112px;
  /* Überschriften skalieren unter 768px fließend */
  --fs-xl: 64px;
  --fs-l: 48px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.4;
  color: var(--dark);
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, figure, fieldset { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; overflow-wrap: break-word; }

.skip-link {
  position: fixed; left: 16px; top: -900px; z-index: 999999;
  padding: 8px 16px; border-radius: 0 0 4px 4px;
  background: #000; color: #fff; font-size: 14px; font-weight: 600;
}
.skip-link:focus { top: 0; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.icon { display: block; width: 100%; height: 100%; }


/* Typo-Bausteine ---------------------------------------------------------- */
.h-xl { font-size: var(--fs-xl); line-height: 1.1; }
.h-l  { font-size: var(--fs-l); line-height: 1.1808; }
.h-m  { font-size: 32px; line-height: 1.2; }
.h-s  { font-size: 24px; line-height: 1.2096; }
.eyebrow { font-size: 14px; line-height: 20px; letter-spacing: .5px; text-transform: uppercase; }
.lead { font-size: 20px; line-height: 1.5; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 7px 28px; max-width: 100%;
  border: 0; border-radius: 8px; cursor: pointer;
  font-family: var(--font-text); font-size: 15px; font-weight: 600; line-height: 18px; text-align: center;
  color: #fff; background: var(--dark);
  transition: background-color .3s;
}
.btn--light { color: var(--dark); background: #fff; }
.btn--light:hover { background: var(--light); }
.btn--block { display: flex; width: 100%; }

/* Icon-Listen ------------------------------------------------------------- */
.icon-list { display: flex; flex-direction: column; padding-right: 16px; }
.icon-list li { display: flex; align-items: flex-start; padding: 8px 0; }
.icon-list .ico { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-right: 11.6px; }
.icon-list .txt { display: flex; align-items: center; min-height: 24px; font-size: 16.8px; line-height: 23.52px; }
.icon-list--plain .ico { width: 18px; margin-right: 11.0667px; }
.icon-list--plain .ico .icon { width: 17px; height: 17px; }
.icon-list--plain .txt { font-size: 15.2px; line-height: 21.28px; }
.icon-list--wide { padding-right: 24px; }
.icon-list--wide li { padding: 12px 0; }

/* Laufband (Marquee) ------------------------------------------------------ */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee var(--marquee-duration, 58.7333s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; flex: none; }
.marquee__item { flex: none; padding: 0 16px; }
.marquee__item img { height: 119px; width: auto; max-width: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* Kopfzeile --------------------------------------------------------------- */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 500; height: 43px;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 7px calc(24px + (100vw - 48px) * .069) 0;
}
.topbar__brand, .topbar__phone { display: flex; align-items: center; height: 28px; color: var(--dark); }
.topbar__brand { font-family: var(--font-head); font-weight: 600; font-size: 16px; }
.topbar__right { display: flex; align-items: center; gap: 24px; }
.topbar__phone { gap: 9px; font-size: 14px; line-height: 19.6px; }
.topbar__phone .icon { width: 20px; height: 20px; }

.lang { display: flex; gap: 2px; font-size: 13px; font-weight: 600; letter-spacing: .5px; }
.lang a { padding: 4px 7px; border-radius: 6px; color: var(--muted); transition: color .2s; }
.lang a:hover { color: var(--dark); }
.lang a[aria-current] { color: var(--dark); background: rgba(26, 31, 36, .07); }

.page-header { height: 115px; background: #fff; }
.page-header .container { padding-top: 15px; }
.page-header__logo { display: inline-block; }
.page-header__logo img { width: 213px; height: 85px; object-fit: cover; }

/* Hero -------------------------------------------------------------------- */
.hero { background: var(--light); padding: 165px 0 120px; }
.hero__grid {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--col-gap);
  grid-template-areas: "text media" "seals media";
}
.hero__grid > * { min-width: 0; }
.hero__text { grid-area: text; align-self: start; }
.hero__media { grid-area: media; align-self: center; }
.hero__seals { grid-area: seals; align-self: end; margin-top: 40px; }
.hero h1 { margin-bottom: 30px; }
/* Quadratisch und ungeschnitten, damit die Personen im Hintergrund sichtbar bleiben */
.hero__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; }
.hero .marquee { margin-bottom: 19px; }
.hero__caption { text-align: center; font-style: italic; color: var(--muted); }

/* Abschnitte -------------------------------------------------------------- */
.section { padding-top: var(--section); }

/* Linke Spalte 5/12, rechte 7/12 */
.split { display: grid; grid-template-columns: calc((100% + var(--col-gap)) * .416667 - var(--col-gap)) 1fr; gap: var(--col-gap); }
.split > * { min-width: 0; }
.split--head { align-items: end; margin-bottom: 56px; }

/* Projekt-Block (MEDIVACU) ------------------------------------------------ */
.project {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--col-gap); align-items: center;
  padding: 64px; border-radius: 16px; color: #fff;
  /* Lila-Schimmer aus der Kontakt-Box hinter der Maschine verbindet beide Farbflächen */
  background:
    radial-gradient(55% 75% at 78% 45%, rgba(113, 105, 224, .22), transparent 70%),
    linear-gradient(135deg, var(--health) 0%, var(--health-deep) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.project .btn--light { color: var(--health-deep); }
.project > * { min-width: 0; }
.project__logo { width: 205px; margin-bottom: 40px; filter: brightness(0) invert(1); }
.project p { margin-bottom: 40px; line-height: 1.5; color: rgba(255, 255, 255, .84); }
.project__media img { width: 100%; max-width: 440px; margin-inline: auto; filter: drop-shadow(0 28px 36px rgba(0, 0, 0, .28)); }

/* Werdegang --------------------------------------------------------------- */
.timeline__row { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.timeline__row:last-child { border-bottom: 1px solid var(--line); }
.timeline__row p { line-height: 1.5; }
.timeline__label { font-size: 16px; color: var(--muted); padding-top: 2px; }

/* Karten ------------------------------------------------------------------ */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { display: flex; flex-direction: column; min-width: 0; padding: 48px; border-radius: 16px; background: #f2f2f2; }
.card__visual { margin-top: 40px; padding: 0 24px; }
.card__visual img { width: 100%; }
.card .eyebrow { margin-bottom: 16px; color: var(--muted); }
.card h3 { margin-bottom: 20px; }
.card p:not(.eyebrow) { font-size: 16.8px; line-height: 1.5; }
.card__link {
  align-self: flex-start; margin-top: auto; padding-top: 32px;
  font-family: var(--font-head); font-weight: 600; font-size: 15.2px; line-height: 18.24px;
  transition: color .2s;
}
.card__link:hover { color: var(--key); }

/* Kontakt ----------------------------------------------------------------- */
.contact { padding: var(--section) 0 120px; }
.contact__card {
  width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto;
  padding: 48px; border-radius: 16px;
  background: var(--key); color: #fff;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
}
.contact__card > * { min-width: 0; }
.contact__info { padding-top: 40px; }
.contact__info h2 { margin-bottom: 20px; }
.contact__info p { line-height: 1.5; }

.form-card { padding: 40px; border-radius: 16px; background: var(--navy); }
.form { font-size: 15px; line-height: 24px; }
.form__field { display: block; margin-bottom: 16px; }
.form__control { position: relative; display: block; }
.form input, .form textarea {
  display: block; width: 100%; height: 56px; margin: 0; padding: 13.25px 17px 14.75px;
  border: 0; border-radius: 6px; outline: 0;
  background: rgba(255, 255, 255, .07); color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2);
  font-size: 15px; line-height: normal;
  transition: box-shadow .2s;
}
.form textarea { height: 140px; line-height: 21px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: rgba(255, 255, 255, .36); opacity: 1; }
.form input:focus, .form textarea:focus { box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); }
.form__field--last { margin-bottom: 30px; }
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error { display: none; margin-top: 12px; font-size: 14px; line-height: 20px; color: #ffd0d0; }
.form__error.is-visible { display: block; }
.form-success { display: none; padding: 40px 0; text-align: center; }
.form-success__icon { width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; color: #fff; }
.form-success__icon .icon { width: 40px; height: 40px; }
.form-card.is-sent .form { display: none; }
.form-card.is-sent .form-success { display: block; }

/* Rechtstexte ------------------------------------------------------------- */
.legal { padding: 101px 0 140px; }
.legal h1 { margin: 0 0 30px 34px; }
.legal__text { margin-left: 60px; max-width: 1130px; white-space: pre-wrap; overflow-wrap: break-word; }
.legal__text h3.h-s { font-size: 20px; }
/* Eingebettete Rechtstexte der Apps; die Höhe meldet die App per postMessage (main.js) */
.embed { display: block; width: 100%; height: 80vh; margin: 8px 0 24px; border: 0; border-radius: 16px; background: #fff; }
.embed--short { height: 50vh; }
.legal__text + .legal__text { margin-top: 16px; }

/* Fußzeile ---------------------------------------------------------------- */
.footer { padding: 61px 0 37px; background: #000; color: #fff; }
.footer__grid { display: grid; grid-template-columns: 33.3333% 20.8333% 20.8333% 25%; margin: 0 -40px; }
.footer__col { padding: 0 40px; min-width: 0; }
.footer__logo { display: block; width: 205px; padding: 0; border: 0; background: none; cursor: pointer; }
.footer__logo img { width: 205px; height: 82px; object-fit: cover; }
.footer__seal { display: block; width: fit-content; margin: 131px 0 20px; }
.footer__seal img { height: 87px; width: auto; }
.footer__title { font-size: 16px; line-height: 22.4px; font-weight: 700; color: rgba(255, 255, 255, .52); }
.footer__links { margin-top: 18px; padding-right: 24px; overflow-wrap: break-word; }
.footer__links a { display: block; padding: 12px 0; font-family: var(--font-head); font-weight: 600; font-size: 15.2px; line-height: 18.24px; }
.footer .icon-list { margin-top: 18px; }
.footer .icon-list a, .footer .icon-list span.row { display: flex; align-items: flex-start; }
.footer__social { display: flex; gap: 8px; margin-top: 28px; }
.footer__social a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 8px; background: #373737; color: #fff; }
.footer__social .icon { width: 20px; height: 20px; }
.footer__line { height: 2px; margin-top: 47px; background: rgba(255, 255, 255, .3); }
.footer__copy { margin-top: 31px; font-size: 14px; line-height: 19.6px; color: rgba(255, 255, 255, .51); }

/* Container-Stufen -------------------------------------------------------- */
@media (max-width: 1365px) { :root { --container: 1150px; } }
@media (max-width: 1199px) { :root { --container: 970px; } }

/* Tablet & Mobil: einspaltig ---------------------------------------------- */
@media (max-width: 992px) {
  :root { --gutter: 24px; --container: 806px; --section: 64px; --col-gap: 32px; }

  .topbar { padding-inline: var(--gutter); }

  .hero { padding: 77px 0 64px; }
  .hero__grid { grid-template-columns: 1fr; grid-template-areas: "text" "media" "seals"; }
  .hero__media { margin-top: 40px; }
  .hero__seals { margin-top: 40px; }

  .split { grid-template-columns: 1fr; }
  .split--head { margin-bottom: 32px; }

  .project {
    grid-template-columns: 1fr; padding: 32px 24px;
    background:
      radial-gradient(90% 40% at 50% 20%, rgba(113, 105, 224, .22), transparent 70%),
      linear-gradient(160deg, var(--health) 0%, var(--health-deep) 100%);
  }
  .project__media { order: -1; }
  .project__media img { max-width: 320px; }

  .timeline__row { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }

  .cards { grid-template-columns: 1fr; }
  .card { padding: 32px 24px; }
  .card__visual { margin-top: 32px; padding: 0; }

  .contact { padding: var(--section) 0 60px; }
  .contact__card { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .contact__info { padding-top: 8px; }
  .form-card { padding: 24px; }

  .page-header { height: auto; }
  .page-header .container { padding: 15px 0; }
  .legal { padding: 44px 0 90px; }
  .legal h1 { margin-left: 0; }
  .legal__text { margin-left: 0; }

  .footer { padding: 30px 0 47px; }
  .footer__grid { grid-template-columns: 1fr; margin: 0; row-gap: 32px; }
  .footer__col { padding: 0; }
  .footer__col--spacer { display: none; }
  .footer__seal { margin: 48px 0 36px; }
  .footer__line { margin-top: 78px; }
}

@media (max-width: 768px) {
  :root {
    --fs-xl: calc(6.038px + 7.5472vw);
    --fs-l: calc(9.358px + 5.0314vw);
  }
  .lead { font-size: 18px; }
}

@media (max-width: 450px) {
  .form .btn { min-height: 66px; }
  .topbar__right { gap: 12px; }
  /* Nummer bleibt für Screenreader lesbar, sichtbar nur der Hörer */
  .topbar__phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
