/* Trockenbau Kampf – Nachbau des CONCEPTNET-Designs (TYPO3, ca. 2016–2022) als statische Seite.
   Farben, Schrift und Maße entsprechen dem Original; nur Technik/Responsive/A11y modernisiert. */

@font-face { font-family: "Roboto"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/roboto-v29-latin-300.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto-v29-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/roboto-v29-latin-500.woff2") format("woff2"); }

:root {
  --teal: #2f8e92;
  --teal-light: #5ddade;
  --teal-tint: rgba(47, 142, 146, 0.15);
  --dark: #0f4345;
  --ink: #1a171b;
  --red: #e2001a;
  --grey: #f1f1f1;
  --white: #fff;
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: min(94%, 1280px);
  --nav-h: 75px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--white);
  color: var(--dark);
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
[id] { scroll-margin-top: calc(var(--nav-h) + 10px); }
p { margin: 0 0 0.5em; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--dark); }
a[href^="tel:"] { color: var(--dark); }
b, strong { font-weight: 500; }
h1, h2, h3, h4 { font-weight: 500; color: var(--teal); line-height: 1.4; margin: 0; overflow-wrap: anywhere; }
h1 { font-size: 40px; margin-bottom: 20px; }
h2 { font-size: 26px; margin-bottom: 15px; }
h4 { font-size: 16px; }
.hassub > span { display: block; font-weight: 300; }
.hassub > span + span { font-weight: 500; }

:focus-visible { outline: 3px solid var(--teal-light); outline-offset: 2px; }
.skip { position: absolute; left: 10px; top: -60px; z-index: 20; background: var(--dark); color: #fff; padding: 10px 15px; }
.skip:focus { top: 10px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* ---------- Kopfzeile ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  background: var(--white);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.3);
}
.site-head__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: calc(var(--nav-h) - 5px);
  padding-inline: 3%;
}
.logo { display: block; flex: none; }
.logo img { width: 190px; height: auto; }
.nav ul { display: flex; gap: 40px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 0;
  color: var(--dark); font-weight: 400; white-space: nowrap;
  transition: color 0.2s var(--ease-out), text-shadow 0.2s var(--ease-out);
}
.nav a:hover, .nav a[aria-current="true"] { color: #111; text-shadow: 0 0 #111; }
.progress { height: 5px; background: transparent; overflow: hidden; }
.progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(to right, var(--teal-light) 0%, var(--teal) 30%, var(--dark) 75%, var(--ink) 85%, var(--red) 100%);
  transform-origin: left center; transform: scaleX(var(--progress, 0));
}

.menu-btn {
  display: none; position: relative; width: 52px; height: 52px; margin-right: -6px;
  border: 0; background: none; cursor: pointer; color: var(--dark);
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  position: absolute; left: 7px; width: 38px; height: 3px; background: currentColor;
  transition: transform 0.3s var(--ease-out), background-color 0.2s;
}
.menu-btn span { top: 50%; margin-top: -1.5px; }
.menu-btn span::before, .menu-btn span::after { content: ""; left: 0; }
.menu-btn span::before { transform: translateY(-11px); }
.menu-btn span::after { transform: translateY(11px); }
.menu-btn[aria-expanded="true"] span { background-color: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: rotate(-45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: rotate(45deg); }

main { padding-top: var(--nav-h); }

/* ---------- Bild-Header (Startbild + Zwischenheader) ---------- */
.banner { position: relative; overflow: hidden; aspect-ratio: 10 / 3; background: var(--dark); isolation: isolate; }
.banner > img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.banner--farbe::after {
  /* animierter Farbverlauf wie im Original (multiply, 70 %) – nur transform animiert */
  content: ""; position: absolute; inset: -25%; z-index: 1;
  background: linear-gradient(to right, #5dd9dd 0%, #0f4345 100%);
  mix-blend-mode: multiply; opacity: 0.7;
  animation: farbani 20s var(--ease-in-out) infinite;
  will-change: transform;
}
.banner--farbe.is-paused::after { animation-play-state: paused; }
@keyframes farbani {
  0%, 100% { transform: translate(0, 0) rotate(-4deg); }
  50% { transform: translate(-8%, -6%) rotate(4deg); }
}
.hero__text { position: absolute; z-index: 2; left: 50%; bottom: 110px; transform: translateX(-50%); width: var(--wrap); }
.hero__text h1 { color: rgba(255, 255, 255, 0.4); font-size: 56px; line-height: 1; margin: 0 0 10px; }
.hero__text ul { list-style: none; margin: 0; padding: 0; max-width: 300px; }
.hero__text li {
  display: inline-block; vertical-align: top;
  margin: 0 5px 5px 0; padding: 7px 10px 4px;
  background: var(--teal); color: var(--white); font-size: 22px; font-weight: 300;
}

/* ---------- Erfahrung · Bild · Qualität ---------- */
.intro { position: relative; z-index: 3; margin-top: -60px; margin-bottom: 80px; }
.intro__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1fr); align-items: start; }
.intro__grid::before { content: ""; position: absolute; inset: 30px 0; background: var(--grey); z-index: -1; }
.intro__col { padding: 60px 3% 40px 7%; }
.intro__col:last-child { padding: 60px 7% 40px 3%; }
.intro__img { margin: 0; }
.intro__img img { width: 100%; aspect-ratio: 8 / 7; object-fit: cover; }

