.hero-band .hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.4rem, 3vw, 2.75rem);
}
.hero-band .hero-copy h1 {
  font-size: clamp(2.4rem, 6vw, 4.45rem);
  max-width: none;
  text-wrap: wrap;
  overflow-wrap: anywhere;
}
.hero-band .hero-copy h1 span { display: block }
.hero-band .hero-copy p:not(.label) { max-width: 47ch; margin-bottom: 1.5rem; color: var(--muted); color: color-mix(in srgb, var(--ink) calc(var(--hero-copy-contrast, 0) * 100%), var(--muted)) }
.hero-band .hero-copy .button { margin-top: 0 }
/* The illustration can follow the page through the content, within its paint bounds. */
.landing-content { contain: paint }
.hero-band .hero-form { overflow-anchor: none }
.page-frame { overflow-x: clip; min-height: 100svh }
.hero-band .hero-copy { position: relative; z-index: 1 }
.hero-band .hero-form {
  display: block;
  width: 100%;
  max-width: 27rem;
  min-width: 0;
  overflow: visible;
  justify-self: end;
  pointer-events: none;
  transform: translate(var(--hero-form-x, 0px), var(--hero-form-y, 0px)) rotate(var(--hero-form-angle, 0deg)) scale(var(--hero-form-scale, 1));
  opacity: var(--hero-form-opacity, 1);
  will-change: transform;
}
.hero-band.form-following .hero-form { position: relative; z-index: 2 }
.hero-band .form-pink { stop-color: var(--pink) }
.hero-band .form-blue { stop-color: var(--blue) }
.hero-band .form-yellow { stop-color: var(--yellow) }
@media (max-width: 815px) {
  .hero-band .hero { grid-template-columns: minmax(0, 1fr); gap: 1.3rem }
  .hero-band .hero-copy h1 { font-size: clamp(2.2rem, 11vw, 4.25rem) }
  .hero-band .hero-form { width: clamp(9rem, 48vw, 12.5rem); margin-inline-end: .75rem }
}
@media (prefers-reduced-motion: reduce) {
  .hero-band .hero-form { transform: none; will-change: auto }
}

.practice { background: var(--paper) }
.practice-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.5rem, 5vw, 4rem) }
.profile { background: var(--soft) }
.profile .section { padding-block: clamp(2rem, 3.8vw, 3.5rem) }
.profile p:not(.label) { max-width: 66ch; margin-top: .9rem; color: var(--muted) }
@media (max-width: 720px) {
  .practice-inner { grid-template-columns: 1fr }
}

.occasion-stack {
  list-style: none;
  padding: 0;
  margin: clamp(1.75rem, 4vw, 3rem) 0 0;
  counter-reset: occasion;
}
.occasion-card {
  border-radius: .55rem;
  --accent: var(--blue);
  counter-increment: occasion;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  padding: clamp(1rem, 4vw, 2.4rem);
  width: min(91%, 42rem);
}
.occasion-card:nth-child(even) { margin-inline-start: auto }
.occasion-card:nth-child(3n + 1) { --accent: var(--yellow) }
.occasion-card:nth-child(3n) { --accent: var(--pink) }
.occasion-card + .occasion-card { margin-top: 1rem }
.occasion-card::before {
  content: counter(occasion, decimal-leading-zero);
  display: block;
  width: fit-content;
  margin-bottom: .65rem;
  padding: .12rem .45rem;
  background: var(--soft);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.occasion-card h3 { font-size: clamp(1.25rem, 3vw, 1.9rem) }
.occasion-card p { margin-top: .65rem; max-width: 61ch; color: var(--muted) }
@media (prefers-reduced-motion: no-preference) and (min-height: 640px) {
  .occasion-stack { padding-bottom: 4vh; padding-bottom: 4svh }
  .occasion-card {
    position: sticky;
    top: calc(12rem + var(--stack-offset, 0px));
    box-shadow: 0 8px 26px #17191c14;
  }
  .occasion-card + .occasion-card {
    margin-top: clamp(1.25rem, 3.5vh, 2.25rem);
    margin-top: clamp(1.25rem, 3.5svh, 2.25rem);
  }
  .occasion-card:nth-child(2) { --stack-offset: clamp(2px, .7vw, 9px) }
  .occasion-card:nth-child(3) { --stack-offset: calc(2 * clamp(2px, .7vw, 9px)) }
  .occasion-card:nth-child(4) { --stack-offset: calc(3 * clamp(2px, .7vw, 9px)) }
  .occasion-card:nth-child(5) { --stack-offset: calc(4 * clamp(2px, .7vw, 9px)) }
  @media (min-width: 721px) {
    .occasion-card { top: calc(8rem + var(--stack-offset, 0px)) }
  }
}

.occasions-intro { margin-top: .8rem; max-width: 64ch; color: var(--muted) }

.label-with-rule { display: flex; align-items: center; gap: .85rem }
.label-with-rule .brand-rule { flex: none }

#kontakt .contact-action { display: flex; flex-direction: column; align-items: stretch; gap: .55rem; width: fit-content; max-width: 100% }
#kontakt .contact-action > .button { justify-content: center }
#kontakt .contact-action > .contact-mail { background: transparent; border-color: #ffffffa6; color: white }
#kontakt .contact-action > .contact-mail:hover { background: #ffffff14; border-color: white }

.practice-intro { max-width: 62ch; color: var(--muted); margin-block: 1rem 1.65rem }
.practice-case { position: relative; padding-inline-start: 1.15rem }
.practice-case + .practice-case { margin-top: .45rem }
.practice-case::before {
  content: "";
  position: absolute;
  inset: .6rem auto .6rem 0;
  width: 4px;
  background: var(--accent);
}
.practice-case summary {
  list-style: none;
  cursor: pointer;
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.25rem;
  align-items: center;
  gap: .75rem;
  padding-block: .6rem;
  color: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
}
.practice-case summary::-webkit-details-marker { display: none }
.practice-case summary::after { content: "+" / ""; text-align: center; font-size: 1.45rem; line-height: 1 }
.practice-case[open] summary::after { content: "−" / "" }
.practice-case summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px }
.practice-case dl { padding: .3rem 0 1rem; max-width: 72ch }

