/* ==========================================================================
   SK Fugentechnik – Stylesheet
   ========================================================================== */

@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal: #027b76;
  --teal-dark: #005450;
  --teal-light: #e6f2f1;
  --navy: #333333;      /* Beton-Dunkelgrau */
  --navy-dark: #252525;
  --text: #333;
  --muted: #6b7280;
  --bg-soft: #f4f6f8;
  --white: #fff;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --max: 1200px;
  --header-h: 84px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-dark); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--navy); margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 90px 0; }
.section--soft { background: var(--bg-soft); }
.section--dotted { background: var(--white) url("../img/bg-dotted.png") center / cover no-repeat; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 780px; margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .8em;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 2px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 10px;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 40px;
  border: 2px solid var(--teal);
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--teal); }
.btn--outline:hover { background: var(--teal); color: var(--white); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--teal-dark); }
.btn--light:hover { background: transparent; color: var(--white); border-color: var(--white); }

/* Topbar ----------------------------------------------------------------- */
.topbar { background: var(--navy-dark); color: #cfd3dc; font-size: .88rem; }
.topbar .container { display: flex; justify-content: flex-end; gap: 26px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #cfd3dc; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--white); }
.topbar svg { width: 14px; height: 14px; fill: currentColor; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  box-shadow: 0 0 4px rgba(0, 0, 0, .1);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 4px 16px rgba(0, 0, 0, .12); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.logo img { height: 28px; width: auto; }
.logo__tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase;
  color: var(--teal); line-height: 1; padding-left: 2px;
}

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav a {
  display: block;
  padding: 10px 16px;
  color: var(--navy);
  font-weight: 500;
  font-size: .98rem;
  border-radius: 4px;
  position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px;
  height: 2px; background: var(--teal); transform: scaleX(0); transition: transform .25s;
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a:hover, .nav a.active { color: var(--teal); }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 10px; cursor: pointer;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 6px 0; transition: transform .3s, opacity .3s; }
.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); }

/* Jobs-Banner ------------------------------------------------------------ */
.jobs-banner { background: var(--teal); color: var(--white); }
.jobs-banner .container { display: flex; align-items: center; justify-content: center; gap: 12px 26px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; text-align: center; }
.jobs-banner strong { letter-spacing: .05em; }
.jobs-banner .btn { padding: 8px 22px; font-size: .85rem; }

/* Hero-Slider ------------------------------------------------------------ */
.hero { position: relative; height: min(78vh, 720px); min-height: 480px; overflow: hidden; background: var(--navy); }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.2s ease, transform 7s ease;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(37, 37, 37, .88) 0%, rgba(37, 37, 37, .55) 55%, rgba(37, 37, 37, .25) 100%);
}
.hero__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; color: var(--white); }
.hero__content .eyebrow { color: #7fd3cf; }
.hero__content h1 { color: var(--white); font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 900; margin-bottom: .3em; }
.hero__services { font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 300; margin-bottom: 1.8em; }
.hero__services span { display: block; }
.hero__dots { position: absolute; z-index: 3; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.hero__dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--white); background: transparent; padding: 0; cursor: pointer; transition: background .2s; }
.hero__dots button.is-active { background: var(--white); }

/* Seiten-Header ---------------------------------------------------------- */
.page-header {
  position: relative;
  padding: 110px 0 90px;
  color: var(--white);
  background: var(--navy) url("../img/hero-mosaik.jpg") center / cover no-repeat;
}
.page-header::before { content: ""; position: absolute; inset: 0; background: rgba(37, 37, 37, .78); }
.page-header .container { position: relative; }
.page-header h1 { color: var(--white); margin: 0; }
.breadcrumb { margin-top: 10px; font-size: .95rem; color: #cfd3dc; }
.breadcrumb a { color: #7fd3cf; }

/* Intro / About ---------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

.whg {
  max-width: 900px;
  display: grid; grid-template-columns: 170px 1fr; gap: 28px; align-items: center;
  margin-top: 30px; padding: 26px; background: var(--white);
  border-left: 4px solid var(--teal); border-radius: var(--radius); box-shadow: var(--shadow);
}
.whg img { border-radius: 4px; cursor: zoom-in; border: 1px solid #e5e7eb; }
.whg h3 { margin-bottom: .3em; }
.whg h3 small { display: block; font-size: .95rem; color: var(--teal); font-weight: 500; }
.whg ul { margin: .4em 0 0; padding-left: 1.2em; }
.whg li { margin-bottom: .3em; }

/* Leistungs-Karten ------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 50px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 0, 0, .14); }
.card__img { aspect-ratio: 3 / 2; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { padding: 24px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-size: 1.2rem; margin-bottom: .2em; }
.card__body p { color: var(--muted); font-size: .97rem; margin-bottom: 1.2em; }
.card__body .btn { margin-top: auto; align-self: flex-start; padding: 9px 22px; font-size: .82rem; }

/* CTA -------------------------------------------------------------------- */
.cta {
  position: relative; color: var(--white); text-align: center;
  background: var(--navy) url("../img/bg-epoxy.jpg") center / cover no-repeat;
  padding: 100px 0;
}
.cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(0, 84, 80, .92), rgba(51, 51, 51, .88)); }
.cta .container { position: relative; }
.cta h2 { color: var(--white); }
.cta p { font-size: 1.15rem; max-width: 640px; margin: 0 auto 1.6em; opacity: .92; }
.cta a:not(.btn) { color: var(--white); text-decoration: underline; }

