/* Self-hosted Open Sans (latin + latin-ext, weights 300–700) */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../assets/fonts/open-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../assets/fonts/open-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Visual rebuild based on measured reference values */

@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap");

* { margin: 0; padding: 0; border: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: #f7f7f7;
  color: #000;
  font-family: 'Open Sans', Verdana, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6em;
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: #4C94DB; text-decoration: none; }
a:hover { color: #4C94DB; text-decoration: underline; }
a, button { -webkit-tap-highlight-color: transparent; }
strong { font-weight: 600; }
p { padding: 0 0 1.5em; }

h1, h2, h3, h4 {
  font-family: 'Gill Sans MT', 'Trebuchet MS', 'Open Sans', sans-serif;
  font-weight: 300;
  color: #4C94DB;
}
h1 { font-size: 26px; line-height: 30px; }
h2 { font-size: 24px; line-height: 30px; padding-bottom: .5em; }

#wrapper { position: relative; width: 100%; min-height: 100vh; }
.innerwrap { position: relative; width: 1280px; margin: 0 auto; }

/* mobile menu */
#mobileheader,
#mobilemenubox,
#menumask { display: none; }

/* header */
#headerbox { position: relative; }
#headerwrap { position: relative; height: 180px; }
#headerwrap .innerwrap { height: 100%; }
#logolink {
  position: absolute;
  bottom: -30px;
  left: 0;
  width: 600px;
  height: 180px;
  background: url("../assets/images/IB-Seidel_Signet.svg") no-repeat bottom left transparent;
  display: block;
  z-index: 10;
}
.headermenubar {
  position: absolute;
  bottom: -25px;
  right: 0;
  height: 50px;
  width: 50vw;
  background-color: #06c;
  border-radius: 25px 0 0 25px;
  box-shadow: 5px 5px 5px rgba(0,0,0,.5);
  z-index: 10;
}
#mainmenu {
  position: absolute;
  right: 0;
  bottom: -25px;
  width: 640px;
  height: 50px;
  padding: 0 0 0 30px;
  margin: 0;
  list-style: none;
  font-size: 0;
  line-height: 0;
  white-space: nowrap;
  z-index: 10;
}
#mainmenu li { position: relative; display: inline-block; }
#mainmenu li a {
  display: block;
  line-height: 50px;
  font-size: 17px;
  padding: 0 8px;
  font-weight: 400;
  text-transform: uppercase;
  color: #fff;
}
#mainmenu li a:hover,
#mainmenu li a.selected { color: #000; text-decoration: none; }

#headerimg {
  position: relative;
  width: 100%;
  height: 770px;
  overflow: hidden;
}
#headerimg_desktop {
  position: absolute;
  inset: 0;
  background-color: #0555a2;
  background-image: var(--hero-image, url("../assets/images/bg-lueftung-1920x770.jpg"));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: translate3d(0, 0, 0);
}

body.home-page {
  --hero-image: url("../assets/images/bg-startseite-1920x770.jpg");
}

body.ueber-uns-page {
  --hero-image: url("../assets/images/bg-zeichnungen-1920x770.jpg");
}

body.leistungen-page {
  --hero-image: url("../assets/images/bg-wp-1920x770.jpg");
}

body.referenzen-page {
  --hero-image: url("../assets/images/bg-lueftungskanaele-1920x770.jpg");
}

body.karriere-page {
  --hero-image: url("../assets/images/bg-lueftung-1920x770.jpg");
}

body.kontakt-page {
  --hero-image: url("../assets/images/bg-startseite-1920x770.jpg");
}

body.impressum-page,
body.datenschutz-page,
body.sitemap-page {
  --hero-image: url("../assets/images/bg-lueftung-1920x770.jpg");
}
body.parallax-enabled #headerimg_desktop {
  will-change: transform;
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.06);
}

