/* CDE Claus-Dieter Essig GmbH
   Direction: architectural, cool stone-blue with deep teal and a single ochre accent.
   Type: Bricolage Grotesque (headlines) + Public Sans (text). */

:root {
  --paper: #f6f8f8;
  --fog: #e6edee;
  --line: #c6d3d5;
  --ink: #0e2a33;
  --pine: #1d5a5a;
  --teal: #3b7a78;
  --ochre: #c08a2e;
  --muted: #4b636a;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 1.0625rem/1.7 "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  margin: 0;
  font-family: "Bricolage Grotesque", "Public Sans", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
p { margin: 0 0 1.1em; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(1280px, 100% - 3rem); margin-inline: auto; }
section[id] { scroll-margin-top: 76px; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }

/* Buttons and links */
.btn {
  display: inline-block;
  padding: 0.95rem 1.7rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font: 600 1rem "Public Sans", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--pine); transform: translateY(-2px); }
.link-line {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--ochre);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.link-line:hover { color: var(--pine); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 248, 0.96);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--ink);
  color: var(--paper);
  font: 700 1.05rem "Bricolage Grotesque", sans-serif;
  letter-spacing: 0.02em;
  border-bottom: 4px solid var(--ochre);
}
.brand-name { font: 700 1.05rem "Bricolage Grotesque", sans-serif; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.97rem; padding: 0.3rem 0; border-bottom: 2px solid transparent; transition: border-color 0.2s; }
.nav a:hover { border-color: var(--ochre); }
.nav .nav-cta { background: var(--ink); color: var(--paper); padding: 0.6rem 1.2rem; border-radius: var(--radius); border-bottom: 0; transition: background 0.2s; }
.nav .nav-cta:hover { background: var(--pine); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: transparent; border-radius: var(--radius); cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: transform 0.25s, top 0.25s; }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 26px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* Hero */
.hero { padding: 4.5rem 0 5.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 4.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.8rem); margin-bottom: 1.5rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 54ch; margin-bottom: 2rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.75rem; margin-bottom: 3rem; }
.hero-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.hero-points li { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.95rem; line-height: 1.45; }
.hero-points strong { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.05rem; }
.hero-points span { color: var(--muted); }

