/* ==========================================================================
   About us — page styles (builds on lytra.css)
   ========================================================================== */

.page-about { background: #fff; }
.about {
  /* soft white → lavender wash measured from the design */
  background: linear-gradient(90deg, #ffffff 0%, #f9f9ff 55%, #f5f5fd 100%);
  overflow: hidden;
}

/* Shared headline size on this page (desktop 56 / tablet 44 / phone 36) */
.ab-h2 { font-size: 56px; line-height: 66px; font-weight: 700; letter-spacing: -0.038em; color: var(--navy); }

/* ---------- Hero ---------- */
.ab-hero { padding-top: 44px; }
.ab-hero .eyebrow { margin-bottom: 26px; }
.ab-hero__title { max-width: 960px; margin: 0 auto; line-height: 66px; }
.ab-hero__lead { margin-top: 19px; font-size: 20px; line-height: 32px; }

/* Gallery: static row on desktop, swipeable strip on tablet / phone */
.ab-gallery { margin-top: 39px; }
.ab-gallery__track {
  display: flex;
  justify-content: center;
  gap: 17px;
  max-width: 1312px;
  margin: 0 auto;
  padding: 0 0 24px;
}
.ab-gallery__item {
  flex: var(--w) 1 0;
  min-width: 0;
  aspect-ratio: var(--w) / 279;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(7, 26, 95, 0.06), 0 10px 30px -14px rgba(7, 26, 95, 0.28);
  background: #e8ecf8;
  transform: translateZ(0);
}
.ab-gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out);
  user-select: none; -webkit-user-drag: none;
}
.ab-gallery__item:hover img { transform: scale(1.045); }

/* ---------- Split layout (mission + founders) ---------- */
.ab-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 526px;
  column-gap: 96px;
  align-items: start;
}
.ab-split__text { max-width: 724px; }

.ab-photo {
  position: relative;
  aspect-ratio: 526 / 546;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #a79bf5, #62ecfc);
  isolation: isolate;
}
.ab-photo img {
  position: absolute;
  left: 0; top: -16px;
  width: 100%; height: calc(100% + 32px);
  object-fit: cover;
  will-change: translate, scale;
  transition: scale 1.2s var(--ease-out);
}
@media (hover: hover) { .ab-photo:hover img { scale: 1.05; } }

/* ---------- Mission ---------- */
.ab-mission { padding-top: 99px; }
.ab-quote { margin-top: 23px; font-size: 20px; line-height: 32px; }
.ab-quote p + p { margin-top: 24px; }
.ab-quote__by { margin-top: 24px; font-size: 20px; line-height: 32px; font-weight: 700; }
.ab-photo--ceo { margin-top: 63px; }

/* ---------- Values ---------- */
.ab-values { padding-top: 121px; }
.ab-values__grid {
  display: grid;
  grid-template-columns: repeat(2, 496px);
  justify-content: center;
  gap: 22px;
  margin-top: 33px;
}
.ab-value {
  display: flex;
  gap: 16px;
  padding: 24px 24px 26px;
  border-color: #eceef5;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(7, 26, 95, 0.03), 0 8px 26px -12px rgba(7, 26, 95, 0.16);
}
.ab-value__icon { width: 40px; height: 40px; flex: none; transition: transform 0.6s var(--ease-spring); }
.ab-value:hover .ab-value__icon { transform: scale(1.06); }
.ab-value__title { font-size: 20px; line-height: 28px; font-weight: 700; margin-top: 3px; }
.ab-value p { margin-top: 10px; font-size: 16px; line-height: 22px; }

/* ---------- Founders ---------- */
.ab-founders { padding-top: 113px; }
.ab-founders .eyebrow { margin-bottom: 11px; }
.ab-founders__title { line-height: 65px; }
.ab-founder { margin-top: 19px; }
.ab-founder + .ab-founder { margin-top: 19px; }
.ab-founder__name { font-size: 20px; line-height: 28px; font-weight: 700; }
.ab-founder p { margin-top: 20px; font-size: 20px; line-height: 32px; }
.ab-photo--founders { margin-top: 53px; }

.ab-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 58px;
  margin-top: 79px;
}
.ab-logos li { flex: none; }
.ab-logos img { height: auto; transition: transform 0.5s var(--ease-out), filter 0.5s; }
.ab-logos li:hover img { transform: translateY(-3px) scale(1.04); }

