/*****************************************/
/* [PAGE] >> Gemeinsame Seiten (Home, Impressum, Datenschutz) */
/*****************************************/

html {
  overflow-x: hidden;
}

body.legal-page,
body.uebergang-page {
  overflow-x: hidden;
  background-color: #FFFFFF;
  background-image: url('/assets/theme/themes/sky/bg.body.png');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
}

body.legal-page #colleft,
body.legal-page #topmenu,
body.uebergang-page #topmenu {
  display: none !important;
}

body.legal-page #header,
body.uebergang-page #header {
  position: relative;
  z-index: 4;
  width: 100%;
  overflow: visible;
}

body.legal-page #header .row1,
body.uebergang-page #header .row1 {
  height: auto;
  min-height: 150px;
  overflow: visible;
  padding: 12px 0 16px;
}

body.legal-page #header .row1 .content,
body.uebergang-page #header .row1 .content {
  position: relative;
  width: 100%;
  max-width: 1002px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: left;
  overflow: visible;
}

body.legal-page .site-header-inner,
body.uebergang-page .site-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 1rem;
  width: 100%;
}

body.legal-page .site-header-logo,
body.uebergang-page .site-header-logo {
  justify-self: start;
}

body.legal-page .site-logo,
body.uebergang-page .site-logo {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
}

body.legal-page .site-header-slogan,
body.uebergang-page .site-header-slogan {
  margin: 0;
  padding: 0 0.5rem;
  text-align: center;
  justify-self: center;
  align-self: center;
}

body.legal-page #pos_jubi,
body.uebergang-page #pos_jubi {
  position: static;
  justify-self: end;
  float: none;
  z-index: 10;
}

body.legal-page #pos_jubi p,
body.uebergang-page #pos_jubi p {
  margin: 0;
}

body.legal-page #pos_jubi img,
body.uebergang-page #pos_jubi img {
  display: block;
  width: 176px;
  height: auto;
}

body.uebergang-page .uebergang-hero {
  width: 100%;
  max-width: 100%;
  min-height: calc(100vh - 150px);
  box-sizing: border-box;
}

body.legal-page #content {
  width: 100%;
  max-width: 1002px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  box-sizing: border-box;
  overflow: visible;
}

body.legal-page #colmain,
body.legal-page #colmain #component {
  float: none;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

body.legal-page #colmain .article-body,
body.legal-page #colmain .item-page {
  overflow: visible;
  width: 100%;
}

body.legal-page #colmain p,
body.legal-page #colmain h1,
body.legal-page #colmain h2,
body.legal-page #colmain h3,
body.legal-page #colmain ul,
body.legal-page #colmain .article-body p,
body.legal-page #colmain .article-body h1,
body.legal-page #colmain .article-body h2,
body.legal-page #colmain .article-body h3,
body.legal-page #colmain .article-body ul,
body.legal-page #colmain .article-body div,
body.legal-page #colmain .article-body article {
  float: none;
  clear: both;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.legal-page #colmain .article-body pre {
  float: none;
  clear: both;
}

/*****************************************/
/* [FOOTER] >> Gemeinsamer Footer */
/*****************************************/

.site-footer {
  width: 100%;
  padding: 1rem 1.5rem;
  background-color: #003366;
  border-top: 1px solid #3E3E3E;
  text-align: center;
  font-size: 11px;
  text-transform: uppercase;
  box-sizing: border-box;
}

body.uebergang-page .site-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
}

body.legal-page #footer {
  display: none;
}

body.legal-page .site-footer {
  clear: both;
  width: 100%;
  margin-top: 2rem;
}

.site-footer .site-footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.5rem;
}

.site-footer .site-footer-legal a,
.site-footer .site-footer-copy a {
  color: #5C95EB;
  text-decoration: none;
}

.site-footer .site-footer-legal a:hover,
.site-footer .site-footer-copy a:hover {
  color: #FFFFFF;
}

.site-footer .site-footer-copy {
  margin: 0;
  color: #E5F0FF;
  font-size: 11px;
  text-transform: none;
}

/*****************************************/
/* [RESPONSIVE] >> Header & Hintergrund */
/*****************************************/

@media (min-width: 1101px) {
  body.legal-page .site-logo,
  body.uebergang-page .site-logo {
    width: 360px;
  }
}

@media (max-width: 1100px) {
  body.legal-page,
  body.uebergang-page {
    background-size: 1100px auto;
  }
}

@media (max-width: 900px) {
  body.legal-page #header .row1,
  body.uebergang-page #header .row1 {
    min-height: 0;
    padding-bottom: 20px;
  }

  body.legal-page .site-header-inner,
  body.uebergang-page .site-header-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 0.5rem;
  }

  body.legal-page .site-header-logo,
  body.uebergang-page .site-header-logo,
  body.legal-page .site-header-slogan,
  body.uebergang-page .site-header-slogan,
  body.legal-page #pos_jubi,
  body.uebergang-page #pos_jubi {
    justify-self: center;
  }

  body.legal-page .site-header-slogan,
  body.uebergang-page .site-header-slogan {
    margin: 0.25rem 0;
  }

  body.legal-page .site-logo,
  body.uebergang-page .site-logo {
    margin: 0 auto;
  }

  body.legal-page #pos_jubi img,
  body.uebergang-page #pos_jubi img {
    width: 110px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  body.legal-page #header .row1 .content,
  body.uebergang-page #header .row1 .content {
    padding: 0 12px;
  }
}
