:root {
  --brand-navy: #1e417c;
  --brand-navy-dark: #142e58;
  --brand-navy-hover: #12284c;
  --brand-sage: #9fc79f;
  --brand-sage-light: #bde2bd;
  --brand-sage-hover: #c9e8c9;
  --brand-sage-tint: #edf6ed;
  --brand-sage-dark: #214721;
  --sky-light: #e3f3fc;
  --sky-mid: #b8e4fb;
  --sky-blue: #95cbee;
  --ink-muted: #315a8f;
  --glass-fill: rgb(255 255 255 / 0.17);
  --glass-border: rgb(255 255 255 / 0.78);
  --page-gutter: clamp(24px, 4.5vw, 72px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

/* Lenis Smooth Scroll Engine */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--brand-navy);
  background: var(--sky-light);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  color: #f6fbff;
  background: var(--brand-navy);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}
.skip-link:focus { transform: translateY(0); }
.home-page { overflow-x: hidden; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 17% 48%, rgb(241 250 255 / 0.8) 0, transparent 31%),
    linear-gradient(105deg, var(--sky-light) 0%, #d6eefc 34%, var(--sky-mid) 64%, var(--sky-blue) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: clamp(100px, 15vh, 200px);
  background: linear-gradient(180deg, transparent 0%, rgba(239, 248, 252, 0.45) 45%, #eff8fc 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-shell {
  width: calc(100% - (2 * var(--page-gutter)));
  max-width: 1460px;
  margin-inline: auto;
}

.glass-header {
  position: fixed;
  z-index: 30;
  top: clamp(16px, 3vh, 30px);
  left: 50%;
  display: grid;
  grid-template-columns: minmax(145px, 1fr) auto minmax(240px, 1fr);
  align-items: center;
  min-height: 78px;
  margin-top: 0;
  padding: 7px 16px 7px 32px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.32);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.72), 0 12px 32px rgb(30 66 124 / 0.05);
  transform: translateX(-50%);
  transition: background 320ms ease, border-color 320ms ease, box-shadow 320ms ease;
  overflow: hidden;
}
.glass-header.is-scrolled {
  border-color: rgb(255 255 255 / 0.92);
  background: rgb(232 247 254 / 0.88);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.88), 0 12px 36px rgb(30 65 124 / 0.13);
}
.glass-header::after {
  content: "";
  position: absolute;
  inset: 1px 18px auto;
  height: 35%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.23), transparent);
  pointer-events: none;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-header {
    background: var(--glass-fill);
    -webkit-backdrop-filter: blur(18px) saturate(115%);
    backdrop-filter: blur(18px) saturate(115%);
  }

  .glass-header.is-scrolled {
    background: rgb(232 247 254 / 0.76);
    -webkit-backdrop-filter: blur(24px) saturate(135%);
    backdrop-filter: blur(24px) saturate(135%);
  }

  .primary-nav[data-open="true"] {
    -webkit-backdrop-filter: blur(20px) saturate(105%);
    backdrop-filter: blur(20px) saturate(105%);
  }
}

.brand {
  position: relative;
  z-index: 1;
  justify-self: start;
  display: block;
  width: clamp(128px, 10.2vw, 156px);
}
.brand img { display: block; width: 100%; height: auto; }
.primary-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(34px, 4vw, 64px);
  white-space: nowrap;
  font-size: clamp(15px, 1.25vw, 19px);
  font-weight: 500;
}
.primary-nav a { position: relative; padding: 10px 0; }
.primary-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 320ms var(--ease-out);
}
.primary-nav a:hover::after, .primary-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}
.primary-nav a.is-active {
  color: #0c1e3d;
  font-weight: 600;
}
.primary-nav .nav-contact-link {
  display: none;
}
.primary-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
  background: var(--brand-sage);
  height: 2px;
  box-shadow: 0 0 8px rgb(159 199 159 / 0.6);
}

.button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 64px;
  padding: 12px 34px;
  border: 1.25px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 600;
  line-height: 1;
  transition: transform 260ms var(--ease-out), background 260ms ease, color 260ms ease, border-color 260ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px) scale(0.985); }
.button--compact {
  justify-self: end;
  min-height: 60px;
  padding-inline: 30px;
  color: var(--brand-sage);
  background: var(--brand-navy);
}

