/* ================================================================
   DaWa-Bau GbR – Main Stylesheet
   ================================================================ */

/* ── Google Fonts (self-hosted alternative: see /assets/fonts/) ── */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Barlow:wght@300;400;500;600&display=swap');


/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 18px; }
body  { font-family: 'Barlow', sans-serif; color: var(--text); background: var(--white); line-height: 1.65; }
img   { display: block; max-width: 100%; height: auto; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
button, input, select, textarea { font-family: inherit; }

/* ── Utilities ──────────────────────────────────────────────────── */
.container       { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section         { padding: 80px 0; }
.section-alt     { background: var(--light); }
.section-dark    { background: var(--primary); color: var(--white); }

.section-label {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-head       { margin-bottom: 48px; }
.section-head h2    { font-size: clamp(1.9rem, 3.5vw, 2.6rem); color: inherit; }
.section-head p     { margin-top: 14px; color: var(--muted); font-size: 1rem; }
.section-dark .section-head p { color: rgba(255,255,255,.65); }

h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .02em;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
}
.btn-primary              { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-primary:hover        { background: var(--accent2); border-color: var(--accent2); transform: translateY(-2px); }
.btn-outline              { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover        { background: var(--white); color: var(--primary); }
.btn-outline-dark         { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline-dark:hover   { background: var(--primary); color: var(--white); }

/* ── Scroll Animations ──────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.fade-in.visible { opacity: 1; transform: none; }
.fade-in-left { opacity: 0; transform: translateX(-28px); transition: opacity .55s ease, transform .55s ease; }
.fade-in-left.visible { opacity: 1; transform: none; }

/* ================================================================
   TOPBAR
   ================================================================ */
.topbar { background: var(--primary); color: rgba(255,255,255,.65); font-size: .82rem; padding: 8px 0; }
.topbar .container { display: flex; gap: 28px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,.65); transition: color var(--transition); }
.topbar a:hover { color: var(--accent); }
.topbar-item { display: flex; align-items: center; gap: 7px; }
.topbar-item svg { flex-shrink: 0; }

/* ================================================================
   NAVIGATION
   ================================================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 2px solid var(--mid);
  height: var(--nav-h);
  transition: box-shadow var(--transition);
}
nav.scrolled { box-shadow: var(--shadow-md); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0;
}
.logo img { height: 42px; width: auto; }
.logo-text span { color: var(--accent); }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
  transition: color var(--transition);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.nav-links .nav-cta {
  background: var(--accent);
  color: var(--white);
  padding: 9px 20px;
  border-radius: var(--radius);
  border-bottom: none;
}
.nav-links .nav-cta:hover { background: var(--accent2); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--primary); transition: .3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  min-height: 580px;
  background: #333;
  display: flex;
  align-items: center;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
}
.hero-content { max-width: 640px; }
.hero-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.hero p {
  font-size: 1.08rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 36px;
  font-weight: 300;
  line-height: 1.7;
  max-width: 540px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* ================================================================
   STATS BAND
   ================================================================ */
.stats-band  { background: var(--accent); padding: 32px 0; }
.stats-grid  { display: grid; grid-template-columns: repeat(4,1fr); text-align: center; }
.stat-item   { padding: 8px 16px; border-right: 1px solid rgba(255,255,255,.25); }
.stat-item:last-child { border-right: none; }
.stat-num    { font-family: 'Barlow Condensed', sans-serif; font-size: 2.5rem; font-weight: 800; color: var(--white); line-height: 1; }
.stat-label  { font-size: .82rem; color: rgba(255,255,255,.85); margin-top: 4px; text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }

/* ================================================================
   ÜBER UNS
   ================================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.about-img-wrap { position: relative; }
.about-img-wrap img { width: 100%; height: 440px; object-fit: cover; border-radius: var(--radius); }
.about-badge {
  position: absolute;
  bottom: 28px; left: -24px;
  background: var(--accent);
  color: var(--white);
  padding: 18px 24px;
  font-family: 'Barlow Condensed', sans-serif;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.about-badge .num { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.about-badge .lbl { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; opacity: .9; margin-top: 2px; }

.about-text h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 20px; }
.about-text p  { color: var(--muted); margin-bottom: 16px; font-size: .97rem; }

.about-checks { margin: 24px 0; }
.check-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 11px; }
.check-icon {
  width: 20px; height: 20px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.check-icon::after {
  content: '';
  width: 5px; height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translateY(-1px);
}
.check-item span { font-size: .93rem; color: var(--text); }

/* ================================================================
   LEISTUNGEN
   ================================================================ */
.leistungen-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.leistung-card {
  background: var(--white);
  border: 1px solid var(--mid);
  border-top: 3px solid var(--accent);
  padding: 32px 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.leistung-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.leistung-icon { font-size: 2rem; margin-bottom: 16px; }
.leistung-card h3 { font-size: 1.15rem; margin-bottom: 12px; color: var(--primary); }
.leistung-card p  { font-size: .9rem; color: var(--muted); line-height: 1.65; }

/* ================================================================
   PHILOSOPHIE BAND
   ================================================================ */
.phil-band {
  background: #333;
  padding: 90px 0;
  color: var(--white);
  text-align: center;
  background-position: center;
  background-size: cover;
}
.phil-band h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); max-width: 700px; margin: 0 auto 20px; }
.phil-band p  { max-width: 600px; margin: 0 auto 32px; color: rgba(255,255,255,.8); font-size: 1.05rem; }

/* ================================================================
   HALLENBAU
   ================================================================ */
.hallenbau-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hallen-item {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-left: 3px solid var(--accent);
  padding: 24px;
}
.hallen-item h4 { font-size: 1.05rem; margin-bottom: 8px; color: var(--white); }
.hallen-item p  { font-size: .88rem; color: rgba(255,255,255,.6); line-height: 1.65; }

/* ================================================================
   GALERIE
   ================================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  grid-template-rows: auto auto;
  gap: 8px;
}
.gallery-item { overflow: hidden; position: relative; }
.gallery-item img {
  width: 100%; height: 240px;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item.tall img  { height: 488px; }  /* spans 2 rows */

/* ================================================================
   EINSATZGEBIET
   ================================================================ */
.regionen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.region-text h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 16px; }
.region-text p  { color: var(--muted); margin-bottom: 16px; font-size: .97rem; }
.region-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.region-tag {
  background: var(--light); border: 1px solid var(--mid);
  padding: 7px 16px;
  font-size: .85rem; font-weight: 600;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--text); border-radius: var(--radius);
}
.region-map-wrap {
  background: var(--light); border: 1px solid var(--mid);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  min-height: 300px; overflow: hidden; padding: 24px;
}
.region-map-wrap svg { width: 100%; max-width: 340px; }

/* ================================================================
   KONTAKT
   ================================================================ */
.kontakt-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.kontakt-info h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 20px; }
.kontakt-info p  { color: var(--muted); margin-bottom: 28px; font-size: .97rem; }

