/* ==========================================================================
   SCHWANDT BAU GmbH – Relaunch 2026
   Modernes, framework-freies Stylesheet (Custom Properties, Grid, Flexbox)
   ========================================================================== */

:root {
  --red: #e60003;
  --red-dark: #b80002;
  --dark: #16181c;
  --dark-soft: #23262b;
  --text: #2b2e33;
  --text-muted: #6b7076;
  --line: #e4e6e9;
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(0, 0, 0, .08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .16);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 2px 16px rgba(0,0,0,.06); }

.site-header .container { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { height: 40px; width: auto; max-width: min(70vw, 320px); object-fit: contain; object-position: left center; }

.main-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--red); background: var(--bg-alt); }
.main-nav a.active { color: var(--red); }
.main-nav a.nav-cta { background: var(--red); color: #fff; margin-left: 8px; }
.main-nav a.nav-cta:hover { background: var(--red-dark); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
  z-index: 110;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: transform .3s, opacity .3s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -8px; left: 0; }
.nav-toggle span::after { top: 8px; left: 0; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-8px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--dark) url("../images/schwandt_intro6.webp") center/cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(10, 11, 13, .82) 0%, rgba(10, 11, 13, .55) 55%, rgba(10, 11, 13, .25) 100%);
}
.hero .container { position: relative; padding-top: var(--header-h); }

.hero-kicker {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 1.08;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.hero h1 .accent { color: var(--red); }
.hero p.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  max-width: 640px;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, .88);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
}
.hero-scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 34px;
  margin: 8px auto 0;
  background: rgba(255, 255, 255, .6);
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint { 0%, 100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); } }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .12); color: #fff; }
.btn-outline { border-color: var(--red); color: var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; }

/* --------------------------------------------------------------------------
   Sektionen
   -------------------------------------------------------------------------- */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--dark); color: #fff; }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -.015em;
}
.section.dark .section-head h2 { color: #fff; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; margin: 0; }
.section.dark .section-head p { color: rgba(255, 255, 255, .75); }

/* --------------------------------------------------------------------------
   Über uns / Philosophie
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.about-text p { margin: 0 0 18px; }
.about-text .claim {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  margin-top: 28px;
}
.about-text .claim .accent { color: var(--red); }

.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-media .badge {
  position: absolute;
  left: -18px;
  bottom: -18px;
  background: var(--red);
  color: #fff;
  padding: 18px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.about-media .badge strong { display: block; font-size: 1.9rem; line-height: 1.1; }
.about-media .badge span { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }

.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 72px;
}
.usp {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .25s, box-shadow .25s;
}
.usp:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.usp .icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: rgba(230, 0, 3, .09);
  color: var(--red);
  border-radius: 10px;
  margin-bottom: 18px;
}
.usp .icon svg { width: 26px; height: 26px; }
.usp h3 { margin: 0 0 8px; font-size: 1.06rem; }
.usp p { margin: 0; font-size: .94rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Leistungen
   -------------------------------------------------------------------------- */
.service { padding: 88px 0; border-top: 1px solid var(--line); }
.service:nth-of-type(odd) { background: var(--bg-alt); }

.service-head { display: flex; align-items: center; gap: 20px; margin-bottom: 14px; }
.service-head img.signet { width: 64px; height: auto; }
.service-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0; font-weight: 800; }

.service-intro { max-width: 780px; color: var(--text-muted); margin: 0 0 14px; }