.header-actions {
  position: relative;
  z-index: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgb(30 65 124 / 0.28);
  border-radius: 999px;
  color: var(--brand-navy);
  background: rgb(255 255 255 / 0.2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: transform 260ms var(--ease-out), background 260ms ease, color 260ms ease;
}

.lang-switch:hover {
  color: var(--brand-sage-hover);
  background: var(--brand-navy-dark);
  transform: translateY(-2px);
}

.lang-switch:active {
  transform: translateY(1px) scale(0.98);
}

.lang-switch:focus-visible,
.button:focus-visible,
.primary-nav a:focus-visible,
.menu-toggle:focus-visible {
  outline: 3px solid var(--brand-sage);
  outline-offset: 3px;
}
.button--primary {
  color: var(--brand-sage);
  background: var(--brand-navy);
  box-shadow: 0 12px 26px rgb(30 65 124 / 0.14);
}
.button--primary:hover, .button--compact:hover { color: var(--brand-sage-hover); background: var(--brand-navy-dark); }
.button--secondary {
  min-width: 250px;
  color: var(--brand-navy);
  border-color: var(--brand-navy);
  background: rgb(255 255 255 / 0.08);
}
.button--secondary:hover { background: rgb(255 255 255 / 0.28); }
.arrow {
  display: inline-block;
  font-size: 1.2em;
  font-weight: 400;
  transition: transform 260ms var(--ease-out);
}
.button:hover .arrow { transform: translate(3px, -3px); }
.menu-toggle { display: none; }

.hero-content {
  position: relative;
  z-index: 3;
  align-self: center;
  padding-top: clamp(132px, 16vh, 172px);
  padding-bottom: clamp(72px, 9vh, 104px);
  pointer-events: none;
}
.hero-content > * { pointer-events: auto; }
.hero-title {
  width: min(61vw, 910px);
  margin: 0;
  color: #0c346b;
  font-size: clamp(58px, 6.35vw, 101px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
}
.hero-title span { display: block; }
.hero-copy {
  margin: clamp(28px, 3.8vh, 40px) 0 0;
  color: #244f86;
  font-size: clamp(18px, 1.65vw, 25px);
  font-weight: 400;
  line-height: 1.48;
  letter-spacing: -0.012em;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: clamp(30px, 4vh, 42px);
}

.hero-scene {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}
.cloud {
  position: absolute;
  display: block;
  height: auto;
  pointer-events: none;
  will-change: transform;
  -webkit-user-select: none;
  user-select: none;
}
.cloud--back {
  z-index: 0;
  top: -70px;
  right: -150px;
  width: clamp(480px, 43vw, 680px);
  opacity: 0.82;
}
.cloud--wisp {
  z-index: 0;
  top: 26%;
  right: -225px;
  width: clamp(460px, 39vw, 620px);
  opacity: 0.28;
}
.balloon-anchor {
  position: absolute;
  z-index: 1;
  top: clamp(180px, 28vh, 320px);
  right: clamp(48px, 4.8vw, 80px);
  width: clamp(300px, 24.5vw, 395px);
  pointer-events: auto;
}
.balloon-float, .balloon-impulse, .balloon-button, .balloon-button img {
  display: block;
  width: 100%;
}
.balloon-float { transform-origin: 56% 56%; }
.balloon-impulse { will-change: transform; }
.balloon-button {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: transparent;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  touch-action: pan-y pinch-zoom;
}
.balloon-button:focus-visible { outline: 4px solid rgb(215 244 124 / 0.95); outline-offset: 5px; }
.balloon-button img {
  height: auto;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}
.cloud--front {
  z-index: 2;
  right: -95px;
  bottom: clamp(-130px, -10vh, -90px);
  width: clamp(680px, 58vw, 940px);
  opacity: 0.92;
}

.page-section {
  position: relative;
  padding: clamp(96px, 10vw, 158px) var(--page-gutter);
}

.section-shell {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
}

.welcome-section {
  color: var(--brand-navy);
  background: linear-gradient(180deg, #eff8fc 0%, #eff8fc 75%, #ecf5fb 100%);
}

.section-intro {
  max-width: 900px;
}

.section-kicker {
  margin: 0 0 22px;
  color: #4f739e;
  font-size: 17px;
  font-weight: 600;
}

.section-intro h2 {
  max-width: 850px;
  margin: 0;
  color: #10386d;
  font-size: clamp(46px, 6vw, 84px);
  font-weight: 550;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.section-intro > p:last-child {
  max-width: 700px;
  margin: 30px 0 0;
  color: #41658e;
  font-size: clamp(18px, 1.65vw, 23px);
  line-height: 1.55;
}

.services-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.65fr);
  gap: clamp(48px, 8vw, 128px);
  align-items: end;
  max-width: none;
}

.services-intro h2 {
  max-width: 850px;
}

.services-intro > p:last-child {
  max-width: 520px;
  margin: 0 0 7px;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
  margin-top: clamp(48px, 6vw, 76px);
}

.service-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(24px, 2vw, 32px);
  border: 1px solid rgb(44 103 158 / 0.18);
  border-radius: 28px;
  background: rgb(255 255 255 / 0.35);
  box-shadow: 0 16px 40px rgb(30 65 124 / 0.035);
  transition:
    transform 420ms var(--ease-out),
    border-color 420ms ease,
    background 420ms ease,
    box-shadow 420ms ease;
}

.service-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.service-card h3 {
  flex: 1;
  margin: 0;
  color: #113a70;
  font-size: clamp(21px, 1.7vw, 26px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.16;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

.service-card__visual {
  flex: 0 0 clamp(68px, 5.5vw, 84px);
  width: clamp(68px, 5.5vw, 84px);
  height: clamp(68px, 5.5vw, 84px);
  display: grid;
  place-items: center;
  margin: 0;
}

.service-card__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  transition: transform 520ms var(--ease-out);
}

.service-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 14px;
}

.service-card__content > p {
  margin: 0;
  color: #45688f;
  font-size: clamp(14.5px, 1.12vw, 16px);
  line-height: 1.5;
}

.service-card__points {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: #173f73;
  font-size: clamp(13.5px, 1.05vw, 15px);
  font-weight: 500;
  line-height: 1.38;
}

.service-card__points li {
  position: relative;
  padding-left: 30px;
}

.service-card__points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: var(--brand-sage-dark);
  background: var(--brand-sage-tint);
  font-size: 11.5px;
  font-weight: 700;
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    border-color: rgb(159 199 159 / 0.45);
    background: linear-gradient(145deg, rgb(255 255 255 / 0.55), rgb(159 199 159 / 0.12));
    box-shadow: 0 22px 52px rgb(30 65 124 / 0.07);
    transform: translateY(-5px);
  }

  .js .service-card[data-reveal].is-visible:hover {
    transform: translateY(-5px);
  }

  .service-card:hover .service-card__visual img {
    transform: translateY(-2px) scale(1.08);
  }
}