.kontakt-block       { margin-bottom: 20px; }
.kontakt-block strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); display: block; margin-bottom: 4px;
}
.kontakt-block span  { font-size: .95rem; color: var(--text); }
.kontakt-block a:hover { color: var(--accent); }

/* Form */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--mid);
  background: var(--light);
  font-size: .95rem; color: var(--text);
  border-radius: var(--radius); outline: none;
  transition: border-color var(--transition), background var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); background: var(--white); }
.form-group textarea  { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit-wrap { display: flex; flex-direction: column; gap: 12px; }
.form-note { font-size: .8rem; color: var(--muted); }
.form-success { display: none; color: #2a7a2a; font-weight: 600; padding: 12px 16px; background: #e8f5e9; border-radius: var(--radius); border-left: 3px solid #2a7a2a; }

/* ================================================================
   FOOTER
   ================================================================ */
footer { background: #111; color: rgba(255,255,255,.55); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }

.footer-brand .logo-text { color: var(--white); font-family: 'Barlow Condensed',sans-serif; font-size: 1.5rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.footer-brand .logo-text span { color: var(--accent); }
.footer-brand p { font-size: .88rem; line-height: 1.7; margin-top: 12px; }

footer h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--white); margin-bottom: 16px;
}
.footer-links li { margin-bottom: 9px; }
.footer-links a  { font-size: .88rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; flex-wrap: wrap; gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,.45); margin-left: 16px; transition: color var(--transition); }
.footer-bottom a:hover { color: var(--accent); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 960px) {
  .about-grid, .kontakt-grid, .regionen-grid { grid-template-columns: 1fr; }
  .about-img-wrap img { height: 320px; }
  .about-badge { left: 12px; }
  .leistungen-grid { grid-template-columns: 1fr 1fr; }
  .hallenbau-list  { grid-template-columns: 1fr; }
  .stats-grid      { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
  .gallery-grid    { grid-template-columns: 1fr 1fr; }
  .gallery-item.tall img { height: 240px; }
  .gallery-item:nth-child(1) { grid-row: span 1; }
}

@media (max-width: 640px) {
  .topbar .container { justify-content: center; gap: 16px; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--white); border-bottom: 2px solid var(--mid);
    padding: 20px 24px 28px; gap: 18px; box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .hamburger      { display: flex; }
  .leistungen-grid { grid-template-columns: 1fr; }
  .gallery-grid    { grid-template-columns: 1fr; }
  .gallery-item img, .gallery-item.tall img { height: 200px; }
  .stats-grid      { grid-template-columns: 1fr 1fr; }
  .form-row        { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr; }
  .hero-btns       { flex-direction: column; }
  .section         { padding: 56px 0; }
}

/* ================================================================
   VIDEO SECTION
   ================================================================ */
.video-section { background: var(--white); }

.video-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
  align-items: center;
}
.video-text h2  { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 16px; }
.video-text p   { color: var(--muted); margin-bottom: 14px; font-size: .97rem; }

/* Local MP4 video player */
.video-embed-wrap { position: relative; }

.video-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--primary);
}