/* ---------- Team ---------- */
.ab-team { padding-top: 119px; padding-bottom: 124px; scroll-margin-top: 20px; }
.ab-team .eyebrow { margin-bottom: 10px; }
.ab-team__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 17px;
  row-gap: 34px;
  margin-top: 30px;
}
.ab-member {
    padding: 19px 19px 16px;
  border-color: #eceef5;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(7, 26, 95, 0.03), 0 8px 26px -12px rgba(7, 26, 95, 0.16);
}
.ab-member:hover { transform: translateY(-6px); box-shadow: var(--shadow-float); }
.ab-member__photo {
  position: relative;
  aspect-ratio: 284 / 291;
  border-radius: 6px;
  overflow: hidden;
  background: #9fb4f8 url("../../img/about/team/bg.webp") center / cover no-repeat;
  isolation: isolate;
}
.ab-member__photo::before {
  /* colour bloom behind the person on hover */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 55% at 50% 45%, rgba(255, 255, 255, 0.55), transparent 70%);
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
}
.ab-member__photo img {
  position: relative;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  transform-origin: 50% 100%;
  transition: transform 0.9s var(--ease-out);
}
.ab-member:hover .ab-member__photo::before { opacity: 1; }
/* Placeholder until a portrait exists: initials on the team gradient */
.ab-member__mono {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: clamp(44px, 6vw, 88px); line-height: 1; font-weight: 700; letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 10px 30px rgba(7, 26, 95, 0.18);
  transition: scale 0.9s var(--ease-out);
}
.ab-member:hover .ab-member__mono { scale: 1.06; }
.ab-member:hover .ab-member__photo img { transform: scale(1.06); }
.ab-member__name { margin-top: 17px; font-size: 16px; line-height: 20px; font-weight: 700; }
.ab-member__role { margin-top: 1px; font-size: 12px; line-height: 16px; }
.ab-member__role a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 0.3s;
}
.ab-member__role a:hover { color: var(--blue); }

/* ---------- Partners ---------- */
.ab-partners { padding: 118px 0 119px; background: #eef2fe; }
.ab-partners .eyebrow { margin-bottom: 10px; }
.ab-partner {
  margin-top: 29px;
  padding: 19px 20px 20px;
  border-color: #e4e9f7;
  border-radius: 6px;
}
.ab-partner__media {
  position: relative;
  aspect-ratio: 1304 / 291;
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.ab-partner__media picture { position: absolute; inset: 0; }
.ab-partner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-out); }
.ab-partner__logo { position: relative; width: 354px; height: auto; transition: transform 0.9s var(--ease-out); }
/* The whole card links to htgf.de: the link sits on the "HTGF" name and its ::after
   stretches over the card. Hover = calm background zoom + soft shadow; nothing moves. */
