/* ==========================================================================
   Gewerbepark Willingen – Stylesheet
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-bg-muted: #f4f5f7;
  --color-dark: #1b1f23;
  --color-dark-2: #242a30;
  --color-text: #22272c;
  --color-text-muted: #5f6a75;
  --color-line: #e2e6ea;
  --color-accent: #2f9e5a;
  --color-accent-dark: #257f48;
  --color-accent-soft: #e6f4ec;
  --color-on-dark: #f3f5f7;
  --color-on-dark-muted: #aab4bd;

  --font: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(16, 24, 32, .10);
  --shadow-lg: 0 24px 60px rgba(16, 24, 32, .18);
  --container: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--color-accent); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700;
  color: var(--color-accent); margin-bottom: .9rem;
}
.lead { font-size: 1.15rem; color: var(--color-text-muted); }
.note { color: var(--color-text-muted); font-size: .9rem; margin-top: 2rem; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 2px solid transparent; cursor: pointer; line-height: 1.2;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn-primary { background: var(--color-accent); color: #fff; box-shadow: 0 6px 18px rgba(47, 158, 90, .35); }
.btn-primary:hover { background: var(--color-accent-dark); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .5); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .22); }
.btn-outline { background: transparent; color: var(--color-dark); border-color: var(--color-dark); }
.btn-outline:hover { background: var(--color-dark); color: #fff; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background .3s, box-shadow .3s, height .3s;
  color: #fff;
}
.site-header.scrolled {
  background: rgba(27, 31, 35, .92); backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .2); height: 66px;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .65rem; color: inherit; text-decoration: none !important; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--color-accent); color: #fff; }
.brand-text { font-size: 1.15rem; letter-spacing: -.01em; font-weight: 400; }
.brand-text strong { font-weight: 800; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: inherit; font-weight: 500; opacity: .9; position: relative; padding: .3rem 0; }
.site-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--color-accent); transform: scaleX(0); transition: transform .25s var(--ease); transform-origin: left; }
.site-nav ul a:hover { text-decoration: none; opacity: 1; }
.site-nav ul a:hover::after, .site-nav ul a.active::after { transform: scaleX(1); }
.nav-cta { padding: .6rem 1.1rem; font-size: .92rem; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--color-dark);
    flex-direction: column; align-items: stretch; padding: 1rem 1.5rem 1.5rem; gap: 1rem;
    transform: translateY(calc(-100% - var(--header-h))); visibility: hidden;
    transition: transform .35s var(--ease), visibility 0s .35s; box-shadow: var(--shadow-lg);
  }
  .site-header.scrolled .site-nav { inset-block-start: 66px; }
  .site-nav.open { transform: translateY(0); visibility: visible; transition-delay: 0s; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .9rem 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 1.05rem; }
  .site-nav ul a::after { display: none; }
  .nav-cta { justify-content: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; padding-top: calc(var(--header-h) + 8vh); padding-bottom: 0;
  min-height: 92vh; display: flex; flex-direction: column; justify-content: center; gap: 4rem;
  background: var(--color-dark); isolation: isolate; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.04); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 24, 28, .55) 0%, rgba(20, 24, 28, .35) 45%, rgba(20, 24, 28, .85) 100%); }
.hero-content { max-width: 760px; }
.hero .eyebrow { color: #9fe0b7; }
.hero h1 { text-shadow: 0 2px 20px rgba(0, 0, 0, .3); }
.hero .lead { color: rgba(255, 255, 255, .88); font-size: 1.2rem; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }

.stats {
  list-style: none; margin: 0; padding: 1.6rem 2rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius) var(--radius) 0 0;
  backdrop-filter: blur(10px);
}
.stats li { display: flex; flex-direction: column; gap: .2rem; padding-left: 1rem; border-left: 2px solid var(--color-accent); }
.stat-value { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat-label { font-size: .85rem; color: rgba(255, 255, 255, .75); text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 720px) {
  .hero { min-height: auto; gap: 3rem; padding-top: calc(var(--header-h) + 4vh); }
  .stats { grid-template-columns: 1fr 1fr; padding: 1.2rem; }
  .stat-label { font-size: .7rem; letter-spacing: .04em; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-muted { background: var(--color-bg-muted); }
.section-dark { background: var(--color-dark); color: var(--color-on-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead { color: var(--color-on-dark-muted); }
.section-head { max-width: 720px; margin-bottom: 3rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.align-center { align-items: center; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .7rem; }
.checklist li { padding-left: 2rem; position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--color-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23257f48' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/60% no-repeat;
}

.media-card { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.media-card img { width: 100%; }
.media-card figcaption { padding: .9rem 1.2rem; font-size: .9rem; color: var(--color-text-muted); border-top: 1px solid var(--color-line); }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.feature {
  background: var(--color-dark-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius); padding: 2rem;
  transition: transform .3s var(--ease), border-color .3s;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(47, 158, 90, .6); }
.feature-num { display: inline-block; font-weight: 800; font-size: .95rem; color: var(--color-accent); letter-spacing: .1em; margin-bottom: 1rem; }
.feature p { color: var(--color-on-dark-muted); margin: 0; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

.badges { list-style: none; margin: 2.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.badges li {
  font-size: .88rem; padding: .45rem .9rem; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: var(--color-on-dark);
}

/* ---------- Units ---------- */
.units { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.unit {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.unit:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.unit-featured { border-color: var(--color-accent); box-shadow: 0 0 0 1px var(--color-accent), var(--shadow); }
.unit-media { position: relative; aspect-ratio: 3 / 2; background: #e9ecef; }
.unit-media img { width: 100%; height: 100%; object-fit: cover; }
.unit-flag { position: absolute; top: 1rem; left: 1rem; background: var(--color-accent); color: #fff; font-size: .75rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; letter-spacing: .08em; text-transform: uppercase; }
.unit-body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.unit-type { color: var(--color-accent); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; margin: 0 0 .3rem; }
.unit h3 { font-size: 1.45rem; margin-bottom: 1.2rem; }
.unit-specs { margin: 0 0 1.2rem; display: grid; gap: .45rem; }
.unit-specs div { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; padding-bottom: .45rem; border-bottom: 1px dashed var(--color-line); }
.unit-specs dt { color: var(--color-text-muted); }
.unit-specs dd { margin: 0; font-weight: 600; white-space: nowrap; }
.unit-specs .total { border-bottom: 0; padding-top: .3rem; }
.unit-specs .total dt { color: var(--color-text); font-weight: 600; }
.unit-specs .total dd { color: var(--color-accent-dark); font-weight: 800; }
.unit-features { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .35rem; font-size: .92rem; color: var(--color-text-muted); }
.unit-features li::before { content: "• "; color: var(--color-accent); font-weight: 800; }
.unit-price { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--color-line); margin-bottom: 1.2rem; display: flex; flex-direction: column; gap: .15rem; }
.price { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.price small { font-size: .95rem; font-weight: 500; color: var(--color-text-muted); margin-left: .15rem; }
.price-note { font-size: .82rem; color: var(--color-text-muted); }
.unit .btn { width: 100%; }
@media (max-width: 1000px) { .units { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 1rem; }
.gallery-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: #dfe3e7; display: block; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after {
  content: "+"; position: absolute; right: .8rem; bottom: .8rem; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--color-dark); font-weight: 700; font-size: 1.3rem; opacity: 0; transition: opacity .3s;
}
.gallery-item:hover::after { opacity: 1; }
.span-2 { grid-column: span 2; }
.tall { grid-row: span 2; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; } .span-2 { grid-column: auto; } .tall { grid-row: auto; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(12, 14, 16, .94); display: grid; place-items: center; padding: 3rem 1rem;
  animation: fadeIn .25s var(--ease);
}
.lightbox[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 8rem); width: auto; height: auto; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: rgba(255, 255, 255, .8); font-size: .95rem; text-align: center; }
.lightbox button {
  position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%;
  font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s;
}
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.4rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon { flex: 0 0 46px; height: 46px; border-radius: 12px; background: var(--color-accent-soft); color: var(--color-accent-dark); display: grid; place-items: center; }
.contact-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--color-text-muted); margin-bottom: .1rem; }
.contact-list a { font-weight: 600; color: var(--color-text); }

