/* ============================================================
   Pügner GmbH – Hauptstylesheet
   Schriftarten werden per Google Fonts geladen (index.html)
   ============================================================ */

:root {
  --blue:       #1a4a8a;
  --blue-mid:   #1e5499;
  --blue-light: #2563b0;
  --blue-pale:  #e8f0fb;
  --blue-dark:  #0d2d5a;
  --white:      #ffffff;
  --off-white:  #f8f9fc;
  --gray-light: #eef1f7;
  --gray-mid:   #d1d9e6;
  --gray-text:  #5a6478;
  --dark:       #18202e;
  --frame-gap:  14px;
  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Source Sans 3', system-ui, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  font-size: 20px;
  line-height: 1.75;
  color: var(--dark);
  background: var(--white);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

/* ════════════════════════════════════
   NAVBAR
════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(233, 233, 233, 0.97);
  border-bottom: 1px solid var(--gray-mid);
  box-shadow: 0 2px 16px rgba(26, 74, 138, 0.08);
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-menu > li { position: relative; }

.nav-menu > li > a {
  display: block;
  padding: 30px 15px;
  font-family: var(--ff-body);
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--dark);
  text-decoration: none;
  transition: color .2s;
  position: relative;
}

.nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 22px; left: 15px; right: 15px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.nav-menu > li > a:hover { color: var(--blue); }
.nav-menu > li > a:hover::after { transform: scaleX(1); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 1px);
  left: -8px;
  background: white;
  min-width: 270px;
  border-top: 3px solid var(--blue);
  box-shadow: 0 12px 40px rgba(26, 74, 138, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .22s, transform .22s;
  z-index: 200;
}

.nav-menu > li:hover .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 400;
  color: var(--dark);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-light);
  transition: background .15s, color .15s, padding-left .15s;
}

.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: var(--blue-pale); color: var(--blue); padding-left: 26px; }

.nav-cta {
  background: var(--blue) !important;
  color: white !important;
  padding: 11px 24px !important;
  border-radius: 3px;
  margin-left: 8px;
  transition: background .2s !important;
  white-space: nowrap;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--blue-light) !important; color: white !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 26px; height: 2.5px;
  background: var(--blue);
  border-radius: 2px;
  transition: all .3s;
}

/* ════════════════════════════════════
   HERO SLIDER  (~62vh)
════════════════════════════════════ */
.hero {
  position: relative;
  height: 62vh;
  min-height: 420px;
  max-height: 700px;
  overflow: hidden;
  margin-top: 84px;
}

.slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.slide.active { opacity: 1; }

.slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    rgba(13, 45, 90, .70) 0%,
    rgba(13, 45, 90, .40) 45%,
    rgba(13, 45, 90, .10) 100%
  );
}

.hero-caption {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  display: flex;
  align-items: center;
  padding: 0 0 0 8%;
}

.hero-text { color: white; max-width: 560px; }

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: rgba(255, 255, 255, .70);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px; height: 1.5px;
  background: rgba(255, 255, 255, .55);
}

.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(3rem, 3.8vw, 3.2rem);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}

.hero-sub {
  font-size: 20px;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 32px;
  font-weight: 300;
  line-height: 1.6;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-prim {
  display: inline-block;
  background: var(--blue);
  color: white;
  padding: 13px 32px;
  font-size: 13.5px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  text-decoration: none;
  border-radius: 2px;
  border: 2px solid var(--blue);
  transition: background .2s, transform .2s;
}
.btn-prim:hover { background: var(--blue-light); border-color: var(--blue-light); transform: translateY(-2px); }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: white;
  padding: 13px 32px;
  font-size: 13.5px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  text-decoration: none;
  border-radius: 2px;
  border: 2px solid rgba(255, 255, 255, .6);
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: white; background: rgba(255, 255, 255, .12); }

/* Slider Controls */
.slider-nav {
  position: absolute;
  bottom: 28px; left: 8%;
  display: flex; gap: 8px; z-index: 10;
}
.dot {
  width: 28px; height: 3px;
  background: rgba(255, 255, 255, .35);
  border: none; cursor: pointer;
  transition: background .3s, width .3s;
  border-radius: 2px;
}
.dot.active { background: white; width: 48px; }

.arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255, 255, 255, .15);
  border: 1.5px solid rgba(255, 255, 255, .45);
  color: white; font-size: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s; z-index: 10;
}
.arrow:hover { background: rgba(255, 255, 255, .30); }
#prevSlide { left: 20px; }
#nextSlide { right: 20px; }