.ab-partner { position: relative; transition: box-shadow 0.6s var(--ease-out), border-color 0.6s var(--ease-out); }
.ab-partner__link { color: inherit; text-decoration: none; }
.ab-partner__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.ab-partner__link:focus-visible { outline: none; }
.ab-partner:has(.ab-partner__link:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
.ab-partner:hover { box-shadow: var(--shadow-float); border-color: #c9d3fa; }
.ab-partner__name strong { transition: color 0.4s var(--ease-out); }
.ab-partner:hover .ab-partner__name strong { color: var(--blue); }
.ab-partner:hover .ab-partner__logo { transform: scale(1.04); }
.ab-partner:hover .ab-partner__bg { transform: scale(1.08); }
.ab-partner__desc { margin-top: 18px; font-size: 14px; line-height: 21px; font-weight: 600; color: #656565; }
.ab-partner__name { margin-top: 16px; font-size: 16px; line-height: 20px; }
.ab-partner__name strong { display: block; font-weight: 700; }
.ab-partner__name span { display: block; }

/* ---------- Careers CTA band ---------- */
.ab-cta { padding: 62px 0 60px; scroll-margin-top: 60px; }
.ab-cta .ab-cta__lead { max-width: none; margin: 21px auto 20px; font-size: 20px; line-height: 28px; }
.ab-cta .btn-row { margin-top: 0; }

/* ==========================================================================
   Tablet (≤1199)
   ========================================================================== */
@media (max-width: 1199px) {
  .ab-h2 { font-size: 43px; line-height: 48px; }
  .ab-h2--sm { font-size: 26px; line-height: 32px; }

  .ab-hero { padding-top: 38px; }
  .ab-hero .eyebrow { margin-bottom: 18px; }
  .ab-hero__title { max-width: 640px; font-size: 43px; line-height: 48px; }
  .ab-hero__lead { margin-top: 14px; font-size: 16px; line-height: 22px; }

  .ab-gallery { margin-top: 40px; }
  .ab-gallery__track {
    justify-content: flex-start;
    max-width: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 0 50vw 24px;
    cursor: grab;
  }
  .ab-gallery__track::-webkit-scrollbar { display: none; }
  .ab-gallery__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
  .ab-gallery__item { flex: none; height: 279px; width: auto; scroll-snap-align: center; }

  .ab-split { grid-template-columns: 1fr; }
  .ab-split__text { max-width: none; }

  .ab-mission { padding-top: 43px; }
  .ab-quote { margin-top: 22px; font-size: 16px; line-height: 22px; }
  .ab-quote__by { font-size: 16px; line-height: 22px; margin-top: 24px; }
  /* the desktop copy's hard returns leave ragged short lines ("carries them.") in narrower columns */
  .ab-br { display: none; }
  .ab-photo { aspect-ratio: 688 / 546; }
  .ab-photo--ceo { margin-top: 42px; }

  .ab-values { padding-top: 127px; }
  .ab-values__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 30px; }
  .ab-value { padding: 24px 24px 24px; }
  .ab-value__title { font-size: 16px; line-height: 22px; margin-top: 0; }
  .ab-value p { margin-top: 8px; }

  .ab-founders { padding-top: 124px; }
  .ab-founders .container, .ab-team .container, .ab-partners .container { padding-inline: 48px; }
  .ab-founders .eyebrow { margin-bottom: 10px; }
  .ab-founders__title { line-height: 48px; }
  .ab-founder { margin-top: 22px; }
  .ab-founder + .ab-founder { margin-top: 23px; }
  .ab-founder__name { font-size: 16px; line-height: 22px; }
  .ab-founder p { margin-top: 22px; font-size: 16px; line-height: 22px; }
  .ab-photo--founders { aspect-ratio: 672 / 546; margin-top: 40px; }
  .ab-logos { display: none; }

  .ab-team { padding-top: 126px; padding-bottom: 63px; }
  .ab-team .eyebrow { margin-bottom: 7px; }
  .ab-team__grid { column-gap: 9px; row-gap: 28px; margin-top: 29px; }
  .ab-member { padding: 8px 8px 10px; }
  .ab-member__photo { aspect-ratio: 146 / 180; }
  .ab-member__name { margin-top: 12px; font-size: 16px; line-height: 22px; }
  .ab-member__role { margin-top: 0; font-size: 13px; line-height: 17px; }
  .ab-member__photo img { transform: scale(1.15); transform-origin: 50% 85%; }
  .ab-member:hover .ab-member__photo img { transform: scale(1.21); }

  .ab-partners { padding: 62px 0 61px; }
  .ab-partners .eyebrow { margin-bottom: 8px; }
  .ab-partner { margin-top: 28px; padding: 8px 8px 10px; }
  .ab-partner__media { aspect-ratio: 656 / 180; }
  .ab-partner__logo { width: 207px; }
  .ab-partner__desc { margin-top: 16px; }
  .ab-partner__name { margin-top: 16px; }

  .ab-cta { padding: 40px 0; }
  .ab-cta .ab-h2 { font-size: 39px; line-height: 44px; }
  .ab-cta .ab-cta__lead { margin: 15px auto 16px; font-size: 16px; line-height: 22px; }
  .ab-cta .btn-row { display: block; }
  .ab-cta__btn { width: 100%; }
}

/* ==========================================================================
   Phone (≤767)
   ========================================================================== */
@media (max-width: 767px) {
  .ab-h2, .ab-h2--sm { font-size: 39px; line-height: 44px; }

  .ab-hero { padding-top: 31px; }
  .ab-hero .eyebrow { margin-bottom: 18px; }
  .ab-hero__title { font-size: 38.6px; line-height: 44px; }
  .ab-hero__lead { max-width: 316px; margin: 15px auto 0; }

  .ab-gallery { margin-top: 32px; }
  .ab-gallery__track { gap: 8px; }
  .ab-gallery__item { height: 156px; }

  .ab-mission { padding-top: 17px; }
  .ab-quote { margin-top: 23px; }
  .ab-photo { aspect-ratio: 328 / 426; }
  .ab-photo--ceo { margin-top: 40px; }

  .ab-values { padding-top: 80px; }
  .ab-values__grid { grid-template-columns: 1fr; margin-top: 38px; }
  .ab-value { flex-direction: column; padding: 24px 24px 22px; gap: 20px; }
  .ab-value__title { font-size: 20px; line-height: 26px; }
  .ab-value p { margin-top: 10px; }

  .ab-founders { padding-top: 81px; }
  .ab-founders .container, .ab-team .container, .ab-partners .container { padding-inline: var(--gutter); }
  .ab-founders .eyebrow { margin-bottom: 10px; }
  .ab-founders__title { line-height: 44px; }
  .ab-photo--founders { aspect-ratio: 328 / 426; margin-top: 41px; }

  .ab-team { padding-top: 81px; padding-bottom: 40px; }
  .ab-team .eyebrow { margin-bottom: 10px; }
  .ab-team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 16px; margin-top: 33px; }
  .ab-member { padding-bottom: 11px; }
  .ab-member__name { margin-top: 14px; line-height: 20px; }
  .ab-member__photo { aspect-ratio: 140 / 180; }

  .ab-partners { padding: 39px 0 40px; }
  .ab-partners .eyebrow { margin-bottom: 10px; }
  .ab-partner { margin-top: 39px; }
  .ab-partner__media { aspect-ratio: 312 / 180; }
  .ab-partner__logo { width: 205px; }

  .ab-cta { padding: 40px 0; }
  .ab-cta .ab-cta__lead { max-width: 290px; }
}

@media (prefers-reduced-motion: reduce) {
  .ab-photo img { transform: none !important; }
}

/* ==========================================================================
   German (html[lang="de"]) — layout tweaks for the longer copy; EN untouched
   ========================================================================== */
/* Running text: no auto-hyphenation (breaks like "Servicege-schäft"); no word is wider than its column */
html[lang="de"] .about :is(p, blockquote, li) { -webkit-hyphens: manual; hyphens: manual; }
html[lang="de"] .ab-hero__lead { text-wrap: balance; }
/* "Lernen Sie uns kennen." stays on one line on desktop (shared band caps h2 at 560px) */
html[lang="de"] .ab-cta h2 { max-width: none; }
