/* ==========================================================================
   Penke Reineward – HEATEXPO-Microsite
   Aufbau: 1 Fonts · 2 Tokens · 3 Reset/Basis · 4 Layout · 5 Komponenten
           6 Sektionen · 7 Popup · 8 Motion/Responsive
   ========================================================================== */

/* 1 · Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: "Big Shoulders";
  src: url("../fonts/big-shoulders.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans.woff2") format("woff2");
  font-weight: 100 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

/* 2 · Tokens --------------------------------------------------------------- */
:root {
  /* Farben (aus dem Print-CD, fürs Web gewichtet) */
  --navy-950: #0d1626;
  --navy-900: #192947;
  --navy-800: #243c68;
  --blue-600: #304f8a;
  --blue-500: #3b62ab;
  --blue-300: #88a3d6;
  --blue-50: #e1e8f5;
  --lime-500: #b7cd1a;
  --lime-300: #d4e84a;
  --grey-50: #f5f5f5;
  --grey-200: #dcdbdb;
  --grey-500: #908f8f;
  --ink: #302f2f;
  --ink-soft: #504f4f;
  --white: #fff;

  /* Schrift */
  --font-display: "Big Shoulders", "Arial Narrow", sans-serif;
  --font-text: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Typo-Skala */
  --fs-small: 0.875rem;
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-lead: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
  --fs-h3: clamp(1.3rem, 1.1rem + 0.7vw, 1.75rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);

  /* Raum */
  --gutter: clamp(0.75rem, 2vw, 1.5rem);
  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --section-y: clamp(5rem, 11vw, 10rem);
  --container: 80rem;

  /* Radien: Hierarchie statt Einheitsradius */
  --r-xl: clamp(1.25rem, 2vw, 1.75rem);
  --r-lg: 1.25rem;
  --r-md: 0.75rem;
  --r-pill: 999px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --focus: var(--blue-500);
}

/* 3 · Reset & Basis --------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

/* :where() hält die Spezifität bei 0, damit Komponenten eigene Abstände setzen können */
:where(ul[class], ol[class]) {
  padding: 0;
  list-style: none;
}

h2,
h3 {
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.12;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-pill);
  background: var(--lime-500);
  color: var(--navy-950);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-optical-sizing: auto;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: 0.002em;
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}

/* 4 · Layout ---------------------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--pad), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

/* Abgerundete, eingerückte Flächen – die Grundform der Seite */
.hero__stage,
.event__stage,
.section--dark,
.section--mist,
.statement,
.contact__stage {
  margin-inline: var(--gutter);
  border-radius: var(--r-xl);
}

.section--dark,
.event__stage,
.contact__stage,
.hero__stage {
  --focus: var(--lime-500);
  background: var(--navy-950);
  color: var(--white);
}

/* Variante in CD-Blau (Beratung) */
.section--blue {
  background: var(--blue-500);
}

.section--mist {
  background: var(--grey-50);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head h2 {
  font-size: var(--fs-h2);
}

.section-head p {
  margin-top: 1rem;
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: var(--fs-lead);
}

.section-head--split {
  display: grid;
  max-width: none;
  gap: 1rem 4rem;
  align-items: end;
}

@media (min-width: 64em) {
  .section-head--split {
    grid-template-columns: 1fr 1fr;
  }

  .section-head--split p {
    margin-top: 0;
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

/* 5 · Komponenten ------------------------------------------------------------ */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem 0.9rem;
  border: 0;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-out);
}

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

.btn--lime {
  background: var(--lime-500);
  color: var(--navy-950);
}

.btn--lime:hover {
  background: var(--lime-300);
}

.btn--contact {
  padding: 0.3rem 1.15rem 0.3rem 0.3rem;
  background: var(--lime-500);
  color: var(--navy-950);
  font-size: 1rem;
}

.btn--contact:hover {
  background: var(--lime-300);
}

.btn__avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
  cursor: pointer;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.text-link:hover {
  text-decoration-color: var(--blue-500);
  color: var(--blue-500);
}

.text-link--light:hover {
  color: var(--lime-500);
  text-decoration-color: var(--lime-500);
}

.text-link--icon .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--grey-200);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy-950);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--navy-950);
}

/* Lime-Rahmen (Signatur aus dem Keyvisual). Wird per JS als SVG eingesetzt. */
[data-frame] {
  position: relative;
}

