@charset "UTF-8";

/* PBS3 Ingenieure - Stylesheet */

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

:root {
  --navy:    #1A2837;
  --navy2:   #243447;
  --navy3:   #0D1820;
  --green:   #3E8C42;
  --green2:  #4FA854;
  --white:   #FFFFFF;
  --light:   #F4F6F8;
  --light2:  #EDF0F3;
  --text:    #3A4E60;
  --muted:   #7A8FA0;
  --border:  rgba(26,40,55,0.10);
  --border-d: rgba(255,255,255,0.08);
}

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--white);
  color: var(--navy);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--green); margin-bottom: 10px;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.0; letter-spacing: 0.02em;
  color: var(--navy); margin-bottom: 18px;
}
.section-title.light { color: var(--white); }

.green-rule {
  display: block; width: 44px; height: 3px;
  background: var(--green); margin-bottom: 40px;
}


/* --- NAVBAR --- */
.main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(26,40,55,0.08);
  transition: background 0.35s ease, border-color 0.35s ease;
}

/* Scrolled state — dark */
.main-nav.scrolled {
  background: rgba(26,40,55,0.97);
  border-bottom-color: rgba(255,255,255,0.08);
}

.nav-logo img { height: 36px; width: auto; display: block; }

.nav-links { display: flex; list-style: none; }

.nav-links a {
  display: block; padding: 0 15px;
  height: 68px; line-height: 68px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(26,40,55,0.65); text-decoration: none;
  transition: color 0.2s; position: relative;
}
.main-nav.scrolled .nav-links a { color: rgba(255,255,255,0.6); }

.nav-links a::after {
  content: ''; position: absolute;
  bottom: 0; left: 15px; right: 15px;
  height: 2px; background: var(--green2);
  transform: scaleX(0); transition: transform 0.25s ease;
  transform-origin: left;
}
.nav-links a:hover { color: var(--navy); }
.main-nav.scrolled .nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.coming { color: rgba(26,40,55,0.28); pointer-events: none; }
.main-nav.scrolled .nav-links a.coming { color: rgba(255,255,255,0.28); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column;
  justify-content: center; gap: 5px;
  width: 40px; height: 40px; cursor: pointer;
  padding: 4px; background: none; border: none;
}
.hamburger span {
  display: block; height: 2px;
  background: rgba(26,40,55,0.75);
  border-radius: 2px; transition: transform 0.3s, opacity 0.3s, background 0.35s;
}
.main-nav.scrolled .hamburger span { background: rgba(255,255,255,0.85); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  position: fixed; top: 68px; left: 0; right: 0; z-index: 199;
  background: var(--navy3);
  border-bottom: 1px solid var(--border-d);
  transform: translateY(-100%); opacity: 0; pointer-events: none;
  transition: transform 0.35s ease, opacity 0.3s ease;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }

.mobile-menu a {
  display: flex; align-items: center;
  padding: 18px 28px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.75); text-decoration: none;
  border-bottom: 1px solid var(--border-d);
  transition: background 0.2s, color 0.2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { background: rgba(255,255,255,0.04); color: #fff; }
.mobile-menu a.coming { color: rgba(255,255,255,0.28); pointer-events: none; }
.mm-badge {
  margin-left: 10px; padding: 2px 8px;
  font-size: 10px; letter-spacing: 0.12em;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.3); border-radius: 2px;
}


/* --- HERO  — hell --- */
#home {
  position: relative; height: 100vh; min-height: 580px;
  display: flex; align-items: center; overflow: hidden;
  background: var(--white);
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(244,246,248,0.82) 0%,
    rgba(244,246,248,0.60) 60%,
    rgba(244,246,248,0.30) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 5vw; max-width: 860px;
  margin-left: 2vw; padding-top: 68px;
}
.hero-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--green); margin-bottom: 18px;
  opacity: 0; animation: fadeUp 0.8s 0.3s forwards;
}
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(56px, 9vw, 112px);
  line-height: 0.93; color: var(--navy);
  letter-spacing: 0.02em; margin-bottom: 28px;
  opacity: 0; animation: fadeUp 0.8s 0.55s forwards;
}
.hero-title em { font-style: normal; color: var(--green); }
.hero-sub {
  font-size: clamp(15px, 1.5vw, 17px); font-weight: 300;
  line-height: 1.7; color: var(--text);
  max-width: 520px; margin-bottom: 36px;
  opacity: 0; animation: fadeUp 0.8s 0.75s forwards;
}
.hero-pills {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 44px;
  opacity: 0; animation: fadeUp 0.8s 0.9s forwards;
}
.pill {
  padding: 7px 16px;
  border: 1px solid rgba(26,40,55,0.18);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(26,40,55,0.55);
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 32px; background: var(--green); color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  opacity: 0; animation: fadeUp 0.8s 1.05s forwards;
}
.hero-cta:hover { background: var(--green2); transform: translateY(-2px); }

