:root {
  --dark: #131418;
  --dark-2: #1c1e24;
  --orange: #f0591e;
  --orange-dark: #d14a13;
  --paper: #f4f2ee;
  --white: #ffffff;
  --muted: #6b6e76;
  --line: #e4e2dd;
  --shadow: 0 18px 40px rgba(19, 20, 24, 0.12);
  --font-head: 'Archivo', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--paper);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a { text-decoration: none; color: inherit; }

.container { width: min(1140px, 92%); margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.95rem 1.8rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-ghost:hover { background: #fff; color: var(--dark); }
.btn-outline { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn-outline:hover { background: var(--dark); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.topbar { background: var(--dark); color: #cfd0d4; font-size: 0.82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 0.55rem 0; }
.topbar-contacts { display: flex; gap: 1.4rem; }
.topbar-contacts a:hover { color: var(--orange); }

.nav { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 14px rgba(0,0,0,0.08); }
.nav-inner { display: flex; align-items: center; gap: 2rem; padding: 0.8rem 0; }
.brand-img { height: 46px; width: auto; }
.nav-links { display: flex; list-style: none; gap: 1.6rem; margin-left: auto; }
.nav-links a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--dark);
  position: relative;
  padding: 0.3rem 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width 0.25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--orange); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; margin-left: auto; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--dark); margin: 5px 0; transition: all 0.3s ease; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; color: #fff; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(13,14,18,0.92) 0%, rgba(13,14,18,0.72) 45%, rgba(13,14,18,0.35) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 5rem 0; max-width: 640px; }
.hero-kicker {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--orange);
  font-size: 0.82rem;
  margin-bottom: 1.2rem;
}
.hero-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.hero-title span { color: var(--orange); }
.hero-text { margin: 1.6rem 0 2.2rem; font-size: 1.05rem; color: #e2e3e6; max-width: 520px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--orange);
  color: #fff;
}
.stat { padding: 1.6rem 2rem; border-left: 1px solid rgba(255,255,255,0.35); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.2rem; font-weight: 900; line-height: 1.1; }
.stat span { font-size: 0.88rem; opacity: 0.95; }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-kicker {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  font-size: 0.8rem;
  margin-bottom: 0.9rem;
}
.section-kicker.light { color: var(--orange); }
.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 1.1rem;
}
.section-title span { color: var(--orange); }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-sub { color: var(--muted); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-media { position: relative; }
.about-media::before {
  content: '';
  position: absolute;
  inset: -18px auto auto -18px;
  width: 55%;
  height: 55%;
  border: 3px solid var(--orange);
  z-index: -1;
}
.about-media img { border-radius: 4px; box-shadow: var(--shadow); }
.about-copy p { color: var(--muted); margin-bottom: 1rem; }
.about-points { list-style: none; margin: 1.4rem 0 2rem; display: grid; gap: 0.6rem; }
.about-points li {
  position: relative;
  padding-left: 1.7rem;
  font-weight: 600;
  color: var(--dark);
}
.about-points li::before {
  content: '\2713';
  position: absolute; left: 0;
  color: var(--orange);
  font-weight: 900;
}

/* ---------- Services ---------- */
.services { background: var(--dark); color: #fff; }
.services .section-title.light span { color: var(--orange); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.service-card {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 3px solid var(--orange);
  padding: 2.2rem 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px rgba(0,0,0,0.35); }
.service-num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--orange);
  letter-spacing: 0.2em;
}
.service-card h3 { font-family: var(--font-head); font-size: 1.35rem; margin: 0.9rem 0 0.6rem; }
.service-card p { color: #b8bac2; font-size: 0.95rem; margin-bottom: 1rem; }
.service-card ul { list-style: none; display: grid; gap: 0.45rem; }
.service-card ul li { position: relative; padding-left: 1.3rem; color: #e4e5e9; font-size: 0.92rem; }
.service-card ul li::before {
  content: '';
  position: absolute; left: 0; top: 0.5em;
  width: 7px; height: 7px;
  background: var(--orange);
}

/* ---------- Values ---------- */
.values { background: #fff; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.value { padding: 1.4rem; }
.value-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 60px; height: 60px;
  font-size: 1.6rem;
  background: var(--paper);
  border-radius: 50%;
  margin-bottom: 1rem;
}
.value h3 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 0.5rem; }
.value p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Projects ---------- */
.projects { background: var(--paper); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 6px;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover img { transform: scale(1.08); }
.project-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.2rem 1.4rem;
  background: linear-gradient(transparent, rgba(13,14,18,0.9));
  color: #fff;
}
.project-card figcaption h3 { font-family: var(--font-head); font-size: 1.05rem; }
.project-card figcaption p { font-size: 0.85rem; opacity: 0.85; }
.project-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 2;
  background: var(--orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 3px;
}
.project-note { font-size: 0.75rem !important; opacity: 0.9 !important; margin-top: 0.3rem; font-style: italic; }

/* ---------- Baufortschritt ---------- */
.baufortschritt { background: var(--dark); }
.baufortschritt .section-kicker { color: var(--orange); }
.baufortschritt .section-title { color: #fff; }
.baufortschritt .section-title span { color: var(--orange); }
.baufortschritt .section-sub { color: rgba(255,255,255,0.7); }

/* ---------- Album Lightbox ---------- */
.album {
  position: fixed; inset: 0;
  background: rgba(13,14,18,0.97);
  display: none;
  align-items: center; justify-content: center;
  z-index: 100;
  padding: 2rem;
}
.album.open { display: flex; }
.album-stage { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.album-stage img { max-width: 86vw; max-height: 68vh; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.album-cap { color: rgba(255,255,255,0.8); font-size: 0.92rem; font-weight: 500; }
.album-close {
  position: absolute; top: 1.4rem; right: 1.8rem;
  background: none; border: 0; color: #fff;
  font-size: 2.8rem; cursor: pointer; line-height: 1;
  z-index: 2;
}
.album-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; width: 54px; height: 54px; border-radius: 50%;
  font-size: 2rem; line-height: 1; cursor: pointer; z-index: 2;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.album-nav:hover { background: var(--orange); border-color: var(--orange); }
.album-prev { left: 1.4rem; }
.album-next { right: 1.4rem; }
.album-thumbs {
  position: absolute; bottom: 1.6rem; left: 0; right: 0;
  display: flex; gap: 0.55rem; justify-content: center;
  overflow-x: auto; padding: 0.5rem 1rem;
}
.album-thumbs img {
  width: 64px; height: 48px; object-fit: cover; border-radius: 4px;
  opacity: 0.55; cursor: pointer; border: 2px solid transparent;
  transition: opacity 0.3s ease, border-color 0.3s ease;
  flex-shrink: 0;
}
.album-thumbs img.active { opacity: 1; border-color: var(--orange); }
@media (max-width: 760px) {
  .album-prev { left: 0.6rem; }
  .album-next { right: 0.6rem; }
  .album-stage img { max-width: 94vw; }
  .album-thumbs { justify-content: flex-start; }
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--orange); color: #fff; padding: 4.5rem 0; }
.cta-inner { text-align: center; max-width: 620px; }
.cta-inner h2 { font-family: var(--font-head); font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 0.8rem; }
.cta-inner p { margin-bottom: 1.8rem; opacity: 0.95; }
.cta-band .btn-primary { background: var(--dark); border-color: var(--dark); }
.cta-band .btn-primary:hover { background: #000; }

/* ---------- Contact ---------- */
.contact { background: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info p { color: var(--muted); }
.contact-item { margin-top: 1.6rem; }
.contact-item span { font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); }
.contact-item p { margin-top: 0.3rem; color: var(--dark); font-weight: 500; }
.contact-item a:hover { color: var(--orange); }

.contact-form {
  background: var(--paper);
  padding: 2.4rem;
  border-radius: 6px;
  border-top: 4px solid var(--orange);
}
.contact-form h3 { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 1.4rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; }
.field input, .field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); }
.form-status { margin-top: 0.9rem; font-size: 0.9rem; font-weight: 600; }
.form-status.ok { color: #1d7a3f; }
.form-status.err { color: #c0301f; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #b8bac2; padding: 2.4rem 0; }
.footer-inner { display: flex; flex-direction: column; gap: 0.9rem; align-items: center; text-align: center; }
.footer-logo { height: 40px; width: auto; background: #fff; padding: 0.3rem 0.5rem; border-radius: 4px; }
.footer p { font-size: 0.88rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-grid, .projects-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; gap: 1rem; }
  .hero-stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid rgba(255,255,255,0.35); }
  .stat:first-child { border-top: 0; }
  .topbar-contacts span:first-child { display: none; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    transition: max-height 0.35s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.9rem 1.2rem; border-top: 1px solid var(--line); }
  .nav-cta { display: none; }
  .services-grid, .projects-grid { grid-template-columns: 1fr; }
  .topbar-contacts { gap: 0.7rem; flex-wrap: wrap; }
}
