/* ProCap Engineering – Stylesheet */

@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 100 900; font-display: swap; src: url("../fonts/roboto.woff2") format("woff2"); }

:root {
  --text: #323335;
  --white: #fff;
  --black: #000;
  --blue-dark: #284069;
  --blue: #456db2;
  --blue-light: #85a1d2;
  --line: #e6e6e6;
  --container: 1000px;
  --header-h: 75px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 16px/1.6 "Roboto", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Poppins", Arial, sans-serif; font-weight: 600; line-height: 1.3; margin: 0 0 .6em; }
h1 { font-size: clamp(36px, 6vw, 64px); }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 40px; }
.narrow { max-width: 940px; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: 0;
  border-radius: 5px;
  background: var(--black);
  color: var(--white);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .2s;
}
.btn:hover { opacity: .8; }
.btn-light { background: var(--white); color: var(--text); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: var(--white);
  transition: background .25s, box-shadow .25s, color .25s;
}
.site-header .container { max-width: none; height: 100%; display: flex; align-items: center; gap: 24px; }
.logo img { height: 44px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.nav li { position: relative; }
.nav a.link { display: block; padding: 0 20px; line-height: 40px; text-decoration: none; }
.nav a.link.active span, .nav a.link:hover span { border-bottom: 1px solid currentColor; }
.nav .btn { margin: 0 16px 0 40px; padding: 10px 44px; }
.social { display: flex; gap: 12px; }
.social a { display: flex; width: 26px; height: 26px; color: var(--blue); }
.social svg { width: 100%; height: 100%; fill: currentColor; }
.lang-switch { display: flex; align-items: center; margin-left: 24px; font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.lang-switch > * { padding: 4px 6px; text-decoration: none; }
.lang-switch > * + *::before { content: ""; display: inline-block; width: 1px; height: 12px; margin: 0 8px 0 -6px; background: currentColor; opacity: .4; vertical-align: -1px; }
.lang-switch [aria-current] { border-bottom: 2px solid currentColor; }
.lang-switch a { opacity: .55; transition: opacity .2s; }
.lang-switch a:hover, .lang-switch a:focus-visible { opacity: 1; }

/* transparent header over hero (home) */
.has-hero .site-header:not(.scrolled) { background: transparent; color: var(--white); }
.has-hero .site-header:not(.scrolled) .btn { background: rgba(255,255,255,.35); color: var(--black); }
.has-hero .site-header:not(.scrolled) .social a { color: var(--white); }
.site-header.scrolled { box-shadow: 0 1px 8px rgba(0,0,0,.08); }

.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; color: inherit; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 2px; margin: 6px 0; background: currentColor; }

main { padding-top: var(--header-h); }
.has-hero main { padding-top: 0; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-blue { background: var(--blue-light); color: var(--white); }

.hero, .bg-section {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 768px; padding: 120px 0 80px; text-align: center; color: var(--white);
  background-size: cover; background-position: center;
}
.hero::before, .bg-section::before { content: ""; position: absolute; inset: 0; }
.hero::before { background: rgba(40, 64, 105, .55); }
.bg-section::before { background: rgba(69, 109, 178, .6); }
.hero .container, .bg-section .container { position: relative; }
.hero p { max-width: 880px; margin: 0 auto 2.5em; }
.bg-section p { max-width: 880px; margin: 0 auto 2em; }
.hero .scroll-down { position: absolute; bottom: 24px; left: 50%; margin-left: -8px; border: 8px solid transparent; border-top-color: var(--white); }

.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 60px; text-align: left; }

.brand { padding: 80px 0 60px; text-align: center; }
.brand img { width: 100%; max-width: 560px; margin: 0 auto 40px; }

/* Leistungen */
.service { padding: 32px 0; border-top: 1px solid var(--line); }
.service img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; margin-top: 24px; }

/* Über uns */
.profile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 40px; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 28px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font: 600 18px/1.3 "Poppins", Arial, sans-serif;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font: 300 32px/1 "Roboto", Arial, sans-serif; transition: transform .2s; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion details p { padding-bottom: 24px; }

.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }
.split-text { background: var(--blue-light); color: var(--white); display: flex; flex-direction: column; justify-content: center; padding: 60px; text-align: center; }
.split-text h1 { font-size: clamp(36px, 4.5vw, 56px); }
.split img { width: 100%; height: 100%; object-fit: cover; }

/* Kontakt */
.contact-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 40px; }
.contact-details { margin-top: 24px; }

/* Rechtstexte */
.legal h3 { margin-top: 2em; }

/* ---------- Footer ---------- */
.site-footer { padding: 24px 0; font-size: 14px; }
.site-footer .container { max-width: none; }
.site-footer a { margin-right: 16px; }

/* ---------- Mobile ---------- */
@media (max-width: 960px) {
  .container { padding: 0 20px; }
  .menu-toggle { display: block; order: 2; margin-left: 8px; }
  .lang-switch { margin-left: auto; }
  .nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 16px 20px 24px;
    background: var(--white); color: var(--text); box-shadow: 0 8px 16px rgba(0,0,0,.08);
  }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav a.link { padding: 0; }
  .nav .btn { margin: 16px 0; text-align: center; }
  .has-hero .site-header:not(.scrolled) .nav .btn { background: var(--black); color: var(--white); }
  .has-hero .site-header:not(.scrolled) .nav .social a { color: var(--blue); }
  .hero, .bg-section { min-height: 600px; }
  .cols { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-text { padding: 60px 20px; }
  .section { padding: 64px 0; }
}
