/* Paffen Holding GmbH — v1.1.1 */

@font-face {
  font-family: "Archivo";
  src: url("/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue-900: #233366;
  --blue-700: #305c99;
  --hero: linear-gradient(168deg, #305c99 0%, #2a4a83 45%, #233366 100%);
  --bg: #f1f5f7;
  --surface: #ffffff;
  --ink: #0e2430;
  --ink-2: #4c6779;
  --line: #d5e0e6;
  --line-2: #a6c0ce;
  --line-dark: #2b4d60;
  --blue: #305c99;
  --blue-soft: #9dbbea;
  --teal: #33b4b8;

  --wrap: 1180px;
  --gut: clamp(20px, 5vw, 56px);

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal);
  color: var(--blue-900);
  padding: 12px 18px;
  font-weight: 600;
  z-index: 50;
}
.skip:focus { left: 0; }

:where(a, button):focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- hero ---------- */

.hero {
  background: var(--hero);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, #4a7bc4 0%, var(--teal) 55%, #7acaad 100%);
}

.hero__inner {
  padding-block: clamp(72px, 13vw, 148px) clamp(56px, 9vw, 104px);
}

.eyebrow {
  margin: 0 0 26px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue-soft);
}

.eyebrow--dark { color: var(--blue); }

.hero__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 116%;
  font-size: clamp(2.9rem, 9.2vw, 6.4rem);
  line-height: .92;
  letter-spacing: -.015em;
  text-transform: uppercase;
}

.hero__line { display: block; }
.hero__line--accent { color: var(--blue-soft); }

.hero__lead {
  margin: 34px 0 0;
  max-width: 40ch;
  font-size: clamp(1.05rem, 2.2vw, 1.32rem);
  line-height: 1.5;
  color: #d3e0f4;
}

.facts {
  margin: clamp(40px, 7vw, 72px) 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .05);
}

.facts__item {
  padding: 20px 22px;
  border-left: 1px solid rgba(255, 255, 255, .22);
}

.facts__item:first-child { border-left: 0; }

.facts dt {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #a8c0e4;
  margin-bottom: 7px;
}

.facts dd {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: #f0f5fc;
}

/* ---------- beteiligungen ---------- */

.holdings { padding-block: clamp(58px, 9vw, 104px) clamp(50px, 8vw, 92px); }

.holdings__head { max-width: 32ch; }

.h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 106%;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -.01em;
}

/* signature: the ownership tree */
.tree {
  display: none;
  margin-top: 48px;
}

.tree__root {
  display: block;
  width: max-content;
  margin-inline: auto;
  background: var(--blue-900);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 104%;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 10px 18px 9px;
}

.tree__trunk {
  display: block;
  width: 1px;
  height: 36px;
  margin-inline: auto;
  background: var(--line-2);
  transform-origin: top;
}

.tree__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  height: 40px;
}

.tree__node {
  position: relative;
  display: block;
  background: radial-gradient(circle 3.5px at 50% 100%, var(--teal) 98%, transparent 100%) no-repeat;
}

.tree__node::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(-12px - 1px);
  right: -12px;
  height: 1px;
  background: var(--line-2);
}

.tree__node:first-child::before { left: 50%; }
.tree__node:last-child::before { right: 50%; }

.tree__node::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, var(--line-2), var(--teal));
  transform-origin: top;
}

.cards {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 30px 28px 26px;
  display: flex;
  flex-direction: column;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.card:hover,
.card:focus-within {
  border-color: #b9cbd6;
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -26px rgba(35, 51, 102, .5);
}

.card:hover::before,
.card:focus-within::before { transform: scaleX(1); }

.card__logo {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;   /* auf "flex-start" umstellen fuer linksbuendig */
  margin-bottom: 24px;
}

/* Die Lockups haben sehr unterschiedliche Proportionen, deshalb wird
   jedes Logo einzeln auf ungefähr gleiche optische Größe gebracht. */
.card__logo img {
  max-height: 100%;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  object-position: center;
}

.logo--paffen { max-height: 52px; }
.logo--impuls { max-height: 68px; max-width: 120px; }
.logo--fortual { max-width: 190px; }
.logo--wayve { max-width: 176px; }

.card__name {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 102%;
  font-size: 1.06rem;
  line-height: 1.25;
  letter-spacing: -.005em;
}

.card__text {
  margin: 0 0 22px;
  font-size: .94rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.card__link {
  margin-top: auto;
  align-self: flex-start;
  text-decoration: none;
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--blue);
  border-bottom: 1px solid rgba(2, 115, 191, .3);
  padding-bottom: 2px;
}

.card__link:hover { border-bottom-color: var(--blue); }

.card__arrow {
  display: inline-block;
  transition: transform .2s ease;
}

.card__link:hover .card__arrow { transform: translateX(3px); }

/* ---------- gegenstand / kontakt ---------- */

.purpose {
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 7vw, 78px);
}

.purpose__inner {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

.purpose__text {
  margin: 0;
  max-width: 52ch;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.purpose__address {
  font-style: normal;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--ink-2);
}

.purpose__address a { color: var(--blue); }

/* ---------- footer ---------- */

.foot {
  background: var(--blue-900);
  color: #9db0d4;
}

.foot__inner {
  padding-block: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: .85rem;
}

.foot p { margin: 0; }

.foot a {
  color: #dbe5f7;
  text-decoration: none;
  border-bottom: 1px solid rgba(219, 229, 247, .3);
}

.foot a:hover { border-bottom-color: #dbe5f7; }

/* ---------- responsive ---------- */

@media (min-width: 620px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .purpose__inner { grid-template-columns: 1.35fr 1fr; gap: 56px; }
}

@media (max-width: 619px) {
  .facts { grid-template-columns: 1fr; }
  .facts__item { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .22); }
  .facts__item:first-child { border-top: 0; }
}

@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(4, 1fr); margin-top: 0; }
  .tree { display: block; }
  .holdings__head { max-width: 26ch; }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .tree__root { animation: rise .5s ease-out backwards; }
  .tree__trunk { animation: grow .45s .35s ease-out both; }
  .tree__node::before { animation: fade .45s .72s ease-out both; }
  .tree__node::after { animation: grow .35s .95s ease-out both; }
  .card { animation: rise .55s ease-out backwards; }
  .card:nth-child(1) { animation-delay: 1.08s; }
  .card:nth-child(2) { animation-delay: 1.16s; }
  .card:nth-child(3) { animation-delay: 1.24s; }
  .card:nth-child(4) { animation-delay: 1.32s; }
  .hero__line { animation: rise .6s ease-out backwards; }
  .hero__line:nth-child(2) { animation-delay: .09s; }
}

@keyframes grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media print {
  .hero, .foot { background: #fff !important; color: #000 !important; }
  .card { break-inside: avoid; }
}
