/* =========================================================
   GBS Hausmeister- & Bauservice GmbH — Stylesheet
   Design tokens (dark = default, light = [data-theme="light"])
   ========================================================= */

:root {
  --gold: #D4B87A;
  --gold-light: #E8D5B5;
  --gold-dark: #A6884E;

  /* accent used specifically for GOLD-AS-TEXT (needs contrast on light bg) */
  --accent-text: #9A7B3E;

  --bg: #FAF8F3;
  --text: #1C1A17;
  --muted: #6E6558;

  --surface: #FFFFFF;
  --surface-2: #FFFFFF;
  --border: rgba(166,136,78,0.22);
  --border-strong: rgba(166,136,78,0.45);

  --header-bg: rgba(250,248,243,0.72);
  --header-bg-scrolled: rgba(250,248,243,0.96);
  --marquee-bg: rgba(255,255,255,0.6);
  --panel: rgba(255,255,255,0.55);

  --grain-opacity: 0.02;

  --font-head: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  font-size: clamp(15px, 1.1vw, 17px);
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
}
h1, h2, h3, h4, .exp-number, .btn, .btn-email, .btn-whatsapp, .theme-toggle { font-family: var(--font-head); }

/* ---------- BACKGROUND ---------- */
.bg-container {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(212,184,122,0.16), transparent 40%),
    radial-gradient(circle at 88% 90%, rgba(166,136,78,0.10), transparent 42%),
    var(--bg);
}
.bg-container::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- REVEAL ---------- */
.fade-up { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22,0.61,0.36,1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none !important; }
}

/* ---------- HEADER ---------- */
.header-wrapper {
  position: sticky; top: 0; z-index: 100; transition: all 0.35s ease;
  background: var(--header-bg); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-wrapper.scrolled {
  background: var(--header-bg-scrolled); backdrop-filter: blur(14px);
  border-bottom-color: var(--border-strong);
}
.header-wrapper.scrolled header { padding-top: 8px; padding-bottom: 8px; }
.header-wrapper.scrolled .logo-icon { width: 58px; height: 58px; }

header { padding: 16px 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; max-width: 1200px; margin: 0 auto; transition: all 0.35s ease; }

.logo { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.logo-icon {
  width: 70px; height: 70px; flex-shrink: 0; transition: all 0.35s ease;
  border-radius: 16px; overflow: hidden; display: block;
  border: 2px solid var(--border-strong);
  box-shadow: 0 4px 22px rgba(212,184,122,0.15);
}
.logo-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-text { display: flex; flex-direction: column; }
.logo-text .firma { font-size: 21px; font-weight: 700; color: var(--text); letter-spacing: 0.2px; line-height: 1.2; }
.logo-text .firma span { color: var(--accent-text); }
.logo-text .slogan { font-size: 13px; font-weight: 300; color: var(--muted); letter-spacing: 0.4px; font-style: italic; margin-top: 2px; }

.nav-area { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
nav { display: flex; gap: 22px; flex-wrap: wrap; }
nav a {
  position: relative; color: var(--muted); text-decoration: none; padding: 6px 2px;
  transition: color 0.3s ease; font-size: 14px; font-weight: 500;
}
nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: center; transition: transform 0.3s ease;
}
nav a:hover { color: var(--text); }
nav a:hover::after { transform: scaleX(1); }

/* ---------- MARQUEE (seamless loop) ---------- */
.marquee-container {
  background: var(--marquee-bg); backdrop-filter: blur(4px);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 11px 0; overflow: hidden; position: relative; z-index: 2;
}
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee-group { display: flex; flex-shrink: 0; }
.marquee .item { display: inline-flex; align-items: center; white-space: nowrap; color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: 0.3px; }
.marquee .item i { color: var(--gold); margin-right: 8px; font-size: 12px; }
.marquee .item::after { content: "•"; color: var(--gold); opacity: 0.4; margin: 0 22px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- LAYOUT ---------- */
section { position: relative; z-index: 2; }
.wrap { max-width: 1160px; margin: 0 auto; }

.section-head { text-align: center; margin-bottom: clamp(28px, 4vw, 44px); }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; color: var(--text); letter-spacing: -0.5px; }
.section-title span { color: var(--accent-text); }
.section-desc { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.1rem); margin-top: 10px; }

/* ---------- HERO ---------- */
.hero { padding: clamp(50px, 8vw, 90px) 24px clamp(40px, 6vw, 70px); text-align: center; }
.hero .claim {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 22px; border-radius: 60px;
  font-size: clamp(12px, 1.3vw, 14px); font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--accent-text); border: 1px solid var(--border-strong); background: rgba(212,184,122,0.06); margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; color: var(--text); margin-bottom: 18px; line-height: 1.1; letter-spacing: -0.5px; }
