/* detco.de – statische Version. Werte nach dem TYPO3-Original (main.less) übernommen. */

@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/oswald-300.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/oswald-400.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/oswald-700.woff2') format('woff2'); }
@font-face { font-family: 'Ando'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../fonts/ando.woff2') format('woff2'); }

:root {
  --red: #bd1622;
  --text: #5d5d5d;
  --heading: #4d4d4d;
  --line: #c1c1c1;
  --dark: #555555;
  --hover: #bdccd4;
  --link: #428bca;
  --header-h: 80px;
  --wrap: 80%;
}
@media (max-width: 760px) { :root { --wrap: 90%; } }
@media (max-width: 529px) { :root { --wrap: 95%; } }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  line-height: 1.428571;
  color: #333;
  background: #fff;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
strong, b { font-weight: 400; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: #fff; color: #333; padding: .5em 1em;
}
.skip-link:focus { top: 1rem; }

.wrap { width: var(--wrap); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { position: relative; height: 100%; display: flex; justify-content: space-between; }
.logo { display: block; width: 127px; margin-top: -46px; align-self: flex-start; }
.logo img { width: 100%; }
@media (max-width: 1024px) { .logo { width: 92px; margin-top: -20px; } }

.nav ul { list-style: none; display: flex; gap: 0 20px; padding-top: 44px; }
.nav a {
  color: var(--text);
  font-weight: 300;
  letter-spacing: .125em;
  text-transform: uppercase;
  line-height: 20px;
  transition: color .7s;
}
.nav a:hover, .nav a:focus, .nav a[aria-current="page"] { color: var(--hover); text-decoration: none; }
.nav-toggle { display: none; }

@media (max-width: 767px) {
  .nav-toggle {
    display: block;
    align-self: center;
    width: 44px; height: 34px;
    border: 1px solid #ddd; border-radius: 4px;
    background: #fff; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 22px; height: 2px; margin: 4px auto; background: #888; border-radius: 1px; transition: transform .25s, opacity .25s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav {
    position: absolute; top: calc(var(--header-h) - 1px); left: calc((100vw - 100%) / -2); width: 100vw;
    background: #fff; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 0; }
  .nav a { display: block; padding: 12px 2.5%; text-align: right; }
}
@media (max-width: 767px) and (scripting: none) {
  .nav-toggle { display: none; }
  .nav { display: block; position: static; width: auto; border: 0; background: none; }
  .nav ul { flex-direction: row; gap: 14px; padding-top: 44px; }
  .nav a { padding: 0; font-size: 13px; }
}

main { padding-top: var(--header-h); }
main > section { display: flow-root; }

/* ---------- Überschriften ---------- */
.section-title {
  font-family: 'Ando', sans-serif;
  font-size: 5em;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--heading);
  margin: 60px 0 40px;
}
.section-title span { color: var(--red); }
.section-title.is-light { color: #fff; letter-spacing: .06em; }
@media (max-width: 760px) { .section-title { font-size: 3.8em; } }
@media (max-width: 529px) { .section-title { font-size: 2.4em; margin: 0 0 20px; padding: 2px 4px; } }

/* Unterzeile in roten Klammern */
.bracket {
  position: relative;
  display: inline-block;
  left: 50%;
  max-width: 30%;
  margin: 0 0 30px;
  font-size: 1.6em;
  font-weight: 300;
  line-height: 1.3;
  color: var(--text);
}
.bracket::before, .bracket::after {
  content: '';
  position: absolute; top: 0;
  width: 6px; height: 100%;
  background: url('../img/subheadline-klammer.svg') no-repeat;
  background-size: 100% 100%;
}
.bracket::before { left: -20px; transform: scale(-1); }
.bracket::after { right: -20px; }
.bracket-row { text-align: left; }
@media (max-width: 1024px) { .bracket { max-width: calc(50% - 30px); } }
@media (max-width: 559px) { .bracket { left: 6%; max-width: 88%; font-size: 1.4em; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: calc(100vh - var(--header-h));
  max-height: 70vh;
  min-height: 300px;
  overflow: hidden;
  clip-path: inset(0);
  text-align: center;
  color: #fff;
}
@media (max-width: 1025px) { .hero { max-height: 50vh; } }
@media (max-width: 529px) { .hero { max-height: 40vh; min-height: 260px; } }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: left top; max-width: none; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: url('../img/raster.svg');
}
/* Desktop: Bild bleibt beim Scrollen stehen (wie background-attachment: fixed im Original) */
@media (hover: hover) and (pointer: fine) and (min-width: 1026px) {
  .hero-bg img { position: fixed; top: var(--header-h); height: calc(100vh - var(--header-h)); }
}
.hero-content { position: relative; z-index: 1; width: var(--wrap); margin: 0 auto; padding: 4% 0; }
@media (max-width: 760px) { .hero-content { padding: 2% 0; } }
@media (max-width: 529px) { .hero-content { padding: 6% 0; } }
.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 4em;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 2px 2px 8px #666;
  margin: 20px 0 60px;
}
@media (max-width: 1024px) { .hero h1 { font-size: 2.8em; } }
@media (max-width: 529px) { .hero h1 { font-size: 1.8em; } }
.hero .headline-top { font-family: 'Ando', sans-serif; font-size: 1.45em; font-weight: 300; }
.hero .headline-bottom { display: block; font-size: .35em; font-weight: 300; letter-spacing: .35em; }
.hero .headline-bottom2 { display: block; font-size: .55em; font-weight: 300; letter-spacing: .45em; line-height: 1.15em; margin-top: 1.5em; }

/* ---------- Spalten mit runden Icons ---------- */
.cols { display: grid; grid-template-columns: 1fr; }
@media (min-width: 600px) { .cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cols { grid-template-columns: repeat(4, 1fr); } }
.col { padding: 0 15px 20px; text-align: center; }
.round {
  width: 130px; height: 130px;
  margin: 16px auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
}
.round svg { fill: #666; }
.col h3 {
  font-size: 1.6em;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--heading);
  margin: 20px 0 10px;
}
.col p, .text p, .text li {
  font-size: .95em;
  font-weight: 300;
  letter-spacing: .05em;
}
.col p { margin-top: 20px; }

/* Wer wir sind */
.about { background: #fff; padding-bottom: 90px; }
.about .round svg { width: 128px; height: 128px; }
@media (max-width: 760px) { .about { padding: 30px 0 60px; } }

/* Was wir machen */
.services {
  background: var(--dark) url('../img/raster.svg');
  color: #fff;
  padding: 30px 0 90px;
}
.services .section-title { text-shadow: 1px 1px 6px #3e3e3e; }
.services .bracket { color: #fff; }
.services .round { border-color: #fff; }
.services .round svg { fill: #fff; }
.services .col h3 { color: #fff; margin-top: 30px; }
@media (max-width: 760px) { .services { padding-top: 30px; } }

/* ---------- Kunden ---------- */
.clients { padding-bottom: 60px; }
@media (max-width: 529px) { .clients { padding: 30px 0; } }
.clients .bracket { margin-bottom: 40px; }
.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 40px;
  list-style: none;
}
@media (min-width: 768px) { .logo-grid { grid-template-columns: repeat(4, 1fr); } }
.logo-grid li {
  height: 220px;
  display: grid; place-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.logo-grid li:nth-child(2n) { border-right: 0; }
@media (min-width: 768px) {
  .logo-grid li:nth-child(2n) { border-right: 1px solid var(--line); }
  .logo-grid li:nth-child(4n) { border-right: 0; }
}
@media (max-width: 529px) { .logo-grid li { height: 160px; } }

/* ---------- Standorte / Karten ---------- */
.locations { background: #d9d9d9; padding-bottom: 60px; }
.locations .bracket { color: var(--heading); }
.map-consent {
  width: 60%;
  margin: 30px auto 0;
  padding: 1em 1em 1.5em;
  background: var(--dark);
  color: #fff;
  text-align: center;
}
.map-consent p { font-size: .95em; font-weight: 300; letter-spacing: .05em; margin-top: 20px; }
.map-consent p:first-child { margin-top: 0; }
.map-consent strong { font-weight: 400; }
.map-consent .btn { margin-top: 30px; }
@media (max-width: 991px) { .map-consent { width: 80%; } }
@media (max-width: 529px) { .map-consent { width: 92%; } }
.btn {
  font: inherit;
  color: #333;
  background: #efefef;
  border: 1px solid #767676;
  border-radius: 2px;
  padding: .25em .75em;
  cursor: pointer;
}
.btn:hover { background: #e2e2e2; }
.maps { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 768px) { .maps { grid-template-columns: 1fr 1fr; } }
.maps iframe {
  display: block;
  width: 80%;
  height: 450px;
  margin: 60px 10% 0;
  border: 0;
}
@media (max-width: 529px) { .maps iframe { width: 92%; margin: 30px 4% 0; height: 360px; } }

/* ---------- Partner ---------- */
.partners { padding: 17px 0 30px; text-align: center; }
.partners h3 {
  font-size: 1.6em;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--heading);
  margin: 20px 0 10px;
}
.partners h3 span { color: var(--red); }
.partner-logos {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center;
  margin: 50px 0 30px;
}
.partner-logos li { width: 33.333%; padding: 0 15px; }
@media (min-width: 768px) { .partner-logos li { width: 25%; } }
@media (min-width: 992px) { .partner-logos li { width: 16.666%; } }
.partner-logos img { margin: 0 auto; transition: transform .3s ease, opacity .3s ease; }
.partner-logos li:hover img { transform: scale(1.05); opacity: .85; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark) url('../img/raster.svg');
  color: #fff;
  text-align: center;
  font-weight: 300;
  padding: 30px 0 40px;
}
.to-top {
  display: block;
  width: 30px; height: 30px;
  margin: 20px auto 0;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #f0f0f0 url('../img/arrow.png') no-repeat center;
  transform: rotate(180deg);
  transition: background-color .7s;
}
.to-top:hover { background-color: rgba(255, 255, 255, .6); }
.site-footer .section-title { margin: 30px 0 60px; }
.contact { list-style: none; }
.contact li { font-size: .95em; letter-spacing: .05em; }
.site-footer a { color: #fff; }
.site-footer a:hover, .site-footer a:focus { color: var(--hover); text-decoration: none; }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.legal {
  display: grid;
  grid-template-columns: 1fr;
  margin: 80px 0;
}
@media (min-width: 992px) { .legal { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1006px) { .legal { margin: 0; } }
.legal-title, .legal-body { padding: 120px 30px; }
.legal-title h1 {
  font-family: 'Ando', sans-serif;
  font-size: 2.2em;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-align: right;
  color: var(--red);
  background: url('../img/konzept-clip.jpg') 0 0 / cover no-repeat;
  background-image: image-set(url('../img/konzept-clip-380.avif') type('image/avif'), url('../img/konzept-clip-380.webp') type('image/webp'), url('../img/konzept-clip-380.jpg') type('image/jpeg'));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.legal-body h2 {
  font-family: 'Ando', sans-serif;
  font-size: 5em;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text);
  overflow-wrap: break-word;
  hyphens: auto;
}
.text { color: var(--text); }
.text p { margin-top: 20px; }
.text p:first-child { margin-top: 0; }
.text ul { padding-left: 20px; margin-top: 10px; color: #333; }
.text a { overflow-wrap: anywhere; }
@media (max-width: 1006px) {
  .legal-title h1, .legal-body h2 { text-align: center; }
  .legal-body { padding-top: 60px; }
}
@media (max-width: 760px) { .legal-body h2 { font-size: 3.8em; } }
@media (max-width: 529px) {
  .legal-title { background: url('../img/muster.png'); padding-bottom: 0; }
  .legal-body { background: url('../img/muster.png'); padding-top: 60px; }
  .legal-title h1 { font-size: 1.8em; }
  .legal-body h2 { font-size: 2.4em; }
}
@media (max-width: 400px) { .legal-body h2 { font-size: 1.9em; } }

/* Fehlerseite */
.notfound { text-align: center; padding: 60px 0 120px; }
.notfound p { color: var(--text); font-size: 1.2em; font-weight: 300; margin-top: 20px; }

/* ---------- Einblend-Animationen (ersetzen skrollr) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .hero-content { opacity: 0; transition: opacity 1.2s ease .1s; }
.js .hero-content.is-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .hero-content { opacity: 1; transform: none; transition: none; }
  .partner-logos img, .to-top, .nav a { transition: none; }
}