/* ---------- Leistungen ---------- */
.leistungen {
  position: relative; z-index: 2;
  margin-top: calc(-12vw + 5px);
  padding: 50px 0 50px;
  background:
    url("../img/welle.svg") left top / 100% auto no-repeat,
    linear-gradient(var(--white), var(--white)) left calc(12vw - 2px) / 100% 100% no-repeat;
}
.icon-grid { list-style: none; margin: 40px 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 35px 2%; }
.icon-grid li { display: flex; flex-direction: column; align-items: flex-start; }
.icon-grid img { width: 90px; height: 90px; object-fit: contain; object-position: left bottom; transition: transform 0.4s var(--ease-out); }
.icon-grid li:hover img { transform: translateY(-4px); }
.label { display: inline-block; margin-top: 5px; padding: 2px 10px 1px; background: var(--teal); color: var(--white); }

/* ---------- Projekt-Galerie (neu) ---------- */
.projekt { padding: 30px 0 80px; }
.projekt .teaser { max-width: 760px; margin-bottom: 30px; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gallery__item { position: relative; display: block; overflow: hidden; padding: 0; border: 0; background: var(--grey); cursor: zoom-in; aspect-ratio: 3 / 4; }
.gallery__item--wide { grid-column: span 2; aspect-ratio: auto; }
.gallery__item--wide img { position: absolute; inset: 0; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out), opacity 0.3s; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item:active img { opacity: 0.85; }

/* ---------- Partner & Kunden ---------- */
.partner { background: var(--grey); padding: 50px 0; }
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 25px; padding: 0; list-style: none; }
.filter button {
  font: inherit; font-weight: 500; color: var(--white);
  background: var(--teal); border: 0; padding: 10px 15px; cursor: pointer;
  transition: background-color 0.3s var(--ease-out);
}
.filter button:hover { background: var(--dark); }
.filter button:active { transform: translateY(1px); }
.filter button[aria-pressed="true"] { background: var(--dark); }
.filter .filter__all[hidden] { display: none; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px 2%; }
.tiles li {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 100px; padding: 10px 10%;
  background: var(--teal-tint);
  font-weight: 500; color: var(--teal); font-size: 15px;
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out), opacity 0.4s;
}
.tiles a { color: inherit; }
.tiles a:hover { text-decoration: underline; }
.tiles.is-filtered li { opacity: 0.45; }
.tiles.is-filtered li.selected { opacity: 1; background: var(--teal); color: var(--white); }

