/* ================================================================
   Erdbau Freh – style.css
   Farben: Orange #E8620A | Schwarz #1A1A1A | Weiß #FFFFFF
           Hellgrau #F5F4F2 | Dunkelgrau #2C2C2C
================================================================ */

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:      #E8620A;
  --orange-dark: #C4520A;
  --black:       #1A1A1A;
  --dark:        #2C2C2C;
  --mid:         #4A4A4A;
  --light-bg:    #F5F4F2;
  --white:       #FFFFFF;
  --nav-height:  76px;
  --radius:      6px;
  --shadow:      0 4px 20px rgba(0,0,0,0.12);
  --transition:  0.25s ease;
  --font:        'Roboto', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
address { font-style: normal; }
ul { list-style: none; }

/* ── Tabler Icons ─────────────────────────────────────────────── */
.fact-icon {
  flex-shrink: 0;
  color: var(--orange);
  margin-top: 2px;
  line-height: 1;
}
.fact-icon i { font-size: 2rem; }

.geraet-icon {
  flex-shrink: 0;
  color: var(--orange);
  line-height: 1;
}
.geraet-icon i { font-size: 1.4rem; }

.leistung-icon {
  color: var(--orange);
  margin-bottom: 18px;
  line-height: 1;
}
.leistung-icon i { font-size: 2.8rem; }

.kontakt-icon {
  flex-shrink: 0;
  color: var(--orange);
  margin-top: 3px;
  line-height: 1;
}
.kontakt-icon i { font-size: 1.5rem; }

.map-icon { color: var(--orange); opacity: 0.85; line-height: 1; }
.map-icon i { font-size: 3rem; }

/* ── Skip Link (Accessibility) ────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--orange);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { top: 0; outline: 3px solid var(--white); outline-offset: 2px; }

/* ── Utility ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 80px 0; }
.section-light { background: var(--light-bg); }
.section-dark  { background: var(--dark); color: var(--white); }

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 16px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 56px; height: 4px;
  background: var(--orange);
  border-radius: 2px;
}
.section-title--light { color: var(--white); }
.section-title--light::after { background: var(--orange); }

.section-sub {
  color: var(--mid);
  margin-bottom: 0;
  font-size: 1.05rem;
}

.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: 2px solid var(--orange);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ── Navigation ───────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(26,26,26,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--orange);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.35); }

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img {
  height: 56px; width: auto;
  object-fit: contain;
}
.nav-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 4px;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,0.15);
}
.nav-badges img {
  height: 42px; width: auto;
  object-fit: contain;
  opacity: 0.8;
  border-radius: 3px;
  transition: opacity var(--transition);
}
.nav-badges img:hover { opacity: 1; }
.nav-badge--baumeister {
  background: var(--white);
  padding: 3px 5px;
  border-radius: 3px;
}

/* Desktop-Links (im Header) */
.nav-links--desktop { display: flex; gap: 6px; align-items: center; }
/* Mobile-Dropdown (außerhalb Header, position:fixed ohne backdrop-filter-Konflikt) */
.nav-links--mobile { display: none; }

.nav-links a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a:focus {
  background: var(--orange);
  color: var(--white);
  text-decoration: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 100%; height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  background: url('bilder/hero.jpg') center center / cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(26,26,26,0.72) 0%, rgba(232,98,10,0.35) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-top: var(--nav-height);
}
.hero-content {
  text-align: center;
  color: var(--white);
  max-width: 700px;
}
.hero-logo {
  display: block;
  width: 150px; height: auto;
  margin: 0 auto 24px;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.6));
}
.hero-content h1 {
  font-size: clamp(2.2rem, 7vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  margin-bottom: 16px;
}
.hero-slogan {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-bottom: 32px;
  opacity: 0.92;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* ── Über uns ─────────────────────────────────────────────────── */
.ueber-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 40px;
}

.ueber-intro {
  font-size: 1.05rem;
  color: var(--mid);
  margin-bottom: 28px;
  line-height: 1.8;
}

.ueber-facts { display: flex; flex-direction: column; gap: 20px; }
.ueber-facts li { display: flex; gap: 14px; align-items: flex-start; }
.ueber-facts li div { display: flex; flex-direction: column; }
.ueber-facts strong {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 2px;
}
.ueber-facts span { color: var(--mid); }

.ueber-geraete {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--orange);
}
.ueber-geraete h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--black);
}
.geraete-liste { display: flex; flex-direction: column; gap: 4px; }
.geraete-liste li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--dark);
  padding: 9px 0;
  border-bottom: 1px solid var(--light-bg);
}
.geraete-liste li:last-child { border-bottom: none; }

/* ── Parallax Divider ─────────────────────────────────────────── */
.parallax-divider {
  height: 440px;
  background: url('bilder/parallax.jpg') center 40% / cover no-repeat;
  background-attachment: fixed;
  position: relative;
}
.parallax-divider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0.3);
}

@media (max-width: 768px) {
  .parallax-divider {
    background-attachment: scroll;
    height: 260px;
  }
}

/* ── Kennzahlen ───────────────────────────────────────────────── */
.stats-strip {
  background: var(--orange);
  padding: 52px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.stat-value {
  line-height: 1;
  color: var(--white);
}
.stat-number {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
}
.stat-suffix {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.88);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.4;
  max-width: 140px;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
}

/* ── Leistungen ───────────────────────────────────────────────── */
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.leistung-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: background var(--transition), transform var(--transition);
}
.leistung-card:hover {
  background: rgba(255,255,255,0.11);
  transform: translateY(-4px);
}
.leistung-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--orange);
}
.leistung-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
}

/* ── Slider / Galerie ─────────────────────────────────────────── */
#referenzen .container { padding-bottom: 32px; }