.hero-scroll {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0; animation: fadeIn 1s 1.5s forwards;
}
.hero-scroll span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(26,40,55,0.3);
}
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, rgba(26,40,55,0.2), transparent);
  animation: scrollPulse 2s 1.8s infinite;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scrollPulse { 0%,100%{opacity:.25} 50%{opacity:1} }


/* --- LEISTUNGEN  — dunkel --- */
#leistungen {
  padding: 96px 5vw;
  background: var(--navy);
}
.services-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 2px;
}
.service-card {
  background: var(--navy2); padding: 44px 32px;
  position: relative; overflow: hidden;
  transition: background 0.3s, border-top-color 0.3s;
  border-top: 3px solid transparent;
}
.service-card:hover { background: #2C4158; border-top-color: var(--green2); }
.service-num {
  font-family: 'Bebas Neue', sans-serif; font-size: 80px;
  color: rgba(255,255,255,0.035); position: absolute;
  top: 16px; right: 20px; line-height: 1;
  pointer-events: none; user-select: none;
}
.service-icon { width: 44px; height: 44px; margin-bottom: 20px; }
.service-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--white);
  margin-bottom: 12px; line-height: 1.25;
}
.service-card p {
  font-size: 14px; font-weight: 300; line-height: 1.7;
  color: rgba(255,255,255,0.50); margin-bottom: 22px;
}
.service-list { list-style: none; }
.service-list li {
  font-size: 13px; font-weight: 400;
  color: rgba(255,255,255,0.45);
  padding: 8px 0 8px 16px; position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.06); line-height: 1.4;
}
.service-list li::before {
  content: ''; position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px; background: var(--green2); border-radius: 50%;
}
.service-list li:last-child { border-bottom: none; }


/* --- MEHRWERT  — hell (weiß) --- */
#mehrwert {
  padding: 96px 5vw;
  background: var(--white);
}
.benefits-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 20px;
}
.benefit-item {
  padding: 28px 24px;
  background: var(--light);
  border-left: 3px solid var(--green);
  transition: box-shadow 0.2s, transform 0.2s;
}
.benefit-item:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}
.benefit-item p { font-size: 15px; line-height: 1.65; color: var(--text); }


/* --- WARUM PBS³  — hell (light2) --- */
#warum {
  padding: 96px 5vw;
  background: var(--light2);
  position: relative; overflow: hidden;
}
.warum-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: start;
}
.warum-text p {
  font-size: 16px; font-weight: 300; line-height: 1.8;
  color: var(--text); margin-bottom: 18px;
}
.warum-points { list-style: none; display: flex; flex-direction: column; }
.warum-points li {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--border);
}
.warum-points li:first-child { border-top: 1px solid var(--border); }
.wp-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); flex-shrink: 0; margin-top: 7px;
}
.warum-points li span {
  font-size: 15px; font-weight: 400; line-height: 1.6; color: var(--text);
}


/* --- ÜBER UNS  — weiß --- */
#ueber-uns { padding: 96px 5vw; background: var(--white); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.about-text p {
  font-size: 16px; font-weight: 300; line-height: 1.8;
  color: var(--text); margin-bottom: 16px;
}
.about-text strong { font-weight: 600; color: var(--navy); }