/* partner links above nav bar (desktop) */
#partner-links {
  position: absolute;
  right: 0;
  bottom: 34px;
  z-index: 12;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-family: 'Open Sans', Verdana, sans-serif;
  font-size: 14px;
  line-height: 1;
}
.partner-links-label {
  color: #666;
  margin-right: 9px;
}
#partner-links a {
  color: #1f6fbf;
  text-decoration: none;
  font-weight: 600;
  transition: color .15s;
}
#partner-links a:hover {
  color: #154e8a;
  text-decoration: underline;
}
.partner-links-sep {
  color: #ccc;
  margin: 0 8px;
  font-size: 13px;
}

/* content */
#maincontent {
  position: relative;
  width: 1280px;
  margin: -200px auto 0;
  background-color: #fff;
  box-shadow: 2px 3px 18px rgba(0,0,0,.18);
  z-index: 100;
}
#maincontent > .content { position: relative; padding: 40px; }
#maincontent h1 {
  margin: 0 0 40px -40px;
  background-color: #EAEBEB;
  box-shadow: 5px 5px 5px rgba(0,0,0,.3);
  padding: 10px 40px;
  border-radius: 0 25px 25px 0;
  color: #4C94DB;
  text-transform: uppercase;
  display: inline-block;
  min-width: 30%;
}

.row { display: flex; gap: 0; }
.column { min-width: 0; }
.column-main { width: calc(100% - 360px); padding-right: 20px; }
.column-sidebar { width: 360px; padding-left: 24px; border-left: 1px solid #00b6be; }
.row-full { margin-top: 25px; }
.column-12 { width: 100%; }
.text-blau { color: #4C94DB; }

.contact-info p { padding: 0 0 .35em; }
.location-block { margin-top: 26px; }
.location-block:first-of-type { margin-top: 8px; }
.location-title {
  padding-bottom: .45em !important;
  font-weight: 700;
  font-style: normal;
}
.verbund-hinweis a {
  color: #1d3f5f;
  font-weight: 700;
}
.verbund-hinweis a:hover {
  color: #16344e;
}

.references_search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.companysearch label,
.direction label { margin-right: 16px; font-weight: 400; }
.directionlabel { margin-right: 8px; }

.references_list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}
.reference_item {
  border: 0;
  border-radius: 14px;
  background: #f3f5f7;
  box-shadow: 0 1px 0 rgba(9, 30, 66, 0.04), 0 6px 22px rgba(9, 30, 66, 0.05);
}
.reference_header { width: 100%; aspect-ratio: 330 / 240; overflow: hidden; }
.reference_header img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reference_content { padding: 14px; }
.reference_content .title {
  color: #0f2234;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding-bottom: .45em;
}
.reference_content p { padding-bottom: .7em; }
.reference-group-title {
  margin: 8px 0 14px;
  font-size: 22px;
  line-height: 1.3;
  color: #16344e;
  font-weight: 700;
}
.references_list + .reference-group-title {
  margin-top: 60px;
}
.reference-note {
  margin-bottom: 14px;
}
.reference_item--text .reference_content {
  padding: 26px 24px 24px;
}
.reference_item--text .title {
  margin-bottom: 8px;
  padding-bottom: 0;
  font-size: 18px;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}
.reference_item--text p {
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.52;
  color: #33495d;
}
.reference_item--text p + p { margin-top: 8px; }

/* footer */
#footerblock {
  position: relative;
  margin: 200px 0 0 0;
  padding: 0;
  width: 100%;
  min-height: 200px;
  background-color: #06c;
  box-shadow: 8px 8px 8px rgba(0,0,0,.7);
  z-index: 2;
}
.footer-brandline {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
}
.footer-logolink {
  position: relative;
  width: 500px;
  height: 150px;
  background: url("../assets/images/IB-Seidel_Signet.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
}
.footer-inner {
  width: 1280px;
  margin: 0 auto;
  padding: 52px 0 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: flex-start;
  column-gap: 28px;
}
.footer-col p {
  color: #fff;
  font-size: 16px;
  line-height: 1.45;
  padding: 0;
}
.footer-col-title {
  font-size: 16px;
  padding-bottom: 6px !important;
  font-weight: 700;
}
.footer-col-left { text-align: left; }
.footer-col-mid { text-align: left; }
.footer-col-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  text-align: left;
  justify-self: start;
}
.footer-col-links a {
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
  text-decoration: none;
}
.footer-col-links a:hover { text-decoration: underline; }