.services-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin-top: clamp(30px, 4vw, 54px);
  padding-top: clamp(28px, 3.5vw, 46px);
  border-top: 1px solid rgb(30 65 124 / 0.18);
}

.services-cta h3 {
  margin: 0;
  color: #113a70;
  font-size: clamp(29px, 3vw, 44px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.services-cta p {
  margin: 9px 0 0;
  color: #45688f;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.45;
}

.services-cta .button {
  flex: 0 0 auto;
}

.section-shell--wide {
  max-width: 1560px;
}

.about-section {
  color: var(--brand-navy);
  background: linear-gradient(180deg, #ecf5fb 0%, #e6f2fa 45%, #ddeffa 100%);
}

.section-intro--team {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.65fr);
  gap: clamp(48px, 8vw, 128px);
  align-items: end;
  max-width: none;
}

.team-header-main {
  display: flex;
  flex-direction: column;
}

.team-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #10386d;
}

.team-kicker-bar {
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: #27ae60;
  display: inline-block;
}

.section-intro--team h2 {
  max-width: 850px;
  margin: 0;
  color: #10386d;
  font-size: clamp(42px, 5.2vw, 72px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.section-intro--team > p:last-child {
  max-width: 700px;
  margin: 0;
  color: #41658e;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
}

.team-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 2.5vw, 42px);
  margin-top: clamp(48px, 5.5vw, 76px);
}

.team-card-wrapper {
  position: relative;
  perspective: 1800px;
  min-height: 480px;
}

.team-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 650ms cubic-bezier(0.23, 1, 0.32, 1);
}

.team-card-inner.is-flipped {
  transform: rotateY(180deg);
}

.team-card {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* --- Front Face (Bild 3) --- */
.team-card--front {
  position: relative;
  display: grid;
  grid-template-columns: clamp(160px, 16vw, 215px) minmax(0, 1fr);
  gap: clamp(20px, 2.2vw, 34px);
  align-items: center;
  padding: clamp(24px, 2.4vw, 34px);
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 40px rgba(12, 45, 90, 0.05), 0 2px 6px rgba(12, 45, 90, 0.02);
  transform: rotateY(0deg);
  overflow: hidden;
  transition: transform 380ms var(--ease-out), box-shadow 380ms ease, border-color 380ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .team-card-wrapper:hover .team-card--front {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(12, 45, 90, 0.09);
    border-color: rgba(185, 220, 242, 0.95);
  }
}

.team-card__visual-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Subtle soft glass glow ribbon behind photo */
.team-card__glass-ribbon {
  position: absolute;
  top: -14px;
  left: -14px;
  width: 92%;
  height: 92%;
  border-radius: 26px;
  border: 14px solid rgba(175, 218, 245, 0.28);
  pointer-events: none;
  filter: blur(3px);
  z-index: 0;
}

.team-card__portrait {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 4.6;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #e2eff6;
  box-shadow: 0 8px 24px rgba(12, 45, 90, 0.08);
}

.team-card__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.team-card__details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 1;
}

.team-card__name {
  margin: 0 0 4px;
  color: #08284c;
  font-size: clamp(23px, 2.1vw, 29px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.team-card__role {
  margin: 0 0 10px;
  color: var(--brand-sage-dark);
  font-size: clamp(13.5px, 1vw, 15px);
  font-weight: 600;
  line-height: 1.35;
}

.team-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--brand-sage-tint);
  color: var(--brand-sage-dark);
  border: 1px solid rgb(159 199 159 / 0.35);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
}

.team-card__divider {
  width: 100%;
  height: 1px;
  background: rgba(12, 45, 90, 0.1);
  margin-bottom: 12px;
}

.team-card__industries {
  margin: 0 0 12px;
  color: #355883;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}

.team-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}

.team-tag {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  background: #e3effa;
  color: #185896;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.team-card__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.team-card__flip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: none;
  border-radius: 999px;
  background: #0d3264;
  color: #ffffff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(13, 50, 100, 0.22);
  transition: background 220ms ease, transform 200ms ease, box-shadow 220ms ease;
}