.contact-form { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--shadow); }
.form-row { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; gap: 0; } }
label { font-size: .9rem; font-weight: 600; }
input, select, textarea {
  font: inherit; width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--color-line); border-radius: var(--radius-sm); background: #fbfcfd;
  transition: border-color .2s, box-shadow .2s; color: var(--color-text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 4px rgba(47, 158, 90, .15); background: #fff; }
input.invalid, textarea.invalid { border-color: #d64545; }
textarea { resize: vertical; min-height: 130px; }
.form-check { flex-direction: row; align-items: flex-start; gap: .7rem; }
.form-check input { width: 1.15rem; height: 1.15rem; margin-top: .25rem; flex: 0 0 auto; accent-color: var(--color-accent); }
.form-check label { font-weight: 400; font-size: .88rem; color: var(--color-text-muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { width: 100%; margin-top: .4rem; }
.form-status { margin: 1rem 0 0; font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: var(--color-accent-dark); font-weight: 600; }
.form-status.err { color: #c53030; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-dark); color: var(--color-on-dark-muted); padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.brand-footer { color: #fff; margin-bottom: .6rem; }
.site-footer a { color: #fff; }
.site-footer nav { display: flex; flex-direction: column; gap: .5rem; }
.copyright { padding-top: 1.4rem; font-size: .85rem; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Legal pages ---------- */
.page-header { background: var(--color-dark); color: #fff; padding: calc(var(--header-h) + 4rem) 0 3.5rem; }
.page-header h1 { margin: 0; }
.legal { padding: 3.5rem 0 5rem; }
.legal .container { max-width: 800px; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.6rem; }
.legal address { font-style: normal; }
.site-header.solid { background: var(--color-dark); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
