:root {
  --color-black: #000;
  --color-white: #fff;
  --color-purple-soft: #bc9bc8;
  --color-purple: #82368c;
  --color-lime: #d7ea3d;
  --color-text-muted: #5e6266;
  --color-bluegrey: #f0f4f7;
  --page-width: 1200px;
  --grid-width: 1200px;
  --shadow-nav: 0 12px 26px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--color-white);
  color: var(--color-black);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body.has-info-panel {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

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

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  height: 120px;
  pointer-events: none;
}

.brand {
  position: fixed;
  top: 52px;
  left: clamp(28px, 3vw, 56px);
  color: var(--color-black);
  font-size: clamp(34px, 3vw, 50px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.08em;
  pointer-events: auto;
}

.brand-mark {
  display: block;
  transform: scaleX(1.18);
  transform-origin: left center;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: 92px;
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(340px, 28vw, 520px);
  overflow: hidden;
  background: var(--color-purple-soft);
}

.hero-copy {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(340px, 28vw, 520px);
  padding: 96px 8vw 64px;
}

h1 {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--color-black);
  font-size: clamp(3.1rem, 4.8vw, 5.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero-oval {
  position: absolute;
  z-index: 1;
  width: clamp(240px, 17vw, 360px);
  height: clamp(88px, 6.8vw, 136px);
  border: clamp(4px, 0.35vw, 7px) solid var(--color-lime);
  border-radius: 50%;
  transform: translate(112px, 14px) rotate(-2deg);
}

.hero-oval::after {
  position: absolute;
  right: 38px;
  bottom: 10px;
  width: 72%;
  height: 30%;
  border-bottom: clamp(4px, 0.32vw, 6px) solid var(--color-lime);
  border-radius: 50%;
  transform: rotate(10deg);
  content: "";
}

.hero-arrows {
  position: absolute;
  z-index: 3;
  max-width: 190px;
  transform: translate(225px, -90px) rotate(10deg);
  color: var(--color-black);
  font-size: clamp(2rem, 2.8vw, 3.4rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: 0.08em;
  word-spacing: 12px;
}

.hero-visual {
  min-height: clamp(340px, 28vw, 520px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03)),
    url("https://imap-institut.de/_next/image/?url=%2Fimap-images%2F2024%2F07%2Fimap-hero-unser-team-desktop.jpg%3Fv%3D2024-07-10T16%253A53%253A21&w=1200&q=85")
      center / cover no-repeat;
}

.toolbar,
.tool-section,
.page-disclaimer {
  width: min(var(--grid-width), calc(100vw - 48px));
  margin-right: auto;
  margin-left: auto;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 76px;
  margin-bottom: 32px;
}

.search {
  flex: 1 1 auto;
}

.search input {
  width: min(420px, 100%);
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--color-bluegrey);
  padding: 0 22px;
  color: var(--color-black);
  outline: 2px solid transparent;
}

.search input:focus {
  outline-color: var(--color-purple-soft);
}

.team-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 420px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: rgba(240, 244, 247, 0.68);
  padding: 8px 10px 8px 16px;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.team-contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  background: var(--color-black);
  padding: 0 13px;
  color: var(--color-white);
  font-size: 12px;
  font-weight: 700;
}

.team-contact a:hover {
  background: var(--color-purple);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 36px;
  row-gap: 36px;
}

.tool-card {
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--portrait-bg, var(--color-purple-soft));
  cursor: pointer;
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
}

.tool-card:focus-visible {
  outline: 4px solid var(--color-lime);
  outline-offset: 6px;
}

.tool-card:hover {
  z-index: 5;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.24);
  transform: scale(1.045);
}

.tool-card:hover .tool-portrait,
.tool-card:focus-visible .tool-portrait {
  transform: scale(1.025);
}

.tool-portrait {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 29%, rgba(255, 255, 255, 0.54) 0 13%, transparent 13.5%),
    radial-gradient(ellipse at 50% 98%, rgba(0, 0, 0, 0.24) 0 38%, transparent 38.5%),
    var(--portrait-bg, var(--color-purple-soft));
  color: var(--portrait-color, var(--color-black));
  transition: transform 180ms ease;
}

.tool-portrait::before {
  position: absolute;
  bottom: 16%;
  left: 50%;
  width: 44%;
  height: 49%;
  border-radius: 45% 45% 0 0;
  background: color-mix(in srgb, var(--portrait-color, #000) 88%, transparent);
  transform: translateX(-50%);
  content: "";
}

.tool-card.has-image .tool-portrait {
  background: var(--portrait-bg, var(--color-purple-soft));
}

.tool-card.has-image .tool-portrait::before {
  content: none;
}

.tool-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.tool-initials {
  position: relative;
  z-index: 1;
  margin-bottom: 18%;
  color: var(--portrait-bg, var(--color-purple-soft));
  font-size: clamp(2.4rem, 3.4vw, 3.8rem);
  font-weight: 700;
  line-height: 1;
}

.tool-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 25%;
  background: rgba(0, 0, 0, 0.58);
  content: "";
}

.info-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-black);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.info-button:hover,
.info-button:focus-visible {
  background: var(--color-lime);
  outline: none;
}