.frame {
  --frame-gap: 0px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  border-radius: 1.5rem; /* wird per JS als rx übernommen */
  overflow: visible;
  pointer-events: none;
}

.frame rect {
  fill: none;
  stroke: var(--lime-500);
  stroke-width: 1.5;
}

/* Laufband */
.marquee {
  overflow: hidden;
  margin-top: clamp(3rem, 6vw, 5rem);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__list {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-right: 3rem;
}

.marquee__list li {
  display: flex;
  align-items: center;
  gap: 3rem;
  color: var(--grey-500);
  font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  font-weight: 300;
  white-space: nowrap;
}

.marquee__list li::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--blue-300);
}

.marquee--logos {
  margin: 0 0 clamp(3.5rem, 7vw, 6rem);
}

.marquee--logos .marquee__list {
  gap: 4.5rem;
  padding-right: 4.5rem;
}

.marquee--logos li::after {
  content: none;
}

.marquee--logos img {
  width: auto;
  height: 2rem;
  opacity: 0.85;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Bento-Kacheln */
.bento {
  display: grid;
  gap: 1rem;
}

.tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
  min-height: 18rem;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  overflow: hidden;
  border-radius: var(--r-lg);
}

.tile h3 {
  font-size: var(--fs-h3);
}

.tile p {
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.55;
}

.tile--photo {
  color: var(--white);
  background: var(--navy-900);
}

.tile--photo > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.tile--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgb(13 22 38 / 0.9) 0%, rgb(13 22 38 / 0.45) 38%, rgb(13 22 38 / 0) 65%);
}

.tile--photo:hover > img {
  transform: scale(1.04);
}

.tile--photo p {
  color: rgb(255 255 255 / 0.86);
}

.tile--glass::after {
  background: linear-gradient(to top, rgb(13 22 38 / 0.45), rgb(13 22 38 / 0) 55%);
}

.tile--glass .tile__body {
  display: grid;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: var(--r-md);
  background: rgb(13 22 38 / 0.42);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}

.tile--photo:not(.tile--glass) .tile__body {
  display: grid;
  gap: 0.75rem;
}

.tile--blue {
  --focus: var(--lime-500);
  background: var(--blue-500);
  color: var(--white);
}

.tile--blue p {
  color: rgb(255 255 255 / 0.86);
}

/* Punktraster als Verweis auf das Logo */
.tile--dots::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle, rgb(255 255 255 / 0.22) 1.6px, transparent 1.8px) 0 0 / 14px 14px;
  -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 55%);
  mask-image: linear-gradient(200deg, #000 0%, transparent 55%);
}

.tile--paper {
  background: var(--grey-50);
}

.tile--paper p,
.tile--mist p,
.tile--outline p {
  color: var(--ink-soft);
}

.tile--mist {
  background: var(--blue-50);
}

.tile--outline {
  border: 1px solid var(--grey-200);
}

.tile--texture .tile__texture {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: luminosity;
  opacity: 0.32;
}

.tile--texture .tile__body {
  display: grid;
  gap: 0.75rem;
}

.tile--lime {
  background: var(--lime-500);
  color: var(--navy-950);
  justify-content: space-between;
}

.tile .tile__year {
  font-size: clamp(4.5rem, 3rem + 4vw, 7rem);
}

.tile--lime p:not(.tile__year) {
  font-weight: 500;
}

/* Kontaktaktionen (Popup und Kontaktkarte) */
.contact-actions {
  display: grid;
  gap: 0.5rem;
}

.contact-action {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-md);
  background: var(--grey-50);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.contact-action:hover {
  background: var(--blue-50);
}

.contact-action .icon {
  color: var(--blue-500);
}

.contact-action strong {
  display: block;
  font-weight: 600;
  line-height: 1.3;
}

.contact-action strong + span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.4;
}

/* 6 · Sektionen -------------------------------------------------------------- */

/* Navigation */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: calc(var(--gutter) + 0.75rem) calc(var(--gutter) + 0.75rem) 0;
  pointer-events: none;
}

/* Navigation: eine feste, helle Variante auf allen Flächen */
.nav {
  --nav-fg: var(--navy-950);
  --focus: var(--blue-500);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 90rem;
  height: 4rem;
  margin-inline: auto;
  padding: 0 0.6rem 0 1.4rem;
  border: 1px solid rgb(13 22 38 / 0.08);
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.9);
  box-shadow: 0 6px 24px rgb(13 22 38 / 0.08);
  color: var(--nav-fg);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  pointer-events: auto;
}