.practice-case dl > div + div { margin-block-start: 1.25rem }

.hero-copy > p:not(.label), .occasions-intro, .practice-intro, .profile p:not(.label) {
  font-size: clamp(1.08rem, 1.75vw, 1.32rem);
}

.industries { background: var(--paper); border-top: 1px solid var(--line) }
.industries-intro { max-width: 64ch; margin-top: 1rem; color: var(--muted); font-size: clamp(1.08rem, 1.75vw, 1.32rem) }
.industry-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.15rem, 4vw, 3rem); margin-top: 1.65rem }
.industry-groups p { color: var(--muted); margin-top: .5rem }
@media (max-width: 720px) {
  .industry-groups { grid-template-columns: minmax(0, 1fr) }
}

.project-references { margin-top: clamp(2rem, 5vw, 3.75rem) }
.reference-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0 0; padding: 0; list-style: none }
.reference-grid li { display: grid; place-items: center; min-height: 100px; padding: .85rem; border: 1px solid var(--line); background: white }
.reference-grid li.reference-inverse { background: var(--ink); border-color: var(--ink) }
.reference-grid img { display: block; width: min(100%, 8.5rem); height: 3.25rem; object-fit: contain }
.reference-grid img[alt="Bega Group"] { height: 4.45rem }
@media (max-width: 720px) { .reference-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) } }

.industry-groups > div::before {
  content: "";
  display: block;
  width: 3rem;
  height: 4px;
  margin-bottom: .85rem;
  background: var(--industry-accent);
}
.industry-groups > div:nth-child(1) { --industry-accent: var(--yellow) }
.industry-groups > div:nth-child(2) { --industry-accent: var(--blue) }
.industry-groups > div:nth-child(3) { --industry-accent: var(--pink) }

@media (max-width: 720px) {
  .reference-grid { gap: .55rem }
  .reference-grid li { min-height: 72px; padding: .5rem .65rem }
  .reference-grid img { width: min(100%, 6.25rem); height: 2rem }
  .reference-grid img[alt="Bega Group"] { height: 2.85rem }
}

.reference-grid li { border-radius: .55rem }

@supports (width: max(1px, 2px)) {
  .page-frame .wrap {
    --gutter: clamp(1rem, 5vw, 2.75rem);
    margin-left: max(var(--gutter), env(safe-area-inset-left, 0px));
    margin-right: max(var(--gutter), env(safe-area-inset-right, 0px));
    width: auto;
  }
}

@media (max-width: 360px) {
  .hero-band .hero-intro-end { white-space: normal }
}