.tool-name,
.tool-role {
  position: absolute;
  right: 10px;
  left: 10px;
  z-index: 2;
  margin: 0;
  text-align: center;
  line-height: 1.08;
}

.tool-name {
  bottom: 43px;
  color: var(--color-white);
  font-size: clamp(0.84rem, 0.9vw, 1rem);
  font-weight: 700;
}

.tool-role {
  bottom: 22px;
  color: var(--color-lime);
  font-size: clamp(0.72rem, 0.78vw, 0.86rem);
  font-weight: 700;
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  background: var(--color-bluegrey);
  padding: 32px;
  color: var(--color-black);
  font-size: 18px;
}

.page-disclaimer {
  margin-top: 34px;
  color: rgba(0, 0, 0, 0.38);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.info-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
}

.info-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.54);
  cursor: pointer;
}

.info-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(230px, 340px) minmax(0, 520px);
  width: min(920px, 100%);
  max-height: min(820px, calc(100vh - 56px));
  overflow: auto;
  background: var(--color-white);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-black);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.info-panel-portrait {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 620px;
  background:
    radial-gradient(circle at 50% 27%, rgba(255, 255, 255, 0.52) 0 12%, transparent 12.5%),
    radial-gradient(ellipse at 50% 94%, rgba(0, 0, 0, 0.26) 0 38%, transparent 38.5%),
    var(--portrait-bg, var(--color-purple-soft));
  color: var(--portrait-color, var(--color-black));
  font-size: clamp(4rem, 6vw, 6rem);
  font-weight: 700;
}

.info-panel-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  object-position: center top;
}

.info-panel-content {
  padding: 74px 58px 56px;
}

.detail-kicker {
  margin: 0 0 8px;
  color: var(--color-lime);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.info-panel h2 {
  margin: 0 0 4px;
  color: var(--color-black);
  font-size: clamp(2.2rem, 3.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.detail-role {
  margin: 0 0 28px;
  color: var(--color-black);
  font-size: 20px;
  line-height: 1.4;
}

.detail-summary {
  margin: 0 0 34px;
  color: var(--color-black);
  font-size: 18px;
  line-height: 1.6;
}

.detail-block {
  margin: 0 0 30px;
}

.detail-block h3 {
  margin: 0 0 12px;
  color: var(--color-black);
  font-size: 20px;
  font-weight: 700;
}

.detail-block ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-block li {
  position: relative;
  padding-left: 22px;
  color: var(--color-black);
}

.detail-block li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-lime);
  content: "";
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  background: var(--color-black);
  padding: 0 24px;
  color: var(--color-white);
  font-size: 15px;
  font-weight: 700;
}

.primary-link:hover {
  background: var(--color-purple);
}

.primary-link.is-disabled,
.primary-link.is-disabled:hover {
  background: #d8d8d8;
  color: var(--color-text-muted);
  cursor: default;
  pointer-events: none;
}

@media (max-width: 980px) {
  .brand {
    top: 28px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    min-height: 520px;
  }

  .hero-copy {
    min-height: 320px;
  }

  .hero-visual {
    min-height: 200px;
  }

  .tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .info-panel {
    grid-template-columns: 1fr;
  }

  .info-panel-portrait {
    min-height: 360px;
  }
}

@media (max-width: 700px) {
  .site-header {
    height: 128px;
  }

  .brand {
    top: 26px;
    left: 24px;
    font-size: 34px;
  }

  .hero-copy {
    align-items: end;
    justify-content: start;
    min-height: 310px;
    padding: 135px 24px 44px;
  }

  .hero-oval {
    transform: translate(58px, 8px) rotate(-2deg);
  }

  .hero-arrows {
    transform: translate(160px, -76px) rotate(10deg);
  }

  .toolbar,
  .tool-section,
  .page-disclaimer {
    width: calc(100vw - 40px);
  }

  .toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .search,
  .search input,
  .team-contact {
    width: 100%;
    max-width: none;
  }

  .team-contact {
    justify-content: space-between;
    white-space: normal;
  }

  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 18px;
  }

  .info-overlay {
    padding: 16px;
  }

  .info-panel-content {
    padding: 58px 28px 36px;
  }
}

@media (max-width: 460px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
}
