@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-style: normal; font-weight: 600 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-style: normal; font-weight: 400 700; font-display: swap; }

:root {
  --blue: #00489c;
  --blue-dark: #003a70;
  --blue-soft: #e7eef6;
  --green: #008454;
  --green-dark: #006943;
  --lime: #96be0a;
  --ink: #1c1c1e;
  --muted: #4b535e;
  --paper: #ffffff;
  --soft: #f1f5fa;
  --line: #d6dee8;
  --max: 1200px;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 58, 112, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 14px; top: 14px; z-index: 500; padding: 10px 14px; background: #fff; border-radius: 8px; }

h1, h2, h3, h4 {
  margin: 0 0 0.55em;
  font-family: "Archivo", "Segoe UI", sans-serif;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
h1 { max-width: 13ch; font-size: clamp(3rem, 6.3vw, 6rem); }
h2 { max-width: 15ch; font-size: clamp(2.15rem, 4vw, 4.1rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { margin: 0 0 1em; }
.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lead { max-width: 700px; color: #dce8f6; font-size: clamp(1.05rem, 1.8vw, 1.3rem); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; flex: 0 0 185px; }
.brand img { width: 185px; height: auto; }
.navlinks { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 0.9rem; font-weight: 700; }
.navlinks a { position: relative; padding: 26px 0 22px; }
.navlinks a::after { content: ""; position: absolute; right: 0; bottom: 17px; left: 0; height: 2px; background: var(--green); transform: scaleX(0); transition: transform 0.2s; }
.navlinks a:hover::after, .navlinks a[aria-current="page"]::after { transform: scaleX(1); }
.navlinks a[aria-current="page"] { color: var(--blue); }
.shop { color: var(--blue); }
.menu { display: none; margin-left: auto; border: 0; background: transparent; font-weight: 800; }

.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 23px;
  border: 2px solid var(--green);
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.btn:hover { background: var(--green-dark); box-shadow: 0 10px 24px rgba(0, 132, 84, 0.25); transform: translateY(-2px); }
.btn.alt { border-color: rgba(255, 255, 255, 0.65); background: transparent; color: #fff; }
.btn.alt:hover { background: #fff; color: var(--blue); }
.btn.light { border-color: #fff; background: #fff; color: var(--blue); }
.text-link { color: var(--green); font-weight: 800; }

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 76px);
  align-items: center;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(0, 45, 90, 0.92), rgba(0, 72, 156, 0.62)), url("../img/hero.jpg") center / cover no-repeat;
  color: #fff;
}
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(850px 480px at 82% 0, rgba(150, 190, 10, 0.22), transparent 62%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 820px) 1fr; gap: 40px; align-items: center; padding: 90px 0; }
.hero h1 { color: #fff; }
.hero h1 span { color: var(--lime); }
.hero .eyebrow { color: var(--lime); }
.actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.water-orbit { display: none; }
.hero-note { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.hero-note span { padding: 7px 13px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: rgba(255,255,255,.06); font-size: .78rem; font-weight: 700; }

.trustline { border-block: 1px solid var(--line); background: #fff; }
.trust { display: flex; justify-content: space-between; gap: 26px; padding: 20px 0; overflow: auto; white-space: nowrap; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.trust strong { color: var(--blue); font-size: 1rem; }

.section { padding: 96px 0; }
.section.tint { background: var(--soft); }
.section.dark { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 56px; margin-bottom: 48px; }
.section-head > p { max-width: 540px; color: var(--muted); font-size: 1.05rem; }
.dark .section-head > p { color: #c9d8ea; }
.story { display: grid; grid-template-columns: .9fr 1.1fr; gap: 8vw; }
.statement { font-family: "Archivo", sans-serif; font-size: clamp(1.8rem, 3.1vw, 3.2rem); font-weight: 700; line-height: 1.18; letter-spacing: -.03em; }
.timeline { display: grid; gap: 32px; padding-left: 28px; border-left: 3px solid var(--green); }
.timeline span, .num { color: var(--green); font-size: .78rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.timeline p, .card p, .course p { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card, .course {
  position: relative;
  display: flex;
  min-height: 255px;
  flex-direction: column;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .25s, box-shadow .25s;
}
.card:hover, .course:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.card .arrow { margin-top: auto; color: var(--green); font-weight: 800; }
.card.photo-card { min-height: 390px; justify-content: end; border: 0; background-position: center; background-size: cover; color: #fff; }
.card.photo-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(0,36,72,.88)); }
.card.photo-card > * { position: relative; }
.card.photo-card p { color: #dce8f6; }

.process { display: grid; grid-template-columns: repeat(6, 1fr); counter-reset: step; }
.step { position: relative; padding: 26px 18px; border-top: 1px solid rgba(255,255,255,.35); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 15px; color: var(--lime); font-weight: 900; }
.step::after { content: ""; position: absolute; top: -4px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }

.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.project { position: relative; display: flex; min-height: 440px; align-items: end; overflow: hidden; border-radius: var(--radius); background-position: center; background-size: cover; color: #fff; }
.project::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 22%, rgba(0,36,72,.86)); }
.project > div { position: relative; padding: 34px; }
.project small { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.project.golf { background-image: url("../img/r-mgc.jpg"); }
.project.green { background-image: url("../img/l-planung.jpg"); }

.cta { display: flex; align-items: end; justify-content: space-between; gap: 40px; padding: clamp(38px, 7vw, 80px); border-radius: 20px; background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; }
.cta h2 { margin: 0; }

.page-hero { position: relative; overflow: hidden; padding: 86px 0 72px; background: linear-gradient(120deg, var(--blue-dark), var(--blue)); color: #fff; }
.page-hero.image { background-position: center; background-size: cover; }
.page-hero::after { content: ""; position: absolute; right: -120px; bottom: -190px; width: 480px; height: 480px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.06), 0 0 0 140px rgba(255,255,255,.04); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { max-width: 17ch; color: #fff; font-size: clamp(2.8rem, 5.5vw, 5.6rem); }
.page-hero p { max-width: 720px; color: #d3e2f4; font-size: 1.15rem; }
.page-hero .eyebrow { color: var(--lime); }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 7vw; align-items: center; }
.visual { min-height: 420px; border-radius: var(--radius); background: linear-gradient(145deg, #d6e6ef, #6c9ec8); background-position: center; background-size: cover; box-shadow: var(--shadow); }
.visual.planung { background-image: url("../img/l-planung.jpg"); }
.visual.montage { background-image: url("../img/l-montage.jpg"); }
.visual.vormontage { background-image: url("../img/verteiler.jpg"); }
.visual.effizienz { background-image: url("../img/effizienz.jpg"); }
.visual.rainbird { background-image: url("../img/rainbird.jpg"); }
.list { display: grid; gap: 0; margin: 24px 0; }
.list div, .list li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.course { min-height: 220px; }

.reference-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.reference { min-height: 380px; }
.reference.mgc { background-image: url("../img/r-mgc.jpg"); }
.reference.jakobsberg { background-image: url("../img/r-jakobsberg.jpg"); }
.reference.pfalz { background-image: url("../img/r-pfalz.jpg"); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip { padding: 9px 17px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-weight: 700; }
.chip.active, .chip:hover { border-color: var(--blue); background: var(--blue); color: #fff; }

.contact-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-option { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.contact-option strong { display: block; margin-bottom: 8px; color: var(--blue); font-family: "Archivo", sans-serif; font-size: 1.25rem; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 6vw; align-items: start; }
.form { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid #a9b7c8; border-radius: 8px; background: #fff; color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(0,132,84,.15); border-color: var(--green); }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy { margin: 18px 0; color: var(--muted); font-size: .82rem; }
.privacy input { margin-right: 7px; }
.form-status { min-height: 1.5em; margin-top: 12px; color: var(--green); font-weight: 700; }
.quick-form { margin-top: 24px; padding: 24px; border-radius: var(--radius); background: var(--soft); }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.person { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.person img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top; }
.person div { padding: 18px; }
.person b { display: block; font-family: "Archivo", sans-serif; font-size: 1.05rem; }
.person span { color: var(--green); font-size: .82rem; font-weight: 700; }

.legal-hero h1 { max-width: none; }
.legal-section { background: linear-gradient(180deg, #fff 0, var(--soft) 100%); }
.legal-layout { display: grid; grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.legal-card, .legal-panel { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.legal-card { position: sticky; top: 110px; padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow); }
.legal-card::after { content: ""; position: absolute; right: -80px; bottom: -110px; width: 220px; height: 220px; border: 34px solid rgba(0,72,156,.06); border-radius: 50%; }
.legal-card h2 { position: relative; z-index: 1; max-width: 15ch; margin-bottom: 28px; font-size: clamp(1.65rem, 2.4vw, 2.4rem); }
.legal-card address { position: relative; z-index: 1; color: var(--muted); font-style: normal; font-size: 1.08rem; line-height: 1.7; }
.legal-index { position: absolute; top: 22px; right: 24px; color: rgba(0,72,156,.12); font-family: "Archivo", sans-serif; font-size: clamp(2.8rem, 5vw, 4.8rem); font-weight: 800; line-height: 1; }
.legal-contact { position: relative; z-index: 1; display: grid; gap: 14px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.legal-contact a { color: var(--ink); font-weight: 700; }
.legal-contact a:hover { color: var(--green); }
.legal-contact span { display: block; margin-bottom: 2px; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.legal-details { display: grid; gap: 20px; }
.legal-panel { padding: clamp(28px, 4vw, 44px); }
.legal-panel h2 { margin-bottom: 22px; font-size: clamp(1.55rem, 2.5vw, 2.35rem); }
.legal-panel p:last-child { margin-bottom: 0; }
.legal-list { margin: 0; }
.legal-list div { display: grid; grid-template-columns: minmax(140px, .7fr) 1fr; gap: 24px; padding: 17px 0; border-top: 1px solid var(--line); }
.legal-list div:last-child { padding-bottom: 0; }
.legal-list dt { color: var(--muted); font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.legal-list dd { margin: 0; font-weight: 700; }
.legal-vat { border-color: rgba(0,132,84,.28); background: linear-gradient(135deg, #fff 45%, rgba(140,198,63,.1)); }
.vat-number { color: var(--blue); font-family: "Archivo", sans-serif; font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 800; letter-spacing: .04em; }

.footer { padding: 66px 0 24px; background: #53636e; color: #eef1f2; }
.footer-grid { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 44px; }
.footer h3, .footer b { color: #fff; }
.footer a { display: block; margin: 8px 0; color: #eef1f2; }
.footer a:hover { color: var(--lime); }
.footer-logo { width: 210px; margin-bottom: 16px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 45px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.24); color: #d5dbde; font-size: .82rem; }
.footer-bottom a { display: inline; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s, transform .65s; }
.reveal.seen { opacity: 1; transform: none; }
.scroll-progress { position: fixed; top: 0; left: 0; z-index: 300; width: 100%; height: 3px; pointer-events: none; }
.scroll-progress i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--green), var(--lime)); transform: scaleX(0); transform-origin: left; }

@media (max-width: 980px) {
  .menu { display: block; }
  .nav > .btn { display: none; }
  .navlinks { position: absolute; top: 76px; right: 0; left: 0; display: none; align-items: flex-start; flex-direction: column; gap: 0; padding: 18px 24px; border-bottom: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
  .navlinks.open { display: flex; }
  .navlinks a { width: 100%; padding: 10px 0; }
  .navlinks a::after { display: none; }
  .hero-grid, .story, .feature, .contact-grid, .legal-layout { grid-template-columns: 1fr; }
  .legal-card { position: relative; top: auto; }
  .cards, .reference-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); }
  .section-head { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 70px 0; }
  .hero { min-height: auto; }
  .hero-grid { padding: 70px 0; }
  .brand { flex-basis: 165px; }
  .brand img { width: 165px; }
  .cards, .projects, .split, .reference-grid, .contact-options, .team-grid, .form-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .field.full { grid-column: auto; }
  .project { min-height: 340px; }
  .cta { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { display: block; }
  .legal-list div { grid-template-columns: 1fr; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
