@font-face {
  font-family: Montserrat;
  src: url("assets/fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Lato;
  src: url("assets/fonts/Lato-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Lato;
  src: url("assets/fonts/Lato-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { background: #fff; }
body {
  font-family: Lato, sans-serif;
  color: #777;
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #D57800; text-decoration: none; }
a:hover { text-decoration: underline; }

.accent-top {
  height: 2px;
  background: #D57800;
}

/* ----- Hero / Startseite ----- */
.hero {
  position: relative;
  height: 600px;
  background: #666 url("assets/hero.jpg") 48% 45% / cover no-repeat;
  overflow: visible;
}
.hero-bar {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  height: 0;
}
.logo {
  position: absolute;
  left: 40px;
  top: 30px;
  height: 75px;
  width: auto;
  z-index: 4;
}
.flags {
  position: absolute;
  top: 39px;
  right: 40px;
  display: flex;
  gap: 21px;
  z-index: 4;
}
.flags img { width: 32px; height: 21px; }

.dark {
  position: absolute;
  right: max(40px, calc((100% - 1280px) / 2 + 40px));
  top: 500px;
  width: 560px;
  background: rgba(32, 32, 32, 0.85);
  padding: 50px 60px;
  color: #f1f1f1;
  z-index: 3;
}
.dark h1 {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 14px;
}
.divider {
  width: 100px;
  height: 3px;
  background: #fff;
  margin: 22px 0;
}
.dark p {
  color: #f1f1f1;
  font-size: 16px;
  line-height: 1.6;
}

/* ----- SiGeKo ----- */
.sec-sige {
  max-width: 1280px;
  margin: 0 auto;
  padding: 280px 80px 80px;
  display: flex;
  gap: 60px;
  align-items: center;
}
.building {
  flex: 0 0 480px;
  height: 470px;
  background: #fff url("assets/industrie.jpg") 50% 50% / cover no-repeat;
}
.sec-sige-text { flex: 1 1 auto; min-width: 0; }
.sec-sige-text h2,
.card h2,
.sec4box h2,
.page-main h1,
.footer h2 {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  color: #555;
}
.sec-sige-text h2 {
  font-size: 32px;
  line-height: 1.15;
  margin: 0 0 14px;
}

/* ----- EHS Band ----- */
.band {
  position: relative;
  background: #e9e9e9;
  padding: 100px 0 80px;
}
.band-line {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: #4E5B31;
  opacity: 0.55;
}
.band-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
}
.bigtype {
  position: absolute;
  left: 80px;
  top: 20px;
  z-index: 3;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 64px;
  line-height: 0.95;
  color: #f2f2f2;
  pointer-events: none;
  width: max-content;
  overflow: visible;
}
.ehs-photo {
  margin-left: 310px;
  height: 540px;
  background: #d9d9d9 url("assets/ehs-besprechung.jpg") 50% 35% / cover no-repeat;
  position: relative;
}
.ehs-photo::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: #D57800;
}
.card {
  position: absolute;
  left: 80px;
  bottom: 36px;
  width: 440px;
  background: #fff;
  padding: 40px 44px;
  z-index: 2;
}
.card h2,
.sec4box h2 {
  font-size: 25.6px;
  line-height: 1.3;
  margin: 0 0 14px;
}

/* ----- Online-Angebote ----- */
.sec-online {
  position: relative;
  min-height: 560px;
  background: #ccc url("assets/online.jpg") 72% 76% / cover no-repeat;
  padding: 180px 80px 80px;
  max-width: none;
}
.sec-online-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
}
.sec4box {
  width: 560px;
  max-width: 100%;
  background: #e9e9e9;
  padding: 50px;
  position: relative;
}
.sec4box-line {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: #4E5B31;
}

/* ----- Footer ----- */
.footer {
  background: #202020;
  text-align: center;
  padding: 50px 40px 70px;
  position: relative;
}
.footer h2 {
  color: #fff;
  font-size: 25.6px;
  line-height: 1.3;
  margin: 0 0 14px;
}
.footer p {
  color: #fff;
  font-size: 16px;
  line-height: 1.6;
}
.footer a { color: #fff; }
.footer .footer-links {
  margin-top: 26px;
}
.footer .footer-links p { margin: 0; }
.footer .note {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  color: #888;
  font-size: 11px;
  line-height: 16px;
}
.accent-bottom {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #4E5B31;
}

/* ----- Innenseiten ----- */
.page-header {
  position: relative;
  background: #202020;
  min-height: 130px;
}
.page-header .logo { top: 28px; }
.page-header .flags { top: 55px; }
.page-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 40px 80px;
}
.page-main h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 28px;
}
.page-main h2 {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #555;
  margin: 28px 0 10px;
}
.page-main p { margin: 0 0 14px; }

/* ----- Formular ----- */
.kontakt-form { max-width: 36rem; }
.kontakt-form .field,
.kontakt-form .field-check { margin: 0 0 18px; }
.kontakt-form label {
  display: block;
  color: #555;
  font-weight: 700;
  margin: 0 0 6px;
}
.kontakt-form .field-check label {
  font-weight: 400;
  color: #777;
}
.kontakt-form input[type="text"],
.kontakt-form input[type="email"],
.kontakt-form select,
.kontakt-form textarea {
  width: 100%;
  border: 1px solid #ccc;
  padding: 10px 12px;
  font: 16px/1.5 Lato, sans-serif;
  color: #333;
  background: #fff;
  border-radius: 0;
}
.kontakt-form textarea { min-height: 140px; resize: vertical; }
.kontakt-form .field[aria-invalid="true"] input,
.kontakt-form .field[aria-invalid="true"] textarea,
.kontakt-form .field[aria-invalid="true"] select {
  border-color: #7a1f1f;
}
.kontakt-form .field-error {
  display: block;
  color: #7a1f1f;
  font-size: 14px;
  margin-top: 4px;
}
.kontakt-form .field-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.kontakt-form .field-check input { margin-top: 4px; flex: 0 0 auto; }
.turnstile-slot { margin: 8px 0 18px; min-height: 65px; }
.btn {
  display: inline-block;
  background: #D57800;
  color: #fff;
  border: 0;
  padding: 12px 22px;
  font: 700 16px/1.2 Montserrat, sans-serif;
  cursor: pointer;
}
.btn:hover { background: #b86600; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.form-status {
  margin: 0 0 18px;
  padding: 12px 14px;
}
.form-status[data-kind="ok"] { background: #e8f0e0; color: #2c3a1c; }
.form-status[data-kind="error"] { background: #f8e8e8; color: #7a1f1f; }

@media (max-width: 1100px) {
  .sec-sige { flex-direction: column; padding: 280px 40px 60px; }
  .building { width: 100%; flex-basis: auto; max-width: 512px; }
  .ehs-photo { margin-left: 0; }
  .bigtype { position: static; font-size: 52px; margin: 0 0 16px; }
  .card { width: min(440px, calc(100% - 40px)); left: 40px; }
  .band-inner { padding: 0 40px; }
  .bigtype { left: 40px; }
  .sec-online { padding: 120px 40px 60px; }
}

/* Honeypot, visuell verborgen */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Mobile: dunkler Kasten unter dem Bild statt abgeschnitten */
@media (max-width: 700px) {
  .hero { height: auto; padding-top: 300px; background-position: 50% 30%; }
  .hero-bar { position: static; }
  .logo { left: 20px; top: 20px; height: 63px; }
  .flags { right: 20px; top: 30px; }
  .dark { position: relative; top: auto; right: auto; width: auto; margin: 0 16px -60px; padding: 28px 22px; }
  .dark h1 { font-size: 21px; }
  .sec-sige { padding: 100px 20px 50px; }
}