.nav__logo {
  position: relative;
  flex: none;
  width: 8.75rem;
}

.nav__logo-img {
  width: 100%;
  height: auto;
}

.nav__menu {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
}

.nav__links {
  display: flex;
  gap: 1.75rem;
}

.nav__links a {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.88;
  transition: opacity 0.2s ease;
}

.nav__links a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.4em;
}

.nav__event {
  padding: 0.4rem 0.85rem;
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.9;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.nav .btn--contact {
  background: var(--blue-500);
  color: var(--white);
}

.nav .btn--contact:hover {
  background: var(--blue-600);
}

.nav__toggle {
  display: none;
  position: relative;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.nav__toggle-bar {
  position: absolute;
  left: 0.875rem;
  width: 1.25rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out);
}

.nav__toggle-bar:nth-of-type(2) {
  top: calc(50% - 4px);
}

.nav__toggle-bar:nth-of-type(3) {
  top: calc(50% + 3px);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-of-type(2) {
  transform: translateY(3.5px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-of-type(3) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* 01 · Hero */
.hero {
  padding-top: var(--gutter);
}

.hero__stage {
  position: relative;
  isolation: isolate;
  /* füllt den Bildschirm so, dass unten derselbe Abstand bleibt wie links und rechts */
  min-height: max(34rem, calc(100svh - 2 * var(--gutter)));
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 25% 50%; /* Techniker rechts neben der Headline */
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(13 22 38 / 0.88) 0%, rgb(13 22 38 / 0.62) 38%, rgb(13 22 38 / 0.08) 72%),
    linear-gradient(to top, rgb(13 22 38 / 0.55), rgb(13 22 38 / 0) 40%);
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2rem;
  min-height: inherit;
  padding: calc(4rem + 1.5rem + var(--gutter)) var(--pad) clamp(1.25rem, 3vw, 3rem);
}

.event-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-bottom: 1.5rem;
  gap: 0.65rem;
  padding: 0.55rem 1.05rem;
  border: 1px solid rgb(255 255 255 / 0.24);
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.1);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color 0.2s ease;
}

.event-pill:hover {
  background: rgb(255 255 255 / 0.18);
}

.event-pill__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--lime-500);
  box-shadow: 0 0 0 0 rgb(183 205 26 / 0.6);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  70%,
  100% {
    box-shadow: 0 0 0 0.6rem rgb(183 205 26 / 0);
  }
}

.hero__copy {
  width: fit-content;
  max-width: min(62rem, 100%);
  padding: clamp(1.25rem, 2.5vw, 2.25rem);
  margin-left: calc(-1 * clamp(1.25rem, 2.5vw, 2.25rem));
}

[data-frame="hero"] > .frame {
  width: calc(100% + max(6vw, 3rem));
}

.hero__title {
  /* richtet sich nach Breite UND Höhe, damit der Hero auch auf Laptops passt */
  font-size: clamp(2.75rem, min(0.5rem + 4.6vw, 9svh), 6rem);
  color: var(--white);
}

.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}

.line__inner {
  display: block;
}

.hero__lead {
  max-width: 40rem;
  margin-top: 1.75rem;
  color: rgb(255 255 255 / 0.88);
  font-size: var(--fs-lead);
}

.hero__copy .actions {
  margin-top: 2.25rem;
}

/* 02 · HEATEXPO */
.event {
  padding-top: var(--gutter);
}

.event__stage {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  padding: var(--pad);
}

.event__date {
  color: var(--lime-500);
  font-size: clamp(3.75rem, 2rem + 6vw, 8rem);
}

.event__date span {
  display: block;
}

.event__body {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
}

.event__title {
  font-size: var(--fs-h2);
}

.event__body > p {
  max-width: 36rem;
  color: rgb(255 255 255 / 0.78);
}

.facts {
  display: grid;
  gap: 1rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  padding-block: 1.25rem;
  border-block: 1px solid rgb(255 255 255 / 0.14);
}

.facts dt {
  color: var(--blue-300);
  font-size: var(--fs-small);
}

.facts dd {
  font-weight: 500;
}

.event__media {
  overflow: hidden;
  border-radius: var(--r-lg);
  aspect-ratio: 16 / 9;
}

