/* ==========================================================================
   A. Bühlmann + Partner AG — Malerarbeiten Uster
   ========================================================================== */

:root {
  --green-dark: #295e10;
  --green-mid: #3c6137;
  --green-bright: #3cb504;
  --teal: #3986a0;
  --teal-dark: #2c6a80;
  --ink: #232322;
  --body: #333332;
  --muted: #6b6b68;
  --line: #e2e2de;
  --bg: #ffffff;
  --bg-soft: #f5f6f2;
  --bg-deep: #eef1ea;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(41, 94, 16, 0.25);
  --shadow-sm: 0 4px 14px -6px rgba(35, 35, 34, 0.15);
  --maxw: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", sans-serif;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
}

p { margin: 0 0 1em; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--green-bright);
  border-radius: 2px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }

section { padding: 88px 0; }
.section-alt { background: var(--bg-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: var(--green-bright);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { transform: translateY(-2px); color: #fff; background: #2f9c03; box-shadow: 0 14px 30px -10px rgba(41,94,16,0.4); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-outline {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal);
}
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(23, 23, 23, 0.92);
  backdrop-filter: blur(6px);
  transition: background 0.3s ease;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.brand .mark {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: rgba(255,255,255,0.94);
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
  flex-shrink: 0;
}
.brand .mark img { width: 100%; height: auto; display: block; }

.footer-logo {
  display: inline-block;
  background: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.footer-logo img { display: block; width: 220px; height: auto; }
.brand small {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  color: rgba(255,255,255,0.82);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(255,255,255,0.1); }
.main-nav .btn { margin-left: 10px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 168px 0 96px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(41,94,16,0.92) 0%, rgba(60,97,55,0.90) 45%, rgba(23,23,23,0.88) 100%),
    url('images/work-05.jpg') center/cover;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(60,181,4,0.35), transparent 55%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-content .eyebrow { color: #b9f08f; }
.hero-content .eyebrow::before { background: #b9f08f; }
.hero-content h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  margin-bottom: 20px;
}
.hero-content .lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.86);
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-stats div strong {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 1.8rem;
  color: #fff;
}
.hero-stats div span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
  aspect-ratio: 4/5;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  bottom: 18px; left: 18px; right: 18px;
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-badge .dot img { width: 22px; height: auto; display: block; }
.hero-badge strong { display: block; font-size: 0.95rem; }
.hero-badge span { font-size: 0.8rem; color: var(--muted); }

/* ---------- Marquee strip ---------- */
.strip {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 14px 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}
.strip strong { color: #b9f08f; }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--green-mid);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 0.94rem; margin-bottom: 0; }

/* ---------- About / Unternehmen ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.about-media { position: relative; }
.about-media .frame-main {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3.2;
}
.about-media .frame-main img { width: 100%; height: 100%; object-fit: cover; }
.about-media .frame-accent {
  position: absolute;
  width: 46%;
  bottom: -32px; right: -28px;
  border-radius: 12px;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 1/1;
}
.about-media .frame-accent img { width: 100%; height: 100%; object-fit: cover; }

.values-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.values-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.values-list .check {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg-deep);
  color: var(--green-mid);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.values-list strong { display: block; color: var(--ink); margin-bottom: 2px; }
.values-list span { color: var(--muted); font-size: 0.94rem; }

.quote-block {
  margin-top: 32px;
  padding: 24px 26px;
  border-left: 4px solid var(--green-bright);
  background: var(--bg-soft);
  border-radius: 0 12px 12px 0;
  color: var(--ink);
}
.quote-block p {
  font-style: italic;
  margin: 0;
}
.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.quote-author .avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
}
.quote-block cite {
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.quote-block cite span {
  display: block;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 1px;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 14px;
}
.gallery-grid button {
  border: none;
  padding: 0;
  margin: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: block;
}
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-grid button:hover img { transform: scale(1.08); }
.gallery-grid button::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.35));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gallery-grid button:hover::after { opacity: 1; }
.gallery-grid .tall { grid-row: span 2; }
.gallery-grid .wide { grid-column: span 2; }

.gallery-more {
  text-align: center;
  margin-top: 34px;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(15, 18, 14, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 86vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-nav.prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: absolute;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.process-step {
  position: relative;
  padding: 28px 22px 22px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.process-step .num {
  font-family: "Poppins", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--bg-deep);
  -webkit-text-stroke: 1.5px var(--green-mid);
  color: transparent;
  margin-bottom: 10px;
  display: block;
}
.process-step h3 { font-size: 1rem; margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--green-dark), var(--green-mid) 60%, var(--teal-dark));
  color: #fff;
  border-radius: 24px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; }
.cta-band .btn-primary { background: #fff; color: var(--green-dark); box-shadow: none; }
.cta-band .btn-primary:hover { color: var(--green-dark); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.contact-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--bg-deep);
  color: var(--green-mid);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-list strong { display: block; font-size: 0.95rem; color: var(--ink); }
.contact-list a, .contact-list span { color: var(--muted); font-size: 0.92rem; }
.contact-list a:hover { color: var(--teal); }

.social-row { display: flex; gap: 10px; margin-top: 8px; }
.social-row a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-deep);
  color: var(--green-mid);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.social-row a:hover { background: var(--green-mid); color: #fff; }

.form-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 34px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  color: var(--body);
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(57,134,160,0.15);
}
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 12px; }
.form-success {
  display: none;
  background: var(--bg-deep);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 16px;
}
.form-success.show { display: block; }

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.65);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.55); max-width: 320px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-links a:hover { color: #b9f08f; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: #b9f08f; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 480px; margin: 0 auto 32px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 150px; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hero { padding-top: 140px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-stats { gap: 22px; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .gallery-grid .wide { grid-column: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .lightbox-nav { width: 40px; height: 40px; }
}

/* Mobile nav panel */
.mobile-nav {
  position: fixed;
  top: 76px; left: 0; right: 0;
  background: #171717;
  z-index: 99;
  display: none;
  flex-direction: column;
  padding: 10px 24px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,0.85);
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.mobile-nav .btn { margin-top: 16px; justify-content: center; }

/* ---------- Password gate ---------- */
.pw-gate {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background:
    linear-gradient(135deg, rgba(20,24,17,0.93), rgba(12,16,10,0.97)),
    repeating-linear-gradient(115deg, var(--green-dark) 0 90px, #1d3d0f 90px 180px, var(--green-mid) 180px 270px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.pw-gate.unlocked { display: none; }
.pw-gate-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 44px 36px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
}
.pw-gate-logo { height: 32px; width: auto; margin: 0 auto 26px; display: block; }
.pw-gate-card h1 { font-size: 1.35rem; margin-bottom: 8px; }
.pw-gate-card p { font-size: 0.92rem; color: var(--muted); margin-bottom: 22px; }
.pw-gate-card form { display: flex; flex-direction: column; gap: 14px; }
.pw-gate-card input {
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  font-size: 0.95rem;
  text-align: center;
  font-family: inherit;
  background: var(--bg-soft);
  color: var(--body);
}
.pw-gate-card input:focus { outline: none; border-color: var(--green-bright); }
.pw-gate-card p.pw-gate-error {
  color: #c0392b;
  font-size: 0.85rem;
  margin: 0;
  font-weight: 600;
}
body.gate-active { overflow: hidden; }
