/* =============================================
   PÜGNER GmbH – Glas & Gebäudereinigung
   Stylesheet v2
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Source+Sans+3:wght@300;400;600&display=swap');

:root {
  --blue-dark:   #0d2d5e;
  --blue-main:   #1a4fa0;
  --blue-light:  #2e76d4;
  --blue-accent: #3b8fd6;
  --red-logo:    #cc1417;
  --red-light:   #e8484a;
  --white:       #ffffff;
  --off-white:   #f4f7fb;
  --gray-light:  #e8edf5;
  --gray-mid:    #9aa8bb;
  --gray-dark:   #3a4458;
  --text:        #1e2535;
  --font-head:   'Oswald', sans-serif;
  --font-body:   'Source Sans 3', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

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

.section-title {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 600;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 0.4em;
}
.section-title span { color: var(--red-logo); }
.section-lead { color: var(--gray-dark); max-width: 680px; margin-bottom: 2rem; }

.btn {
  display: inline-block;
  background: var(--blue-main);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 10px 26px;
  border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
}
.btn:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--blue-dark); transform: translateY(-2px); }

/* TOP BAR */
.topbar {
  background: var(--blue-dark);
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: .03em;
  padding: 6px 0;
}
.topbar .container { display: flex; justify-content: flex-end; align-items: center; gap: 28px; }
.topbar-item { display: flex; align-items: center; gap: 7px; }
.topbar a { color: var(--blue-accent); }
.topbar a:hover { color: var(--white); }

/* HEADER */
header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(13,45,94,.12);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: 1160px;
  margin: 0 auto;
}
.logo-wrap { display: flex; align-items: center; gap: 14px; }
.logo-wrap img.logo-main { height: 68px; width: auto; }
.logo-banner-wrap { border-left: 2px solid var(--gray-light); padding-left: 14px; }
.logo-wrap img.logo-banner { height: 36px; width: auto; }

/* NAV */
nav ul { list-style: none; display: flex; gap: 4px; }
nav > ul > li { position: relative; }
nav > ul > li > a {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-dark);
  padding: 10px 14px;
  border-radius: 2px;
  transition: background 0.18s, color 0.18s;
}
nav > ul > li > a:hover,
nav > ul > li.active > a { background: var(--blue-main); color: var(--white); }

.dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 240px;
  background: var(--white);
  border-top: 3px solid var(--red-logo);
  box-shadow: 0 8px 24px rgba(13,45,94,.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 200;
}
nav > ul > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li { display: block; }
.dropdown li a {
  display: block;
  padding: 10px 18px;
  font-size: 0.88rem;
  color: var(--gray-dark);
  border-bottom: 1px solid var(--gray-light);
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: var(--off-white); color: var(--blue-main); padding-left: 24px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--blue-dark); transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* SLIDESHOW */
.slideshow { position: relative; height: 460px; overflow: hidden; background: var(--blue-dark); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: brightness(0.62); }
.slide-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 60px 48px 44px;
  background: linear-gradient(to top, rgba(13,45,94,.82) 0%, transparent 100%);
  color: var(--white);
}
.slide-caption h2 {
  font-family: var(--font-head);
  font-size: 2.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; line-height: 1.1;
  margin-bottom: 8px; text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.slide-caption h2 span { color: #e8484a; }
.slide-caption p { font-size: 1.05rem; opacity: .9; max-width: 560px; }
.slide-dots { position: absolute; bottom: 14px; right: 24px; display: flex; gap: 8px; }
.slide-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: background 0.2s; }
.slide-dot.active { background: var(--red-logo); }

/* PAGE HEADER */
.page-header {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-main) 100%);
  color: var(--white);
  padding: 52px 0 42px;
  position: relative; overflow: hidden;
  border-bottom: 4px solid var(--red-logo);
}
.page-header::before {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 340px; height: 340px; border-radius: 50%; background: rgba(255,255,255,.04);
}
.page-header h1 { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.page-header .breadcrumb { margin-top: 8px; font-size: 0.84rem; opacity: .7; }
.page-header .breadcrumb a { color: var(--white); }
.page-header .breadcrumb span { margin: 0 6px; }

/* USP STRIP */
.usp-strip { background: var(--blue-dark); color: var(--white); padding: 40px 0; border-top: 3px solid var(--red-logo); }
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.usp-item { text-align: center; }
.usp-icon {
  width: 48px; height: 48px; margin: 0 auto 10px;
  border-radius: 50%;
  background: rgba(204,20,23,.15);
  border: 2px solid rgba(204,20,23,.35);
  display: flex; align-items: center; justify-content: center;
}
.usp-item h4 { font-family: var(--font-head); font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.usp-item p { font-size: 0.84rem; opacity: .75; }

/* SERVICE CARDS */
.services-section { padding: 56px 0 72px; background: var(--off-white); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 2rem; }
.service-card {
  background: var(--white); border-radius: 3px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(13,45,94,.08);
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 3px solid transparent;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 28px rgba(13,45,94,.14); border-top-color: var(--red-logo); }
.service-card-img { height: 220px; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-body { padding: 22px 24px 26px; }
.service-card-body h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--blue-dark); margin-bottom: 10px; }
.service-card-body p { font-size: 0.9rem; color: var(--gray-dark); line-height: 1.55; margin-bottom: 16px; }
.service-card-body .card-link { font-family: var(--font-head); font-size: 0.82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--red-logo); display: inline-flex; align-items: center; gap: 5px; transition: gap 0.15s, color 0.15s; }
.service-card-body .card-link:hover { gap: 9px; color: var(--blue-dark); }