/* ════════════════════════════════════
   USP STRIP
════════════════════════════════════ */
.usp-strip {
  background: var(--blue-dark);
  border-bottom: 4px solid var(--blue-light);
}
.usp-strip-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.usp-item {
  padding: 26px 28px;
  border-right: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-direction: column; gap: 4px;
}
.usp-item:last-child { border-right: none; }
.usp-label {
  font-size: 18px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: white;
}
.usp-sub { font-size: 18px; color: rgba(255, 255, 255, .60); font-weight: 300; }
.usp-line { width: 28px; height: 2px; background: var(--blue-light); margin-bottom: 8px; }

/* ════════════════════════════════════
   SECTION HELPERS
════════════════════════════════════ */
.section { padding: 96px 32px; }
.section-inner { max-width: 1320px; margin: 0 auto; }
.section-bg { background: var(--off-white); }

.eyebrow {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--blue-light);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--blue-light);
}

.sec-title {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 2.8vw, 2.6rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.sec-lead {
  font-size: 20px; color: var(--gray-text);
  max-width: 620px; margin-bottom: 56px;
  font-weight: 300; line-height: 1.75;
}

.rule { width: 52px; height: 3px; background: var(--blue); margin-bottom: 28px; border-radius: 1px; }

/* ════════════════════════════════════
   FRAMED IMAGE – versetzter Blau-Rahmen
════════════════════════════════════ */
.img-frame {
  position: relative;
  display: inline-block;
  width: 100%;
}
.img-frame::before {
  content: '';
  position: absolute;
  top: var(--frame-gap);
  left: calc(-1 * var(--frame-gap));
  right: var(--frame-gap);
  bottom: calc(-1 * var(--frame-gap));
  border: 3px solid var(--blue);
  z-index: 0;
  transition: transform .35s ease;
}
.img-frame:hover::before { transform: translate(-3px, 3px); }
.img-frame img {
  position: relative; z-index: 1;
  display: block; width: 100%;
  object-fit: cover;
  box-shadow: 0 12px 40px rgba(26, 74, 138, 0.18);
}

/* ════════════════════════════════════
   ÜBER UNS
════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-img-wrap { padding: var(--frame-gap) 0 var(--frame-gap) var(--frame-gap); }
.about-img-wrap .img-frame img { height: 460px; object-fit: cover; }

.about-badge {
  position: absolute;
  bottom: -24px; right: -8px;
  z-index: 2;
  background: var(--blue);
  color: white;
  width: 130px; height: 130px;
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: var(--ff-display);
  box-shadow: 0 8px 28px rgba(26, 74, 138, .35);
  text-align: center;
}
.about-badge strong { font-size: 2.4rem; line-height: 1; }
.about-badge span { font-size: 11px; font-weight: 400; opacity: .85; margin-top: 2px; }

.about-text p { color: var(--gray-text); font-weight: 300; margin-bottom: 18px; }

.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: 36px;
}
.stat-card {
  background: var(--off-white);
  border-left: 3px solid var(--blue);
  padding: 18px 20px;
  border-radius: 2px;
}
.stat-card strong {
  display: block;
  font-family: var(--ff-display);
  font-size: 2rem;
  color: var(--blue);
  line-height: 1;
}
.stat-card span { font-size: 14px; color: var(--gray-text); font-weight: 500; }

/* ════════════════════════════════════
   LEISTUNGEN
════════════════════════════════════ */
.tab-bar {
  display: flex; gap: 0;
  border-bottom: 2px solid var(--gray-mid);
  margin-bottom: 48px;
}
.tab-btn {
  padding: 14px 28px;
  font-family: var(--ff-body);
  font-size: 16px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  border: none; background: none;
  color: var(--gray-text);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
}
.tab-btn.active, .tab-btn:hover { color: var(--blue); border-color: var(--blue); }

.cards-grid {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.cards-grid.active { display: grid; }

.service-card {
  background: white;
  border: 1px solid var(--gray-mid);
  border-radius: 2px;
  overflow: hidden;
  transition: box-shadow .3s, transform .3s;
  cursor: pointer;
}
.service-card:hover {
  box-shadow: 0 16px 48px rgba(26, 74, 138, .14);
  transform: translateY(-5px);
}

.card-img-wrap { position: relative; overflow: hidden; }
.card-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.service-card:hover .card-img-wrap::after { transform: scaleX(1); }

.card-img-wrap img {
  width: 100%; height: 210px;
  object-fit: cover; display: block;
  transition: transform .5s ease;
}
.service-card:hover .card-img-wrap img { transform: scale(1.05); }

.card-body { padding: 22px 24px 26px; }
.card-body h3 {
  font-family: var(--ff-body);
  font-size: 18px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--dark);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.card-body h3::before {
  content: '';
  display: inline-block;
  width: 18px; height: 2px;
  background: var(--blue);
  flex-shrink: 0;
}
.card-body p { font-size: 18px; color: var(--gray-text); line-height: 1.65; font-weight: 300; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue-light);
  font-size: 16px; font-weight: 600;
  text-decoration: none; margin-top: 14px;
  text-transform: uppercase; letter-spacing: .06em;
  transition: gap .2s;
}
.card-link:hover { gap: 12px; }

/* ════════════════════════════════════
   GALERIE
════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 260px);
  gap: 14px;
}
.gal-item { position: relative; overflow: hidden; border-radius: 2px; cursor: pointer; }
.gal-item.tall { grid-row: span 2; }
.gal-item.wide { grid-column: span 2; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.gal-item:hover img { transform: scale(1.06); }

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

.gal-overlay-icon {
  width: 52px; height: 52px;
  background: rgba(255, 255, 255, .9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.8);
  transition: opacity .3s, transform .3s;
  font-size: 22px; color: var(--blue);
}
.gal-item:hover .gal-overlay-icon { opacity: 1; transform: scale(1); }

/* ════════════════════════════════════
   LIGHTBOX
════════════════════════════════════ */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(5, 12, 28, .93);
  z-index: 9999;
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }

.lb-img {
  max-width: 90vw; max-height: 88vh;
  object-fit: contain; border-radius: 2px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}

.lb-close {
  position: absolute; top: 22px; right: 30px;
  background: none; border: none;
  color: white; font-size: 36px;
  cursor: pointer; opacity: .75;
  transition: opacity .2s; line-height: 1;
}
.lb-close:hover { opacity: 1; }

.lb-arr {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255, 255, 255, .1);
  border: 1.5px solid rgba(255, 255, 255, .3);
  color: white; width: 52px; height: 52px;
  border-radius: 50%; font-size: 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lb-arr:hover { background: rgba(255, 255, 255, .22); }
#lbPrev { left: 18px; }
#lbNext { right: 18px; }

/* ════════════════════════════════════
   FOOTER
════════════════════════════════════ */
footer {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, .78);
  padding-top: 72px;
}

.footer-top {
  max-width: 1320px; margin: 0 auto;
  padding: 0 32px 56px;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.footer-brand img {
  height: 75px; margin-bottom: 22px;
  display: block;
}
.footer-brand p {
  font-size: 20px; line-height: 1.75;
  color: rgba(255, 255, 255, .60);
  font-weight: 300; margin-bottom: 22px;
}

.footer-contact-list { display: flex; flex-direction: column; gap: 9px; }
.footer-contact-list a {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 20px;
  color: rgba(255, 255, 255, .65);
  text-decoration: none; transition: color .2s;
}
.footer-contact-list a:hover { color: white; }
.fc-icon { flex-shrink: 0; width: 16px; margin-top: 3px; color: var(--blue-light); }

.footer-col h4 {
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  color: white; margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid rgba(255, 255, 255, .15);
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  font-size: 20px; color: rgba(255, 255, 255, .58);
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
  transition: color .2s, gap .2s;
  font-weight: 300;
}
.footer-links a::before {
  content: '';
  display: inline-block;
  width: 10px; height: 1.5px;
  background: var(--blue-light);
  flex-shrink: 0; transition: width .2s;
}
.footer-links a:hover { color: white; gap: 12px; }
.footer-links a:hover::before { width: 16px; }

.footer-bottom {
  max-width: 1320px; margin: 0 auto;
  padding: 18px 32px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 18px; color: rgba(255, 255, 255, .38);
  flex-wrap: wrap; gap: 12px;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255, 255, 255, .45); text-decoration: none; transition: color .2s; }
.footer-legal a:hover { color: rgba(255, 255, 255, .85); }

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width: 1100px) {
  .about-grid { gap: 48px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto; }
  .gal-item.wide { grid-column: span 2; }
  .gal-item.tall { grid-row: span 1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .usp-strip-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-menu {
    display: none; position: fixed;
    top: 84px; left: 0; right: 0;
    background: white; flex-direction: column;
    align-items: stretch; padding: 12px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .15);
    overflow-y: auto;
    max-height: calc(100vh - 84px);
    gap: 0;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { padding: 14px 24px; }
  .nav-menu > li > a::after { display: none; }
  .dropdown {
    position: static; opacity: 1; pointer-events: all;
    transform: none; box-shadow: none; border-top: none;
    border-left: 3px solid var(--blue-light);
    margin-left: 24px; display: none;
  }
  .nav-menu > li.open-dd .dropdown { display: block; }
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-img-wrap { padding: 0 0 16px 16px; }
  .cards-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .gal-item.wide, .gal-item.tall { grid-column: span 1; grid-row: span 1; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .hero-caption { padding: 0 6%; }
  .usp-strip-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .section { padding: 64px 20px; }
  .usp-strip-inner { grid-template-columns: 1fr; }
  .usp-item { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr; }
}