/* ---------- Team & Kontakt ---------- */
.kontakt { padding: 50px 0 100px; }
.kontakt__icon { width: 36px; margin-bottom: 15px; }
.kontakt__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 4%; }
.kontakt__team { max-width: 720px; }
.team { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.person { display: flex; align-items: flex-start; color: var(--dark); }
.person img { width: 115px; aspect-ratio: 4 / 5; object-fit: cover; flex: none; }
.person__cap { margin-top: 20px; padding: 20px; background: var(--grey); color: var(--teal); }
.person__cap b { display: block; }
a.person { transition: opacity 0.2s; }
a.person:hover .person__cap { background: var(--teal-tint); color: var(--dark); }
button.person { font: inherit; text-align: left; border: 0; padding: 0; background: none; cursor: zoom-in; }
button.person:hover .person__cap { background: var(--teal-tint); color: var(--dark); }
.contact-list { list-style: none; margin: 25px 0; padding: 0 0 0 25px; }
.contact-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.contact-list img { width: 36px; height: 36px; flex: none; }
.contact-list a { color: var(--dark); }
.contact-list a[href^="mailto:"] { color: var(--teal); }
.contact-list a:hover { text-decoration: underline; }
.freuen { margin-top: 30px; font-weight: 500; color: var(--teal); }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.legal { padding: 60px 0 60px; }
.legal .wrap { max-width: 900px; margin-left: max(3%, calc((100% - 1280px) / 2)); }
.legal h2 { font-size: 20px; margin: 30px 0 8px; }
.legal p, .legal li { margin-bottom: 0.8em; }
.legal ul { padding-left: 1.2em; }
.legal-banner { aspect-ratio: 8 / 3; }

/* ---------- Footer ---------- */
.site-foot { position: relative; background: var(--teal); color: var(--white); }
.site-foot a, .site-foot a:hover { color: var(--white); }
.site-foot a:hover { text-decoration: underline; }
.site-foot h4 { color: var(--white); }
.pin {
  position: absolute; top: -20px; left: 50%; z-index: 4; width: 30px; height: 30px; margin-left: -15px;
  border: 0; padding: 0; background: none; cursor: pointer;
}
.pin span { display: block; width: 100%; height: 100%; border-radius: 50% 50% 50% 0; background: var(--teal-light); transform: rotate(-45deg); transition: transform 0.3s var(--ease-out); }
.pin span::before { content: ""; position: absolute; width: 14px; height: 14px; top: 50%; left: 50%; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--white); }
.pin:hover span { transform: rotate(-45deg) scale(1.12); }
.pin[aria-expanded="true"] span { background: var(--white); }
.pin[aria-expanded="true"] span::before { background: var(--teal); }
.map { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease-out); }
.map.is-open { grid-template-rows: 1fr; }
.map__inner { overflow: hidden; }
.map__box { position: relative; height: 360px; margin-top: 10px; background: #dfe8e8; }
.map__box iframe { display: block; width: 100%; height: 100%; border: 0; }
.map__consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; padding: 20px; text-align: center; color: var(--dark); }
.map__consent p { max-width: 520px; }
.map__consent a { color: var(--teal); text-decoration: underline; }
.btn {
  font: inherit; font-weight: 500; color: var(--white); background: var(--teal);
  border: 0; padding: 10px 18px; cursor: pointer; transition: background-color 0.25s var(--ease-out);
}
.btn:hover { background: var(--dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.foot__cols { display: grid; grid-template-columns: auto auto auto; justify-content: start; gap: 15px 40px; padding: 30px 3%; max-width: 760px; }
.foot__cols p { margin: 0; }
.foot__side { position: absolute; right: 3%; top: 30px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.foot__side ul { list-style: none; margin: 0; padding: 0; text-align: right; }
.smarty { display: block; width: 60px; }
.foot__copy { padding: 0 3% 20px; font-size: 13px; opacity: 0.8; }

/* ---------- Scroll-Buttons ---------- */
.scrollbtns { position: fixed; right: 15px; bottom: 30px; z-index: 6; display: flex; flex-direction: column; gap: 4px; padding: 3px; background: rgba(255, 255, 255, 0.8); }
.scrollbtns button { width: 24px; height: 24px; padding: 0; border: 0; cursor: pointer; background: rgba(0, 0, 0, 0.3); color: var(--white); display: grid; place-items: center; transition: background-color 0.2s; }
.scrollbtns button:hover { background: var(--teal); }
.scrollbtns svg { width: 14px; height: 14px; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; background: transparent; color: var(--white); }
.lightbox::backdrop { background: rgba(15, 20, 20, 0.92); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; animation: fade 0.25s var(--ease-out); }
.lightbox figure { margin: 0; display: grid; place-items: center; gap: 12px; padding: 50px 60px 20px; max-height: 100dvh; }
.lightbox img { max-width: min(92vw, 1400px); max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; }
.lightbox figcaption { text-align: center; }
.lb-btn { position: fixed; z-index: 2; border: 0; background: rgba(0, 0, 0, 0.4); color: var(--white); width: 48px; height: 48px; cursor: pointer; display: grid; place-items: center; transition: background-color 0.2s; }
.lb-btn:hover { background: var(--teal); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 10px; top: 50%; margin-top: -24px; }
.lb-next { right: 10px; top: 50%; margin-top: -24px; }
.lightbox[data-single] .lb-prev, .lightbox[data-single] .lb-next { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav ul { gap: 24px; }
  .hero__text { bottom: 90px; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
  :root { --nav-h: 69px; }
  .logo img { width: 160px; }
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); box-shadow: 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease-out);
  }
  .nav.is-open { grid-template-rows: 1fr; }
  .nav > ul { overflow: hidden; flex-direction: column; gap: 0; padding: 0 3%; }
  .nav.is-open > ul { padding-bottom: 10px; }
  .nav a { padding: 12px 0; border-top: 1px solid var(--grey); }
  .banner--hero { aspect-ratio: auto; height: clamp(360px, 62vw, 520px); }
  .hero__text { bottom: 80px; }
  .hero__text h1 { font-size: 44px; }
  .intro__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .intro__grid::before { inset: 0; }
  .intro__col, .intro__col:last-child { padding: 35px 6%; }
  .intro__img { grid-column: 1 / -1; grid-row: 2; max-width: 420px; justify-self: center; margin-bottom: -40px; }
  .intro { margin-bottom: 70px; }
  .icon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__item--wide { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kontakt__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .foot__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-right: 140px; }
}

@media (max-width: 640px) {
  h2 { font-size: 22px; }
  .banner { aspect-ratio: 16 / 9; }
  .banner--hero { height: 420px; aspect-ratio: auto; }
  .banner--hero > img { object-position: 30% top; }
  .hero__text h1 { font-size: 38px; }
  .hero__text li { font-size: 19px; }
  .intro { margin-top: -40px; }
  .intro__grid { grid-template-columns: minmax(0, 1fr); }
  .intro__img { grid-row: auto; margin-bottom: 0; max-width: none; }
  .intro__col, .intro__col:last-child { padding: 30px 6%; }
  .leistungen { margin-top: 0; padding-top: 40px; background: var(--white); }
  .icon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 4%; }
  .icon-grid img { width: 70px; height: 70px; }
  .label { font-size: 14px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 3%; }
  .tiles li { min-height: 80px; padding: 10px 6%; font-size: 14px; }
  .person img { width: 90px; }
  .person__cap { margin-top: 12px; padding: 14px; }
  .contact-list { padding-left: 0; }
  .foot__cols { grid-template-columns: minmax(0, 1fr); padding: 40px 6% 20px; }
  .foot__side { position: static; flex-direction: row; justify-content: space-between; align-items: center; padding: 0 6% 20px; }
  .foot__side ul { text-align: left; }
  .foot__copy { padding: 0 6% 80px; }
  .lightbox figure { padding: 60px 10px 20px; }
  .lb-prev, .lb-next { top: auto; bottom: 15px; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.15s !important; }
  .banner--farbe::after { transform: none; }
}

@media print {
  .site-head, .scrollbtns, .pin, .map, .menu-btn { display: none !important; }
  main { padding-top: 0; }
}