.hero h1 .accent { color: var(--accent-text); }
.hero .sub { font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 640px; margin: 0 auto 34px; font-weight: 300; }
.hero .sub strong { color: var(--accent-text); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- BUTTONS ---------- */
.btn {
  background: var(--gold); color: #0D0D0D; padding: 15px 34px; border: none; border-radius: 60px;
  font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 9px;
  transition: transform 0.3s ease, background 0.3s ease;
}
.btn:hover { transform: translateY(-3px); background: var(--gold-light); }
.btn-outline { background: transparent; border: 1.5px solid var(--gold); color: var(--accent-text); }
.btn-outline:hover { background: rgba(212,184,122,0.12); transform: translateY(-3px); }

/* ---------- COMMITMENTS ---------- */
.commitments { padding: 10px 24px 34px; }
.commit-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 1000px; margin: 0 auto; }
.commit-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 50px;
  font-size: 14px; font-weight: 500; color: var(--text);
}
.commit-item i { color: var(--gold); font-size: 16px; }

/* ---------- EXPERIENCE ---------- */
.experience-section { padding: clamp(30px, 5vw, 50px) 24px; }
.experience-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  padding: 40px 28px; text-align: center; max-width: 540px; margin: 0 auto; position: relative; overflow: hidden;
}
.experience-box::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gold); }
.experience-box .exp-icon { font-size: 40px; color: var(--gold); margin-bottom: 12px; opacity: 0.85; }
.experience-box .exp-number { font-size: clamp(48px, 8vw, 68px); font-weight: 800; line-height: 1; color: var(--accent-text); }
.experience-box .exp-number .plus { font-size: 0.6em; }
.experience-box .exp-label { font-size: clamp(19px, 2.4vw, 24px); font-weight: 700; color: var(--text); margin-top: 8px; }
.experience-box .exp-desc { font-size: 15px; color: var(--muted); margin: 12px auto 0; max-width: 420px; line-height: 1.55; }

/* ---------- SERVICES ---------- */
.services { padding: clamp(40px, 6vw, 70px) 24px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card { background: var(--surface); border: 1px solid var(--border); padding: 30px 18px; border-radius: 18px; text-align: center; }
.service-card .ic {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--gold); background: rgba(212,184,122,0.08); border: 1px solid var(--border);
}
.service-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.service-card p { color: var(--muted); font-size: 13px; line-height: 1.4; }

/* ---------- PROCESS (no numbers) ---------- */
.process { padding: clamp(40px, 6vw, 70px) 24px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 30px 22px; text-align: center; }
.step .step-ic { font-size: 30px; color: var(--gold); margin-bottom: 14px; }
.step h3 { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ---------- CTA ---------- */
.cta { padding: clamp(40px, 6vw, 66px) 24px; text-align: center; }
.cta-box {
  max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; padding: clamp(30px, 5vw, 50px);
}
.cta-box h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 700; color: var(--text); margin-bottom: 12px; }
.cta-box h2 span { color: var(--accent-text); }
.cta-box p { color: var(--muted); margin-bottom: 26px; font-size: clamp(1rem, 1.4vw, 1.1rem); }