/* responsive */
@media (max-width: 1360px) {
  .innerwrap,
  #maincontent { width: calc(100% - 40px); }
  .footer-inner { width: calc(100% - 40px); }
  .references_list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reference_item--text .title {
    font-size: 17px;
    line-height: 1.32;
  }
  .reference_item--text p { font-size: 15px; }
}

@media (max-width: 1024px) {
  #headerwrap { height: 120px; }
  #logolink {
    width: 320px;
    height: 120px;
    bottom: 0;
    background-size: contain;
  }
  #mainmenu, .headermenubar { display: none; }

  #mobileheader {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 300;
    background-color: transparent;
    backdrop-filter: none;
  }
  #mobilemenu_icon {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 40px;
    height: 40px;
    background: #06c;
    border-radius: 4px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 6px 12px rgba(0,0,0,.18);
  }
  #mobilemenu_icon:active { transform: scale(.97); }
  #mobilemenu_icon::before,
  #mobilemenu_icon::after {
    content: "";
    position: absolute;
    left: 10px;
    width: 20px;
    height: 2px;
    background: #fff;
  }
  #mobilemenu_icon::before { top: 14px; box-shadow: 0 6px 0 #fff; }
  #mobilemenu_icon::after { top: 26px; }

  #menumask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 250;
  }
  #menumask.hidden { display: none; }

  #mobilemenubox {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 340px);
    height: 100vh;
    background: linear-gradient(180deg, #0664c0 0%, #0555a2 100%);
    border-left: 1px solid rgba(255,255,255,.18);
    z-index: 260;
    padding: 70px 20px 20px;
    transform: translateX(0);
    transition: transform .25s ease;
  }
  #mobilemenubox.closed { transform: translateX(100%); }
  #mobilemenu_main { list-style: none; }
  #mobilemenu_main a {
    display: block;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.2);
    padding: 12px 0;
    text-transform: uppercase;
    font-size: 15px;
  }

  #headerimg { height: 360px; }
  body.parallax-enabled #headerimg_desktop {
    transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.03);
  }
  #partner-links { display: none; }

  .mobile-partner-links {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .18);
  }
  .mobile-partner-label {
    display: block;
    color: rgba(255, 255, 255, .45);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 10px;
  }
  .mobile-partner-links a {
    display: block;
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
    font-weight: 600;
    padding: 7px 0;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    transition: color .15s;
  }
  .mobile-partner-links a:last-child { border-bottom: 0; }
  .mobile-partner-links a:hover { color: #fff; text-decoration: none; }

  #maincontent { margin-top: 0; width: 100%; }
  #maincontent > .content { padding: 24px 20px; }
  #maincontent h1 {
    margin-left: -20px;
    margin-right: 0;
    padding: 10px 20px 10px 40px;
    font-size: 22px;
    width: calc(100% + 20px);
  }
  .row { flex-direction: column; }
  .column-main,
  .column-sidebar { width: 100%; padding: 0; border-left: 0; }
  .column-sidebar {
    position: relative;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 2px solid #4C94DB;
  }
  .contact-info .location-block {
    margin-top: 18px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(76, 148, 219, 0.06);
  }
  .contact-info .location-block:first-of-type { margin-top: 12px; }
  .contact-info .location-title { letter-spacing: 0.01em; }
  .references_list { grid-template-columns: 1fr; }
  .reference_item--text .reference_content {
    padding: 20px 18px 18px;
  }
  .reference_item--text .title {
    font-size: 16px;
    line-height: 1.3;
  }
  .reference_item--text p {
    font-size: 15px;
    line-height: 1.5;
  }
  #footerblock { margin: 110px 0 0 0; min-height: 260px; }
  .footer-brandline {
    top: -70px;
  }
  .footer-logolink { width: 300px; height: 92px; }

  .footer-inner {
    width: calc(100% - 40px);
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 70px 0 20px;
  }
  .footer-col p,
  .footer-col-title,
  .footer-col-links a {
    font-size: 15px;
    line-height: 1.35;
  }
  .footer-col-links { align-items: flex-start; text-align: left; }
}
