/* Final customer-feedback layer: responsive behavior without duplicating content. */
body.has-cinematic-hero .brand {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}

body.has-cinematic-hero .brand img {
  display: block !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

.process-slider-toolbar {
  display: none;
}

.service-group,
.service-card {
  scroll-margin-top: calc(var(--shell-header-height, 72px) + 1rem);
}

.service-group.is-deep-linked,
.service-card.is-deep-linked {
  animation: deep-link-focus 1.4s ease both;
}

@keyframes deep-link-focus {
  0%, 100% { box-shadow: inherit; }
  30% { box-shadow: 0 0 0 4px rgba(31, 91, 124, 0.2), 0 22px 48px rgba(10, 33, 51, 0.14); }
}

.about-story-copy {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.15rem;
}

.about-story-copy p {
  margin: 0;
}

@media (max-width: 720px) {
  body.has-cinematic-hero .brand {
    width: 58px !important;
    max-width: 58px !important;
  }

  body.has-cinematic-hero .brand img {
    width: 58px !important;
    max-width: 58px !important;
    height: 52px !important;
  }

  .process-slider-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
  }

  .process-slider-toolbar strong {
    color: var(--ink, #0b1726);
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .process-slider-buttons {
    display: flex;
    gap: 0.45rem;
  }

  .process-slider-button {
    display: inline-grid;
    width: 2.65rem;
    height: 2.65rem;
    place-items: center;
    border: 1px solid rgba(18, 58, 84, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    color: #123a54;
    font: inherit;
    font-size: 1.15rem;
    cursor: pointer;
  }

  #ablauf .process-timeline {
    display: grid !important;
    grid-template-columns: none !important;
    grid-auto-flow: column !important;
    grid-auto-columns: min(82vw, 19rem) !important;
    gap: 0.8rem !important;
    overflow-x: auto !important;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 0.25rem;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0.25rem 0.85rem !important;
  }

  #ablauf .process-timeline::-webkit-scrollbar {
    display: none;
  }

  #ablauf .process-card {
    min-height: 21rem;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .service-image-pair {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem !important;
  }

  .service-image-pair .image-fill {
    min-height: 0 !important;
    aspect-ratio: 1 / 1;
    border-radius: 1rem !important;
  }

  .service-image-pair .image-fill img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-group.is-deep-linked,
  .service-card.is-deep-linked {
    animation: none;
    outline: 3px solid rgba(31, 91, 124, 0.28);
  }
}

/* Contact facts: reserve intrinsic space for the complete number on every font stack. */
.page-kontakt .page-hero-shell {
  container-name: contact-hero;
  container-type: inline-size;
}

.page-kontakt .page-hero-spec {
  grid-template-columns:
    minmax(13.5rem, 1.28fr)
    minmax(9rem, 1fr)
    minmax(9.5rem, 1.1fr) !important;
}

.page-kontakt .page-hero-spec .page-hero-stat {
  min-width: 0;
}

.page-kontakt .page-hero-spec .page-hero-stat--hours,
.page-kontakt .page-hero-spec .page-hero-stat--contact {
  display: grid !important;
  grid-template-rows: 2rem auto;
  align-content: center !important;
  align-items: stretch !important;
  justify-content: stretch !important;
}

.page-kontakt .page-hero-spec .page-hero-stat--hours > strong,
.page-kontakt .page-hero-spec .page-hero-stat--contact > strong {
  display: flex;
  min-height: 2rem;
  align-items: flex-end;
}

.page-kontakt .page-hero-phone {
  display: block;
  color: inherit;
  text-decoration: none;
}

.page-kontakt .page-hero-spec .page-hero-phone strong {
  display: block;
  font-size: clamp(1.65rem, 6vw, 2rem) !important;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  letter-spacing: -0.02em !important;
  line-height: 1.05 !important;
  overflow-wrap: normal;
  word-break: keep-all;
  white-space: nowrap;
}

.page-kontakt .page-hero-spec .page-hero-stat--hours > strong {
  display: block;
  font-size: clamp(1.65rem, 6vw, 2rem) !important;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  letter-spacing: -0.02em !important;
  line-height: 1 !important;
  white-space: nowrap;
}

.page-kontakt .page-hero-spec .page-hero-stat--hours > span {
  max-width: 18ch;
  text-wrap: balance;
}

.page-kontakt .page-hero-spec .page-hero-stat--contact > strong {
  display: block;
  font-size: clamp(1.65rem, 6vw, 2rem) !important;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  letter-spacing: -0.01em !important;
  line-height: 1 !important;
  white-space: nowrap;
}

.page-kontakt .page-hero-phone:focus-visible {
  border-radius: 0.2rem;
  outline: 2px solid #8fd8ff;
  outline-offset: 0.25rem;
}

@media (hover: hover) {
  .page-kontakt .page-hero-phone:hover strong {
    color: #b9e8ff;
  }
}

/* Compact contact facts: the phone owns a full row before font metrics can collide. */
@media (max-width: 760px) {
  body.has-cinematic-hero.page-kontakt .page-hero.page-hero--cinematic .page-hero-spec {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.has-cinematic-hero.page-kontakt .page-hero-spec .page-hero-stat {
    min-width: 0;
    min-height: 4.25rem !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 0.7rem 0.85rem !important;
  }

  body.has-cinematic-hero.page-kontakt .page-hero-spec .page-hero-stat--phone {
    grid-column: 1 / -1;
    border-left: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  body.has-cinematic-hero.page-kontakt .page-hero-spec .page-hero-stat--hours {
    border-left: 0 !important;
  }

  body.has-cinematic-hero.page-kontakt .page-hero-spec .page-hero-phone strong,
  body.has-cinematic-hero.page-kontakt .page-hero-spec .page-hero-stat--hours > strong {
    font-size: clamp(1.65rem, 6vw, 2rem) !important;
    letter-spacing: -0.02em !important;
    font-variant-numeric: tabular-nums;
    line-height: 1 !important;
    white-space: nowrap;
  }

  body.has-cinematic-hero.page-kontakt .page-hero-spec .page-hero-stat > span {
    font-size: 0.72rem !important;
    line-height: 1.25 !important;
  }
}

/*
 * Component-width safety net: the facts also reflow when browser zoom,
 * embedding, scrollbars, or surrounding layout make the hero narrower
 * without crossing the viewport media-query breakpoint.
 */
@container contact-hero (max-width: 760px) {
  body.has-cinematic-hero.page-kontakt .page-hero.page-hero--cinematic .page-hero-spec {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.has-cinematic-hero.page-kontakt .page-hero-spec .page-hero-stat {
    min-width: 0;
  }

  body.has-cinematic-hero.page-kontakt .page-hero-spec .page-hero-stat--phone {
    grid-column: 1 / -1;
    border-left: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  body.has-cinematic-hero.page-kontakt .page-hero-spec .page-hero-stat--hours {
    border-left: 0 !important;
  }
}
