/* BGSI Engineering GmbH – statische Website
   Design nachgebaut vom bisherigen WordPress-Theme "Radiate" */
@import url("fonts/fonts.css");

:root {
  --blue: #1e73be;
  --blue-dark: #155a96;
  --text: #444;
  --text-strong: #111;
  --grey-bg: #eaeaea;
  --white: #fff;
  --line: #ddd;
  --header-h: 64px;
  --hero-h: 385px;
  --content-w: 1140px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: Merriweather, Georgia, serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--grey-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-content { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { font-family: Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--text-strong); line-height: 1.25; margin: 0 0 .6em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 2000; background: #fff; padding: 8px 14px; }
.skip-link:focus { left: 8px; }

/* ---------- Header (fixiert, halbtransparent weiss) ---------- */
.header-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  height: var(--header-h);
  background: rgba(255, 255, 255, .9);
  display: flex; align-items: center; justify-content: space-between;
}
.site-title {
  margin: 0; padding: 5px 20px 5px 25px;
  font: 300 36px/1.2 Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text); white-space: nowrap;
}
.site-title a { color: inherit; text-decoration: none; }

.main-navigation { height: 100%; }
.main-navigation > ul { display: flex; height: 100%; margin: 0; padding: 0; list-style: none; }
.main-navigation li { position: relative; }
.main-navigation > ul > li { border-left: 1px solid rgba(0, 0, 0, .06); }
.main-navigation a {
  display: flex; align-items: center; height: var(--header-h);
  padding: 0 25px;
  font: 300 18px Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.main-navigation a:hover,
.main-navigation li:hover > a,
.main-navigation .current > a { background: var(--blue); color: #fff; }
.main-navigation .lang a { font-size: 15px; letter-spacing: .04em; padding: 0 20px; }
.main-navigation .has-sub > a::after { content: ""; margin-left: 8px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }

.sub-menu {
  position: absolute; top: 100%; left: 0; z-index: 10;
  margin: 0; padding: 0; list-style: none;
  width: 290px; background: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .12);
  visibility: hidden; opacity: 0; transition: opacity .15s;
}
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu { visibility: visible; opacity: 1; }
.sub-menu a { height: 52px; font-size: 15px; border-top: 1px solid #f0f0f0; }

.menu-toggle { display: none; }

/* ---------- Parallax-Headerbild ---------- */
.parallax-bg {
  position: fixed; top: 0; left: 0; right: 0; z-index: -1;
  height: 100vh;
  background: #222 url("img/header.jpg") center top / cover no-repeat;
}
.hero-space { height: calc(var(--header-h) + var(--hero-h)); }

/* ---------- Inhalt ---------- */
.site-content { background: var(--grey-bg); padding: 45px 0 60px; }
.inner-wrap { width: 90%; max-width: var(--content-w); margin: 0 auto; }
.content {
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400; color: #222;
}
.content p, .content li { font-size: 16px; }
.content h1 { font-size: 26px; font-weight: 500; }
.content h1, .content h2, .content h3, .content .h6 { overflow-wrap: break-word; hyphens: auto; }
.content h2 { font-size: 28px; font-weight: 500; }
.content h3 { font-size: 22px; font-weight: 500; }
.content h6, .content .h6 { font-size: 19px; font-weight: 600; margin-top: 1.6em; }
.content ul.dash { list-style: none; padding: 0; margin: 0 0 1.2em; }
.content ul.dash li { margin: 0 0 .25em; }
.content ul.dash li::before { content: "– "; }
.center { text-align: center; }
.lead-block { max-width: 1064px; margin: 0 auto 30px; }
.muted { color: #666; }

/* Startseite: drei Leistungsspalten */
.service-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.service-col { text-align: center; }
.service-col img { width: 300px; height: 300px; object-fit: cover; margin: 0 auto 20px; }
.service-col p { margin: 0 0 .4em; }
.service-col strong a { color: var(--blue); }
.service-col ul { list-style: disc; padding: 0; margin: 0; list-style-position: inside; }
.service-col li { margin-bottom: .2em; }

/* Zweispaltige Abschnitte (Text + Bild) */
.split { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.split.img-left { grid-template-columns: 214px 1fr; }
.split.wide-img { grid-template-columns: 1fr 380px; }
.split img { width: 100%; }

/* Zertifikate (Über mich) */
.cert-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.cert-row a { display: block; background: #fff; padding: 6px; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.cert-row img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr 1.25fr; gap: 24px; align-items: stretch; margin-top: 30px; }
.contact-card { background: #fff; padding: 28px 30px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.contact-card h2 { font-size: 13px !important; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin: 0 0 16px; }
.contact-card p { margin: 0 0 12px; line-height: 1.7; }
.contact-card dl { margin: 0 0 22px; }
.contact-card dt { color: #666; font-size: 13px; }
.contact-card dd { margin: 0 0 12px; overflow-wrap: anywhere; }
.map-box {
  position: relative; min-height: 260px;
  background: #d6d6d6 url("img/header.jpg") center / cover;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.map-box::before { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .78); }
.map-box > div { position: relative; padding: 20px; font-size: 14px; }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 24px;
  background: var(--blue); color: #fff !important;
  font: 400 16px Roboto, Arial, sans-serif; text-decoration: none !important;
  border: 0; border-radius: 2px; cursor: pointer;
}
.btn:hover { background: var(--blue-dark); }
.btn-outline { background: transparent; color: var(--blue) !important; box-shadow: inset 0 0 0 1px var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff !important; }

/* ---------- InfraCarbon ---------- */
.ic-teaser {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  background: #fff; margin-top: 60px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.ic-teaser .ic-teaser-text { padding: 36px 40px; }
.ic-teaser img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.badge {
  display: inline-block; font: 500 12px Roboto, Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); border: 1px solid var(--blue); padding: 3px 8px; margin-bottom: 14px;
}
.ic-teaser h2 { font-size: 26px; }
.ic-teaser .btn { margin-top: 10px; margin-right: 8px; }

.box { background: #fff; padding: 30px 34px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.section { margin-top: 50px; }
.section > h2 { margin-bottom: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.box h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }
.step-num { font: 500 30px Roboto, Arial, sans-serif; color: var(--blue); display: block; margin-bottom: 6px; }
.stat { font: 500 44px/1 Roboto, Arial, sans-serif; color: var(--blue); margin-bottom: 6px; }
.stat small { font-size: 17px; font-weight: 400; color: #444; }
.footnote { font-size: 13px !important; color: #666; margin-top: 12px; }
.shot { background: #fff; padding: 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.shot figcaption { font-size: 13px; color: #666; padding: 8px 4px 2px; }
.norm-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.norm-list li { font-size: 14px !important; background: #eef4fa; color: var(--blue-dark); padding: 4px 10px; }
.cta-band { background: var(--blue); color: #fff; padding: 34px 40px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 50px; }
.cta-band h2 { color: #fff; margin: 0 0 4px; font-size: 24px; }
.cta-band p { margin: 0; color: #e3eef8; }
.cta-band .btn { background: #fff; color: var(--blue) !important; }
.cta-band .btn:hover { background: #eef4fa; }

table.compare { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid #e5e5e5; text-align: left; vertical-align: top; }
.compare thead th { background: #f5f5f5; font-weight: 500; }
.compare tr.hl td { background: #eef4fa; font-weight: 500; }
.compare .y { color: #1d7a3e; font-weight: 600; }
.compare .n { color: #b3261e; font-weight: 600; }
.compare .p { color: #a86500; font-weight: 600; }
.table-scroll { overflow-x: auto; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }

/* Rechtstexte */
.legal h2 { font-size: 22px; margin-top: 1.6em; }
.legal address { font-style: normal; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; padding: 20px 0; text-align: center; font-size: 14px; }
.site-footer p { margin: 0; }
.site-footer nav { margin-top: 6px; }
.site-footer nav a { margin: 0 8px; }

#scroll-up {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 42px; height: 42px; border-radius: 2px;
  background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
#scroll-up.show { opacity: .85; pointer-events: auto; }
#scroll-up:hover { opacity: 1; text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .main-navigation a { padding: 0 16px; font-size: 17px; }
  .site-title { font-size: 30px; }
}
@media (max-width: 1100px) {
  :root { --hero-h: 300px; }
  .header-wrap { justify-content: space-between; }
  .site-title { font-size: 26px; padding-left: 16px; }
  .menu-toggle {
    display: flex; align-items: center; gap: 8px;
    height: var(--header-h); padding: 0 18px; margin: 0;
    background: none; border: 0; cursor: pointer;
    font: 300 17px Roboto, Arial, sans-serif; color: var(--text);
  }
  .menu-toggle span.bars { width: 22px; height: 14px; position: relative; border-top: 2px solid; border-bottom: 2px solid; }
  .menu-toggle span.bars::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; border-top: 2px solid; }
  .main-navigation { position: absolute; top: var(--header-h); left: 0; right: 0; height: auto; display: none; background: #fff; box-shadow: 0 8px 16px rgba(0, 0, 0, .12); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .main-navigation.open { display: block; }
  .main-navigation > ul { flex-direction: column; height: auto; }
  .main-navigation > ul > li { border-left: 0; border-top: 1px solid #eee; }
  .main-navigation a { height: 50px; padding: 0 22px; }
  .main-navigation .has-sub > a::after { display: none; }
  .sub-menu { position: static; width: auto; visibility: visible; opacity: 1; box-shadow: none; }
  .sub-menu a { padding-left: 42px; height: 46px; }
  .service-cols { grid-template-columns: 1fr; gap: 40px; }
  .cert-row, .grid-4 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid .map-box { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  .split, .split.img-left, .split.wide-img, .ic-teaser, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .split.img-left img { max-width: 260px; }
  .split img { max-width: 420px; }
  .ic-teaser img { min-height: 200px; max-height: 320px; }
  .ic-teaser .ic-teaser-text, .box, .cta-band { padding: 24px 22px; }
}
@media (max-width: 560px) {
  :root { --hero-h: 200px; }
  .site-title { font-size: 21px; padding-left: 14px; padding-right: 8px; }
  .menu-toggle .label { display: none; }
  .inner-wrap { width: auto; margin: 0 16px; }
  .content h1 { font-size: 24px; }
  .content h2 { font-size: 23px; }
  .service-col img { width: 100%; max-width: 300px; height: auto; aspect-ratio: 1; }
  .cert-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .grid-4 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stat { font-size: 36px; }
}