.team-card__flip-btn:hover {
  background: #154585;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(13, 50, 100, 0.28);
}

.team-card__flip-btn:active {
  transform: scale(0.97);
}

.team-card__flip-btn .arrow {
  display: inline-block;
  transition: transform 200ms ease;
}

.team-card__flip-btn:hover .arrow {
  transform: translateX(3px);
}

/* --- Card Back Face (Bild 2: Einsatzprofil) --- */
.team-card--back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #0b2f5d 0%, #072244 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  box-shadow: 0 20px 48px rgba(7, 34, 68, 0.32);
  color: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.team-card__back-ribbon {
  position: absolute;
  top: -40px;
  left: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 24px solid rgba(130, 210, 255, 0.1);
  pointer-events: none;
  filter: blur(6px);
}

.team-card__back-content {
  position: relative;
  z-index: 2;
  padding: clamp(24px, 2.5vw, 34px);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.team-card__back-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.profile-badge-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.profile-badge-years {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--brand-sage);
  color: var(--brand-navy-dark);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.team-card__back-name {
  margin: 4px 0 6px;
  color: #ffffff;
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.team-card__back-tagline {
  margin: 0 0 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
}

.profile-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
  margin-bottom: 16px;
}

.profile-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.profile-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.profile-num {
  font-size: 17px;
  font-weight: 800;
  color: var(--brand-sage-light);
  min-width: 24px;
  line-height: 1.2;
}

.profile-text {
  display: flex;
  flex-direction: column;
}

.profile-heading {
  margin: 0 0 2px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
}

.profile-sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.35;
}

.profile-item-sep {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.profile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 10px;
}

.profile-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--brand-sage);
  color: var(--brand-navy-dark);
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 14px rgb(159 199 159 / 0.35);
  transition: background 200ms ease, transform 180ms ease;
}

.profile-cta-btn:hover {
  background: var(--brand-sage-light);
  transform: translateY(-2px);
}

.profile-cta-btn .arrow {
  display: inline-block;
  transition: transform 180ms ease;
}

.profile-cta-btn:hover .arrow {
  transform: translateX(3px);
}

.team-card__flip-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 180ms ease;
}

.team-card__flip-back:hover {
  color: #ffffff;
  text-decoration: underline;
}

.team-card__flip-back .back-icon {
  display: inline-block;
  font-size: 15px;
  line-height: 1;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 760ms var(--ease-out), transform 760ms var(--ease-out);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   REFERENCES / CLIENT LOGOS SECTION (Compact & Infinite Marquee)
   ========================================================== */
.references-section {
  position: relative;
  z-index: 4;
  color: var(--brand-navy);
  background: linear-gradient(180deg, #ddeffa 0%, #e8f4fc 45%, #d5eaf8 100%);
  padding: clamp(36px, 4vw, 54px) var(--page-gutter);
  overflow: hidden;
}

.references-intro {
  text-align: left;
  max-width: 100%;
  margin-bottom: clamp(14px, 1.8vw, 22px);
}

.references-title,
#references-title {
  margin: 0;
  max-width: 100% !important;
  font-size: clamp(20px, 2.1vw, 30px) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.025em !important;
  color: #0c1e3d !important;
  white-space: normal;
  overflow-wrap: break-word;
}

@media (min-width: 960px) {
  .references-title,
  #references-title {
    white-space: nowrap;
  }
}

.references-carousel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  padding: 6px 0;
}

.logo-track-marquee {
  display: flex;
  width: max-content;
  will-change: transform;
}

.logo-track-marquee--row1 {
  animation: marqueeContinuousReverse 36s linear infinite;
}

.logo-track-marquee--row2 {
  animation: marqueeContinuous 40s linear infinite;
}

.logo-track-marquee:hover,
.logo-track-marquee:focus-within {
  animation-play-state: paused;
}

@keyframes marqueeContinuous {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes marqueeContinuousReverse {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.logo-cards-row {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.3vw, 18px);
  padding-right: clamp(12px, 1.3vw, 18px);
  flex-shrink: 0;
}

.logo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: clamp(74px, 6.2vw, 86px);
  min-width: clamp(170px, 14vw, 215px);
  padding: 12px clamp(20px, 2vw, 28px);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(12, 45, 90, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  user-select: none;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease, background 260ms ease;
}

.logo-card:focus-visible {
  outline: 2px solid var(--brand-navy);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .logo-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 32px rgba(12, 45, 90, 0.09);
    border-color: rgba(255, 255, 255, 1);
  }
}

.company-name {
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-navy);
  text-align: center;
  white-space: nowrap;
  line-height: 1.2;
}

.logo-subtext {
  font-size: clamp(10px, 0.75vw, 11.5px);
  font-weight: 600;
  color: #4a6382;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  line-height: 1.2;
}