.slider-wrap {
  position: relative;
  margin-top: 40px;
}

.slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 12px;
  padding: 0 calc((100vw - 1140px) / 2);
  padding-left:  max(20px, calc((100vw - 1140px) / 2));
  padding-right: max(20px, calc((100vw - 1140px) / 2));
  scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }

.slider-slide {
  flex: 0 0 calc(33.333% - 8px);
  scroll-snap-align: start;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ccc;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.slider-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
  pointer-events: none;
}
.slider-slide:hover img {
  transform: scale(1.04);
  filter: brightness(0.82);
}

/* expand button overlay */
.slide-expand {
  position: absolute;
  bottom: 10px; right: 10px;
  width: 38px; height: 38px;
  background: rgba(26,26,26,0.7);
  border: none;
  border-radius: var(--radius);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition), background var(--transition);
}
.slider-slide:hover .slide-expand { opacity: 1; }
.slide-expand:hover { background: var(--orange); }
.slide-expand i { font-size: 1.1rem; pointer-events: none; }

/* Slider nav buttons */
.slider-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.slider-btn:hover { background: var(--orange); color: var(--white); transform: translateY(-50%) scale(1.08); }
.slider-btn i { font-size: 1.4rem; pointer-events: none; }
.slider-btn--prev { left: 8px; }
.slider-btn--next { right: 8px; }

.slider-counter {
  text-align: center;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--mid);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ── Lightbox ─────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.93);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.is-active { display: flex; }

.lightbox-inner {
  max-width: 960px;
  width: 100%;
  text-align: center;
}
.lightbox-inner img {
  max-height: 80vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  display: block;
}
.lightbox-caption {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  margin-top: 12px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: none;
  cursor: pointer;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: var(--orange); }
.lightbox-close { top: 20px; right: 20px; font-size: 1.5rem; font-weight: 700; line-height: 1; }
.lightbox-prev  { left: 16px;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-prev i,
.lightbox-next i { font-size: 1.6rem; pointer-events: none; }

/* ── Kontakt ──────────────────────────────────────────────────── */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
  margin-top: 40px;
}

.kontakt-info { display: flex; flex-direction: column; gap: 28px; }

.kontakt-block { display: flex; gap: 14px; align-items: flex-start; }
.kontakt-block div { display: flex; flex-direction: column; gap: 4px; }
.kontakt-block strong {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
}
.kontakt-block a,
.kontakt-block address { color: rgba(255,255,255,0.85); font-size: 0.98rem; }
.kontakt-block a:hover { color: var(--orange); text-decoration: none; }

.kontakt-map { height: 360px; border-radius: var(--radius); overflow: hidden; }
.map-placeholder {
  height: 100%;
  background: rgba(255,255,255,0.05);
  border: 2px dashed rgba(255,255,255,0.2);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
}
.map-hint {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}
.btn-map { margin-top: 4px; }

.map-frame-wrapper { height: 100%; border-radius: var(--radius); overflow: hidden; }
.map-frame-wrapper iframe { width: 100%; height: 100%; border: 0; }

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer {
  background: var(--black);
  border-top: 3px solid var(--orange);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-logo img {
  height: 48px; width: auto;
  border-radius: 4px;
  opacity: 0.85;
  transition: opacity var(--transition);
  object-fit: contain;
}
.footer-logo--baumeister img {
  height: 52px;
  background: var(--white);
  padding: 4px 8px;
  border-radius: 4px;
}
.footer-logo:hover img { opacity: 1; }

.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--orange); text-decoration: none; }

.footer-copy {
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
  width: 100%;
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 4px;
}

/* ================================================================
   RESPONSIVE
================================================================ */

/* ── 1024px ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .leistungen-grid { grid-template-columns: repeat(2, 1fr); }
  .ueber-grid      { gap: 32px; }
  .kontakt-grid    { grid-template-columns: 1fr 1.2fr; gap: 32px; }
  .slider-slide    { flex: 0 0 calc(50% - 6px); }
}

/* ── 768px ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  .section { padding: 60px 0; }

  .hamburger { display: flex; }

  .nav-badges { display: none; }
  .nav-links--desktop { display: none; }

  .nav-links--mobile {
    display: flex;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    z-index: 999;
    background: rgba(26,26,26,0.98);
    flex-direction: column;
    gap: 0;
    padding: 12px 0 20px;
    transform: translateY(-110%);
    transition: transform var(--transition);
    border-bottom: 2px solid var(--orange);
  }
  .nav-links--mobile.is-open { transform: translateY(0); }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    border-radius: 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .hero { min-height: 480px; }
  .hero-logo { width: 110px; }

  .ueber-grid      { grid-template-columns: 1fr; gap: 32px; }
  .leistungen-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .slider-slide { flex: 0 0 calc(80% - 6px); }
  .slider-btn   { display: none; }

  .kontakt-grid { grid-template-columns: 1fr; gap: 32px; }
  .kontakt-map  { height: 300px; }

  .footer-inner  { flex-direction: column; align-items: center; text-align: center; }
  .footer-nav    { justify-content: center; }
  .footer-logos  { justify-content: center; }
}

/* ── 480px ─────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .nav-logo-text { display: none; }

  .hero-content h1 { font-size: 2rem; }
  .hero-logo { width: 90px; }

  .leistungen-grid { grid-template-columns: 1fr; }

  .slider-slide { flex: 0 0 calc(90% - 6px); }

  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }

  .ueber-geraete { padding: 20px; }
  .section-title { font-size: 1.5rem; }
}

/* ── 360px ─────────────────────────────────────────────────────── */
@media (max-width: 360px) {
  .container  { padding: 0 14px; }
  .slider-slide { flex: 0 0 calc(95% - 6px); }
}
