/* arrow for the "Projekt anfragen" buttons, used as a mask so it takes the text colour */
:root {
  --hm-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 10' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 5h14.5M11.5 1l4 4-4 4'/%3E%3C/svg%3E");
}

/* DE | EN switcher in the header, next to the menu (desktop) or the burger (phones);
   inserted by .github/scripts/build_en.py */

.site-header .right {
  display: flex;
  align-items: center;
}

.hm-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 34px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1;
}

.hm-lang a,
.hm-lang a:hover,
.hm-lang a:focus {
  color: inherit;
  text-decoration: none;
}

.hm-lang a {
  opacity: 0.55;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.hm-lang a:hover,
.hm-lang a:focus-visible {
  opacity: 1;
}

.hm-lang a.is-active {
  opacity: 1;
  color: #c0202a;
}

.hm-lang span {
  opacity: 0.35;
}

@media (max-width: 991px) {
  .hm-lang {
    margin-left: 0;
    margin-right: 22px;
    font-size: 13px;
  }
}

/* Sticky "Projekt anfragen" button (markup by build_en.py, behaviour in site.js):
   phones: red pill, centred, after the first screen;
   desktop: small dark pill bottom left, from the "Leistungen" section on (homepage)
   or below the page header (service pages);
   both hide again while the closing band or the footer is on screen */
.hm-cta {
  display: none;
}

@media (max-width: 768px) {
  .hm-cta,
  .hm-cta:hover,
  .hm-cta:focus {
    color: #fff;
    text-decoration: none;
  }

  .hm-cta {
    position: fixed;
    left: 50%;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 26px;
    border-radius: 999px;
    background: #c0202a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    font: 700 12px/1 Arial, Helvetica, sans-serif;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 24px);
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.4s;
  }

  .hm-cta.is-shown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition-delay: 0s;
  }

  .hm-cta::after {
    content: "";
    flex: none;
    width: 15px;
    height: 10px;
    background: currentColor;
    /* drawn arrow instead of the "\2192" glyph, which sits off-centre next to capitals */
    -webkit-mask: var(--hm-arrow) center / contain no-repeat;
    mask: var(--hm-arrow) center / contain no-repeat;
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .hm-cta { transition: none; }
}

@media (min-width: 769px) {
  .hm-cta,
  .hm-cta:hover,
  .hm-cta:focus {
    color: #fff;
    text-decoration: none;
  }

  /* bottom left: the cookie banner and its "Einwilligung verwalten" tab live bottom right */
  .hm-cta {
    position: fixed;
    left: 28px;
    bottom: 28px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px 13px 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(14, 14, 14, 0.78);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
    font: 700 11px/1 Arial, Helvetica, sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.45s,
      background 0.25s ease, border-color 0.25s ease;
  }

  .hm-cta.is-shown {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }

  /* small red dot as the only accent */
  .hm-cta::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c0202a;
    transition: background 0.25s ease;
  }

  .hm-cta::after {
    content: "";
    flex: none;
    width: 14px;
    height: 10px;
    background: currentColor;
    -webkit-mask: var(--hm-arrow) center / contain no-repeat;
    mask: var(--hm-arrow) center / contain no-repeat;
    transition: transform 0.25s ease;
  }

  .hm-cta:hover,
  .hm-cta:focus-visible {
    background: #c0202a;
    border-color: #c0202a;
  }

  .hm-cta:hover::before,
  .hm-cta:focus-visible::before {
    background: #fff;
  }

  .hm-cta:hover::after {
    transform: translateX(3px);
  }
}

@media (min-width: 769px) and (prefers-reduced-motion: reduce) {
  .hm-cta { transition: none; }
}

/* Closing band above the footer: "Bereit für dein Projekt? Lass uns reden."
   (markup by build_en.py on every content page except Kontakt; reveal in site.js) */
.hm-band {
  position: relative;
  overflow: hidden;
  padding: 120px 0 110px;
  background: #0c0c0c;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
}

.hm-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 85% 50%, rgba(192, 32, 42, 0.16), transparent 70%);
  pointer-events: none;
}

.hm-band__iris {
  position: absolute;
  top: 50%;
  right: -60px;
  width: 520px;
  height: 520px;
  transform: translateY(-50%) rotate(-30deg);
  fill: none;
  stroke: rgba(192, 32, 42, 0.32);
  stroke-width: 0.35;
  pointer-events: none;
  transition: transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hm-band.is-visible .hm-band__iris {
  transform: translateY(-50%) rotate(0deg);
}

.hm-band__inner {
  position: relative;
  z-index: 1;
}

/* service pages: the band sits inside the portfolio box (same width as "Weitere Arbeiten")
   and uses its side padding */
.hm-band--inset {
  padding: 100px clamp(24px, 6vw, 80px) 96px;
  border-top-color: rgba(255, 255, 255, 0.06);
}

/* ...and ends the page: no leftover WordPress spacing between band and footer */
.wpb_text_column:has(.hm-band--inset),
article:has(.hm-band--inset) {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.hw-portfolio-page:has(.hm-band--inset) ~ p {
  display: none;
}

.hm-band--inset .hm-band__iris {
  right: -110px;
  width: 480px;
  height: 480px;
}

.hm-band__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px !important;
  font: 400 11px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #c0202a;
}

.hm-band__eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: #c0202a;
}

