.quick-contact[hidden],
body:has(#kontakt :focus) .quick-contact,
body:has(dialog[open]) .quick-contact {
  display: none !important;
}

.header .nav-cta,
.quick-contact a {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .header .nav-cta {
    display: none !important;
  }

  .header #menu-toggle {
    flex: 0 0 48px;
    min-height: 48px;
    margin-inline-start: auto;
  }

  .contact-section .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-height: 520px) {
  .header nav.open {
    max-height: calc(100dvh - 77px);
    overflow-y: auto;
  }
}

.device-stage.single-preview {
  padding: clamp(12px, 2vw, 24px);
}

.film-stage #motion-toggle {
  width: 48px;
  height: 48px;
}

.film-stage #motion-toggle:hover {
  background: #54329a;
}

.film-stage #motion-toggle:focus-visible {
  outline: 3px solid #d6c2ff;
  outline-offset: 3px;
}

.film-stage #motion-toggle:active {
  background: #352160;
}

@media (max-width: 600px) {
  .header .brand img {
    width: 110px;
  }

  .header .brand > span {
    display: block;
  }
}

@media (max-width: 360px) {
  .hero-promise h1 {
    font-size: 40px;
  }
}

.footer-socials {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding-block-start: 12px;
  border-block-start: 1px solid #d8cce8;
}

.footer-socials h2 {
  margin: 0;
  color: #281b43;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.footer-socials ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding-inline: 8px;
  border-radius: 4px;
  color: #4b2c82;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.footer-socials a:hover {
  background: #ede4f7;
}

.footer-socials a:active {
  background: #e1d2f0;
}

.footer-socials a:focus-visible {
  outline: 2px solid #633ba3;
  outline-offset: 2px;
}
