/* ==============================================
   WILICOLOR GmbH — Stylesheet
   Markenfarben: Grün #2E8B2E | Rot #C41A1A
   Gegründet 2006 · Ostschweiz
============================================== */

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }

/* ——— Tokens ——— */
:root {
  --gruen:        #2E8B2E;
  --gruen-dk:     #1E6B1E;
  --gruen-lt:     #EAF5EA;
  --rot:          #C41A1A;
  --rot-dk:       #A01010;
  --rot-lt:       #FFF0F0;
  --dark:         #1A1A1A;
  --mid:          #3D3D3D;
  --grey:         #6B7280;
  --grey-lt:      #F4F4F4;
  --border:       #E4E6E9;
  --white:        #FFFFFF;

  --ff-head:      'Montserrat', sans-serif;
  --ff-body:      'Open Sans', sans-serif;

  --nav-h:        80px;
  --pad-x:        clamp(1.25rem, 5vw, 4rem);
  --max-w:        1180px;
  --sec-pad:      clamp(4.5rem, 9vw, 7rem);
}

/* ——— Base ——— */
body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

/* ——— Utility ——— */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ——— Typography ——— */
h1, h2, h3, h4 {
  font-family: var(--ff-head);
  font-weight: 800;
  line-height: 1.1;
  color: var(--dark);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

.eyebrow {
  display: block;
  font-family: var(--ff-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gruen);
  margin-bottom: 0.65rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--grey);
  line-height: 1.75;
  max-width: 540px;
  margin-top: 0.85rem;
}

/* ——— Accent stripe ——— */
.stripe {
  display: block;
  width: 44px;
  height: 4px;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}
.stripe-gruen { background: var(--gruen); }
.stripe-rot   { background: var(--rot); }

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.82rem 1.9rem;
  font-family: var(--ff-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-rot {
  background: var(--rot);
  color: var(--white);
  border-color: var(--rot);
}
.btn-rot:hover {
  background: var(--rot-dk);
  border-color: var(--rot-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196,26,26,0.35);
}
.btn-gruen {
  background: var(--gruen);
  color: var(--white);
  border-color: var(--gruen);
}
.btn-gruen:hover {
  background: var(--gruen-dk);
  border-color: var(--gruen-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46,139,46,0.35);
}
.btn-outline-rot {
  background: transparent;
  color: var(--rot);
  border-color: var(--rot);
}
.btn-outline-rot:hover {
  background: var(--rot);
  color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--rot);
  border-color: var(--white);
}
.btn-white:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}
.btn-ghost-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

/* ——— Navigation ——— */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--white);
  z-index: 300;
  border-bottom: 2px solid var(--border);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.nav.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  border-bottom-color: var(--gruen);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-logo img {
  height: 52px;
  width: auto;
  display: block;
  /* Remove white JPG background on white nav — makes logo seamlessly integrated */
  mix-blend-mode: multiply;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
}
.nav-list a {
  font-family: var(--ff-head);
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0.85rem; right: 0.85rem;
  height: 2px;
  background: var(--gruen);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav-list a:hover { color: var(--gruen); }
.nav-list a:hover::after, .nav-list a.active::after { transform: scaleX(1); }
.nav-list a.active { color: var(--gruen); }
.nav-list .nav-kontakt {
  background: var(--rot);
  color: var(--white) !important;
  border-radius: 3px;
  margin-left: 0.5rem;
}
.nav-list .nav-kontakt::after { display: none; }
.nav-list .nav-kontakt:hover { background: var(--rot-dk) !important; }

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile drawer */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--white);
  border-bottom: 2px solid var(--gruen);
  padding: 1.25rem var(--pad-x) 1.75rem;
  flex-direction: column;
  gap: 0.1rem;
  z-index: 290;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--ff-head);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:hover, .nav-mobile a.active { color: var(--gruen); }
.nav-mobile .m-kontakt { color: var(--rot); font-weight: 700; }

/* ——— Page Hero (sub-pages) ——— */
.page-hero {
  background: var(--gruen-dk);
  padding-top: calc(var(--nav-h) + 3.5rem);
  padding-bottom: 3.5rem;
  position: relative;
  overflow: hidden;
}

/* Diagonal bottom cut */
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 50px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.page-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
}

.page-hero-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  position: relative;
  z-index: 2;
}

.breadcrumb {
  font-family: var(--ff-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,0.55); text-decoration: none; }
.breadcrumb a:hover { color: rgba(255,255,255,0.9); }
.breadcrumb span { margin: 0 0.5rem; }

.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero .lead { color: rgba(255,255,255,0.75); }

/* ——— Stats bar ——— */
.stats-bar {
  background: var(--gruen);
  padding: 2rem 0;
}
.stats-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.stat-item { text-align: center; padding: 0.5rem 1rem; }
.stat-num {
  font-family: var(--ff-head);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-lbl {
  font-family: var(--ff-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin-top: 0.3rem;
}

/* ——— Section head ——— */
.sec-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head h2 { margin-top: 0.5rem; }

/* ——— Leistungen Cards ——— */
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.leistung-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.leistung-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.10);
}
.leistung-card-img {
  height: 220px;
  overflow: hidden;
}
.leistung-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.leistung-card:hover .leistung-card-img img { transform: scale(1.06); }
.leistung-card-body { padding: 1.75rem; }
.leistung-card-tag {
  font-family: var(--ff-head);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gruen);
  margin-bottom: 0.5rem;
}
.leistung-card h3 { font-size: 1.3rem; margin-bottom: 0.7rem; }
.leistung-card p { font-size: 0.88rem; line-height: 1.7; color: var(--grey); }
.leistung-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--ff-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rot);
  margin-top: 1.25rem;
}
.leistung-card-link svg { transition: transform 0.2s; }
.leistung-card:hover .leistung-card-link svg { transform: translateX(4px); }