/* ABOUT STRIP */
.about-strip { background: var(--blue-main); color: var(--white); padding: 64px 0; }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-text h2 { font-family: var(--font-head); font-size: 2rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.about-text .about-sub { font-family: var(--font-head); font-size: 1rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 18px; }
.about-text p { margin-bottom: 1rem; opacity: .9; }

/* FRAMED IMAGE */
.framed-img { position: relative; display: block; }
.framed-img::before {
  content: ''; position: absolute;
  top: -10px; left: -10px; right: 10px; bottom: 10px;
  border: 3px solid rgba(204,20,23,.4);
  border-radius: 3px; pointer-events: none; z-index: 0;
}
.framed-img img {
  position: relative; z-index: 1;
  width: 100%; height: 320px; object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}

/* SUBPAGE */
.content-section { padding: 64px 0 72px; }
.content-with-sidebar { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }

/* SIDEBAR */
.sidebar-nav { background: var(--off-white); border-radius: 3px; overflow: hidden; position: sticky; top: 90px; box-shadow: 0 2px 10px rgba(13,45,94,.08); }
.sidebar-nav-title { font-family: var(--font-head); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--white); background: var(--blue-dark); padding: 13px 18px; border-left: 4px solid var(--red-logo); }
.sidebar-nav ul { list-style: none; }
.sidebar-nav ul li a {
  display: block; padding: 10px 18px; font-size: 0.88rem; color: var(--gray-dark);
  border-bottom: 1px solid var(--gray-light);
  transition: background 0.15s, color 0.15s, border-left-color 0.15s;
  border-left: 3px solid transparent;
}
.sidebar-nav ul li:last-child a { border-bottom: none; }
.sidebar-nav ul li a:hover, .sidebar-nav ul li.active a { background: var(--white); color: var(--blue-main); border-left-color: var(--red-logo); }

/* CONTENT ARTICLE */
.content-article h2 { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; text-transform: uppercase; color: var(--blue-dark); letter-spacing: .04em; margin-bottom: 6px; }
.content-article .lead { font-size: 1.02rem; color: var(--gray-dark); margin-bottom: 1.5rem; padding-bottom: 1.2rem; border-bottom: 2px solid var(--gray-light); }
.content-article h3 { font-family: var(--font-head); font-size: 1.18rem; font-weight: 600; text-transform: uppercase; color: var(--blue-main); letter-spacing: .04em; margin: 2.4rem 0 0.7rem; padding-left: 12px; border-left: 3px solid var(--red-logo); }
.content-article p { margin-bottom: 1rem; }
.content-article ul { list-style: none; margin: 0.5rem 0 1rem 0; }
.content-article ul li { padding: 4px 0 4px 20px; position: relative; color: var(--gray-dark); }
.content-article ul li::before { content: '–'; position: absolute; left: 0; color: var(--red-logo); font-weight: 700; }

