/* rudolfgermann.de — Contact / Legal panels inside the existing hero box */

/* Keep the first background slide at its final geometry before Splide mounts.
   Kadence only hides the other slides pre-init; Splide normally assigns the
   slide width a moment later, which can expose the black hero background. */
.kb-row-layout-id109_968675-78 > .kb-blocks-bg-slider .kb-blocks-bg-slider-init:not(.splide-initialized) .splide__list {
  width: 100% !important;
  transform: none !important;
}

.kb-row-layout-id109_968675-78 > .kb-blocks-bg-slider .kb-blocks-bg-slider-init:not(.splide-initialized) .kb-bg-slide-contain:first-child {
  width: 100% !important;
  min-width: 100% !important;
  flex: 0 0 100% !important;
}

/* One geometry for Main, Contact and Legal.
   Around the current desktop size this matches the existing Main box.
   On smaller desktop/tablet widths it stays usable, and on ultra-wide
   displays it stops growing at a readable maximum width. */
@media all and (min-width: 768px) {
  .my-parallax-box,
  .kt-inside-inner-col > .my-parallax-box:not(.specificity) {
    box-sizing: border-box;
    width: clamp(680px, 47vw, 900px) !important;
    max-width: 84vw !important;
    margin-left: 8% !important;
    margin-right: auto !important;
    align-self: flex-start !important;
  }
}

@media all and (max-width: 767px) {
  .my-parallax-box,
  .kt-inside-inner-col > .my-parallax-box:not(.specificity) {
    box-sizing: border-box;
    width: 96% !important;
    max-width: none !important;
    margin-left: 2% !important;
    margin-right: 2% !important;
    align-self: flex-start !important;
  }
}

.my-parallax-box.rg-panel-active > .kt-inside-inner-col > :not(.rg-inline-panel) {
  display: none !important;
}

.my-parallax-box.rg-panel-active > .kt-inside-inner-col {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
}

.rg-inline-panel {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 0;
  color: #fff;
}

.rg-inline-panel--legal {
  padding-bottom: 21px;
}

.rg-inline-panel[hidden] {
  display: none !important;
}

/* The cloned Main logo must behave as a full row. The original figure carries
   an alignleft class, which would otherwise let following text wrap beside it. */
.rg-panel-logo,
.rg-panel-logo figure,
.rg-panel-logo .rg-logo-home {
  display: block !important;
  float: none !important;
  clear: both !important;
}

.rg-panel-logo {
  width: 100%;
  flex: 0 0 auto;
}

.rg-inline-panel h2,
.rg-inline-panel h3,
.rg-inline-panel p,
.rg-inline-panel a,
.rg-inline-panel address {
  color: #fff !important;
}

.rg-inline-panel h2,
.rg-inline-panel h3 {
  width: 100%;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}

.rg-inline-panel h2 {
  clear: both;
  margin: 0 0 10px;
}

.rg-inline-panel h3 {
  margin: 16px 0 6px;
}

.rg-inline-panel p {
  width: 100%;
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
}

.rg-inline-panel p:last-child {
  margin-bottom: 0;
}

.rg-inline-panel address {
  width: 100%;
  margin: 0;
  font-style: normal;
  font-size: 14px;
  line-height: 1.5;
}

.rg-legal-details {
  width: 100%;
}

.rg-legal-details p {
  margin-bottom: 0;
}

@media all and (max-width: 767px) {
  /* Keep the hero crop stable while Safari changes its browser chrome. */
  .kb-row-layout-id109_968675-78 > .kt-row-column-wrap {
    min-height: 100svh !important;
  }

  /* Enlarge the existing logo on phones while preserving the original
     Kadence optical offset of the image element. */
  .my-parallax-box .kb-image109_627755-b7:not(.kb-image-is-ratio-size) .kb-img,
  .my-parallax-box .kb-image109_627755-b7.kb-image-is-ratio-size {
    padding-right: 9.5rem !important;
  }

  .rg-inline-panel--legal {
    margin-top: -63px;
    padding-bottom: 0;
  }

  .rg-legal-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 18px;
  }

  .rg-inline-panel h2 {
    margin-bottom: 8px;
  }

  .rg-inline-panel h3 {
    margin-top: 10px;
    margin-bottom: 4px;
  }

  .rg-inline-panel p {
    margin-bottom: 7px;
  }

  /* Keep footer controls clear of mobile browser UI. */
  #colophon {
    padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Stable two-row mobile footer: Contact left, IMDb right, Legal centered below. */
  #colophon .footer-navigation,
  #colophon .footer-navigation .footer-menu-container {
    width: 100% !important;
    justify-content: center !important;
  }

  #colophon .footer-navigation .footer-menu-container > ul {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    width: min(58vw, 240px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    align-items: center;
    column-gap: 12px;
    row-gap: 0;
  }

  #colophon .footer-navigation .footer-menu-container > ul > li {
    display: flex !important;
    min-width: 0;
    margin: 0 !important;
  }

  #colophon .footer-navigation .footer-menu-container > ul > li:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
  }

  #colophon .footer-navigation .footer-menu-container > ul > li:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
  }

  #colophon .footer-navigation .footer-menu-container > ul > li:nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
  }

  #colophon .footer-navigation .footer-menu-container > ul li a {
    display: inline-flex !important;
    width: auto !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding-left: 8px;
    padding-right: 8px;
    margin: 0 !important;
    white-space: nowrap;
  }
}