.event__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 64em) {
  .event__stage {
    grid-template-columns: auto minmax(0, 1.25fr) minmax(0, 0.8fr);
  }

  .event__media {
    aspect-ratio: 4 / 5;
  }
}

/* 03 · Herausforderungen */
.bento--challenges {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(19rem, auto);
}

.tile--a {
  grid-column: 1 / span 6;
  grid-row: span 2;
}

.tile--b {
  grid-column: 7 / span 6;
}

.tile--c {
  grid-column: 7 / span 3;
}

.tile--d {
  grid-column: 10 / span 3;
}

.section-cta {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  color: var(--ink-soft);
  font-size: var(--fs-lead);
}

.section-cta .text-link {
  color: var(--navy-950);
}

/* 04 · Beratung */
.process {
  display: grid;
  gap: clamp(3rem, 6vw, 6rem);
}

.process__intro h2 {
  font-size: var(--fs-h2);
}

.process__intro > p {
  margin-top: 1.25rem;
  max-width: 32rem;
  color: rgb(255 255 255 / 0.75);
  font-size: var(--fs-lead);
}

.process__media {
  position: relative;
  display: none;
  margin-block: 2rem;
  overflow: hidden;
  border-radius: var(--r-lg);
  aspect-ratio: 3 / 2;
  background: var(--navy-900);
}

.process__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 1.4s var(--ease-out);
}

.process__media img.is-active {
  opacity: 1;
  transform: none;
}

.process__intro .btn {
  margin-top: 2rem;
}

html.has-dialog {
  overflow: hidden;
}

/* Schritte: Ziffer und Verbindungslinie bilden links eine Schiene.
   Jede Linie verbindet eine Ziffer mit der nächsten und füllt sich beim Scrollen. */
.step {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  column-gap: 1.5rem;
}

.step__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step__num {
  color: var(--blue-300);
  font-size: clamp(2.75rem, 2rem + 2.5vw, 4.5rem);
  line-height: 0.8;
  opacity: 0.55;
  transition: color 0.4s ease, opacity 0.4s ease;
}

.step.is-active .step__num,
.step.is-done .step__num {
  color: var(--lime-500);
  opacity: 1;
}

/* Verbindungslinie: füllt sich beim Scrollen von oben nach unten in Lime.
   Ohne Animation ist sie voll. */
.step__line {
  position: relative;
  flex: 1;
  width: 2px;
  min-height: 3rem;
  margin-block: 1.25rem;
  border-radius: 2px;
  background: rgb(255 255 255 / 0.12);
}

.step__line-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--lime-500);
  transform-origin: top;
}

/* Leuchtender Kopf an der Spitze, wird per GSAP bewegt und ein-/ausgeblendet */
.step__line-head {
  position: absolute;
  top: 0;
  left: 50%;
  width: 0.5rem;
  height: 0.5rem;
  margin: -0.25rem 0 0 -0.25rem;
  border-radius: 50%;
  background: var(--lime-500);
  box-shadow: 0 0 0.75rem 0.15rem rgb(183 205 26 / 0.65);
  opacity: 0;
}

.step__body {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding-bottom: clamp(3.5rem, 7vw, 5rem);
}

.step:last-child .step__body {
  padding-bottom: 0;
}

.step h3 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
}

.step p {
  max-width: 32rem;
  color: rgb(255 255 255 / 0.75);
  font-size: var(--fs-lead);
}

/* Beratung auf CD-Blau: Kontraste an die hellere Fläche anpassen */
.section--blue .process__intro > p,
.section--blue .step p {
  color: rgb(255 255 255 / 0.88);
}

.section--blue .step__num {
  color: var(--white);
  opacity: 0.4;
}

.section--blue .step.is-active .step__num,
.section--blue .step.is-done .step__num {
  color: var(--lime-500);
  opacity: 1;
}

.section--blue .step__line {
  background: rgb(255 255 255 / 0.22);
}

.section--blue .process__media {
  background: var(--blue-600);
}