.hm-band .hm-band__title {
  margin: 0 !important;
  font-family: "Bebas Neue", Arial, Helvetica, sans-serif !important;
  font-weight: 400 !important;
  font-size: clamp(52px, 7vw, 104px) !important;
  line-height: 0.95 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase;
  color: #fff !important;
}

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

.hm-band__line > span {
  display: inline-block;
}

.hm-band__title em {
  font-style: normal;
  color: #c0202a;
}

.hm-band__text {
  max-width: 520px;
  margin: 26px 0 0 !important;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7) !important;
}

.hm-band__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
  margin-top: 40px;
}

.hm-band__btn,
.hm-band__btn:hover,
.hm-band__btn:focus {
  color: #fff;
  text-decoration: none;
}

.hm-band__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 19px 34px;
  border-radius: 999px;
  background: #c0202a;
  font: 700 12px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  box-shadow: 0 12px 34px rgba(192, 32, 42, 0.3);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.hm-band__btn::after {
  content: "";
  flex: none;
  width: 17px;
  height: 10px;
  background: currentColor;
  /* drawn arrow instead of the "\2192" glyph, which sits off-centre next to capitals */
  -webkit-mask: var(--hm-arrow) center / contain no-repeat;
  mask: var(--hm-arrow) center / contain no-repeat;
  transition: transform 0.25s ease;
}

.hm-band__btn:hover,
.hm-band__btn:focus-visible {
  background: #d8252f;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(192, 32, 42, 0.45);
}

.hm-band__btn:hover::after {
  transform: translateX(4px);
}