.about-visual { position: relative; }
.about-box {
  background: var(--navy); padding: 44px 40px;
  position: relative; z-index: 1;
}
.about-box::after {
  content: ''; position: absolute;
  bottom: -12px; right: -12px;
  width: 100%; height: 100%;
  border: 2px solid var(--green); z-index: -1;
}
.stat-row { display: flex; flex-direction: column; gap: 28px; }
.stat-item {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { padding-bottom: 0; border-bottom: none; }
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px; line-height: 1;
  color: var(--green2); letter-spacing: 0.02em;
}
.stat-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.38);
  margin-top: 4px; line-height: 1.4;
}


/* --- GALERIE  — hell --- */
#galerie { padding: 96px 5vw; background: var(--light); }
.galerie-coming {
  border: 2px dashed rgba(26,40,55,0.15);
  padding: 72px 40px; text-align: center;
}
.galerie-icon { width: 52px; height: 52px; margin: 0 auto 20px; color: var(--green); }
.coming-badge {
  display: inline-block; padding: 5px 14px; margin-bottom: 18px;
  background: var(--navy); color: rgba(255,255,255,0.5);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
}
.galerie-coming h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 34px; letter-spacing: 0.04em;
  color: var(--navy); margin-bottom: 10px;
}
.galerie-coming p {
  font-size: 15px; color: var(--muted);
  font-weight: 300; line-height: 1.65;
  max-width: 460px; margin: 0 auto;
}


/* --- KONTAKT  — dunkel --- */
#kontakt { padding: 96px 5vw; background: var(--navy); }
.kontakt-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.kontakt-text p {
  font-size: 16px; font-weight: 300; line-height: 1.8;
  color: rgba(26,40,55,0.55);
}
.kontakt-tagline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px; letter-spacing: 0.06em;
  color: var(--green2); margin-top: 28px;
}
.kontakt-cards { display: flex; flex-direction: column; gap: 12px; }
.kontakt-card {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.kontakt-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}
.kontakt-card-icon {
  width: 42px; height: 42px;
  background: rgba(62,140,66,0.18);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--green2);
}
.kontakt-card-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.28); margin-bottom: 3px;
}
.kontakt-card-value { font-size: 15px; font-weight: 500; color: var(--white); }


/* --- FOOTER --- */
footer {
  background: var(--navy3);
  padding: 32px 5vw;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  border-top: 1px solid var(--border-d);
}
.footer-logo img { height: 26px; opacity: 0.55; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.35);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.7); }
.footer-copy {
  font-size: 12px; color: rgba(255,255,255,0.2);
  font-family: 'Barlow Condensed', sans-serif; letter-spacing: 0.05em;
}


/* --- SCROLL REVEAL --- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }


/* --- TABLET  <= 960px --- */
@media (max-width: 960px) {
  #leistungen, #mehrwert, #warum,
  #ueber-uns, #galerie, #kontakt { padding: 72px 5vw; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .services-grid { grid-template-columns: 1fr; gap: 2px; }
  .benefits-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .warum-grid    { grid-template-columns: 1fr; gap: 40px; }
  .about-grid    { grid-template-columns: 1fr; gap: 48px; }
  .about-box::after { display: none; }
  .kontakt-grid  { grid-template-columns: 1fr; gap: 48px; }
}


/* --- MOBILE  <= 600px --- */
@media (max-width: 600px) {
  #leistungen, #mehrwert, #warum,
  #ueber-uns, #galerie, #kontakt { padding: 56px 5vw; }

  /* Hero */
  #home         { align-items: flex-end; padding-bottom: 72px; }
  .hero-content { margin-left: 0; }
  .hero-title   { font-size: clamp(52px, 14vw, 72px); }
  .hero-sub     { font-size: 15px; }
  .hero-cta     { width: 100%; justify-content: center; padding: 18px 24px; }
  .hero-scroll  { display: none; }

  .service-card { padding: 32px 22px; }
  .benefits-grid{ grid-template-columns: 1fr; gap: 10px; }
  .benefit-item { padding: 20px 18px; }
  .about-box    { padding: 28px 22px; }
  .stat-num     { font-size: 42px; }
  .galerie-coming { padding: 48px 20px; }
  .kontakt-card { padding: 16px 18px; }
  .kontakt-card-value { font-size: 14px; word-break: break-all; }

  footer { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-links { gap: 16px; }

  .section-title { font-size: clamp(32px, 9vw, 46px); }
}

@media (max-width: 380px) {
  .hero-title   { font-size: 48px; }
}