.step__media {
  margin-top: 0.75rem;
  border-radius: var(--r-md);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (min-width: 64em) {
  .process {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }

  .process__intro {
    position: sticky;
    top: 6.5rem;
    align-self: start;
  }

  .process__media {
    display: block;
  }

  .step {
    min-height: 60vh;
  }

  .step:last-child {
    min-height: 0;
  }

  .step__media {
    display: none;
  }
}

/* 05 · Leistungen */
.bento--services {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "a a b b"
    "a a f d"
    "c e e d";
  grid-auto-rows: minmax(16.5rem, auto);
}

.svc-a { grid-area: a; }
.svc-b { grid-area: b; }
.svc-c { grid-area: c; }
.svc-d { grid-area: d; }
.svc-e { grid-area: e; }
.svc-f { grid-area: f; }

/* 06 · Referenzen */
.section--mist {
  margin-top: var(--gutter);
}

.refs__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.refs__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.refs__tab {
  padding: 0.7rem 1.25rem;
  border: 1px solid #c2c2c2;
  border-radius: var(--r-pill);
  background: transparent;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.refs__tab:hover {
  border-color: var(--navy-950);
}

.refs__tab[aria-selected="true"] {
  border-color: var(--navy-950);
  background: var(--navy-950);
  color: var(--white);
}

.refs__arrows {
  display: flex;
  gap: 0.5rem;
}

.ref {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--white);
}

/* Alle Referenzen liegen übereinander in einer Rasterzelle. So bestimmt die
   höchste die Höhe und die Seite springt beim Wechseln nicht. */
.refs__panels {
  display: grid;
}

.refs__panels > .ref {
  grid-area: 1 / 1;
}

.ref[hidden] {
  display: grid;
  visibility: hidden;
}

.ref__media {
  min-height: 16rem;
  aspect-ratio: 16 / 10;
}

.ref__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ref__body {
  display: grid;
  gap: 1.25rem;
  align-content: center;
  padding: clamp(1.75rem, 4vw, 3.5rem);
}

.ref__logo {
  width: auto;
  height: 1.75rem;
}

.ref h3 {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
}

.ref__body > p {
  color: var(--ink-soft);
}

.ref__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--grey-200);
}

.ref__stats div {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.35rem;
}

.ref__stats dt {
  color: var(--ink-soft);
  font-size: var(--fs-small);
}

.ref__stats dd {
  color: var(--blue-500);
  text-transform: none;
  font-size: clamp(1.9rem, 1.5rem + 1vw, 2.6rem);
  line-height: 1;
}

.ref__quote {
  padding-left: 1.25rem;
  border-left: 3px solid var(--blue-500);
}

.ref__quote p {
  font-size: 1.0625rem;
  font-weight: 500;
}

.ref__quote footer {
  margin-top: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.ref__quote cite {
  color: var(--ink);
  font-style: normal;
  font-weight: 600;
}

@media (min-width: 64em) {
  .ref {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    min-height: 36rem;
  }

  .ref__media {
    aspect-ratio: auto;
  }
}

/* 07 · Unternehmen */
.section--company {
  padding-top: var(--gutter);
}

.statement {
  --focus: var(--lime-500);
  padding: clamp(4rem, 10vw, 9rem) var(--pad);
  background: var(--blue-500);
  color: var(--white);
}

.statement__text {
  max-width: 13ch;
  font-size: clamp(3.25rem, 1rem + 8.5vw, 10.5rem);
}

.statement__text .word {
  display: inline-block;
}

.about {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-top: var(--section-y);
}

.about__text {
  display: grid;
  gap: 1.25rem;
}

.about__text h2 {
  font-size: var(--fs-h2);
}

.about__text p {
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: var(--fs-lead);
}

.about__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  aspect-ratio: 16 / 10;
  background: var(--grey-50);
}

.about__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__media figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-pill);
  background: rgb(13 22 38 / 0.5);
  color: var(--white);
  font-size: var(--fs-small);
  font-weight: 500;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

@media (min-width: 64em) {
  .about {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-block: clamp(3rem, 6vw, 5rem);
}

.stat {
  display: grid;
  gap: 0.75rem;
  padding: 1.75rem;
  border-radius: var(--r-lg);
  background: var(--grey-50);
}

.stat__value {
  color: var(--navy-950);
  font-size: clamp(3rem, 2rem + 2.6vw, 4.5rem);
  text-transform: none;
  white-space: nowrap;
}

.stat__label {
  color: var(--ink-soft);
}

.map {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.map__text {
  display: grid;
  gap: 1rem;
}

.map__text h3 {
  font-size: var(--fs-h3);
}

.map__text p {
  max-width: 28rem;
  color: var(--ink-soft);
}

.certs {
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--grey-200);
  font-size: var(--fs-small);
}

.map__canvas {
  position: relative;
}

.map__img {
  width: 100%;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 55%, transparent 100%);
}