.contact-section {
  position: relative;
  z-index: 5;
  color: var(--brand-navy);
  background: linear-gradient(180deg, #d5eaf8 0%, #ebf5fc 45%, #d9edf9 100%);
  padding: clamp(80px, 8vw, 130px) var(--page-gutter) 40px;
}

.contact-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(40px, 5vw, 84px);
  align-items: center;
}

/* Left Column */
.contact-info-col {
  display: flex;
  flex-direction: column;
}

.contact-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4b6f98;
  margin-bottom: 16px;
}

.contact-main-title {
  font-size: clamp(38px, 4.4vw, 58px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #0c346b;
  margin: 0 0 20px;
}

.contact-lead {
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 400;
  color: #244f86;
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
  max-width: 540px;
}

.contact-stage-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 3.2vw, 44px);
  align-items: center;
  margin-top: 10px;
}

.contact-checkmarks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.checkmark-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(15.5px, 1.2vw, 17.5px);
  font-weight: 700;
  color: #0c346b;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.checkmark-badge {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-sage-tint);
  color: var(--brand-sage-dark);
  font-size: 13.5px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgb(159 199 159 / 0.25);
}

.contact-visual-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  padding: 10px;
}

.stage-capsule {
  position: absolute;
  top: 6px;
  right: 26%;
  width: 54px;
  height: 155px;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.15) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(12, 52, 107, 0.06);
  z-index: 1;
}

.stage-base {
  position: absolute;
  bottom: 22px;
  left: 10%;
  right: 10%;
  height: 48px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.1) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 36px rgba(12, 52, 107, 0.08);
  z-index: 1;
}

.contact-emblem {
  position: relative;
  z-index: 2;
  width: clamp(210px, 20vw, 290px);
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(12, 52, 107, 0.18));
  animation: emblem-float 7s ease-in-out infinite;
}

@keyframes emblem-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(1.2deg); }
}

/* RIGHT: Intake Card from Bild 4 */
.intake-card {
  position: relative;
  background: #ffffff;
  border-radius: 28px;
  padding: clamp(28px, 3.2vw, 42px);
  box-shadow: 0 20px 56px -8px rgba(12, 52, 107, 0.09), 0 1px 3px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.95);
}

.intake-card__header {
  margin-bottom: 22px;
}

.intake-card__title {
  margin: 0 0 6px;
  font-size: clamp(23px, 2.2vw, 29px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0c346b;
}

.intake-card__subtitle {
  margin: 0;
  font-size: 14.5px;
  color: #637f9f;
}

.intake-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.intake-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.intake-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #0c346b;
  letter-spacing: -0.01em;
}

/* Chips */
.intake-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.intake-chip {
  appearance: none;
  border: 1px solid #d4e0ee;
  background: #ffffff;
  color: #1e4577;
  padding: 9px 17px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 180ms ease;
  user-select: none;
}

.intake-chip:hover {
  border-color: #9cb5d3;
  background: #f5f9fd;
}

.intake-chip.is-selected {
  background: var(--brand-sage-tint);
  border-color: var(--brand-sage);
  color: var(--brand-sage-dark);
  font-weight: 600;
  box-shadow: 0 2px 8px rgb(159 199 159 / 0.3);
}

/* Segmented Control */
.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #f2f7fc;
  border: 1px solid #d4e0ee;
  border-radius: 12px;
  padding: 3px;
  gap: 3px;
}

.segment-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-radius: 9px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: #274b79;
  cursor: pointer;
  transition: all 180ms ease;
  text-align: center;
}

.segment-btn:hover:not(.is-selected) {
  background: rgba(255, 255, 255, 0.6);
}

.segment-btn.is-selected {
  background: var(--brand-sage-tint);
  color: var(--brand-sage-dark);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* 2-column inputs */
.intake-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.intake-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.intake-field-label {
  font-size: 13px;
  font-weight: 600;
  color: #0c346b;
}

.intake-input,
.intake-textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid #d4e0ee;
  background: #fbfdff;
  font-family: inherit;
  font-size: 14px;
  color: #0c346b;
  box-sizing: border-box;
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.intake-input::placeholder,
.intake-textarea::placeholder {
  color: #9cb2cb;
}

.intake-input:focus,
.intake-textarea:focus {
  outline: none;
  border-color: #4b92db;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(75, 146, 219, 0.16);
}

/* Expandable message */
.intake-message-group {
  margin-top: -2px;
}

.message-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #24528c;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0;
  transition: color 180ms ease;
}

.message-toggle-btn:hover {
  color: #0c346b;
}

.plus-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e6f0fa;
  color: #1a4980;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: transform 200ms ease;
}

.message-toggle-btn[aria-expanded="true"] .plus-icon {
  transform: rotate(45deg);
}

.message-drawer {
  margin-top: 10px;
  transition: all 250ms ease;
}

.message-drawer[hidden] {
  display: none;
}

.intake-textarea {
  resize: vertical;
  min-height: 80px;
}

/* Actions & Button */
.intake-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.intake-submit-btn {
  appearance: none;
  border: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 999px;
  background: #0f2b50;
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 10px 24px -4px rgba(15, 43, 80, 0.35);
  transition: background 220ms ease, transform 160ms ease, box-shadow 220ms ease;
}

