/* BPEng — rebuild of the original WordPress/Elementor site (kit 754: Inter + Heebo, #C9C9C9 / #FBA919) */

/* ---------- fonts (self-hosted) ---------- */
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600.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; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-ext-600.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: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-700.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; }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-ext-700.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: "Heebo"; font-weight: 300; font-display: swap; src: url("fonts/heebo-latin-300.woff2") format("woff2"); }
@font-face { font-family: "Heebo"; font-weight: 400; font-display: swap; src: url("fonts/heebo-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Heebo"; font-weight: 500; font-display: swap; src: url("fonts/heebo-latin-500.woff2") format("woff2"); }

/* ---------- tokens ---------- */
:root {
  --grey: #c9c9c9;        /* global primary */
  --amber: #fba919;       /* global secondary / accent */
  --text: #6b6b6b;        /* global text, darkened from #7a7a7a for WCAG AA */
  --amber-ink: #9a6200;   /* amber for small text on light grounds (AA) */
  --heading: #272b36;
  --card-heading: #3f3f3f;
  --dark: #272b36;        /* footer */
  --white: #ffffff;
  --line: #e6e6e6;

  --font-head: "Inter", system-ui, sans-serif;
  --font-text: "Heebo", system-ui, sans-serif;

  --container: 1140px;
  --gutter: 10px;
  --shadow: 0 5px 15px rgb(0 0 0 / 0.1);
  --section-grey: #f4f5f7;
  --header-h: 96px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }
body { margin: 0; font-family: var(--font-text); font-weight: 300; font-size: 16px; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h5, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
::selection { background: var(--amber); color: var(--dark); }
.skip { position: absolute; left: 1rem; top: 1rem; z-index: 100; padding: 0.75rem 1rem; background: var(--amber); color: var(--dark); clip-path: inset(50%); }
.skip:focus { clip-path: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
.h1 { font-family: var(--font-head); font-size: 58px; font-weight: 700; line-height: 1.2; color: var(--heading); }
.h2 { font-family: var(--font-head); font-size: 38px; font-weight: 700; line-height: 1.2; color: var(--heading); }
.eyebrow { font-family: var(--font-head); font-size: 16px; font-weight: 600; line-height: 1; letter-spacing: 1.3px; text-transform: uppercase; color: var(--amber-ink); margin-bottom: 20px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 20px 40px; background: var(--amber); color: var(--dark); font-family: var(--font-head); font-size: 16px; font-weight: 600; line-height: 1; letter-spacing: 1.3px; text-transform: uppercase; border: 0; cursor: pointer; transition: background-color 0.3s, color 0.3s; }
.btn:hover, .btn:focus-visible { background: var(--grey); color: var(--dark); }
.btn--white { background: var(--white); color: var(--dark); padding: 15px 30px; font-size: 12px; white-space: nowrap; }
.btn--white:hover, .btn--white:focus-visible { background: var(--heading); color: var(--white); }
.btn svg { width: 14px; height: 14px; }
.btn:disabled { opacity: 0.7; cursor: progress; }

/* ---------- header (template 73) ---------- */
/* sticky: stays at the top while scrolling, gets a little more compact and a soft shadow */
.header { position: sticky; top: 0; z-index: 50; background: var(--dark); border-bottom: 1px solid rgb(255 255 255 / 0.08); transition: box-shadow 0.3s; }
.header.is-scrolled { box-shadow: 0 6px 24px rgb(0 0 0 / 0.25); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); transition: min-height 0.3s; }
.header.is-scrolled .header__in { min-height: 76px; }
.header__logo img { width: 150px; height: auto; transition: width 0.3s; }
.header.is-scrolled .header__logo img { width: 128px; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a { position: relative; display: block; padding: 13px 20px; font-family: var(--font-head); font-size: 15px; font-weight: 600; color: var(--white); transition: color 0.3s; }
.nav a::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 6px; height: 3px; background: var(--amber); transform: scaleX(0); transition: transform 0.3s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--amber); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header .btn { padding: 15px 28px; font-size: 13px; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; background: none; border: 0; color: var(--amber); cursor: pointer; }
.menu-toggle svg { width: 24px; height: 24px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- hero (section 5f0d3217) ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: 640px; padding: 110px 0; background: var(--dark); overflow: hidden; }
.hero .h1 { color: var(--white); }
.hero .h1 .eyebrow { display: block; color: var(--amber); }
.hero__text { position: relative; z-index: 1; max-width: 560px; }
.hero p { max-width: 520px; margin: 30px 0 36px; color: #b9bec8; }

/* animated dot world map, zoomed on Europe, cropped with soft edges (canvas drawn by site.js) */
.weltkarte { --map-view: 560; --hub-x: 0.56; --hub-y: 0.4; --map-dot: 205, 210, 220; --map-dot-alpha: 0.38; --map-hub-core: #272b36; position: absolute; top: 0; bottom: 0; right: 0; width: 64vw;
  -webkit-mask-image: linear-gradient(to right, transparent 4%, #000 42%, #000 84%, transparent), linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 4%, #000 42%, #000 84%, transparent), linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-composite: intersect; }
.weltkarte canvas, .weltkarte__fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.weltkarte__fallback { object-fit: cover; object-position: 52% 28%; transform: scale(1.9); transform-origin: 52% 30%; opacity: 0.35; }
.weltkarte.is-live .weltkarte__fallback { display: none; }

/* round photo with an amber ring */
.kreis { position: relative; justify-self: center; width: min(100%, 420px); aspect-ratio: 1; margin: 18px; }
.kreis::before { content: ""; position: absolute; inset: -18px; border: 4px solid var(--amber); border-radius: 50%; }
.kreis img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ---------- service cards ---------- */
.services { position: relative; z-index: 2; padding: 90px 0; background: var(--section-grey); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: start; }
.card { padding: 33px 30px; background: var(--white); box-shadow: var(--shadow); text-align: center; transition: background-color 0.3s, color 0.3s; }
.card__icon { display: inline-flex; color: var(--amber); margin-bottom: 25px; transition: color 0.3s; }
.card__icon svg { width: 50px; height: 50px; }
.card h3 { font-family: var(--font-head); font-size: 24px; font-weight: 600; line-height: 1.2; color: var(--card-heading); margin-bottom: 20px; transition: color 0.3s; }
.card:not(.card--accent):hover { background: var(--amber); color: var(--dark); }
.card:not(.card--accent):hover .card__icon, .card:not(.card--accent):hover h3 { color: var(--dark); }
.card--accent { padding: 30px; background: var(--amber); color: var(--dark); }
.card--accent h3 { color: var(--dark); margin-bottom: 15px; }
.card--accent .btn { margin-top: 15px; }

/* ---------- section divider: hairline with the logo's slanted amber bar ---------- */
.trenner { position: relative; z-index: 3; height: 0; }
.trenner .container { position: relative; height: 0; }
.trenner .container::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px; background: linear-gradient(90deg, transparent, #d9dce2 18%, #d9dce2 82%, transparent); }
.trenner span { position: absolute; left: 50%; top: 0; width: 72px; height: 8px; background: var(--amber); transform: translate(-50%, -50%) skewX(-30deg); }
.trenner span::before, .trenner span::after { content: ""; position: absolute; top: 2px; width: 10px; height: 4px; background: var(--amber); opacity: 0.45; }
.trenner span::before { left: -18px; }
.trenner span::after { right: -18px; }
@media (prefers-reduced-motion: no-preference) {
  .js .trenner span { transform: translate(-50%, -50%) skewX(-30deg) scaleX(0); transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
  .js .trenner.is-in span { transform: translate(-50%, -50%) skewX(-30deg) scaleX(1); }
}

/* ---------- about ---------- */
.about { padding: 100px 0; }
.about__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 70px; align-items: center; }
.about__in { padding-inline: 30px 0; }
.about .h2 { margin-bottom: 35px; }
.about p + p { margin-top: 1em; }
.checks { margin-top: 45px; display: grid; gap: 11px; }
.checks li { display: flex; align-items: center; gap: 10px; }
.checks svg { width: 14px; height: 14px; color: var(--amber); flex: none; }

/* ---------- DEKRA ---------- */

/* ---------- markets ---------- */
.markets { padding: 100px 0; text-align: center; background: var(--section-grey); }
.markets .h2 { margin-bottom: 60px; }
.markets__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-inline: 10px; text-align: left; align-items: start; }
.market { background: var(--white); box-shadow: var(--shadow); }
.market img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.market__title { padding: 20px 30px; background: var(--amber); }
.market h3 { font-family: var(--font-head); font-size: 20px; font-weight: 600; line-height: 1.2; color: var(--white); }
.market p { padding: 20px 20px 30px; }

/* ---------- call to action ---------- */
.cta { position: relative; padding: 100px 0 160px; background: url("img/hero.webp") 50% 62% / 190% auto no-repeat; text-align: center; }
.cta::before { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / 0.7); }
.cta .container { position: relative; }
.cta .h2 { color: var(--white); max-width: 900px; margin: 0 auto 20px; }

/* ---------- page banner (Kontakt, Impressum, Datenschutz) ---------- */
.banner { position: relative; padding: 110px 0; background: center 26% / cover no-repeat; text-align: center; }
.banner::before { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / 0.55); }
.banner .container { position: relative; }
.banner .h1 { font-size: 38px; color: var(--white); }

/* ---------- contact page ---------- */
.contact { padding: 100px 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding-inline: 10px; }
.form { display: grid; gap: 18px; }
.form label { display: block; margin-bottom: 6px; font-family: var(--font-head); font-size: 14px; font-weight: 600; color: #6f6f6f; }
.form .req { color: #e2401c; }
.field { width: 100%; min-height: 44px; padding: 10px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 0; font-family: var(--font-text); font-size: 16px; font-weight: 300; color: var(--heading); transition: border-color 0.3s; }
.field::placeholder { color: #a8a8a8; }
.field:focus { outline: none; border-color: var(--amber); }
.field[aria-invalid="true"] { border-color: #e2401c; }
textarea.field { min-height: 110px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--amber); flex: none; }
.consent a { color: var(--amber-ink); text-decoration: underline; }
.form .btn { width: 100%; padding: 16px; font-size: 14px; }
.form__status { min-height: 1.5em; font-size: 14px; }
.form__status.is-error { color: #e2401c; }
.form__status a { color: var(--amber-ink); text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__done { padding: 40px 30px; box-shadow: var(--shadow); }
.form__done:focus { outline: none; }
.form__done h2 { font-family: var(--font-head); font-size: 24px; font-weight: 600; color: var(--heading); margin-bottom: 12px; }
.contact__info .h2 { margin-bottom: 20px; }
.contact__info p + p { margin-top: 1em; }
.contact__info hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.contact__info a { color: var(--amber-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- legal pages ---------- */
.legal { padding: 100px 0; }
.legal__in { max-width: 800px; margin-inline: auto; padding-inline: 10px; }
.legal h2 { font-family: var(--font-head); font-size: 20px; font-weight: 600; color: var(--heading); margin: 40px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-family: var(--font-head); font-size: 16px; font-weight: 600; color: var(--card-heading); margin: 24px 0 8px; }
.legal p + p { margin-top: 0.8em; }
.legal ul { list-style: disc; padding-left: 1.2em; margin: 10px 0; }
.legal address { font-style: normal; }
.legal address + p { margin-top: 1em; }
.legal a { color: var(--amber-ink); text-decoration: underline; text-underline-offset: 3px; }
.legal .fill { background: #fff4df; color: #9a6200; padding: 0 3px; }
.note { margin-top: 40px; padding: 16px 20px; background: #f6f6f6; font-size: 14px; }

/* ---------- footer (template 257: #272B36 with world map) ---------- */
.footer { position: relative; padding: 60px 0 20px; background: var(--dark) url("img/weltkarte.png") center / contain no-repeat; color: #a1a1a1; font-size: 15px; }
.footer::before { content: ""; position: absolute; inset: 0; background: rgb(39 43 54 / 0.85); }
.footer .container { position: relative; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer__logo { width: 150px; margin-bottom: 20px; }
.footer h2 { font-family: var(--font-head); font-size: 18px; font-weight: 600; color: var(--white); margin-bottom: 20px; }
.footer li + li { margin-top: 10px; }
.footer__links a { display: inline-flex; align-items: center; gap: 10px; transition: color 0.3s; }
.footer__links a::before { content: ""; width: 0; height: 0; border-left: 5px solid var(--amber); border-block: 4px solid transparent; }
.footer a:hover { color: var(--amber); }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { width: 16px; height: 16px; margin-top: 5px; color: var(--amber); flex: none; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid rgb(160 170 186 / 0.17); font-size: 14px; }

/* ---------- entrance animation (like Elementor fadeInUp) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-anim] { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; transition-delay: var(--delay, 0s); }
  .js [data-anim].is-in { opacity: 1; transform: none; }
}

/* ---------- tablet (Elementor breakpoint 1024) ---------- */
@media (max-width: 1024px) {
  .h1 { font-size: 48px; }
  .container { padding-inline: 20px; }
  .hero { padding: 70px 0 90px; }
  .hero { display: block; min-height: 0; padding-bottom: 0; }
  .weltkarte { --map-view: 520; --hub-x: 0.5; --hub-y: 0.4; position: relative; width: calc(100% + 40px); height: 64vw; margin: 10px -20px 0;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent), linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent), linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent); }
  .about__grid { grid-template-columns: 1fr; gap: 50px; }
  .kreis { width: min(70vw, 360px); }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .card--accent { grid-column: 1 / -1; }
  .markets__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .header .btn { display: none; }
}

/* ---------- phone (Elementor breakpoint 767) ---------- */
@media (max-width: 767px) {
  .h1 { font-size: 38px; }
  .h2 { font-size: 28px; }
  .banner .h1 { font-size: 30px; }
  :root { --header-h: 76px; }
  .header.is-scrolled .header__in { min-height: 64px; }
  .header__logo img, .header.is-scrolled .header__logo img { width: 120px; }
  .services { padding: 60px 0; }
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 0; background: var(--dark); border-bottom: 1px solid rgb(255 255 255 / 0.08); box-shadow: 0 10px 20px rgb(0 0 0 / 0.25); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 20px; }
  .nav a::after { display: none; }
  .hero { padding: 50px 0 70px; }
  .kreis { width: min(72vw, 300px); }
  .cta { background-size: cover; }
  .hero p { margin: 24px 0 30px; }
  .services__grid { grid-template-columns: 1fr; gap: 20px; }
  .about { padding: 70px 0; }
  .about__in { padding-inline: 0; }
  .markets { padding: 70px 0; }
  .markets .h2 { margin-bottom: 40px; }
  .markets__grid { grid-template-columns: 1fr; padding-inline: 0; }
  .cta { padding: 80px 0 100px; }
  .banner { padding: 80px 0; }
  .contact { padding: 60px 0; }
  .contact__grid { grid-template-columns: 1fr; gap: 50px; padding-inline: 0; }
  .contact__info { order: -1; }
  .legal { padding: 60px 0; }
  .legal__in { padding-inline: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__bottom { flex-direction: column; gap: 6px; }
}