/* GALLERY */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 1.6rem 0 2rem; }
.gallery-item { position: relative; aspect-ratio: 4/3; cursor: pointer; }
.gallery-item::before {
  content: ''; position: absolute;
  top: -6px; left: -6px; right: 6px; bottom: 6px;
  border: 2px solid rgba(204,20,23,.28);
  border-radius: 2px; pointer-events: none; z-index: 0;
  transition: border-color 0.25s;
}
.gallery-item:hover::before { border-color: rgba(204,20,23,.6); }
.gallery-item img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; border-radius: 2px;
  display: block;
  transition: transform 0.35s, box-shadow 0.35s;
  box-shadow: 0 3px 12px rgba(13,45,94,.12);
}
.gallery-item:hover img { transform: scale(1.04); box-shadow: 0 8px 24px rgba(13,45,94,.2); }
.gallery-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: rgba(26,79,160,.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.25s; border-radius: 2px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.overlay-icon { width: 38px; height: 38px; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* LIGHTBOX */
.lightbox { position: fixed; inset: 0; background: rgba(10,20,40,.93); z-index: 9000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 88vh; }
.lightbox-inner img { max-width: 90vw; max-height: 82vh; border-radius: 2px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox-caption { text-align: center; color: rgba(255,255,255,.7); font-size: 0.88rem; margin-top: 10px; }
.lightbox-close { position: absolute; top: -44px; right: 0; background: none; border: none; color: var(--white); font-size: 1.8rem; cursor: pointer; opacity: .8; transition: opacity 0.2s; }
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: var(--white); font-size: 1.5rem; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 50%; transition: background 0.2s; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(204,20,23,.6); }

/* CONTACT */
.contact-section { padding: 64px 0 72px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info h2 { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; text-transform: uppercase; color: var(--blue-dark); letter-spacing: .04em; margin-bottom: 1.4rem; }
.contact-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.contact-detail-icon { width: 42px; height: 42px; background: var(--blue-dark); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 2px solid var(--red-logo); }
.contact-detail-text strong { display: block; font-family: var(--font-head); font-size: 0.8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--red-logo); margin-bottom: 2px; }

/* JOB */
.job-intro { background: var(--off-white); border-left: 4px solid var(--red-logo); padding: 24px 28px; margin-bottom: 2rem; border-radius: 0 3px 3px 0; }

/* FOOTER */
footer { background: var(--blue-dark); color: rgba(255,255,255,.8); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand img { height: 62px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; opacity: .75; line-height: 1.6; max-width: 280px; }
.footer-divider { width: 32px; height: 2px; background: var(--red-logo); margin: 12px 0 16px; }
.footer-col h4 { font-family: var(--font-head); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--white); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(204,20,23,.3); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 0.88rem; opacity: .75; transition: opacity 0.15s, padding-left 0.15s, color 0.15s; display: inline-block; }
.footer-col ul li a:hover { opacity: 1; padding-left: 5px; color: var(--blue-accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-size: 0.79rem; opacity: .5; }
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { opacity: 1; }

/* LEGAL */
.legal-content { padding: 64px 0 80px; }
.legal-content h2 { font-family: var(--font-head); font-size: 1.4rem; text-transform: uppercase; color: var(--blue-dark); margin: 2rem 0 0.6rem; padding-left: 10px; border-left: 3px solid var(--red-logo); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 0.9rem; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: 1fr; }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar-nav { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 17px; }
  .slideshow { height: 300px; }
  .slide-caption h2 { font-size: 1.8rem; }
  .slide-caption { padding: 40px 20px 40px; }
  nav { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--blue-dark); z-index: 999; overflow-y: auto; padding: 80px 24px 40px; }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 0; }
  nav > ul > li > a { color: var(--white); font-size: 1.1rem; padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.1); border-radius: 0; }
  .dropdown { position: static; box-shadow: none; border-top: none; opacity: 1; visibility: visible; transform: none; background: rgba(255,255,255,.06); display: none; }
  nav > ul > li.dd-open .dropdown { display: block; }
  .dropdown li a { color: rgba(255,255,255,.75); padding: 10px 16px; }
  .nav-toggle { display: flex; z-index: 1000; }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .header-inner { padding: 10px 16px; }
  .logo-banner-wrap { display: none; }
  .gallery-item::before { display: none; }
  .framed-img::before { display: none; }
}