.intake-submit-btn:hover {
  background: var(--brand-navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -4px rgba(15, 43, 80, 0.4);
}

.intake-submit-btn:active {
  transform: scale(0.98);
}

.submit-arrow {
  color: var(--brand-sage);
  font-size: 18px;
  transition: transform 220ms ease;
}

.intake-submit-btn:hover .submit-arrow {
  transform: translateX(4px);
}

.intake-guarantee {
  margin: 0;
  text-align: center;
  font-size: 12.5px;
  color: #7993af;
}

.intake-privacy-note {
  margin: 12px 0 6px;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  color: #6282a5;
}

.intake-privacy-note a {
  color: var(--brand-navy);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 180ms ease;
}

.intake-privacy-note a:hover {
  color: #0c346b;
}

.form-error-state {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fff5f5;
  border: 1px solid #fed7d7;
  color: #9b2c2c;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

.form-error-state a {
  color: #742a2a;
  font-weight: 600;
  text-decoration: underline;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.intake-card__footer {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #edf3f9;
  text-align: left;
}

.intake-mailto-link {
  font-size: 13.5px;
  font-weight: 500;
  color: #24528c;
  text-decoration: none;
  transition: color 180ms ease;
}

.intake-mailto-link:hover {
  color: #0c346b;
  text-decoration: underline;
}

.intake-card.is-submitted .intake-card__header,
.intake-card.is-submitted .intake-card__footer {
  display: none !important;
}

.form-success-state {
  text-align: center;
  padding: clamp(48px, 6vw, 72px) 20px;
}

.success-icon {
  width: 58px;
  height: 58px;
  line-height: 58px;
  border-radius: 50%;
  background: var(--brand-sage-tint);
  color: var(--brand-sage-dark);
  font-size: 28px;
  font-weight: bold;
  margin: 0 auto 16px;
}

.success-title {
  font-size: 22px;
  font-weight: 600;
  color: #10386d;
  margin: 0 0 8px;
}

.success-text {
  font-size: 15px;
  color: #3e638e;
  margin: 0 0 24px;
  line-height: 1.5;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(86px, 10vw, 150px);
  padding-top: 24px;
  border-top: 1px solid rgb(30 65 124 / 0.18);
  color: #4b6f98;
  font-size: 14px;
}
.site-footer > span:last-child { display: flex; gap: 24px; }
.site-footer a:hover { color: #0c346b; }

@media (prefers-reduced-motion: no-preference) {
  .hero-reveal { opacity: 0; animation: reveal-up 900ms var(--ease-out) forwards; }
  .hero-reveal--one { animation-delay: 100ms; }
  .hero-reveal--two { animation-delay: 200ms; }
  .hero-reveal--three { animation-delay: 300ms; }
  .balloon-float { animation: balloon-float 8s ease-in-out infinite; }
  .cloud--back { animation: cloud-back-drift 28s ease-in-out -8s infinite alternate; }
  .cloud--front { animation: cloud-front-drift 22s ease-in-out -13s infinite alternate; }
  .cloud--wisp { animation: cloud-wisp-drift 34s ease-in-out -17s infinite alternate; }
}
@keyframes reveal-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes balloon-float {
  0%, 100% { transform: translate3d(-2px, 6px, 0) rotate(-0.8deg); }
  50% { transform: translate3d(3px, -10px, 0) rotate(1.2deg); }
}
@keyframes cloud-back-drift {
  from { transform: translate3d(-28px, 5px, 0) scale(1.01); }
  to { transform: translate3d(30px, -9px, 0) scale(1.025); }
}
@keyframes cloud-front-drift {
  from { transform: translate3d(-38px, 4px, 0) scale(1.015); }
  to { transform: translate3d(42px, -8px, 0) scale(1.035); }
}
@keyframes cloud-wisp-drift {
  from { transform: translate3d(36px, 7px, 0) scale(1.015); }
  to { transform: translate3d(-34px, -7px, 0) scale(1.04); }
}

@media (max-width: 1100px) {
  .glass-header { grid-template-columns: minmax(130px, 1fr) auto minmax(215px, 1fr); }
  .primary-nav { gap: 26px; font-size: 15px; }
  .button--compact { min-height: 54px; padding-inline: 24px; font-size: 16px; }
  .hero-title { width: min(66vw, 760px); font-size: clamp(56px, 6.5vw, 72px); }
  .balloon-anchor { right: 36px; width: clamp(280px, 28vw, 330px); }
  .service-card h3 { font-size: clamp(19px, 2vw, 23px); }
}

@media (max-width: 900px) {
  :root { --page-gutter: clamp(18px, 5vw, 28px); }
  .hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    min-height: max(100svh, 680px);
    padding-bottom: 0;
    overflow: hidden;
  }
  .glass-header {
    top: 16px;
    z-index: 1000;
    display: flex;
    align-items: center;
    min-height: 60px;
    padding: 6px 10px 6px 20px;
    box-sizing: border-box;
    overflow: visible;
  }
  .brand {
    width: clamp(96px, 26vw, 118px);
    margin-right: auto;
  }

  .header-actions {
    display: flex;
    align-items: center;
    margin-right: 8px;
    gap: 8px;
  }

  .header-actions .header-cta {
    display: none;
  }

  .lang-switch {
    width: 46px;
    height: 46px;
    background: rgb(255 255 255 / 0.3);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .menu-toggle {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 8px 16px;
    border: 0;
    border-radius: 999px;
    color: var(--brand-sage);
    background: var(--brand-navy);
    cursor: pointer;
    grid-column: 3;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }
  .menu-toggle__label { font-size: 14px; font-weight: 600; }
  .menu-toggle__icon { display: grid; gap: 5px; width: 17px; }
  .menu-toggle__icon span { display: block; height: 1px; background: currentColor; transition: transform 240ms var(--ease-out); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child { transform: translateY(-3px) rotate(-45deg); }
  
  .primary-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    z-index: 100;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    background: rgb(238 247 253 / 0.98);
    box-shadow: 0 16px 40px rgb(30 66 124 / 0.16), 0 2px 8px rgb(30 66 124 / 0.06);
    -webkit-backdrop-filter: blur(24px) saturate(130%);
    backdrop-filter: blur(24px) saturate(130%);
    transform-origin: top center;
  }
  .primary-nav[data-open="true"] {
    display: flex;
    animation: navDropIn 220ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  @keyframes navDropIn {
    from {
      opacity: 0;
      transform: translateY(-8px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  .primary-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    padding: 13px 18px;
    border-radius: 14px;
    color: var(--brand-navy);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background 180ms ease, color 180ms ease;
  }
  .primary-nav a:hover,
  .primary-nav a:active,
  .primary-nav a:focus-visible {
    background: rgb(255 255 255 / 0.85);
  }
  .primary-nav a::after { display: none; }
  .primary-nav .nav-contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
    padding: 13px 18px;
    border-radius: 999px;
    background: var(--brand-navy);
    color: var(--brand-sage);
    font-weight: 600;
  }
  .primary-nav .nav-contact-link:hover,
  .primary-nav .nav-contact-link:active {
    background: #153160;
    color: #fff;
  }
  .hero-content {
    position: relative;
    z-index: 3;
    max-width: 100%;
    padding-top: clamp(108px, 14vh, 136px);
    padding-bottom: clamp(240px, 34vh, 310px);
  }
  .hero-title {
    width: 100%;
    max-width: 620px;
    font-size: clamp(36px, 6.8vw, 56px);
    letter-spacing: -0.045em;
    line-height: 1.02;
  }
  .hero-copy { max-width: 560px; margin-top: 24px; font-size: clamp(16px, 2.8vw, 20px); }
  .hero-copy br { display: none; }
  .hero-actions { align-items: stretch; gap: 12px; margin-top: 26px; }
  .button { min-height: 56px; padding-inline: 24px; font-size: 16px; }
  .button--secondary { min-width: 0; }
  .hero-scene {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
  }
  .balloon-anchor {
    position: absolute;
    top: auto;
    bottom: clamp(20px, 3.5vh, 44px);
    right: auto;
    left: 50%;
    width: clamp(180px, 25vw, 235px);
    transform: translateX(-50%);
    pointer-events: auto;
  }
  .cloud--back {
    top: 20%;
    right: -80px;
    width: clamp(340px, 50vw, 450px);
    opacity: 0.65;
  }
  .cloud--wisp {
    top: 42%;
    right: -90px;
    width: clamp(290px, 44vw, 390px);
    opacity: 0.25;
  }
  .cloud--front {
    right: -80px;
    bottom: -80px;
    width: clamp(400px, 64vw, 550px);
    opacity: 0.92;
  }
  .contact-layout, .contact-card-grid { grid-template-columns: 1fr; gap: 42px; }
  .contact-section h2 { font-size: clamp(38px, 8vw, 56px); }
  .contact-stage-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-visual-stage {
    min-height: 220px;
  }
  .stage-capsule {
    right: 20%;
  }
  .site-footer { display: grid; }

  .page-section {
    padding-top: clamp(76px, 10vw, 110px);
    padding-bottom: clamp(76px, 10vw, 110px);
  }

  .section-intro h2 {
    font-size: clamp(38px, 7vw, 56px);
  }

  .services-intro {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .services-intro > p:last-child {
    margin: 0;
  }

  .service-cards {
    grid-template-columns: 1fr;
    margin-top: 48px;
    gap: 18px;
  }

  .service-card {
    padding: clamp(22px, 3.5vw, 28px);
  }

  .service-card h3 {
    font-size: clamp(22px, 4vw, 26px);
  }

  .service-card__visual {
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
  }

  .section-intro--team {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-intro--team > p:last-child {
    margin: 0;
  }

  .team-cards {
    grid-template-columns: 1fr;
    margin-top: 48px;
    gap: 22px;
  }

  .team-card {
    padding: clamp(20px, 3.5vw, 26px);
  }
}

@media (max-width: 580px) {
  .team-card--front {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .team-card__visual-wrap {
    width: 100%;
    justify-content: flex-start;
  }
  .team-card__portrait {
    width: min(100%, 200px);
    aspect-ratio: 4 / 4.4;
  }
  .profile-footer {
    flex-wrap: wrap;
    gap: 10px;
  }
  .form-grid, .intake-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .contact-checkmarks {
    gap: 12px;
  }
  .team-card__back-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  html { scroll-padding-top: 96px; }
  .hero { min-height: max(100svh, 600px); }
  .hero-content {
    padding-top: 104px;
    padding-bottom: 210px;
  }
  .hero-title {
    font-size: clamp(28px, 7.8vw, 36px);
    line-height: 1.05;
  }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .balloon-anchor {
    bottom: 16px;
    width: min(50vw, 190px);
  }
  .cloud--back {
    top: 24%;
    right: -100px;
    width: 310px;
    opacity: 0.55;
  }
  .cloud--wisp {
    top: 46%;
    right: -80px;
    width: 270px;
    opacity: 0.2;
  }
  .cloud--front {
    right: -90px;
    bottom: -60px;
    width: 360px;
    opacity: 0.9;
  }

  .section-intro h2 {
    font-size: clamp(34px, 9vw, 46px);
  }

  .section-intro > p:last-child {
    margin-top: 16px;
    font-size: 16px;
  }

  .service-card {
    padding: 20px 18px 24px;
  }

  .service-card__visual {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
  }

  .service-card h3 {
    font-size: 21px;
  }

  .services-cta {
    display: grid;
    gap: 20px;
  }

  .services-cta .button { width: 100%; }
}

@media (max-width: 440px) {
  :root { --page-gutter: 14px; }
  .glass-header {
    padding: 6px 8px 6px 14px;
    min-height: 56px;
    z-index: 1000;
    overflow: visible;
  }
  .brand { width: 92px; }
  .lang-switch { width: 38px; height: 38px; font-size: 11px; }
  .menu-toggle { padding: 6px 12px; min-height: 38px; gap: 6px; }
  .menu-toggle__label { font-size: 13px; }
  .hero-content {
    padding-top: 96px;
    padding-bottom: 200px;
  }
  .hero-title {
    font-size: clamp(24px, 7vw, 30px);
    line-height: 1.06;
  }
  .hero-copy { font-size: 14.5px; }
  .team-card { padding: 18px 16px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .team-card--front::before {
    display: none !important;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .glass-header, .primary-nav[data-open="true"] {
    background: rgb(235 247 254 / 0.97);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* Shared legal pages (Impressum & Datenschutz) */
body.legal-page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  color: var(--brand-navy);
  background: radial-gradient(circle at 50% -15%, var(--sky-mid) 0%, #d8eefa 32%, var(--sky-light) 65%, #f4fafe 100%);
  background-attachment: fixed;
}

.legal-main {
  flex: 1;
  width: calc(100% - (2 * var(--page-gutter)));
  max-width: 980px;
  margin: 0 auto;
  padding-top: clamp(120px, 12vw, 150px);
  padding-bottom: clamp(60px, 8vw, 100px);
}

.legal-page-header {
  margin-bottom: clamp(24px, 3vw, 36px);
}

.legal-page-header h1 {
  margin: 0;
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 550;
  letter-spacing: -0.04em;
  color: var(--brand-navy-dark);
  line-height: 1.12;
}

.legal-glass-card {
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid rgb(255 255 255 / 0.85);
  border-radius: 28px;
  background: rgb(255 255 255 / 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 50px rgb(30 65 124 / 0.05), inset 0 1px 0 rgb(255 255 255 / 0.95);
}

.legal-content h2 {
  margin: 40px 0 14px;
  font-size: clamp(21px, 2vw, 25px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--brand-navy-dark);
  line-height: 1.25;
}

.legal-content h3 {
  margin: 28px 0 10px;
  font-size: clamp(17px, 1.4vw, 19px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--brand-navy);
  line-height: 1.35;
}

.legal-content h3:first-child,
.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin: 0 0 18px;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.7;
}

.legal-content ul {
  margin: 0 0 20px;
  padding-left: 24px;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.7;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content p:last-child,
.legal-content ul:last-child {
  margin-bottom: 0;
}

.legal-content strong {
  color: var(--brand-navy-dark);
  font-weight: 600;
}

.legal-content a {
  color: var(--brand-navy);
  text-decoration: underline;
  text-decoration-color: var(--brand-sage);
  text-underline-offset: 3px;
  transition: color 200ms ease, text-decoration-color 200ms ease;
}

.legal-content a:hover {
  color: var(--brand-navy-dark);
  text-decoration-color: var(--brand-navy-dark);
}

.legal-footer-wrap {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--page-gutter) 36px;
}

.animate-fade-up { animation: reveal-up 760ms var(--ease-out) both; }
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

/* Multi-language content visibility */
[data-language="de"] .lang-en,
html:not([data-language="en"]) .lang-en {
  display: none !important;
}
[data-language="en"] .lang-de {
  display: none !important;
}
