.world-projects {
  position: relative;
  isolation: isolate;
  padding: clamp(30px, 3.8vh, 48px) 0 clamp(24px, 3vh, 36px);
  background: #fff url('/assets/images/world-projects-tech.svg') center / 100% 100% no-repeat;
}
#projektkompetenz.world-projects { scroll-margin-top: -24px; }
.world-projects > .container {
  position: relative;
  width: min(1580px, calc(100% - 2 * clamp(32px, 10.9vw, 220px)));
}

.world-projects-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 6.5vw, 108px);
  margin-bottom: 0;
  padding-bottom: clamp(18px, 2.4vh, 28px);
  border-bottom: 1px solid #d4dde3;
}
.world-projects-heading .eyebrow {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 20px;
  font-size: clamp(.95rem, 1.1vw, 1.15rem);
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: .1em;
}
.world-projects-heading .eyebrow::before {
  content: '';
  flex: 0 0 44px;
  height: 3px;
  background: var(--color-red);
}

.world-projects-heading h2 {
  margin: 0;
  color: #19262d;
  font-size: clamp(2rem, 3.12vw, 3.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.04em;
}
.world-projects-heading h2 > span { color: var(--color-red); }

.world-projects-intro { justify-self: end; max-width: 520px; padding-top: clamp(12px, 1.8vh, 24px); }
.world-projects-intro > p {
  margin: 0;
  color: #60707c;
  font-size: 1rem;
  line-height: 1.48;
}
.world-projects-intro .text-link { min-height: 32px; margin-top: 10px; font-size: 1rem; font-weight: 700; gap: 14px; }

.company-home {
  position: relative;
  isolation: isolate;
  padding: clamp(28px, 3.4vh, 40px) 0 clamp(20px, 2.4vh, 28px);
  border-top: 1px solid var(--color-line);
  background: #fff url('/assets/images/company-tech.svg?v=4') center / 100% 100% no-repeat;
}
#unternehmen.company-home { scroll-margin-top: -24px; }
.company-home > .container {
  position: relative;
  z-index: 1;
  width: min(1560px, calc(100% - 2 * clamp(32px, calc(25vw - 200px), 240px)));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
.company-home-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 4.3vw, 76px);
  margin-bottom: 6px;
}
.company-home-heading .eyebrow {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: .12em;
  font-weight: 750;
}
.company-home-heading .eyebrow::before,
.company-home-signature::before {
  content: '';
  flex: 0 0 28px;
  height: 2px;
  background: var(--color-red);
}
.company-home-heading h2 {
  margin: 0;
  color: var(--color-ink);
  font-size: clamp(2.1rem, 3.5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.04em;
  font-weight: 700;
}
.company-home-heading h2 > span { color: var(--color-red); }
.company-home-intro > p {
  margin: 0;
  color: var(--color-muted);
  font-size: .94rem;
  line-height: 1.48;
}
.company-home-intro > p + p { margin-top: 12px; }
.company-home-intro .text-link {
  margin-top: 4px;
  min-height: 30px;
  font-size: .94rem;
  font-weight: 700;
}
.company-home-photo {
  position: relative;
  min-height: 0;
  margin: 0;
  aspect-ratio: 2.85;
  overflow: hidden;
  border-radius: 5px;
  background: #e8eff2;
}
.company-home-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.company-home-photo figcaption {
  position: absolute;
  left: 24px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid rgba(220, 225, 227, .65);
  border-radius: 5px;
  background: #fff;
  color: var(--color-ink);
  font-size: .8rem;
  font-weight: 750;
  box-shadow: 0 4px 15px rgba(17, 23, 25, .08);
}
.company-home-photo figcaption svg { flex: 0 0 16px; color: var(--color-red); }
.company-home-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}
.company-home-principle {
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 1.7vw, 28px);
  min-width: 0;
  min-height: 128px;
  padding: 20px 26px;
  border: 1px solid #e5e9eb;
  border-radius: 5px;
  background: linear-gradient(120deg, #fff 45%, #fcfdfe);
  box-shadow: 0 9px 24px rgba(25, 39, 47, .045);
}
.company-home-icon {
  display: grid;
  place-items: center;
  flex: 0 0 60px;
  height: 60px;
}
.company-home-icon > img { width: calc(100% - 6px); height: calc(100% - 6px); }
.company-home-principles h3 {
  margin: 3px 0 7px;
  color: var(--color-ink);
  font-size: 1.08rem;
  line-height: 1.3;
  letter-spacing: -.025em;
  font-weight: 700;
}
.company-home-principles p {
  margin: 0;
  color: var(--color-muted);
  font-size: .88rem;
  line-height: 1.48;
}
.company-home-signature {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0 0 0 -50px;
  color: #7c888f;
  font-size: .76rem;
  line-height: 1.4;
}
.world-projects { border-top: 1px solid var(--color-line); }
.world-projects-toolbar { display: flex; justify-content: flex-end; align-items: center; padding: 16px 0 0; }
.world-projects-toolbar > p { display: flex; align-items: center; gap: 20px; margin: 0; color: #60707c; font-size: .82rem; line-height: 1.4; }
.world-projects-toolbar > p > span { flex: 0 0 20px; height: 2px; background: var(--color-red); rotate: 45deg; }
.world-projects-map-area { position: relative; }
.world-projects-legend { position: relative; z-index: 1; display: flex; align-items: center; gap: 30px; margin-top: 10px; padding: 4px; }
.world-projects-legend > div { display: flex; align-items: flex-start; gap: 22px; }
.world-projects-legend > div + div { padding-left: 30px; border-left: 1px solid #cbd5dd; }
.world-projects-legend strong, .world-projects-legend > div > span > span { display: block; line-height: 1.4; font-size: .9rem; }
.world-projects-legend strong { color: #19262d; font-weight: 750; }
.world-projects-legend > div > span > span { margin-top: 3px; color: #60707c; font-size: .85rem; }
.world-projects-legend .world-projects-symbol { width: 14px; height: 14px; margin-top: 5px; border-width: 2px; box-shadow: 0 0 0 4px rgba(var(--color-red-rgb), .09); }
.world-projects-legend .world-projects-symbol--hq { width: 24px; height: 24px; margin-top: 0; border: 3px solid #fff; box-shadow: 0 0 0 3px rgba(var(--color-red-rgb), .5); }
.world-projects-map { position: relative; width: 100%; background: #fff; isolation: isolate; }
.world-projects-map:focus-visible { outline-offset: 6px; }
.world-projects-map > img { display: block; width: 100%; height: auto; }
.world-projects-points { position: absolute; inset: 0 0 auto; aspect-ratio: 1672 / 941; }
.world-projects-point {
  position: absolute; top: var(--y); left: var(--x);
  display: grid; place-items: center; width: 30px; height: 30px; padding: 0;
  border: 0; border-radius: 50%; background: transparent;
  transform: translate(-50%, -50%); cursor: pointer; touch-action: manipulation;
}
.world-projects-symbol {
  position: relative; z-index: 1;
  display: inline-block; flex: 0 0 auto; width: 8px; height: 8px;
  background: #8e9291; border: 1.5px solid #fff; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(41, 49, 51, 0.2);
  transition: box-shadow 180ms ease, background-color 180ms ease;
}
/* Keep neighboring central European markers individually reachable. */
.world-projects-point[data-location="tschechien"],
.world-projects-point[data-location="europa-schraenke"] { width: 16px; height: 16px; }
.world-projects-symbol--hq { width: 13px; height: 13px; border-radius: 50%; border: 2px solid #fff; background: var(--color-red); box-shadow: 0 0 0 2px var(--color-red); transform: none; }
.world-projects-point::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--color-red); pointer-events: none;
  transform: translate(-50%, -50%); opacity: 0.22;
  animation: project-point-pulse 3s ease-in-out infinite;
}
.world-projects-point--hq::before {
  width: 28px; height: 28px;
  animation: headquarters-halo 2s ease-in-out infinite;
}
.world-projects-point--hq .world-projects-symbol {
  animation: headquarters-heartbeat 2s ease-in-out infinite;
}
@keyframes headquarters-heartbeat {
  0%, 36%, 100% { transform: scale(1); }
  12% { transform: scale(1.22); }
  20% { transform: scale(1); }
  28% { transform: scale(1.14); }
}
@keyframes headquarters-halo {
  0%, 40%, 100% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.13; }
  12% { transform: translate(-50%, -50%) scale(1.12); opacity: 0.28; }
  20% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.15; }
  28% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.23; }
}
@keyframes project-point-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.16; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.3; }
}
.world-projects-point:hover,
.world-projects-point:focus-visible,
.world-projects-point.is-active { z-index: 3; }
.world-projects-point:hover .world-projects-symbol,
.world-projects-point:focus-visible .world-projects-symbol,
.world-projects-point.is-active .world-projects-symbol { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(var(--color-red-rgb), 0.45); }
.world-projects-tooltip {
  position: absolute; z-index: 5; width: max-content; max-width: min(300px, calc(100% - 16px));
  padding: 18px 22px; background: #293133; color: #fff; border-top: 3px solid var(--color-red);
  border-radius: 3px; box-shadow: 0 12px 35px rgba(17, 23, 25, 0.2);
}
.world-projects-tooltip[hidden] { display: none; }
.world-projects-tooltip > span { display: block; margin-bottom: 7px; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #dce1e3; }
.world-projects-tooltip strong { display: block; font-size: 0.98rem; line-height: 1.4; }
.world-projects-tooltip p { margin: 6px 0 0; font-size: 0.8rem; line-height: 1.5; color: #edf1f2; }
.world-projects-mobile-picker { display: none; }

/* Each desktop section occupies the available screen below the fixed header. */
@media (min-width: 1041px) and (min-height: 650px) {
  #projektkompetenz.world-projects { scroll-margin-top: -24px; }
  .world-projects {
    height: calc(100svh - var(--header-height));
    padding-block: clamp(24px, 3.4vh, 40px) clamp(20px, 2.5vh, 30px);
    scroll-margin-top: -24px;
  }
  .world-projects > .container { height: 100%; min-height: 0; }
  .world-projects-heading h2 { font-size: clamp(1.95rem, min(3.12vw, 5.7vh), 3.8rem); }
  .world-projects-intro > p { font-size: clamp(.875rem, 1.7vh, 1rem); }

  .company-home { height: calc(100svh - var(--header-height)); }
  .company-home > .container {
    height: 100%;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: clamp(12px, 1.7vh, 18px);
  }
  .company-home-heading { margin-bottom: clamp(4px, .85vh, 10px); }
  .company-home-heading h2 { font-size: clamp(2rem, min(3.5vw, 6.2vh), 4rem); }
  .company-home-heading .eyebrow { margin-bottom: clamp(12px, 1.9vh, 20px); }
  .company-home-intro > p { font-size: clamp(.84rem, 1.6vh, .98rem); }
  .company-home-photo { aspect-ratio: auto; }
  .company-home-principle {
    min-height: clamp(110px, 13.6vh, 140px);
    padding: clamp(16px, 2.1vh, 22px) clamp(18px, 1.6vw, 28px);
  }
}

@media (max-width: 1530px) {
  .company-home-signature { margin-left: 0; }
  .company-home-principle { gap: 18px; padding-inline: 20px; }
  .company-home-icon { flex-basis: 54px; height: 54px; }
}

@media (min-width: 1041px) and (min-height: 650px) and (max-height: 780px) {
  .world-projects > .container { width: calc(100% - 64px); }
  .world-projects-heading { padding-bottom: 16px; gap: 40px; }
  .world-projects-heading .eyebrow { margin-bottom: 14px; }
  .world-projects-intro { padding-top: 0; }
  .world-projects-intro .text-link { font-size: .9rem; margin-top: 6px; }
  .world-projects-legend { flex-direction: column; align-items: flex-start; gap: 12px; }
  .world-projects-legend > div { display: grid; grid-template-columns: 24px 1fr; gap: 14px; }
  .world-projects-legend > div + div { padding-left: 0; border-left: 0; }
  .world-projects-legend .world-projects-symbol { justify-self: center; }
  .world-projects-legend strong { font-size: .8rem; }
  .world-projects-legend > div > span > span { font-size: .76rem; }
  .company-home { padding-block: 22px 18px; }
  .company-home > .container { gap: 12px; }
  .company-home-heading { margin-bottom: 2px; gap: 28px; grid-template-columns: 1.12fr 1fr; }
  .company-home-heading .eyebrow { font-size: .82rem; margin-bottom: 14px; gap: 15px; }
  .company-home-heading h2 { font-size: clamp(1.8rem, min(2.9vw, 5vh), 2.35rem); }
  .company-home-intro > p { font-size: .84rem; line-height: 1.4; }
  .company-home-intro > p + p { margin-top: 10px; }
  .company-home-intro .text-link { font-size: .875rem; margin-top: 3px; }
  .company-home-principle { padding: 14px 16px; min-height: 100px; gap: 14px; }
  .company-home-icon { flex-basis: 44px; height: 44px; }
  .company-home-principles h3 { font-size: .94rem; margin: 2px 0 6px; }
  .company-home-principles p { font-size: .81rem; }
  .company-home-signature { margin-top: 0; font-size: .72rem; }
  .company-home-photo > img { object-position: center 48%; }
  .company-home-photo figcaption { left: 18px; bottom: 14px; padding: 8px 10px; }
}

@media (max-width: 1040px) {
  .company-home-heading { gap: 30px; }
  .company-home-heading .eyebrow { font-size: .86rem; gap: 14px; }
  .company-home-heading h2 { font-size: clamp(2rem, 4vw, 2.6rem); }
  .company-home-intro > p { font-size: .9rem; }
  .company-home-principle { flex-direction: column; gap: 12px; padding: 20px; }
  .company-home-icon { flex-basis: 54px; width: 54px; }
  .company-home-photo { aspect-ratio: 2.5; }
}

@media (min-width: 1041px) and (min-height: 650px) {
  .world-projects > .container {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
  }
  .world-projects-toolbar { padding-block: 12px 0; }
  .world-projects-map-area { container-type: size; min-height: 0; display: grid; place-items: center; }
  .world-projects-map { width: min(100%, calc(100cqh * 1672 / 941)); }
  .world-projects-legend { position: absolute; left: 0; bottom: 0; margin: 0; }
  .world-projects-point { width: 18px; height: 18px; }
  .world-projects-mobile-picker { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 8px; }
  .world-projects-mobile-picker label { color: #293133; font-size: 0.75rem; font-weight: 700; }
  .world-projects-mobile-picker select { width: 360px; min-width: 0; max-width: 100%; min-height: 36px; padding: 7px 10px; color: #293133; background: #fff; border: 1px solid var(--color-line-strong); border-radius: 3px; font-size: 0.8rem; }
}

@media (max-width: 1040px) {
  .world-projects > .container { width: calc(100% - 64px); }
  .world-projects-intro { justify-self: stretch; max-width: none; padding-top: 0; }
  .world-projects-heading { gap: 32px; }
  .world-projects-heading h2 { font-size: clamp(1.75rem, 3.3vw, 2.4rem); }
  .world-projects-heading .eyebrow { font-size: .86rem; gap: 16px; }
  .world-projects-heading .eyebrow::before { flex-basis: 30px; }
  .world-projects-intro > p { font-size: .9rem; }
  .world-projects-intro .text-link { font-size: .9rem; }
  .world-projects-legend { margin-top: 16px; }
  .world-projects-point { width: 22px; height: 22px; }
  .world-projects-tooltip { position: relative; top: auto !important; left: auto !important; width: 100%; max-width: none; margin-top: 18px; }
  .world-projects-mobile-picker { display: grid; gap: 10px; margin-top: 24px; }
  .world-projects-mobile-picker label { color: #293133; font-size: 0.8rem; font-weight: 700; }
  .world-projects-mobile-picker select { min-width: 0; width: 100%; min-height: 48px; padding: 12px; color: #293133; background: #fff; border: 1px solid var(--color-line-strong); border-radius: 3px; font-size: 0.9rem; }
}
@media (max-width: 760px) {
  .world-projects { background-size: auto 100%; }
  .world-projects > .container { width: calc(100% - 32px); }
  .world-projects-heading { grid-template-columns: 1fr; gap: 22px; margin-bottom: 0; }
  .world-projects-heading h2 { font-size: clamp(1.7rem, 6.6vw, 2.8rem); }
  .world-projects-heading .eyebrow { margin-bottom: 16px; font-size: .82rem; }
  .world-projects-legend { gap: 18px; padding: 4px; }
  .world-projects-legend > div { gap: 14px; }
  .world-projects-legend > div + div { padding-left: 18px; }
  .world-projects-legend strong { font-size: .8rem; }
  .world-projects-legend > div > span > span { font-size: .76rem; }
  .company-home { background-size: auto 100%; }
  .company-home > .container { width: calc(100% - 32px); gap: 16px; }
  .company-home-heading { grid-template-columns: 1fr; gap: 22px; margin-bottom: 8px; }
  .company-home-heading .eyebrow { font-size: .74rem; letter-spacing: .08em; margin-bottom: 18px; gap: 12px; }
  .company-home-heading .eyebrow::before { flex-basis: 20px; }
  .company-home-heading h2 { font-size: clamp(1.8rem, 6.9vw, 3rem); }
  .company-home-photo { aspect-ratio: 1.65; }
  .company-home-photo figcaption { left: 12px; bottom: 12px; padding: 8px 10px; gap: 6px; font-size: .7rem; }
  .company-home-principles { grid-template-columns: 1fr; gap: 12px; }
  .company-home-principle { flex-direction: row; min-height: 0; gap: 20px; padding: 22px 20px; }
  .company-home-principles h3 { margin-top: 3px; font-size: 1rem; }
  .company-home-signature { margin-top: 6px; gap: 14px; font-size: .72rem; }
  .world-projects-toolbar { padding-bottom: 8px; }
  .world-projects-toolbar > p { font-size: .72rem; gap: 12px; }
  .world-projects-point .world-projects-symbol { width: 7px; height: 7px; border-width: 1px; }
  .world-projects-point .world-projects-symbol--hq { width: 10px; height: 10px; }
  .world-projects-point::before { width: 14px; height: 14px; }
  .world-projects-point--hq::before { width: 22px; height: 22px; }
  .world-projects-tooltip { padding: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .world-projects-symbol { transition: none; }
  .world-projects-point::before,
  .world-projects-point--hq .world-projects-symbol { animation: none; }
}