/* Leistungen-Detail ------------------------------------------------------ */
.service-block { padding: 80px 0; border-bottom: 1px solid #eceff3; scroll-margin-top: calc(var(--header-h) + 10px); }
.service-block:nth-of-type(even) { background: var(--bg-soft); }
.service-block .split { align-items: start; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.check-list li { position: relative; padding: 8px 0 8px 32px; border-bottom: 1px dashed #dde2e8; }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 14px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.check-list--cols { columns: 2; column-gap: 40px; }
.check-list--cols li { break-inside: avoid; }

.sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 40px; }
.panel { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.panel h3 { color: var(--teal-dark); }
.panel .check-list li { font-size: .97rem; }

.banner-img { border-radius: var(--radius); overflow: hidden; margin: 30px 0; box-shadow: var(--shadow); }
.banner-img img { width: 100%; }

.toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.toc a { padding: 9px 20px; border: 2px solid var(--teal); border-radius: 30px; font-weight: 500; font-size: .95rem; }
.toc a:hover { background: var(--teal); color: var(--white); }

/* Referenzen ------------------------------------------------------------- */
.client-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.client-list li {
  background: var(--white); padding: 16px 18px 16px 20px; border-radius: var(--radius);
  border-left: 3px solid var(--teal); box-shadow: 0 4px 14px rgba(0, 0, 0, .05); font-weight: 500;
}

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 40px; }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 4px; position: relative; background: #e5e7eb; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .3s; }
.gallery a:hover img { transform: scale(1.08); filter: brightness(.85); }

/* Lightbox --------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(10, 12, 18, .94);
  display: none; align-items: center; justify-content: center; padding: 60px 70px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 10px 50px rgba(0, 0, 0, .5); }
.lightbox button {
  position: absolute; background: rgba(255, 255, 255, .1); border: 0; color: var(--white);
  width: 50px; height: 50px; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; transition: background .2s;
}
.lightbox button:hover { background: var(--teal); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #cfd3dc; font-size: .9rem; }

/* Kontakt ---------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
.contact-card { background: var(--white); border-radius: var(--radius); padding: 34px 28px; box-shadow: var(--shadow); text-align: center; }
.contact-card .icon {
  width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--teal-light); display: flex; align-items: center; justify-content: center;
}
.contact-card .icon svg { width: 26px; height: 26px; fill: var(--teal); }
.contact-card h3 { font-size: 1.15rem; }
.contact-card p { margin: 0; }
.contact-card a { font-weight: 500; }

/* Rechtstexte ------------------------------------------------------------ */
.legal { max-width: 860px; }
.legal h2 { margin-top: 1.8em; font-size: 1.6rem; }
.legal h3 { margin-top: 1.6em; font-size: 1.2rem; }
.legal h4 { margin-top: 1.3em; font-size: 1.05rem; }
.legal p, .legal li { overflow-wrap: anywhere; }
.legal .source { margin-top: 3em; font-size: .9rem; color: var(--muted); }

/* FAQ ------------------------------------------------------------------ */
.faq { max-width: 860px; margin: 40px auto 0; }
.faq details { background: var(--white); border-radius: var(--radius); box-shadow: 0 4px 14px rgba(0, 0, 0, .05); margin-bottom: 12px; border-left: 3px solid var(--teal); }
.faq summary { cursor: pointer; padding: 18px 50px 18px 22px; font-weight: 700; color: var(--navy); position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--teal); font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #c3c8d3; font-size: .97rem; }
.site-footer .container { padding-top: 70px; padding-bottom: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: var(--white); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1em; }
.site-footer a { color: #c3c8d3; }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45em; }
.footer-logo { height: 26px; width: auto; margin-bottom: 20px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; transition: background .2s; }
.social a:hover { background: var(--teal); }
.social svg { width: 18px; height: 18px; fill: var(--white); }
.footer-bottom { padding-right: 60px; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 50px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .9rem; }
.footer-bottom nav { display: flex; gap: 22px; }

/* Back-to-top ------------------------------------------------------------ */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--teal); color: var(--white); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; fill: currentColor; }

/* Scroll-Animation ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__slide { transition: opacity .3s; transform: none; }
  html { scroll-behavior: auto; }
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .client-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 70px; }
  .section { padding: 64px 0; }
  .split, .sub-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .split { gap: 36px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--white); max-height: 0; overflow: hidden; transition: max-height .35s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .12);
  }
  .nav-open .nav { max-height: 400px; }
  .nav ul { flex-direction: column; gap: 0; padding: 10px 20px 20px; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid #eceff3; }
  .nav a::after { display: none; }
  .nav a.active { color: var(--teal); }
  .page-header { padding: 70px 0 60px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar .container { justify-content: center; gap: 16px; }
  .topbar .hide-sm { display: none; }
  .logo img { height: 20px; }
  .logo__tag { font-size: .62rem; letter-spacing: .26em; }
  .cards, .client-list { grid-template-columns: 1fr; }
  .check-list--cols { columns: 1; }
  .whg { grid-template-columns: 1fr; text-align: left; }
  .whg img { max-width: 200px; }
  .hero { min-height: 520px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .lightbox { padding: 60px 10px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 10px; transform: none; }
  .footer-bottom { flex-direction: column; }
}