.site-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
}

/* Custom play button overlay — hides once video starts */
.video-custom-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(10, 10, 10, .38);
  cursor: pointer;
  transition: background .25s ease;
  border-radius: var(--radius);
}
.video-custom-play:hover { background: rgba(10, 10, 10, .52); }
.video-custom-play.hidden { display: none; }

.video-play-circle {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(0,0,0,.45);
  transition: transform .2s ease, background .2s ease;
}
.video-custom-play:hover .video-play-circle {
  transform: scale(1.1);
  background: var(--accent2);
}
.video-play-circle svg { margin-left: 4px; } /* optical center for play triangle */

.video-play-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
}

@media (max-width: 900px) {
  .video-layout { grid-template-columns: 1fr; }
}

/* ================================================================
   GALLERY — OVERLAY + 3x3 GRID
   ================================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
  background: var(--mid);
}
.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s ease;
}
.gallery-item:hover .gallery-overlay { background: rgba(26,26,26,.45); }

.gallery-zoom-icon {
  color: var(--white);
  font-size: 2.2rem;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .3s ease, transform .3s ease;
  line-height: 1;
  user-select: none;
}
.gallery-item:hover .gallery-zoom-icon { opacity: 1; transform: scale(1); }

.gallery-note {
  margin-top: 14px;
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item img { height: 200px; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item img { height: 160px; }
}

/* ================================================================
   LIGHTBOX
   ================================================================ */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#lightbox.open { display: flex; }

#lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, .95);
  cursor: zoom-out;
  animation: lbFadeIn .2s ease;
}
@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }

#lb-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 92vw;
  max-height: 92vh;
  animation: lbSlideIn .25s ease;
}
@keyframes lbSlideIn { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }

#lb-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 80vh;
  max-width: 90vw;
}
#lb-img {
  max-height: 80vh;
  max-width: 88vw;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
}

#lb-close {
  position: fixed;
  top: 20px; right: 24px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  z-index: 2;
}
#lb-close:hover { background: var(--accent); border-color: var(--accent); }

#lb-prev, #lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--white);
  width: 52px; height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
  z-index: 2;
}
#lb-prev { left: 20px; }
#lb-next { right: 20px; }
#lb-prev:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-50%) scale(1.08); }
#lb-next:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-50%) scale(1.08); }

#lb-caption {
  margin-top: 14px;
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  text-align: center;
  max-width: 600px;
  font-family: 'Barlow', sans-serif;
}
#lb-counter {
  margin-top: 6px;
  color: rgba(255,255,255,.4);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  #lb-prev { left: 8px; width: 40px; height: 40px; }
  #lb-next { right: 8px; width: 40px; height: 40px; }
  #lb-close { top: 12px; right: 12px; }
}
