/* ==========================================================================
   Selbsteinwechslung – statischer Nachbau (ehemals WordPress / Jevelin)
   Farben, Schrift und Maße aus dem Original-Theme übernommen.
   ========================================================================== */

@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/open-sans-latin-300-italic.woff2") format("woff2");
}

:root {
  --blue: #39505d;        /* Grundfarbe Text, Icons, Footer */
  --red: #96282b;         /* Überschriften, Akzente */
  --red-hover: #a20017;
  --line: #ebebeb;
  --bg-soft: #f7f7f7;
  --container: 1200px;
  --header-h: 90px;
  --header-h-mobile: 64px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (max-width: 1250px) { html { scroll-padding-top: var(--header-h-mobile); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 20px;
  color: var(--blue);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover, a:focus-visible { color: var(--red-hover); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
p { margin: 0 0 12px; }

.container { width: min(var(--container), 100% - 30px); margin-inline: auto; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--blue); color: #fff; padding: 8px 14px; z-index: 1000; }
.skip-link:focus { left: 10px; top: 10px; color: #fff; }

/* Seite liegt über dem fixierten Footer (Parallax-Reveal wie im Original) */
.page { position: relative; z-index: 2; background: #fff; }
@media (min-width: 851px) { .page { margin-bottom: var(--footer-h, 220px); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.site-header .logo img { height: 55px; width: auto; }

.nav { display: flex; align-items: center; gap: 0; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.nav li a {
  display: block;
  padding: 10px 11px;
  font-size: 12px; line-height: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .2px;
  color: var(--blue);
}
.nav li a:hover { color: var(--red-hover); }
.nav li a.is-active { color: var(--red); }
.nav .lang a { margin-left: 6px; }
.nav .social { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
.nav .social a { padding: 8px 5px; color: #8a979e; }
.nav .social a:hover { color: var(--red-hover); }
.ico { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: middle; }
.nav .social .ico { width: 14px; height: 14px; }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--blue);
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: currentColor; margin: 6px 0; transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1250px) {
  .site-header .container { height: var(--header-h-mobile); }
  .site-header .logo img { height: 40px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h-mobile); left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #fff; box-shadow: 0 8px 16px rgba(0,0,0,.08);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-open .nav { max-height: 80vh; overflow-y: auto; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav li a { padding: 14px 20px; border-top: 1px solid var(--line); font-size: 13px; }
  .nav .lang a { margin-left: 0; }
  .nav .social { padding: 10px 15px; border-top: 1px solid var(--line); margin-left: 0; }
  .nav .social .ico { width: 18px; height: 18px; }
}

/* ---------- Slider (Hero + Zitate) ---------- */
.slider {
  position: relative; overflow: hidden;
  height: max(280px, 26.667vw); /* Seitenverhältnis 1980 × 528 der Slider-Bilder */
  background: var(--blue);
  color: #fff;
}
.slide {
  position: absolute; inset: 0; overflow: hidden;
  opacity: 0; transition: opacity .8s ease;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 2%;
}
.slide.is-active { opacity: 1; z-index: 1; }
/* Zoom-Effekt der Hintergründe (Slider Revolution "Pan Zoom": 100 % -> 125 %) */
.slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1); transform-origin: center;
  will-change: transform;
}
.slide.is-zoom .slide-bg { animation: slide-zoom 7s linear forwards; }
.slider.is-paused .slide-bg { animation-play-state: paused; } /* laeuft erst, wenn der Slider im Bild ist */
@keyframes slide-zoom { from { transform: scale(1); } to { transform: scale(1.25); } }
.slide-text { position: relative; z-index: 1; }
.slide-text { width: 96%; text-align: center; }
.slide .quote {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-style: italic; font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(18px, 2.25vw, 44px);
  line-height: 1.3;
  letter-spacing: .5px;
  text-shadow: 2px 2px 4px rgba(0,0,0,.9);
}
.slide .source {
  margin: 1.6em 0 0;
  font-family: "Open Sans", Arial, sans-serif; font-style: italic; font-weight: 300;
  font-size: clamp(13px, 1.1vw, 22px);
  line-height: 1.3;
}
.slider--hero .source { font-family: Arial, Helvetica, sans-serif; font-weight: 400; font-size: clamp(13px, 1vw, 18px); }

/* Zeilenweises Einblenden der Texte (wie Slider Revolution: 600 ms) */
.slide .line { display: block; opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.slide.is-active.is-in .line { opacity: 1; transform: none; }
.slide.is-active.is-in .line:nth-child(2) { transition-delay: .08s; }
.slide.is-active.is-in .line:nth-child(3) { transition-delay: .16s; }
.slide.is-active.is-in .line:nth-child(4) { transition-delay: .24s; }
.slide.is-active.is-in .line:nth-child(5) { transition-delay: .32s; }

.bullets { position: absolute; left: 0; right: 0; bottom: 30px; z-index: 5; display: flex; justify-content: center; gap: 5px; }
.bullets button {
  width: 16px; height: 16px; padding: 0; border-radius: 50%;
  border: 2px solid #fff; background: transparent; cursor: pointer;
  transition: background .2s;
}
.bullets button:hover { background: rgba(0,0,0,.21); }
.bullets button[aria-current="true"] { background: #fff; }
@media (max-width: 800px) { .slider--hero .bullets { display: none; } }
@media (max-width: 600px) { .bullets { bottom: 16px; } }

@media (prefers-reduced-motion: reduce) {
  .slide, .slide .line { transition: none; }
  .slide.is-zoom .slide-bg { animation: none; }
}

/* ---------- Sektionen & Überschriften ---------- */
.section { padding: 50px 0 40px; }
.section--tight-top { padding-top: 20px; }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 22px;
  font-size: 12px; line-height: 14px; font-weight: 400;
  color: var(--blue); text-transform: uppercase; letter-spacing: .3px;
}
.eyebrow::before, .eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.eyebrow--wide { width: 100%; }

.section-title {
  margin: 0; text-align: center;
  font-family: var(--font);
  font-size: clamp(28px, 3.2vw, 42px); line-height: 1.15; font-weight: 400;
  color: var(--red);
  overflow-wrap: normal; hyphens: manual;
}
.section-sub {
  margin: 6px 0 0; text-align: center;
  font-size: clamp(20px, 2.1vw, 30px); line-height: 1.2; font-weight: 400; font-style: italic;
  color: var(--blue);
}
.section-head { margin-bottom: 44px; }

/* ---------- Zähler ---------- */
.counters { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; padding: 20px 0 10px; text-align: center; }
.counter img { width: 79px; height: 80px; margin: 0 auto 10px; }
.counter strong { display: block; font-size: 18px; line-height: 22px; }
.counter span { display: block; font-size: 13px; line-height: 18px; }
@media (max-width: 900px) { .counters { grid-template-columns: repeat(3, 1fr); row-gap: 30px; } }
@media (max-width: 480px) { .counters { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Expertise ---------- */
.expertise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.exp-icon { height: 50px; display: flex; align-items: center; justify-content: center; color: var(--blue); margin-bottom: 10px; }
.exp-icon .ico { width: auto; height: 42px; }
.exp-title { margin: 0 0 16px; font-size: 16px; line-height: 20px; font-weight: 700; color: var(--red); }
.exp-list { list-style: none; margin: 0; padding: 0; }
.exp-list li { font-size: 14px; line-height: 18px; margin-bottom: 12px; }
@media (max-width: 900px) { .expertise { grid-template-columns: repeat(2, 1fr); row-gap: 40px; } }
@media (max-width: 560px) { .expertise { grid-template-columns: 1fr; } }

/* ---------- Branchen ---------- */
.industries { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; max-width: 900px; margin: 0 auto; text-align: center; }
.industry img { width: 80px; height: 80px; margin: 0 auto 10px; }
.industry strong { font-size: 16px; line-height: 20px; }
@media (max-width: 900px) { .industries { grid-template-columns: repeat(3, 1fr); row-gap: 30px; } }
@media (max-width: 420px) { .industries { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Kompetenzen / Werkzeugset ---------- */
.traits { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; text-align: center; }
.trait img { width: 150px; height: 150px; margin: 0 auto 14px; }
.trait strong { display: block; font-size: 13px; line-height: 18px; }
@media (max-width: 900px) { .traits { grid-template-columns: repeat(3, 1fr); row-gap: 30px; } }
@media (max-width: 480px) { .traits { grid-template-columns: repeat(2, 1fr); } .trait img { width: 120px; height: 120px; } }

/* ---------- Kunden ---------- */
/* Flex statt Grid, damit eine unvollstaendige letzte Reihe zentriert steht.
   Spaltenbreite wie zuvor im 6er-Raster: (Breite - 5 Abstaende) / 6 */
.clients { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 30px; }
.clients img { width: calc((100% - 150px) / 6); max-width: 226px; margin: 0; }

/* ---------- Referenzen: Cluster mit Karten ---------- */
.references { max-width: 1100px; margin: 0 auto; }
.ref-cluster { margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--line); }
.ref-cluster:first-child { margin-top: 10px; }
.ref-cluster__title { margin: 0 0 22px; font-size: 20px; line-height: 26px; font-weight: 700; color: var(--blue); text-align: center; }
.ref-cluster__count { font-size: 15px; font-weight: 400; color: #8a979e; }

.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ref-card {
  display: flex; flex-direction: column;
  background: #fff; padding: 20px 22px 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
.ref-card h4 { margin: 0 0 10px; font-size: 14px; line-height: 19px; font-weight: 700; color: var(--blue); }
.ref-card p { margin: 0 0 14px; font-size: 13px; line-height: 19px; }
.ref-card .ref-tag {
  margin: auto 0 0; align-self: flex-start;
  padding: 2px 9px; border: 1px solid #c9d1d5; border-radius: 2px;
  font-size: 11px; line-height: 16px; color: var(--blue); letter-spacing: .2px;
}

/* "Weitere X anzeigen": natives <details>, funktioniert ohne JavaScript */
.ref-more { margin-top: 20px; }
.ref-more__btn {
  display: table; margin: 0 auto; list-style: none; cursor: pointer;
  background: var(--blue); color: #fff;
  font-size: 12px; line-height: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  padding: 13px 26px; transition: background .25s;
}
.ref-more__btn::-webkit-details-marker { display: none; }
.ref-more__btn::after {
  content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 0 3px 10px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .25s;
}
.ref-more[open] .ref-more__btn::after { transform: rotate(-135deg); margin-bottom: -1px; }
.ref-more__btn:hover { background: var(--red); }
.ref-more__open { display: none; }
.ref-more[open] .ref-more__open { display: inline; }
.ref-more[open] .ref-more__closed { display: none; }
.ref-grid--more { margin-top: 20px; overflow: hidden; }

@media (max-width: 900px) {
  .ref-grid { grid-template-columns: 1fr; gap: 14px; }
  .references { max-width: 680px; }
  .ref-cluster { margin-top: 40px; padding-top: 28px; }
}
@media (max-width: 600px) {
  .ref-cluster__title { font-size: 18px; line-height: 24px; }
  .ref-card { padding: 16px 18px; }
}

/* ---------- Über uns ---------- */
.about-text { max-width: 1000px; margin: 0 auto; text-align: center; font-size: 16px; line-height: 20px; }

/* ---------- Kontakt (mittiger Block statt Formular) ---------- */
.contact-title { margin: 0 0 36px; text-align: center; font-size: clamp(20px, 2.1vw, 30px); line-height: 1.2; font-weight: 400; color: var(--blue); }
.contact-block { text-align: center; font-size: 15px; line-height: 22px; }
.contact-block img { width: 250px; margin: 0 auto 14px; }
.contact-block p { margin: 0 0 12px; }
.contact-block a { color: var(--red); }
.contact-block a:hover { color: var(--blue); }
.section--contact { padding-bottom: 90px; }

/* ---------- Footer (fixiert, wird beim Scrollen freigelegt) ---------- */
.site-footer { background: var(--blue); color: #fff; padding: 40px 0; font-size: 12px; line-height: 18px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #e9ebeb; text-decoration: underline; }
.site-footer .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.site-footer .col-legal { text-align: center; }
.site-footer strong { font-size: 14px; }
.site-footer p { margin: 0; }
@media (min-width: 851px) {
  .site-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1; }
}
@media (max-width: 850px) {
  .site-footer { padding: 40px 0; }
  .site-footer .cols { grid-template-columns: 1fr; text-align: center; gap: 20px; }
}

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(57,80,93,.85); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s, background .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--red); }
.to-top .ico { width: 14px; height: 14px; }

/* ---------- Rechtstexte (Impressum & Datenschutz) ---------- */
.legal { padding: 50px 0 60px; }
.legal h1, .legal .legal-h1 { margin: 10px 0 30px; font-size: clamp(22px, 5.6vw, 42px); overflow-wrap: break-word; hyphens: auto; line-height: 1.1; font-weight: 700; color: var(--red); text-transform: uppercase; }
.legal .legal-h1 { margin-top: 50px; }
.legal-cols { column-count: 2; column-gap: 40px; }
.legal-cols ul { break-inside: avoid-column; }
.legal-cols h3 { break-after: avoid; }
.legal h3 { margin: 18px 0 8px; font-size: 16px; line-height: 20px; font-weight: 700; color: var(--red); }
.legal h3:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 13px; line-height: 19px; hyphens: auto; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal a { color: var(--red); overflow-wrap: anywhere; }
.legal .note { background: var(--bg-soft); padding: 14px 18px; border-left: 3px solid var(--red); margin-bottom: 24px; column-span: all; }
@media (max-width: 800px) { .legal-cols { column-count: 1; } }


/* ==========================================================================
   Tablet & Mobil – Korrekturen gegenüber dem WordPress-Original
   ========================================================================== */

.sep { white-space: pre; }

/* Tablet quer / klein Desktop */
@media (max-width: 1024px) {
  .slide .quote { font-size: clamp(18px, 2.7vw, 27px); }
  .slide .source { font-size: clamp(13px, 1.7vw, 18px); }
}

/* Tablet hoch */
@media (max-width: 900px) {
  .section { padding: 40px 0 32px; }
  .section-head { margin-bottom: 32px; }

  /* Expertise: 2 Spalten, "Global" über die volle Breite mit Ländern als Fließtext */
  .expertise { grid-template-columns: repeat(2, 1fr); gap: 36px 30px; }

  /* Kundenlogos zentriert, damit die letzte Reihe nicht links hängt */
  .clients { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 0; }
  .clients img { width: 25%; max-width: 190px; padding: 0 10px; margin: 0; }

}

/* Smartphone */
@media (max-width: 600px) {
  .section { padding: 32px 0 24px; }
  .section--tight-top { padding-top: 24px; }
  .section-title { font-size: 28px; }
  .section-sub { font-size: 18px; line-height: 1.3; }
  .eyebrow { margin-bottom: 16px; font-size: 11px; }
  .section-head { margin-bottom: 26px; }

  .slider { height: max(260px, 72vw); }
  .slide .quote { font-size: 17px; line-height: 1.35; letter-spacing: .3px; }
  .slide .source { font-size: 13px; margin-top: 1.2em; }

  .counter img { width: 64px; height: 65px; }
  .counter strong { font-size: 16px; }
  .counter span { font-size: 12px; line-height: 16px; }

  .expertise { grid-template-columns: 1fr; gap: 30px; }
  .exp-icon { height: 42px; margin-bottom: 6px; }
  .exp-icon .ico { height: 34px; }
  .exp-title { margin-bottom: 10px; }
  .exp-list li { margin-bottom: 8px; }

  .industry img { width: 64px; height: 64px; }
  .industry strong { font-size: 14px; }

  .trait img { width: 110px; height: 110px; margin-bottom: 8px; }

  .clients img { width: 33.333%; padding: 0 6px; }

  .about-text { text-align: left; font-size: 15px; line-height: 22px; }

  .contact-title { margin-bottom: 24px; }
  .contact-block img { width: 220px; }
  .section--contact { padding-bottom: 50px; }
}

/* Footer: Trenner werden auf schmalen Screens zu Zeilenumbrüchen */
@media (max-width: 850px) {
  .site-footer .sep { display: block; height: 0; overflow: hidden; }
  .site-footer p { line-height: 20px; }
  .to-top { right: 14px; bottom: 14px; }
}

/* Sehr kleine Geräte (iPhone SE u. ä.) */
@media (max-width: 360px) {
  .site-header .logo img { height: 34px; }
  .counters { gap: 14px; }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .traits { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* ---------- SEO-H1 (für Suchmaschinen & Screenreader, optisch unsichtbar) ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 404-Seite ---------- */
.error-page { padding: 90px 0 110px; text-align: center; }
.error-code { margin: 0 0 6px; font-size: 90px; line-height: 1; font-weight: 700; color: var(--line); }
.error-page .section-title { margin-bottom: 4px; }
.error-links { margin: 18px 0 0; font-size: 15px; font-weight: 700; }
.error-links a { color: var(--red); }
.error-en { margin-top: 50px; font-size: 18px; }

/* Slider-Hintergruende (statt Inline-Styles, damit die Content-Security-Policy streng bleiben kann) */
.bg-homepage_01 { background-image: url("../img/slider/homepage_01.webp"); }
.bg-homepage_02 { background-image: url("../img/slider/homepage_02.webp"); }
.bg-quotes_airbus { background-image: url("../img/slider/quotes_airbus.webp"); }
.bg-quotes_automotive { background-image: url("../img/slider/quotes_automotive.webp"); }
.bg-quotes_automotive2 { background-image: url("../img/slider/quotes_automotive2.webp"); }
.bg-quotes_automotive3 { background-image: url("../img/slider/quotes_automotive3.webp"); }
.bg-quotes_automotive4 { background-image: url("../img/slider/quotes_automotive4.webp"); }
.bg-quotes_lufthansa { background-image: url("../img/slider/quotes_lufthansa.webp"); }
.bg-quotes_medical { background-image: url("../img/slider/quotes_medical.webp"); }
.bg-quotes_renewableenergy01 { background-image: url("../img/slider/quotes_renewableenergy01.webp"); }
.bg-quotes_ricardo { background-image: url("../img/slider/quotes_ricardo.webp"); }
.bg-quotes_time { background-image: url("../img/slider/quotes_time.webp"); }