.hm-band__alt,
.hm-band__alt:hover,
.hm-band__alt:focus {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.hm-band__alt {
  font: 400 13px/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: 0.5px;
}

.hm-band__alt span {
  color: #fff;
  border-bottom: 1px solid rgba(192, 32, 42, 0.7);
  transition: border-color 0.2s ease;
}

.hm-band__alt:hover span {
  border-color: #c0202a;
}

/* reveal once the band scrolls into view (class hm-js set by site.js, so without JS it just shows) */
.hm-band.hm-js .hm-band__eyebrow,
.hm-band.hm-js .hm-band__text,
.hm-band.hm-js .hm-band__actions {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hm-band.hm-js .hm-band__line > span {
  transform: translateY(105%);
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hm-band.hm-js .hm-band__line + .hm-band__line > span { transition-delay: 0.12s; }
.hm-band.hm-js .hm-band__text { transition-delay: 0.35s; }
.hm-band.hm-js .hm-band__actions { transition-delay: 0.5s; }

.hm-band.hm-js.is-visible .hm-band__eyebrow,
.hm-band.hm-js.is-visible .hm-band__text,
.hm-band.hm-js.is-visible .hm-band__actions {
  opacity: 1;
  transform: none;
}

.hm-band.hm-js.is-visible .hm-band__line > span {
  transform: none;
}

@media (max-width: 768px) {
  .hm-band {
    padding: 84px 0 96px;
  }

  .hm-band__iris,
  .hm-band--inset .hm-band__iris {
    top: 34%;
    right: -150px;
    width: 340px;
    height: 340px;
  }

  /* service pages: keep the side padding of the portfolio box (same as "Weitere Arbeiten") */
  .hm-band--inset {
    padding: 84px 24px 96px;
  }

  .hm-band .hm-band__title {
    font-size: clamp(46px, 13vw, 64px) !important;
  }

  .hm-band__text {
    font-size: 15px;
  }

  .hm-band__actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* small phones: the longest labels ("Live-Mitschnitt anfragen") still fit on one line */
@media (max-width: 400px) {
  .hm-band__btn {
    max-width: 100%;
    padding: 18px 22px;
    letter-spacing: 1.6px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hm-band__iris,
  .hm-band.hm-js .hm-band__eyebrow,
  .hm-band.hm-js .hm-band__text,
  .hm-band.hm-js .hm-band__actions,
  .hm-band.hm-js .hm-band__line > span {
    transition: none;
  }
}

/* Big ghost word in the page header of the service pages ("MUSIK", "HOCHZEIT", ...):
   on phones it sits fully inside the screen; site.js shrinks long words to fit */
@media (max-width: 768px) {
  .hw-hero .hw-hero-bg {
    top: 6px !important;
    right: 20px !important;
  }
}

/* Video cards on the portfolio pages: on phones the year gets its own line and the
   links (Website, YouTube, Instagram) sit together in one row below it */
@media (max-width: 768px) {
  .hw-videos div[style*="padding:16px 22px"] {
    padding: 16px 16px !important;
  }

  .hw-videos div[style*="gap:16px;flex-wrap:wrap"] {
    gap: 10px 12px !important;
  }

  .hw-videos div[style*="gap:16px;flex-wrap:wrap"] > span:first-child {
    flex-basis: 100%;
  }

  .hw-videos div[style*="gap:16px;flex-wrap:wrap"] > br {
    display: none;
  }

  .hw-videos div[style*="gap:16px;flex-wrap:wrap"] > a {
    letter-spacing: 1.2px !important;
  }
}

/* Footer on phones: tighter spacing; Impressum and Datenschutz side by side */
@media (max-width: 768px) {
  .site-footer {
    padding-top: 44px !important;
    padding-bottom: 24px !important;
  }

  .site-footer .row > [class*="col-"] {
    margin-bottom: 26px !important;
  }

  /* the theme's empty spacer column */
  .site-footer .row > [class*="col-"]:not(:has(*)) {
    display: none;
  }

  .site-footer .widget {
    margin-bottom: 0 !important;
  }

  .site-footer .row > [class*="col-"]:last-child {
    margin-bottom: 0 !important;
  }

  .site-footer .social-links-widget {
    margin-top: 14px !important;
    margin-bottom: 16px !important;
  }

  /* copyright at the very bottom: the first column's blocks join the footer row
     so the copyright line can be moved behind Kontakt */
  .site-footer .row > [class*="col-"]:first-child {
    display: contents;
  }

  .site-footer .row > [class*="col-"]:first-child > * {
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  .site-footer .row > [class*="col-"]:first-child > .site-logo a {
    width: 54px;
  }

  .site-footer .row > [class*="col-"]:first-child > .social-links-widget {
    margin-top: 4px !important;
    margin-bottom: 26px !important;
  }

  .site-footer .social-links-widget .social-links {
    margin: 0 !important;
  }

  .site-footer .row > [class*="col-"]:first-child > .copyright {
    order: 10;
    flex-basis: calc(100% - 30px);
    max-width: calc(100% - 30px);
    margin: 26px 15px 0 !important;
    padding: 18px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
  }

  .site-footer .widget-title {
    margin-bottom: 14px !important;
  }

  .site-footer .menu-footer-menue-container ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 24px;
  }

  .site-footer .menu-footer-menue-container li {
    margin: 0 !important;
  }

  .site-footer .contact-row {
    margin-bottom: 14px !important;
  }

  .site-footer .contact-row:last-child {
    margin-bottom: 0 !important;
  }
}

/* FAQ page: questions open and close (<details>), styled like the process lists */
.hm-faq {
  padding: 40px 80px 72px;
  background: #0d0d0d;
}

.hm-faq__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hm-faq__item summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 0;
  cursor: pointer;
  list-style: none;
}

.hm-faq__item summary::-webkit-details-marker {
  display: none;
}

.hm-faq__num {
  flex: none;
  width: 36px;
  font: 400 11px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 2px;
  color: #c0202a;
}

.hm-faq__q {
  flex: 1;
  font: 700 19px/1.35 Helvetica, Arial, sans-serif;
  color: #fff;
  transition: color 0.2s ease;
}

.hm-faq__item summary:hover .hm-faq__q,
.hm-faq__item summary:focus-visible .hm-faq__q {
  color: #e0e0e0;
}

/* plus that turns into a minus when the answer is open */
.hm-faq__icon {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.hm-faq__icon::before,
.hm-faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  margin: -0.75px 0 0 -6px;
  background: #fff;
  transition: transform 0.3s ease;
}

.hm-faq__icon::after {
  transform: rotate(90deg);
}

.hm-faq__item[open] .hm-faq__icon {
  border-color: #c0202a;
  background: #c0202a;
}

.hm-faq__item[open] .hm-faq__icon::after {
  transform: rotate(0deg);
}

.hm-faq__a {
  padding: 0 54px 30px 56px;
  max-width: 820px;
}

.hm-faq__a p {
  margin: 0 0 12px !important;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.62) !important;
}

.hm-faq__a p:last-child {
  margin-bottom: 0 !important;
}

.hm-faq__item[open] .hm-faq__a {
  animation: hm-faq-in 0.35s ease both;
}

@keyframes hm-faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1024px) {
  .hm-faq {
    padding: 32px 40px 56px;
  }
}

@media (max-width: 768px) {
  .hm-faq {
    padding: 16px 24px 48px;
  }

  .hm-faq__item summary {
    gap: 14px;
    padding: 22px 0;
  }

  .hm-faq__num {
    width: auto;
  }

  .hm-faq__q {
    font-size: 16px;
  }

  .hm-faq__icon {
    width: 30px;
    height: 30px;
  }

  .hm-faq__a {
    padding: 0 0 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hm-faq__item[open] .hm-faq__a { animation: none; }
  .hm-faq__icon::before, .hm-faq__icon::after { transition: none; }
}
