/* Requested content layouts, built from the existing DJ Ciro B visual system. */
.language-menu summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.language-menu > div {
  width: 190px;
}

.language-menu a {
  padding: 10px 12px;
}

.language-menu a[aria-current="true"] {
  background: var(--ink);
  color: #fff;
}

.desktop-nav a[aria-current="page"]::after {
  right: 0;
}

.journey-steps.six {
  grid-template-columns: repeat(6, 1fr);
}

.journey-steps.six article {
  min-height: 285px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 55px;
  border: 1px solid var(--line);
  background: var(--line);
}

.partner-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  background: var(--paper);
}

.partner-card span {
  color: var(--muted);
  font-size: .63rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.partner-card h3 {
  margin: 18px 0;
  font-size: 1.65rem;
  line-height: 1.08;
}

.partner-card a {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.page-copy-columns {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 10vw;
}

.page-copy-columns ul {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.page-copy-columns li {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.page-copy-actions {
  margin-top: 35px;
}

.mobile-language-title {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.mobile-menu .mobile-languages {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.mobile-menu .mobile-languages a {
  min-width: 74px;
  padding: 0 10px;
  border: 1px solid var(--line);
}

.mobile-menu .mobile-languages a[aria-current="true"] {
  background: var(--ink);
  color: #fff;
}

.first-dance-media {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}

.first-dance-card video {
  display: none;
  width: 100%;
  height: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #111;
}

.first-dance-card.is-playing video {
  display: block;
}

.first-dance-cover {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border: 0;
  padding: 32px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background .3s ease;
}

.first-dance-cover:hover {
  background: var(--ivory);
}

.first-dance-cover img {
  width: min(126px, 58%);
  height: auto;
  object-fit: contain;
}

.first-dance-cover span {
  font-size: .72rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .22em;
}

.first-dance-cover i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  padding-left: 2px;
  font-size: .65rem;
  font-style: normal;
  transition: background .3s ease, color .3s ease;
}

.first-dance-cover:hover i {
  background: var(--ink);
  color: #fff;
}

.first-dance-card.is-playing .first-dance-cover {
  display: none;
}

.outlet-events-hero img {
  object-position: center 28%;
}

/* Branded, image-free covers for every local video. */
.branded-video-media {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}

.branded-video-card video {
  display: none;
  width: 100%;
  height: 100%;
  aspect-ratio: inherit;
  object-fit: contain;
  background: #111;
}

.branded-video-card.is-playing video {
  display: block;
}

.video-cover {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 0;
  padding: clamp(20px, 4vw, 42px);
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  transition: background .3s ease;
}

.video-cover:hover,
.video-cover:focus-visible {
  background: var(--ivory);
}

.video-cover:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -7px;
}

.video-cover img {
  width: min(116px, 46%);
  height: auto;
  object-fit: contain;
}

.video-cover-brand,
.video-cover strong {
  font-family: var(--sans);
  line-height: 1.25;
  text-transform: uppercase;
}

.video-cover-brand {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .22em;
}

.video-cover strong {
  max-width: 18rem;
  font-size: clamp(.7rem, 1.2vw, .92rem);
  letter-spacing: .16em;
}

.video-cover i {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-top: 8px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  padding-left: 2px;
  font-size: .65rem;
  font-style: normal;
  transition: background .3s ease, color .3s ease;
}

.video-cover:hover i,
.video-cover:focus-visible i {
  background: var(--ink);
  color: #fff;
}

.branded-video-card.is-playing .video-cover {
  display: none;
}

.portfolio-rich-gallery .branded-video-media {
  height: 100%;
  min-height: 420px;
  max-height: 720px;
  aspect-ratio: 3 / 4;
  background: #111;
}

.portfolio-rich-gallery .branded-video-card video {
  min-height: 0;
  max-height: none;
}

/* Keep the real player behind the cover until the user explicitly starts it.
   This selector intentionally outranks the legacy rule in portfolio.css. */
.portfolio-rich-gallery .portfolio-video.branded-video-card video {
  display: none;
}

.portfolio-rich-gallery .portfolio-video.branded-video-card.is-playing video {
  display: block;
}

.bosch-photo-only {
  grid-template-columns: minmax(280px, 720px);
  justify-content: center;
}

.outletcity-metzingen-hero img {
  object-position: center 67%;
}

.portfolio-image[href*="portfolio-outlet-events"] img {
  object-position: center 64%;
}

.powered-by a {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.form-privacy a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-nonbinding {
  max-width: 620px;
  margin: -12px 0 24px;
  color: var(--ink);
  font-size: .72rem;
}

.form-status {
  min-height: 1.6em;
  margin-top: 18px;
  color: var(--ink);
  font-size: .82rem;
}

.form-status.is-error {
  color: #8c2f24;
}

.contact-form button[disabled] {
  opacity: .55;
  cursor: wait;
}

.legal-page p,
.legal-page li {
  max-width: 780px;
}

@media (max-width: 1100px) {
  .journey-steps.six {
    grid-template-columns: repeat(3, 1fr);
  }

  .partners-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mobile-menu > nav > .mobile-menu-cta {
    width: fit-content;
    min-height: 46px;
    margin-top: 8px;
    padding: 11px 18px;
    font-family: var(--sans);
    font-size: .65rem;
    line-height: 1.2;
    letter-spacing: .11em;
  }
}

@media (max-width: 760px) {
  .journey-steps.six {
    grid-template-columns: 1fr 1fr;
  }

  .journey-steps.six article {
    min-height: 230px;
  }

  .partners-grid,
  .page-copy-columns {
    grid-template-columns: 1fr;
  }

  .page-copy-columns {
    gap: 45px;
  }

  .partner-card {
    min-height: 190px;
  }

  .language-menu > div {
    right: -48px;
  }

  .site-header .brand {
    min-width: 0;
  }

  .site-header .brand span {
    white-space: nowrap;
  }

  .header-actions {
    flex-shrink: 0;
  }

  .mobile-menu > nav {
    justify-content: flex-start;
    gap: 13px;
    padding-top: calc(104px + env(safe-area-inset-top));
  }

  .mobile-menu > nav > a:not(.mobile-menu-cta) {
    font-size: clamp(1.8rem, 9vw, 3.2rem);
  }

  .mobile-language-title {
    margin-top: 12px;
  }

  .outletcity-metzingen-hero img {
    object-position: center 64%;
  }

  .portfolio-image[href*="portfolio-outlet-events"] img {
    object-position: center 62%;
  }

  .portfolio-page .portfolio-card,
  .portfolio-page .portfolio-card:nth-child(2n) {
    width: 100%;
    margin: 0 0 42px;
  }

  .portfolio-page .portfolio-image img,
  .portfolio-page .portfolio-card:nth-child(2n) .portfolio-image img {
    width: 100%;
    max-height: 68svh;
    aspect-ratio: 4 / 5;
  }

  .project-hero {
    height: 72svh;
    min-height: 520px;
    max-height: 720px;
  }

  .project-hero h1 {
    max-width: calc(100vw - 36px);
    font-size: clamp(2.8rem, 14vw, 5rem);
    overflow-wrap: anywhere;
  }

  .project-gallery .branded-video-card {
    width: min(86%, 390px);
  }

  .portfolio-rich-gallery .branded-video-media {
    min-height: 0;
    max-height: 72svh;
    aspect-ratio: 9 / 16;
  }

  .bosch-photo-only {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-page {
    padding-inline: 18px;
  }

  .contact-form .button {
    width: 100%;
  }

  .legal-page {
    padding-inline: 18px;
  }

  .legal-page h1 {
    font-size: clamp(2.8rem, 14vw, 4.8rem);
    overflow-wrap: anywhere;
  }

  .legal-page h2 {
    margin-top: 40px;
    font-size: clamp(1.55rem, 7.5vw, 2.2rem);
    line-height: 1.08;
  }

  .footer-bottom .powered-by {
    order: 4;
  }
}

@media (max-width: 390px) {
  .language-menu summary {
    padding-inline: 6px;
    font-size: .6rem;
  }

  .language-menu > div {
    right: -42px;
    width: 168px;
  }

  .video-cover {
    gap: 10px;
    padding: 18px;
  }

  .video-cover img {
    width: min(92px, 42%);
  }

  .project-hero {
    min-height: 500px;
  }
}

/* Mobile video cards: cover and player share one correctly proportioned box. */
@media (max-width: 760px) {
  .experience .branded-video-card,
  .video-pair .branded-video-card,
  .project-gallery .branded-video-card,
  .portfolio-rich-gallery .portfolio-video.branded-video-card {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    justify-self: stretch;
  }

  .branded-video-card .branded-video-media,
  .portfolio-rich-gallery .portfolio-video.branded-video-card .branded-video-media {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: var(--paper);
  }

  .branded-video-card .branded-video-media > video,
  .portfolio-rich-gallery .portfolio-video.branded-video-card .branded-video-media > video {
    position: absolute;
    inset: 0;
    display: none;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    background: #111;
  }

  .branded-video-card.is-playing .branded-video-media > video,
  .portfolio-rich-gallery .portfolio-video.branded-video-card.is-playing .branded-video-media > video {
    display: block;
  }

  .branded-video-card .branded-video-media > .video-cover {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    width: 100%;
    height: 100%;
    padding: clamp(18px, 7vw, 30px);
    gap: clamp(8px, 2.8vw, 13px);
    overflow: hidden;
  }

  .branded-video-card.is-playing .branded-video-media > .video-cover {
    display: none;
  }

  .branded-video-card .video-cover img {
    width: clamp(58px, 20vw, 78px);
    max-width: 24%;
    max-height: 22%;
  }

  .branded-video-card .video-cover-brand {
    font-size: clamp(.55rem, 2.5vw, .66rem);
    line-height: 1.2;
    letter-spacing: .2em;
  }

  .branded-video-card .video-cover strong {
    width: min(100%, 15rem);
    max-width: 15rem;
    font-size: clamp(.68rem, 3vw, .86rem);
    line-height: 1.35;
    letter-spacing: .14em;
    overflow-wrap: normal;
    word-break: normal;
  }

  .branded-video-card .video-cover i {
    width: 42px;
    height: 42px;
    margin-top: 5px;
    flex: 0 0 auto;
  }
}