/* ---------- ABOUT ---------- */
.about { background: var(--panel); backdrop-filter: blur(8px); padding: clamp(44px, 6vw, 74px) 24px; text-align: center; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; margin-bottom: 18px; color: var(--text); }
.about h2 span { color: var(--accent-text); }
.about p { max-width: 720px; margin: 0 auto 14px; font-size: clamp(1rem, 1.4vw, 1.12rem); line-height: 1.7; color: var(--muted); }
.about .highlight { color: var(--accent-text); font-weight: 600; }
.about-features { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 26px; margin-top: 26px; }
.about-features span { color: var(--text); font-weight: 500; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.about-features span i { color: var(--gold); }

/* ---------- CONTACT ---------- */
.contact { padding: clamp(44px, 6vw, 74px) 24px; max-width: 720px; margin: 0 auto; }
.contact-info-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.contact-info-item { background: var(--surface); border: 1px solid var(--border); padding: 16px 20px; border-radius: 14px; display: flex; align-items: center; gap: 15px; }
.contact-info-item .icon-box { width: 42px; height: 42px; min-width: 42px; border-radius: 11px; background: rgba(212,184,122,0.1); display: flex; align-items: center; justify-content: center; font-size: 17px; color: var(--gold); }
.contact-info-item .info-text .label { font-size: 10px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.contact-info-item .info-text .value { font-size: 15px; font-weight: 600; color: var(--text); }
.contact-info-item .info-text .value a { color: var(--text); text-decoration: none; transition: color 0.3s ease; }
.contact-info-item .info-text .value a:hover { color: var(--accent-text); }

.contact-form { background: var(--surface); border: 1px solid var(--border); padding: 30px; border-radius: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: flex; align-items: center; gap: 7px; font-weight: 600; margin-bottom: 6px; color: var(--text); font-size: 13px; }
.form-group label i { color: var(--gold); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--border); border-radius: 11px;
  font-size: 15px; font-family: var(--font-body); background: var(--surface-2); color: var(--text); transition: all 0.3s ease;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted); opacity: 0.7; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(212,184,122,0.12); }
.form-group textarea { height: 110px; resize: vertical; }
.form-group select option { background: var(--bg); color: var(--text); }