.service-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 36px; padding: 0; list-style: none; }
.service-tags li {
  font-size: .86rem;
  font-weight: 600;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 16px;
  color: var(--text);
}
.service:nth-of-type(odd) .service-tags li { background: #fff; }

.service h3.sub {
  font-size: 1.15rem;
  margin: 44px 0 18px;
  padding-left: 14px;
  border-left: 4px solid var(--red);
}

/* Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery a {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 460 / 300;
  background: var(--dark-soft);
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery a:hover img { transform: scale(1.06); }
.gallery a::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  font-weight: 300;
  color: #fff;
  background: rgba(22, 24, 28, .45);
  opacity: 0;
  transition: opacity .3s;
}
.gallery a:hover::after { opacity: 1; }

/* --------------------------------------------------------------------------
   Team
   -------------------------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.team-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: transform .2s, box-shadow .2s;
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.team-card .avatar {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--dark);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
}
.team-card.lead-card .avatar { background: var(--red); }
.team-card h3 { margin: 0; font-size: 1rem; line-height: 1.3; }
.team-card .role { font-size: .84rem; color: var(--text-muted); }
.team-card .qual { font-size: .8rem; color: var(--text-muted); font-style: italic; }
.team-card a.phone { font-size: .9rem; font-weight: 600; white-space: nowrap; margin-left: auto; }

/* --------------------------------------------------------------------------
   Referenzen
   -------------------------------------------------------------------------- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.logo-grid a {
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  min-height: 96px;
  filter: grayscale(1);
  opacity: .75;
  transition: filter .3s, opacity .3s, transform .2s, box-shadow .2s;
}
.logo-grid a:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.logo-grid img { max-height: 52px; width: auto; }

/* --------------------------------------------------------------------------
   Kontakt
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: start;
}

.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { font-size: .88rem; font-weight: 600; display: block; margin-bottom: 6px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230, 0, 3, .12);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--text-muted); }
.checkbox-row input { width: auto; margin-top: 4px; }
.form-note { font-size: .82rem; color: var(--text-muted); }
.honeypot { position: absolute; left: -9999px; opacity: 0; }
.form-status { display: none; padding: 14px 18px; border-radius: 8px; font-weight: 600; }
.form-status.ok { display: block; background: #e7f6ec; color: #1c7c3d; }
.form-status.error { display: block; background: #fdecec; color: var(--red-dark); }

.contact-info {
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px;
}
.contact-info h3 { margin: 0 0 6px; font-size: 1.2rem; }
.contact-info address { font-style: normal; margin: 0 0 24px; color: rgba(255, 255, 255, .85); }
.contact-info ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.contact-info li { display: flex; gap: 12px; align-items: center; color: rgba(255, 255, 255, .85); }
.contact-info li svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--red); }
.contact-info a { color: #fff; font-weight: 600; }
.contact-info a:hover { color: var(--red); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: #0e0f11; color: rgba(255, 255, 255, .65); padding: 40px 0; font-size: .9rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.site-footer a { color: rgba(255, 255, 255, .85); font-weight: 600; }
.site-footer a:hover { color: var(--red); }
.site-footer nav { display: flex; gap: 22px; }

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 9, 10, .92);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 1200px);
  max-height: 86vh;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
}
.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, .08);
  border: 0;
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s;
}
.lightbox button:hover { background: var(--red); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .8);
  font-size: .9rem;
  letter-spacing: .06em;
}

/* --------------------------------------------------------------------------
   Scroll-Reveal
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   Unterseiten (Impressum / Datenschutz)
   -------------------------------------------------------------------------- */
.legal-page { padding: calc(var(--header-h) + 60px) 0 80px; }
.legal-page h1 { font-size: 2.2rem; margin: 0 0 30px; }
.legal-page .container { max-width: 860px; }
.legal-page h4 { margin-top: 2em; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .about-media .badge { left: 16px; bottom: -18px; }
}

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  /* backdrop-filter macht den Header sonst zum Containing Block des fixed Overlays */
  .nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: transparent; }
  .main-nav {
    position: fixed;
    inset: 0;
    background: rgba(14, 15, 17, .97);
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
  }
  .nav-open .main-nav { opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; text-align: center; gap: 10px; }
  .main-nav a { color: #fff; font-size: 1.3rem; }
  .main-nav a:hover { background: none; }
  .main-nav a.nav-cta { margin-left: 0; }
}

@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .hero-scroll { display: none; }
}