/* ——— Service detail (sub-pages) ——— */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.detail-img {
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}
.detail-img img { width: 100%; height: 100%; object-fit: cover; }

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 1.5rem 0 2rem;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--mid);
  line-height: 1.55;
}
.feature-list li .check {
  flex-shrink: 0;
  width: 20px; height: 20px;
  background: var(--gruen);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.feature-list li .check svg { width: 11px; height: 11px; }

/* ——— About layout (homepage) ——— */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-img-wrap {
  position: relative;
}
.about-img-wrap img {
  width: 100%;
  border-radius: 5px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.14);
}
.about-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--rot);
  color: var(--white);
  padding: 1.1rem 1.4rem;
  border-radius: 5px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(196,26,26,0.3);
}
.about-badge-num {
  font-family: var(--ff-head);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.about-badge-lbl {
  font-family: var(--ff-head);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ——— Referenzen / photo grids ——— */
.ref-grid-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.ref-left { position: relative; overflow: hidden; border-radius: 5px; }
.ref-left img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
.ref-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
}
.ref-right-item { overflow: hidden; border-radius: 5px; }
.ref-right-item img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; transition: transform 0.5s ease; }
.ref-right-item:hover img { transform: scale(1.06); }

/* Full referenzen grid */
.ref-grid-full {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.ref-full-item {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  cursor: pointer;
}
.ref-full-item img {
  width: 100%; height: 320px;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.ref-full-item:hover img { transform: scale(1.06); }
.ref-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,107,30,0.75) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}
.ref-full-item:hover .ref-overlay { opacity: 1; }
.ref-overlay span {
  font-family: var(--ff-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

/* ——— CTA strip ——— */
.cta-strip {
  background: var(--rot);
  padding: 4rem 0;
  text-align: center;
}
.cta-strip h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}
.cta-strip p {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 2.25rem;
}
.cta-strip-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ——— Contact ——— */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.cinfo-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.cinfo-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--gruen);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cinfo-icon svg { width: 18px; height: 18px; stroke: white; }
.cinfo-lbl {
  font-family: var(--ff-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 0.2rem;
}
.cinfo-val {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  display: block;
  line-height: 1.5;
}
.cinfo-val:hover { color: var(--gruen); }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-label {
  font-family: var(--ff-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--dark);
}
.form-input, .form-select, .form-textarea {
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-family: var(--ff-body);
  font-size: 0.9rem;
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gruen);
  box-shadow: 0 0 0 3px rgba(46,139,46,0.1);
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  background: var(--rot);
  color: var(--white);
  border: none;
  border-radius: 3px;
  font-family: var(--ff-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}
.form-submit:hover {
  background: var(--rot-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196,26,26,0.35);
}
.form-submit svg { width: 16px; height: 16px; }

/* ——— Footer ——— */
.footer {
  background: #111;
  padding: 4.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}
/* Footer logo mark — replaces old footer-brand/footer-name */
.footer-logomark {
  display: inline-block;
  text-decoration: none;
  line-height: 1;
  margin-bottom: 1rem;
}
.flm-wili {
  font-family: var(--ff-head);
  font-size: 2rem;
  font-weight: 900;
  color: var(--gruen);
  letter-spacing: 0.03em;
}
.flm-color {
  font-family: var(--ff-head);
  font-size: 2rem;
  font-weight: 900;
  color: var(--rot);
  letter-spacing: 0.03em;
}
.flm-swoosh {
  display: block;
  width: 72px;
  margin-top: 5px;
}
.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.38);
  line-height: 1.65;
  max-width: 230px;
}
.footer-col-h {
  font-family: var(--ff-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.1rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gruen); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.77rem;
  color: rgba(255,255,255,0.2);
}
.footer-bottom a {
  color: rgba(255,255,255,0.2);
  text-decoration: none;
}
.footer-bottom a:hover { color: rgba(255,255,255,0.5); }

/* ——— Scroll reveal ——— */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-left  { opacity: 0; transform: translateX(-22px); transition: opacity 0.6s ease, transform 0.65s cubic-bezier(0.16,1,0.3,1); }
.reveal-right { opacity: 0; transform: translateX(22px);  transition: opacity 0.6s ease, transform 0.65s cubic-bezier(0.16,1,0.3,1); }
.reveal-left.in, .reveal-right.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.10s; }
.d2 { transition-delay: 0.20s; }
.d3 { transition-delay: 0.30s; }
.d4 { transition-delay: 0.40s; }

/* ——— Responsive ——— */
@media (max-width: 1024px) {
  .leistungen-grid { grid-template-columns: 1fr; }
  .leistung-card { display: grid; grid-template-columns: 280px 1fr; }
  .leistung-card-img { height: 100%; min-height: 200px; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-img-wrap { max-width: 550px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
  .nav-list { display: none; }
  .nav-burger { display: flex; }
  .leistung-card { display: block; }
  .leistung-card-img { height: 200px; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .ref-grid-home { grid-template-columns: 1fr; }
  .ref-grid-full { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-badge { left: 0; bottom: -1rem; }
  .stats-inner { gap: 0.5rem; }
  .stat-item { padding: 0.4rem 0.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