.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
}

.pin__dot {
  position: absolute;
  width: 0.9rem;
  height: 0.9rem;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--navy-950);
  box-shadow: 0 2px 8px rgb(13 22 38 / 0.25);
  transform: translate(-50%, -50%);
}

.pin--main .pin__dot {
  width: 1.25rem;
  height: 1.25rem;
  background: var(--lime-500);
  box-shadow: 0 0 0 0 rgb(183 205 26 / 0.6), 0 2px 8px rgb(13 22 38 / 0.25);
  animation: pulse 2.4s ease-out infinite;
}

.pin--partner .pin__dot {
  background: var(--grey-500);
}

.pin__label {
  position: absolute;
  top: 0;
  left: 1rem;
  display: flex;
  flex-direction: column;
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: 0 6px 20px rgb(13 22 38 / 0.12);
  color: var(--ink-soft);
  font-size: 0.8125rem;
  line-height: 1.3;
  white-space: nowrap;
  transform: translateY(-50%);
}

.pin--left .pin__label {
  right: 1rem;
  left: auto;
  text-align: right;
}

.pin__label strong {
  color: var(--navy-950);
  font-weight: 600;
}

@media (min-width: 64em) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .map {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }
}

/* 08 · Kontakt */
.contact {
  padding-bottom: var(--gutter);
}

.contact__stage {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 6rem) var(--pad);
}

.contact__title {
  font-size: clamp(3rem, 1rem + 6vw, 7.5rem);
}

.contact__intro p {
  max-width: 32rem;
  margin-top: 1.75rem;
  color: rgb(255 255 255 / 0.78);
  font-size: var(--fs-lead);
}

.person-card {
  --focus: var(--blue-500);
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--r-xl);
  background: var(--white);
  color: var(--ink);
}

/* Rahmen um die Kontaktkarte: konzentrische Radien (Kartenradius + Abstand) */
[data-frame="contact"] > .frame {
  --frame-gap: 0.85rem;
  top: calc(-1 * var(--frame-gap));
  left: calc(-1 * var(--frame-gap));
  width: calc(100% + 2 * var(--frame-gap));
  height: calc(100% + 2 * var(--frame-gap));
  border-radius: calc(var(--r-xl) + var(--frame-gap));
}

.person-card__photo {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: var(--r-lg);
  object-fit: cover;
}

.person-card__head h3 {
  font-size: var(--fs-h3);
}

.person-card__head p {
  color: var(--ink-soft);
}

