/* ==========================================================================
   Bardenhagen Maschinenbau Berlin GmbH – statischer Nachbau (ohne Elementor)
   ========================================================================== */

/* ---------- Fonts (lokal gehostet, keine Verbindung zu Google) ---------- */
@font-face { font-family: Ubuntu; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/ubuntu-300.woff2) format("woff2"); }
@font-face { font-family: Ubuntu; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ubuntu-400.woff2) format("woff2"); }
@font-face { font-family: Ubuntu; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ubuntu-500.woff2) format("woff2"); }
@font-face { font-family: Ubuntu; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/ubuntu-700.woff2) format("woff2"); }

:root {
  --blue: #254b92;
  --text: #6d7680;
  --nav: #aaa;
  --footer: #a5a5a5;
  --accent: #3ba9d2;
  --accent-alt: #79c4e0;
  --boxed: 1140px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Ubuntu, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  word-wrap: break-word;
}
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
p, figure { margin: 0 0 20px; padding: 0; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-alt); }
h1, h2 { margin: 0; color: var(--blue); font-family: Ubuntu, sans-serif; line-height: 1.4; }
h1 { font-size: 38px; font-weight: 700; }
h2 { font-size: 35px; font-weight: 400; }
button, input, textarea { font-family: inherit; margin: 0; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus-visible {
  clip: auto; width: auto; height: auto; margin: 0; z-index: 1000;
  top: 10px; left: 10px; padding: 10px 16px; background: #fff; color: var(--blue);
  box-shadow: 0 0 6px rgba(0,0,0,.3);
}

/* Elementor-artiger Boxed-Container: 1140px, Spalten mit 10px Innenabstand */
.boxed { max-width: var(--boxed); margin: 0 auto; }
.row { display: flex; flex-wrap: wrap; }
.col { width: 100%; padding: 10px; min-width: 0; }
.stack > * + * { margin-top: 20px; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 555; background: #fff; }
.nav-wrapper {
  max-width: 1200px; margin: 0 auto; padding: 33px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { line-height: 1.5; }
.logo img { width: 231px; display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.main-nav a {
  display: block; padding: 10px 20px; font-size: 18px; color: var(--nav);
  transition: all .2s;
}
.main-nav a:hover { color: var(--blue); }

.menu-toggle {
  display: none; background: none; border: 0; padding: 6px; margin: 0 15px 0 0;
  cursor: pointer; color: var(--nav); line-height: 0;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle:hover { color: var(--blue); }

@media (max-width: 1024px) {
  .nav-wrapper { padding: 20px; }
  .menu-toggle { display: inline-block; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; box-shadow: 0 10px 10px -10px rgba(0,0,0,.15);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { display: block; }
  .main-nav li { border-top: 1px solid #dedee5; }
  .main-nav li:last-child { border-bottom: 1px solid #dedee5; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 12px 24px; border: 0; border-radius: 3px;
  font-size: 15px; line-height: 1; text-align: center; cursor: pointer;
  transition: all .3s;
}
.btn svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
.btn--white { background: #fff; color: var(--blue); }
.btn--white:hover { color: var(--blue); background: #e9eef7; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { color: #fff; background: #1d3c76; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: url(../img/header_bg.jpg) center / cover no-repeat;
  padding-bottom: 60px;
}
.hero::before { content: ""; position: absolute; inset: 0; background: #fff; opacity: .36; }
.hero .boxed { position: relative; min-height: 560px; display: flex; align-items: flex-end; }
@media (max-width: 767px) {
  .hero .boxed { min-height: 347px; }
}

/* ---------- Intro (blau) ---------- */
.intro { background: var(--blue); padding: 50px 10px; color: #fff; }
.intro h2 { color: #fff; font-size: 32px; font-weight: 500; }
.intro .boxed { padding: 10px 0; }
.intro .btn { margin-top: 60px; }
.certs { display: flex; margin-right: -16px; margin-bottom: -16px; }
.certs a { width: 33.333%; padding: 0 16px 16px 0; display: block; }
.certs img { width: 100%; transition: opacity .25s; }
.certs img:hover { opacity: .7; }
@media (min-width: 768px) {
  .intro .col-left  { width: 52.895%; }
  .intro .col-right { width: 47.105%; }
}
@media (max-width: 767px) {
  .certs { display: none; }
}

/* ---------- Video ---------- */
.video { max-width: 759px; margin: 100px auto; }
.video h2 { text-align: center; margin-bottom: 70px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Zwei-Klick-Lösung (YouTube / Google Maps) */
.consent {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  border: 0; padding: 20px; cursor: pointer; text-align: center;
  font: inherit; font-size: 13px; line-height: 1.5; color: #fff;
}
.consent--video { background: #000 center / cover no-repeat; }
.consent--video::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); transition: background .2s; }
.consent--video:hover::before { background: rgba(0,0,0,.3); }
.consent > * { position: relative; }
.consent-play { width: 68px; height: 48px; }
.consent-note { max-width: 420px; }
.consent--video .consent-note { position: absolute; left: 20px; right: 20px; bottom: 16px; max-width: none; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.consent-note a { color: #fff; text-decoration: underline; }

/* ---------- Leistungen ---------- */
.services { background: url(../img/bg_leistungen.jpg) center / cover no-repeat; padding: 50px 10px 60px; }
.services h2.section-title { text-align: center; }
.service-cards .col { width: 25%; padding: 0; }
.card {
  margin: 5px; padding: 25px; height: calc(100% - 10px);
  border: 1px solid var(--blue); border-radius: 5px;
}
.card h3 { margin: 0 0 20px; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--blue); }
.icon-list { list-style: none; margin: 0; padding: 0; color: var(--blue); }
.icon-list li { display: flex; align-items: flex-start; }
.icon-list li + li { margin-top: 2px; }
.icon-list li:not(:last-child) { padding-bottom: 2px; }
/* Punkt mittig auf der ersten Textzeile: (Zeilenhöhe 1.7em − 14px) / 2 */
.icon-list svg { width: 14px; height: 14px; flex: none; margin: calc((1.7em - 14px) / 2) 12px 0 3px; fill: var(--blue); }
.services > .boxed:first-child { padding-top: 10px; }
.services .cta { text-align: center; margin: 30px auto 40px; }
@media (max-width: 767px) {
  .service-cards .col { width: 100%; }
}

/* ---------- Kunden ---------- */
.customers { margin: 70px auto; text-align: center; }
.customers .lead { font-weight: 300; color: var(--blue); }
.customers .logos-wrap { margin-top: 40px; }
.logos { display: flex; flex-wrap: wrap; margin: 0 -37px 0 0; }
.logos figure { margin: 0; width: 14.285%; padding: 0 37px 37px 0; }
.logos img { width: 100%; transition: opacity .25s; }
.logos img:hover { opacity: .7; }
@media (max-width: 767px) {
  .logos-wrap { padding: 0 100px; }
  .logos figure { width: 50%; }
}
@media (max-width: 479px) {
  .logos figure { width: 100%; }
}

/* ---------- Kontakt ---------- */
.contact { position: relative; background: var(--blue); padding: 50px 10px 90px; color: #fff; }
.contact .shape {
  position: absolute; left: 0; top: -1px; width: 100%; line-height: 0; overflow: hidden;
  transform: rotate(180deg);
}
.contact .shape svg { display: block; position: relative; left: 50%; transform: translateX(-50%); width: calc(100% + 1.3px); height: 34px; }
.contact .shape path { fill: #fff; }
.contact h2 { color: #fff; text-align: center; margin-bottom: 50px; }
.contact .boxed { position: relative; }
.contact > .shape + .boxed { padding-top: 10px; }
.contact > .row { padding-bottom: 10px; }
.contact .col-info { padding-top: 10px; }
@media (min-width: 768px) {
  .contact .col-form { width: 49.899%; padding: 0 80px 0 0; border-right: 1px dotted #fff; }
  .contact .col-info { width: 50.101%; }
}
@media (max-width: 767px) {
  .contact .col-form { padding: 0; }
  .contact .col-info { margin-top: 50px; }
}

.form { display: flex; flex-wrap: wrap; margin: 0 -9px -20px; }
.field { width: 100%; padding: 0 9px; margin-bottom: 20px; display: flex; flex-wrap: wrap; }
.field--half { width: 50%; }
@media (max-width: 767px) { .field--half { width: 100%; } }
.field > label { color: #fff; padding-bottom: 6px; cursor: pointer; }
.field.required > label::after { content: "*"; color: red; padding-left: .2em; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field textarea {
  width: 100%; background: #fff; color: #1f2124;
  border: 1px solid #69727d; border-radius: 3px;
  font-size: 15px; line-height: 1.4; padding: 11px 14px; min-height: 40px;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; height: 96px; vertical-align: top; }
.field input:focus, .field textarea:focus { box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.field-consent { font-size: 12px; line-height: 1.7; color: #fff; }
.field-consent input { margin: 0 3px 0 0; vertical-align: middle; }
.field-consent a { color: var(--accent); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form .btn { font-size: 12px; min-height: 40px; padding: 0 24px; }
.form-message { width: 100%; padding: 0 9px; margin: 0 0 20px; font-size: 14px; }
.form-message[hidden] { display: none; }
.form-message.is-success { color: #fff; }
.form-message.is-error { color: #ffd2d2; }

.col-info { text-align: center; font-weight: 300; }
.col-info .contact-logo { margin-bottom: 20px; }
.col-info a { color: #fff; }
.col-info a:hover { color: #dfe7f5; }
.map { position: relative; margin: 40px 50px 0; height: 300px; border-radius: 5px; overflow: hidden; background: #1d3c76; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.consent--map { background: #1d3c76; }
.consent--map svg { width: 36px; height: 36px; fill: #fff; }
.consent-btn {
  display: inline-block; padding: 10px 18px; border-radius: 3px; background: #fff; color: var(--blue);
  font-size: 13px; line-height: 1;
}
.consent--map:hover .consent-btn { background: #e9eef7; }
@media (max-width: 767px) { .map { margin: 20px 0 0; } }

/* ---------- Footer ---------- */
.site-footer { background: #fff; font-size: 14px; color: var(--footer); }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.site-footer a { color: var(--footer); }
.site-footer a:hover { color: var(--blue); }
@media (max-width: 768px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ---------- Unterseiten (Impressum, Datenschutz, AGB) ---------- */
.legal { padding: 10px 0 20px; }
.legal .inner { padding: 10px; }
.legal .page-title { padding: 0 10px; margin-bottom: 10px; }
.legal .two-col .col { padding: 10px; }
@media (min-width: 768px) {
  .legal .two-col .col { width: 50%; }
}
.legal--datenschutz .page-title { margin-bottom: 61px; }
.legal--datenschutz .two-col + .two-col { margin-top: 30px; }
.legal-h { margin: 0 0 20px; font-size: 16px; font-weight: 700; line-height: 1.7; color: var(--text); }
.legal ul { margin: 0 0 20px; padding-left: 1.2em; }
.legal ul:last-child { margin-bottom: 0; }
.legal--agb .inner { padding: 0 10px; }
.legal--agb .page-title { padding: 0; margin-bottom: 20px; }
.legal--agb .text p { margin: 0; }
.seal { margin-top: 50px; }

/* ---------- Lightbox (Zertifikate) ---------- */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(0,0,0,.87); }
.lightbox img { display: block; max-width: 92vw; max-height: 88vh; width: auto; height: auto; }
.lightbox-close {
  position: fixed; top: 15px; right: 15px; width: 44px; height: 44px;
  background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; opacity: .8;
}
.lightbox-close:hover { opacity: 1; }

.h2-style { font-size: 35px; font-weight: 400; }

/* ---------- Scroll-Animation (dezent, gestaffelt) ----------
   .js wird per Inline-Skript im <head> gesetzt -> kein Aufblitzen vor dem Einblenden.
   Nach Ende der Animation entfernt main.js die Zustände wieder, damit eigene
   Transitions (z. B. Button-Hover) unverändert greifen. */
.js [data-reveal]:not(.is-visible):not(.reveal-done) {
  opacity: 0;
  transform: translateY(24px);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .65, .3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal]:not(.is-visible):not(.reveal-done) { opacity: 1; transform: none; }
  .js [data-reveal].is-visible { transition: none; }
}
@media print {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