.form-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.btn-email { background: var(--gold); color: #0D0D0D; width: 100%; padding: 15px; border: none; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 9px; transition: transform 0.3s ease, background 0.3s ease; }
.btn-email:hover { transform: translateY(-2px); background: var(--gold-light); }
.btn-whatsapp { background: transparent; color: #1DA851; width: 100%; padding: 14px; border: 1.5px solid #25D366; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 9px; transition: all 0.3s ease; }
.btn-whatsapp:hover { background: #25D366; color: #fff; transform: translateY(-2px); }

/* ---------- FOOTER ---------- */
footer { background: var(--panel); backdrop-filter: blur(8px); padding: 44px 24px 20px; margin-top: 30px; border-top: 1px solid var(--border); }
.footer-content { max-width: 1160px; margin: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 30px; }
.footer-col h4 { color: var(--text); margin-bottom: 14px; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.footer-col h4 i { color: var(--gold); }
.footer-col p { color: var(--muted); display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 14px; }
.footer-col a { color: var(--muted); text-decoration: none; display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 14px; transition: all 0.3s ease; }
.footer-col a:hover { color: var(--accent-text); transform: translateX(3px); }
.footer-col p i, .footer-col a i { color: var(--gold); width: 16px; }
.footer-intro { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.social-icons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); color: var(--muted); font-size: 16px; border: 1px solid var(--border); transition: all 0.3s ease; text-decoration: none; }
.social-icons a:hover { background: var(--gold); color: #0D0D0D; border-color: var(--gold); transform: translateY(-3px); }
.social-icons a.whatsapp:hover { background: #25D366; color: #fff; border-color: #25D366; }
.social-icons a.instagram:hover { background: #E4405F; color: #fff; border-color: #E4405F; }
.social-icons a.facebook:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.social-icons a.tiktok:hover { background: #000; color: #fff; border-color: #fff; }
.copyright { text-align: center; padding-top: 22px; margin-top: 30px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); line-height: 1.7; }
.copyright i { color: var(--gold); }

/* ---------- FOOTER BRAND + LINK UNDERLINE ---------- */
.footer-brand-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-logo { width: 50px; height: 50px; border-radius: 12px; object-fit: cover; border: 1px solid var(--border-strong); flex-shrink: 0; }
.footer-title { display: block; font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.3; margin: 0; }
.footer-col a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.footer-col a:hover { text-decoration-color: var(--accent-text); }
.social-icons a { text-decoration: none; }

/* ---------- MOSAIK GALLERY ---------- */
.mosaik { padding: clamp(20px, 4vw, 50px) 24px clamp(40px, 6vw, 70px); }
.mosaik-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 165px; grid-auto-flow: dense; gap: 12px; }
.mosaik-tile {
  position: relative; overflow: hidden; border-radius: 16px; cursor: pointer; padding: 0;
  border: 1px solid var(--border); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--muted); font-family: var(--font-body);
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.mosaik-tile:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.mosaik-tile.big { grid-column: span 2; grid-row: span 2; }
.mosaik-tile.wide { grid-column: span 2; }
.mosaik-tile.tall { grid-row: span 2; }
.mosaik-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mosaik-ph { width: 60px; height: 60px; border-radius: 50%; background: rgba(212,184,122,0.1); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--gold); }
.mosaik-label { font-size: 14px; font-weight: 600; color: var(--text); }
.mosaik-hint { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--accent-text); background: var(--bg); border: 1px solid var(--border); padding: 4px 12px; border-radius: 30px; opacity: 0; transition: opacity 0.3s ease; }
.mosaik-tile:hover .mosaik-hint { opacity: 1; }

/* lightbox */
.lightbox { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(20,17,12,0.9); backdrop-filter: blur(6px); justify-content: center; align-items: center; padding: 24px; }
.lightbox.active { display: flex; }
.lightbox-inner { max-width: 92%; max-height: 86vh; display: flex; align-items: center; justify-content: center; animation: lbIn 0.25s ease; }
.lightbox-inner img { max-width: 100%; max-height: 86vh; object-fit: contain; border-radius: 12px; }
.lightbox-ph { width: min(70vw, 460px); aspect-ratio: 4/3; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--muted); text-align: center; padding: 20px; }
.lightbox-ph i { font-size: 60px; color: var(--gold); }
.lightbox-ph span { font-size: 18px; font-weight: 600; color: var(--text); }
.lightbox-ph small { font-size: 12px; }
.lightbox-close { position: absolute; top: 18px; right: 26px; font-size: 34px; line-height: 1; color: #fff; background: none; border: none; cursor: pointer; transition: transform 0.3s ease; }
.lightbox-close:hover { transform: rotate(90deg); }
@keyframes lbIn { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (max-width: 900px) {
  .mosaik-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .mosaik-tile.big, .mosaik-tile.wide { grid-column: span 2; }
  .mosaik-tile.big, .mosaik-tile.tall { grid-row: span 1; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 560px) {
  header { padding: 12px 16px; }
  .logo-icon { width: 56px; height: 56px; }
  .logo-text .firma { font-size: 16px; }
  nav a { font-size: 12px; padding: 7px 11px; }
  .hero { padding: 40px 16px 34px; }
  .commitments, .services, .process, .contact, .cta { padding-left: 16px; padding-right: 16px; }
  .grid { gap: 12px; }
  .service-card { padding: 22px 12px; }
  .service-card .ic { width: 52px; height: 52px; font-size: 22px; }
  .service-card h3 { font-size: 14px; }
  .service-card p { font-size: 12px; }
  .contact-form { padding: 20px; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 22px; }
}
@media (max-width: 380px) {
  .grid { gap: 10px; }
  .footer-content { grid-template-columns: 1fr; }
}