@media (min-width: 40em) {
  .person-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .person-card .contact-actions {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64em) {
  .contact__stage {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}

/* 09 · Footer */
.footer {
  --focus: var(--lime-500);
  overflow: hidden;
  padding-top: clamp(4rem, 8vw, 6rem);
  background: var(--blue-500);
  color: rgb(255 255 255 / 0.72);
  font-size: 0.9375rem;
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.footer__brand img {
  width: 13.75rem;
}

.footer__heading {
  margin-bottom: 0.75rem;
  color: var(--white);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0;
}

.footer ul {
  display: grid;
  gap: 0.4rem;
  padding: 0;
  list-style: none;
}

.footer address {
  font-style: normal;
  line-height: 1.8;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer__copy {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-block: 1.5rem;
  font-size: 0.8125rem;
}

/* Schwebender Kontakt-Button (mobil) */
.fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: none;
  width: 3.75rem;
  height: 3.75rem;
  padding: 0;
  overflow: hidden;
  border: 3px solid var(--lime-500);
  border-radius: 50%;
  background: var(--navy-950);
  box-shadow: 0 8px 24px rgb(13 22 38 / 0.3);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out), visibility 0.3s;
}

.show-fab .fab {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.fab img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 02 · HEATEXPO – Varianten zum Vergleich ------------------------------------ */

/* Review-Label, nach der Auswahl entfernen */
.variant-tag {
  width: fit-content;
  margin: 2.5rem auto 1rem;
  padding: 0.35rem 0.85rem;
  border: 1px dashed var(--grey-500);
  border-radius: var(--r-pill);
  color: var(--ink-soft);
  font-size: var(--fs-small);
  font-weight: 500;
}

.btn--navy {
  background: var(--navy-950);
  color: var(--white);
}

.btn--navy:hover {
  background: var(--navy-800);
}

/* Variante B: Eintrittskarte */
.event-ticket {
  padding-bottom: clamp(1rem, 3vw, 2rem);
}

.ticket {
  --cut: 1.25rem;          /* Radius der Kerben */
  --stub: 32%;             /* Breite des Abrisses */
  --focus: var(--navy-950);
  display: grid;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--lime-500);
  color: var(--navy-950);
}

.ticket__stub {
  display: grid;
  align-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-bottom: 2px dashed rgb(13 22 38 / 0.35);
}

.ticket__event,
.ticket__place {
  font-weight: 600;
}

.ticket__date {
  font-size: clamp(4rem, 2rem + 4.2vw, 6.75rem);
  line-height: 0.82;
}

.ticket__date span {
  display: block;
}

.ticket__main {
  display: grid;
  gap: 1.5rem;
  align-content: center;
  padding: clamp(1.75rem, 4vw, 3.5rem);
}

.ticket__title {
  max-width: 12ch;
  font-size: clamp(2.75rem, 1.5rem + 4vw, 5.5rem);
}

.ticket__text {
  max-width: 38rem;
  font-size: var(--fs-lead);
}

.ticket__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem 2rem;
  padding-block: 1.25rem;
  border-block: 1px solid rgb(13 22 38 / 0.2);
}

.ticket__facts dt {
  font-size: var(--fs-small);
  opacity: 0.75;
}

.ticket__facts dd {
  font-weight: 600;
}

.ticket .text-link:hover {
  color: var(--navy-950);
  text-decoration-color: var(--navy-950);
}

@media (min-width: 56em) {
  .ticket {
    grid-template-columns: var(--stub) minmax(0, 1fr);
    /* Zwei halbrunde Kerben oben und unten an der Perforation */
    -webkit-mask:
      radial-gradient(circle at var(--stub) 0, transparent var(--cut), #000 calc(var(--cut) + 0.5px)) top / 100% 51% no-repeat,
      radial-gradient(circle at var(--stub) 100%, transparent var(--cut), #000 calc(var(--cut) + 0.5px)) bottom / 100% 51% no-repeat;
    mask:
      radial-gradient(circle at var(--stub) 0, transparent var(--cut), #000 calc(var(--cut) + 0.5px)) top / 100% 51% no-repeat,
      radial-gradient(circle at var(--stub) 100%, transparent var(--cut), #000 calc(var(--cut) + 0.5px)) bottom / 100% 51% no-repeat;
  }

  .ticket__stub {
    border-right: 2px dashed rgb(13 22 38 / 0.35);
    border-bottom: 0;
  }
}

/* Variante C: heller Messeblock mit Bildband.
   Bewusst hell, damit er sich vom dunklen Hero darüber absetzt. */
.event-banner {
  padding-top: clamp(4rem, 8vw, 7rem);
}

.event-banner__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem 4rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* Countdown als großes Zahlen-Element (Big Shoulders bleibt Zahlen vorbehalten) */
.countdown {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  color: var(--navy-950);
}

.countdown__num {
  /* feste Breite (per JS in ch gesetzt), damit beim Hochzählen nichts springt */
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-family: var(--font-display);
  font-size: clamp(6rem, 3rem + 8vw, 11rem);
  font-weight: 800;
  line-height: 0.78;
}

.countdown__label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 10rem;
  padding-bottom: 0.2rem;
  font-weight: 600;
  line-height: 1.3;
}

.countdown__label::before {
  content: "";
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--lime-500);
  box-shadow: 0 0 0 0 rgb(183 205 26 / 0.6);
  animation: pulse 2.4s ease-out infinite;
}

.event-banner__intro {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}

.event-banner__title {
  font-size: var(--fs-h2);
}

.event-banner__text {
  color: var(--ink-soft);
  font-size: var(--fs-lead);
}

.event-banner__visual {
  --focus: var(--lime-500);
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--navy-950);
  color: var(--white);
}

.event-banner__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.event-banner__media {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  filter: saturate(0.7);
}

.event-banner__bar {
  display: grid;
  gap: 1.5rem 3rem;
  align-items: center;
  padding: 1.5rem;
}

.event-banner__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1rem 2rem;
}

.event-banner__facts dt {
  color: var(--blue-300);
  font-size: var(--fs-small);
}

.event-banner__facts dd {
  font-weight: 500;
}

@media (min-width: 48em) {

  .event-banner__frame {
    aspect-ratio: 21 / 9;
  }

  /* Glasleiste liegt unten auf dem Bild */
  .event-banner__bar {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgb(255 255 255 / 0.18);
    border-radius: var(--r-lg);
    background: rgb(13 22 38 / 0.55);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

@media (min-width: 64em) {
  .event-banner__bar {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* 7 · Ansprechpartner-Popup ------------------------------------------------- */
.contact-dialog {
  width: min(27rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--r-xl);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 80px rgb(13 22 38 / 0.35);
}

.contact-dialog::backdrop {
  background: rgb(13 22 38 / 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.contact-dialog[open] {
  animation: dialog-in 0.4s var(--ease-out);
}

.contact-dialog[open]::backdrop {
  animation: fade-in 0.4s ease;
}

.contact-dialog__inner {
  position: relative;
  display: grid;
  gap: 0.35rem;
  padding: 2rem;
}

.contact-dialog__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
}

.contact-dialog__photo {
  width: 6.5rem;
  height: 6.5rem;
  margin-bottom: 1rem;
  border-radius: var(--r-lg);
  object-fit: cover;
}

.contact-dialog__name {
  font-size: 1.75rem;
}

.contact-dialog__role {
  color: var(--ink-soft);
}

.contact-dialog__note {
  margin-block: 1rem 1.25rem;
  font-size: 1.0625rem;
}

.contact-dialog__foot {
  margin-top: 1.25rem;
  color: var(--ink-soft);
  font-size: var(--fs-small);
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(1rem) scale(0.98);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

/* 8 · Responsive & Motion ---------------------------------------------------- */
@media (max-width: 80em) {
  .nav__event {
    display: none;
  }
}

@media (max-width: 63.99em) {
  .nav {
    gap: 0.75rem;
    padding-left: 1.1rem;
  }

  .nav__toggle {
    display: block;
  }

  .nav__menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--r-lg);
    background: var(--navy-950);
    color: var(--white);
    box-shadow: 0 20px 50px rgb(13 22 38 / 0.35);
  }

  .nav__menu.is-open {
    display: flex;
  }

  .nav__links {
    flex-direction: column;
    gap: 0.25rem;
  }

  .nav__links a {
    display: block;
    padding-block: 0.5rem;
    font-size: 1.375rem;
  }

  .nav__event {
    display: inline-block;
    align-self: flex-start;
  }

  .site-header {
    position: fixed;
  }

  .nav {
    position: relative;
  }

  .bento--challenges {
    grid-template-columns: 1fr 1fr;
  }

  .tile--a {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 30rem;
  }

  .tile--b {
    grid-column: 1 / -1;
  }

  .tile--c,
  .tile--d {
    grid-column: auto;
  }

  .bento--services {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "a a"
      "b c"
      "e f"
      "d d";
  }

  .svc-a {
    min-height: 26rem;
  }

  .fab {
    display: block;
  }

  .hero__shade {
    background:
      linear-gradient(to top, rgb(13 22 38 / 0.92) 0%, rgb(13 22 38 / 0.7) 55%, rgb(13 22 38 / 0.35) 100%);
  }

  .hero__media {
    object-position: 66% 50%; /* Hochformat: Techniker in die Bildmitte */
  }
}

@media (max-width: 40em) {
  .btn--contact {
    display: none;
  }

  .nav__logo {
    width: 7.75rem;
  }

  .bento--challenges,
  .bento--services {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  .bento--services > * {
    grid-area: auto;
  }

  .tile--c,
  .tile--d {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .tile--b,
  .svc-c {
    min-height: 22rem;
  }

  .svc-b,
  .svc-e,
  .svc-f {
    min-height: 0;
  }

  .refs__arrows {
    display: none;
  }

  .hero__copy {
    margin-left: 0;
    padding: 1.25rem;
  }

  [data-frame="hero"] > .frame {
    width: 100%;
  }

  .map__canvas {
    width: 170%;
    margin-left: -46%;
  }

  .map {
    overflow: hidden;
  }

  .pin__label {
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
  }

  .contact-dialog {
    width: 100%;
    max-width: none;
    margin: auto 0 0;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
  }

  .contact-dialog[open] {
    animation-name: sheet-in;
  }

  @keyframes sheet-in {
    from {
      transform: translateY(100%);
    }
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

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

  .marquee__track {
    animation: none;
  }
}