/* Skyline illustration: windows are drawn with layered gradients */
.skyline { position: relative; height: 580px; background: #d4e2e3; overflow: hidden; border-radius: var(--radius); }
.sun { position: absolute; top: 56px; right: 64px; width: 84px; height: 84px; border-radius: 50%; background: var(--ochre); opacity: 0.9; }
.tower {
  position: absolute;
  bottom: 56px;
  --win: #b9d1d2;
  background-color: var(--base);
  background-image:
    repeating-linear-gradient(180deg, var(--base) 0 12px, transparent 12px 34px),
    repeating-linear-gradient(90deg, var(--base) 0 12px, transparent 12px 32px),
    linear-gradient(var(--win), var(--win));
}
.t1 { --base: var(--ink); left: 6%; width: 32%; height: 58%; --win: #2f5560; }
.t2 { --base: var(--pine); left: 38%; width: 30%; height: 80%; --win: #8fb7b4; }
.t3 { --base: var(--teal); left: 68%; width: 26%; height: 44%; --win: #cfe3e2; }
.t1::after, .t2::after { content: ""; position: absolute; width: 20px; height: 22px; background: var(--ochre); }
.t1::after { left: 44px; top: 182px; }
.t2::after { left: 76px; top: 114px; }
.ground { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: var(--ink); }
.skyline-panel {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  max-width: 300px;
  padding: 1rem 1.25rem;
  background: var(--paper);
  border-left: 4px solid var(--ochre);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.93rem;
  line-height: 1.45;
}
.skyline-panel strong { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.05rem; }
.skyline-panel span { color: var(--muted); }

/* Generic sections */
.section { padding: 6.5rem 0; }

/* About */
.about { background: var(--fog); }
.about-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 5rem; align-items: start; }
.about-text h2 { margin-bottom: 2rem; max-width: 22ch; }
.about-text p { max-width: 66ch; color: #263f47; }
.plan {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 90px 70px 80px;
  gap: 0;
  border: 3px solid var(--ink);
  margin-bottom: 1.75rem;
  background: var(--paper);
}
.plan .r { border: 1.5px solid var(--ink); margin: -1.5px; }
.plan .r1 { grid-row: 1 / 3; }
.plan .r3 { grid-row: 2 / 4; background: var(--line); }
.plan .r5 { background: var(--ochre); opacity: 0.85; }
.facts { margin: 0; }
.facts div { padding: 0.9rem 0; border-top: 1px solid var(--line); }
.facts dt { font-size: 0.85rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.facts a { text-decoration-color: var(--ochre); text-underline-offset: 3px; }

.process { margin-top: 5.5rem; padding-top: 3rem; border-top: 1px solid var(--ink); }
.process h3 { font-size: 1.6rem; margin-bottom: 2rem; }
.process ol { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.process li { counter-increment: step; position: relative; padding: 1.75rem 2rem 0 0; }
.process li::before { content: ""; position: absolute; top: -3px; left: 0; width: 100%; height: 3px; background: var(--line); }
.process li::after { content: counter(step); position: absolute; top: -14px; left: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ochre); color: var(--ink); font: 700 0.85rem "Bricolage Grotesque", sans-serif; }
.process li { margin-top: 0; }
.process strong { font: 700 1.2rem "Bricolage Grotesque", sans-serif; display: block; margin: 0.4rem 0 0.4rem; }
.process p { color: var(--muted); font-size: 0.98rem; margin: 0; }

/* Services */
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; margin-bottom: 3.5rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; max-width: 46ch; }
.svc-list { border-bottom: 1px solid var(--ink); }
.svc { border-top: 1px solid var(--ink); transition: background 0.25s; }
.svc:hover, .svc[open] { background: var(--fog); }
.svc summary {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 40px;
  gap: 2rem;
  align-items: center;
  padding: 1.9rem 1.25rem;
  cursor: pointer;
  list-style: none;
}
.svc summary::-webkit-details-marker { display: none; }
.svc summary h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.svc summary span { color: var(--muted); }
.svc summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font: 500 1.5rem/1 "Bricolage Grotesque", sans-serif;
  transition: transform 0.25s, background 0.25s;
}
.svc[open] summary::after { transform: rotate(45deg); background: var(--ochre); border-color: var(--ochre); }
.svc ul { padding: 0 1.25rem 2.2rem calc(1.25rem + (100% - 2.5rem - 4rem - 40px) * 0.44 + 2rem); display: grid; gap: 0.6rem; max-width: none; }
.svc li { position: relative; padding-left: 1.4rem; max-width: 62ch; }
.svc li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 0.6rem; height: 2px; background: var(--ochre); }

/* Benefits */
.benefits { background: var(--ink); color: var(--paper); }
.benefits-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 6rem; align-items: start; }
.benefits-intro { position: sticky; top: 110px; }
.benefits-intro h2 { margin-bottom: 1.5rem; }
.benefits-intro p { color: #b8cbcf; max-width: 42ch; }
.benefits address { font-style: normal; margin-top: 2.5rem; padding: 1.25rem 1.5rem; border-left: 4px solid var(--ochre); background: rgba(255, 255, 255, 0.06); line-height: 1.7; }
.benefits address a { color: var(--paper); text-underline-offset: 3px; }
.benefit { padding: 2.2rem 0; border-top: 1px solid rgba(255, 255, 255, 0.22); display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 2.5rem; transition: padding-left 0.25s; }
.benefit:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.22); }
.benefit:hover { padding-left: 0.75rem; }
.benefit h3 { font-size: 1.5rem; }
.benefit p { margin: 0; color: #b8cbcf; }

/* Contact */
.contact { background: var(--fog); }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 5rem; align-items: start; }
.contact-info h2 { margin-bottom: 1.5rem; }
.contact-info > p { color: var(--muted); max-width: 44ch; margin-bottom: 2.5rem; }
.contact-info dl { margin: 0; }
.contact-info dl div { padding: 1rem 0; border-top: 1px solid var(--line); }
.contact-info dt { font-size: 0.85rem; color: var(--muted); }
.contact-info dd { margin: 0; font-weight: 600; }
.contact-info a { text-underline-offset: 3px; text-decoration-color: var(--ochre); }
.form { background: var(--paper); padding: 2.5rem; border: 1px solid var(--ink); border-top: 6px solid var(--ochre); }
.field { margin-bottom: 1.4rem; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px rgba(29, 90, 90, 0.18); }
.field.invalid input:not([type="checkbox"]), .field.invalid select, .field.invalid textarea { border-color: #a63d2f; }
.field.check { display: grid; grid-template-columns: 22px 1fr; gap: 0.75rem; align-items: start; }
.field.check label { font-weight: 400; margin: 0; font-size: 0.93rem; color: var(--muted); }
.field.check input { width: 20px; height: 20px; margin: 0.2rem 0 0; accent-color: var(--pine); }
.field.check .error { grid-column: 2; }
.error { margin: 0.35rem 0 0; min-height: 0; font-size: 0.88rem; color: #a63d2f; }
.error:empty { display: none; }
.form-status { margin: 1rem 0 0; font-weight: 600; color: var(--pine); }
.form-status:empty { display: none; }

/* Footer */
.site-footer { background: #0a1f26; color: #b8cbcf; padding-top: 4rem; font-size: 0.97rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 1.2fr; gap: 3rem; padding-bottom: 3rem; }
.footer-name { display: block; color: var(--paper); font: 700 1.25rem "Bricolage Grotesque", sans-serif; margin-bottom: 0.75rem; }
.site-footer a { text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--ochre); }
.site-footer nav { display: grid; gap: 0.5rem; align-content: start; }
.disclaimer { font-size: 0.88rem; line-height: 1.6; margin: 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); padding: 1.5rem 0 2rem; font-size: 0.88rem; }

/* Motion: one hero entrance, plus gentle reveals */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.7s both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.1s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.2s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.3s; }
  .skyline .tower { transform-origin: bottom; animation: grow 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .t2 { animation-delay: 0.1s; }
  .t3 { animation-delay: 0.2s; }
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s, transform 0.7s; }
  .js .reveal.in { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes grow { from { transform: scaleY(0.2); opacity: 0; } }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid, .about-grid, .benefits-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .benefits-intro { position: static; }
  .skyline { height: 460px; }
  .process ol { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .section-head { grid-template-columns: 1fr; gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .disclaimer { grid-column: 1 / -1; }
  .svc ul { padding-left: 1.25rem; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.5rem 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin-top: 1rem; text-align: center; border-bottom: 0; }
  .brand-name { font-size: 0.95rem; }
}
@media (max-width: 640px) {
  .wrap { width: min(1280px, 100% - 2rem); }
  .section { padding: 4.5rem 0; }
  .hero { padding: 2.5rem 0 3.5rem; }
  .hero-points { grid-template-columns: 1fr; }
  .skyline { height: 380px; }
  .tower { bottom: 44px; }
  .ground { height: 44px; }
  .sun { width: 60px; height: 60px; right: 32px; top: 36px; }
  .process ol { grid-template-columns: 1fr; }
  .svc summary { grid-template-columns: 1fr 40px; gap: 0.5rem 1rem; padding: 1.5rem 0.5rem; }
  .svc summary span { grid-column: 1; grid-row: 2; }
  .svc summary::after { grid-column: 2; grid-row: 1 / 3; }
  .svc ul { padding: 0 0.5rem 1.8rem; }
  .benefit { grid-template-columns: 1fr; gap: 0.75rem; }
  .form { padding: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
