/* ARIES Asset Concept GmbH — modern, fast, no framework */

@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/ubuntu-300.woff2") format("woff2");
}
@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ubuntu-400.woff2") format("woff2");
}
@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ubuntu-500.woff2") format("woff2");
}
@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/ubuntu-700.woff2") format("woff2");
}

:root {
  --brand: #1b4d28;
  --brand-2: #2a6e3d;
  --brand-tint: rgba(27, 77, 40, 0.08);
  --ink: #0a0a0a;
  --ink-2: #1f2937;
  --muted: #6b7280;
  --surface: #f5f6f4;
  --surface-2: #ecefe9;
  --border: #e5e7eb;
  --bg: #ffffff;
  --header-h: 76px;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
  --max: 1240px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Ubuntu", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); font-weight: 300; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 500; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

/* ========== Header ========== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  pointer-events: none;
  z-index: 0;
}

.site-header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.brand img { width: 36px; height: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 36px; }

.nav a {
  position: relative;
  font-size: 0.97rem;
  color: var(--ink-2);
  transition: color 0.15s;
}

.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.nav a:not(.btn):hover { color: var(--brand); }
.nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav a.btn, .nav a.btn:hover { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 0;
  background: var(--brand);
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}

.btn:hover { background: var(--brand-2); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(27, 77, 40, 0.25); }
.btn--ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--block { width: 100%; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  margin-left: auto;
  background: transparent; border: 0;
  color: var(--ink);
}

.nav__legal { display: none; }

@media (max-width: 820px) {
  .nav {
    display: flex;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(86vw, 380px);
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--header-h) + 36px) 32px 32px;
    background: #fff;
    box-shadow: -16px 0 48px rgba(15, 23, 42, 0.10);
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.32, 0.72, 0.24, 1);
    z-index: 90;
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }

  .nav > a {
    padding: 10px 0;
    font-size: 1.55rem;
    font-weight: 300;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.2;
    transform: translateX(28px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.32, 0.72, 0.24, 1), opacity 0.4s ease, color 0.15s ease;
  }
  .nav > a::after { display: none; }
  .nav > a:not(.btn):hover { color: var(--brand); }

  .nav > a.btn {
    align-self: stretch;
    justify-content: flex-start;
    margin: 0;
    padding: 10px 0;
    background: transparent;
    color: var(--ink);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    border-radius: 0;
    box-shadow: none;
  }
  .nav > a.btn:hover {
    background: transparent;
    color: var(--brand);
    transform: none;
    box-shadow: none;
  }

  .nav.is-open > a { transform: translateX(0); opacity: 1; }
  .nav.is-open > :nth-child(1) { transition-delay: 0.08s; }
  .nav.is-open > :nth-child(2) { transition-delay: 0.14s; }
  .nav.is-open > :nth-child(3) { transition-delay: 0.20s; }
  .nav.is-open .nav__legal { transition-delay: 0.30s; }

  .nav__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 36px;
    transform: translateX(28px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.32, 0.72, 0.24, 1), opacity 0.4s ease;
  }
  .nav.is-open .nav__legal { transform: translateX(0); opacity: 1; }
  .nav__legal a {
    padding: 4px 0;
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: 0.02em;
    transition: color 0.15s ease;
  }
  .nav__legal a::after { display: none; }
  .nav__legal a:hover { color: var(--brand); }
  .nav__legal span { color: var(--border); font-size: 0.82rem; user-select: none; }

  .nav__toggle { display: inline-flex; position: relative; z-index: 110; }
  body.nav-open { overflow: hidden; }
}

/* ========== Hero ========== */

.hero {
  background: var(--brand);
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60vmax; height: 60vmax;
  background: radial-gradient(closest-side, rgba(255,255,255,0.08), transparent 70%);
  pointer-events: none;
}

.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 6vh, 64px) 0;
}

@media (max-width: 640px) {
  .hero__content.container { padding-inline: 28px; }
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  margin-bottom: 18px;
}

.hero h1 { max-width: 38ch; }

.hero h1 strong { font-weight: 500; color: #d8efe0; }

.hero__sub {
  margin-top: 22px;
  max-width: 56ch;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: rgba(255,255,255,0.86);
  font-weight: 300;
}

.hero__image {
  width: 100%;
  height: clamp(260px, 38vh, 460px);
  background-image: url("/assets/img/berlin.jpg");
  background-position: center;
  background-size: cover;
  filter: contrast(1.02);
}

/* ========== Section primitives ========== */

.section {
  padding: clamp(72px, 10vw, 120px) 0;
  position: relative;
}

.section__head {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 500;
  margin-bottom: 14px;
}

.section__lead {
  margin: 14px auto 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ========== About / Slogan ========== */

.about {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.about__text { font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 300; color: var(--ink-2); }
.about__text p { margin: 0 0 1.2em; }
.about__media { display: flex; align-items: center; justify-content: center; }
.about__media img { width: clamp(140px, 22vw, 220px); }

@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; text-align: left; }
  .about__media { order: -1; }
}

/* ========== Leistungen ========== */

.services {
  position: relative;
  background: var(--surface);
}

.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/img/optimierung.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  pointer-events: none;
}

.services > * { position: relative; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(229, 231, 235, 0.7);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}

.service__icon {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-tint);
  color: var(--brand);
  border-radius: 10px;
}

.service__icon svg { width: 20px; height: 20px; }

.service h3 { color: var(--ink); }
.service p { margin: 0; color: var(--muted); font-size: 0.97rem; }

.service--wide { grid-column: span 2; }

@media (max-width: 1080px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service--wide { grid-column: span 2; }
}

@media (max-width: 560px) {
  .services__grid { grid-template-columns: 1fr; }
  .service--wide { grid-column: span 1; }
}

/* ========== Counters ========== */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.stat {
  padding: 28px 16px;
}

.stat__icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: var(--brand-tint);
  color: var(--brand);
  border-radius: 50%;
  margin-bottom: 14px;
}

.stat__icon svg { width: 26px; height: 26px; }

.stat__number {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat__label {
  margin-top: 8px;
  font-size: 1.15rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; gap: 4px; }
}

/* ========== Marquee ========== */

.marquee {
  background: linear-gradient(180deg, #fff 0%, var(--surface) 100%);
  padding: 22px 0;
  overflow: hidden;
  border-block: 1px solid var(--border);
}

.marquee__track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  font-size: clamp(1.6rem, 3.8vw, 2.6rem);
  font-style: italic;
  font-weight: 300;
  color: #4b5563;
  width: max-content;
  animation: marquee-l 60s linear infinite;
}

.marquee--reverse .marquee__track { animation-name: marquee-r; }

.marquee__track span { display: inline-flex; align-items: center; gap: 60px; }
.marquee__track span::after {
  content: "•";
  color: var(--brand);
  font-style: normal;
  margin-left: 60px;
}

@keyframes marquee-l {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-r {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ========== Contact form ========== */

.contact {
  background: linear-gradient(180deg, var(--surface) 0%, #fff 100%);
}

.contact__form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
  max-width: 1080px;
  margin-inline: auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 3vw, 32px);
}

.field { display: flex; flex-direction: column; gap: 6px; }

.field--half { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

label {
  font-size: 0.88rem;
  color: var(--ink-2);
  font-weight: 500;
}

label .req { color: #c2410c; margin-left: 2px; }

input, textarea {
  font: inherit;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 12px 14px;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:hover, textarea:hover { border-color: #cfd3cd; }

input:focus, textarea:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(27, 77, 40, 0.12);
}

textarea { resize: vertical; min-height: 160px; }

.form-actions { margin-top: 20px; }

.contact__msg {
  display: none;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  background: #fff;
  max-width: 720px;
  margin: 0 auto;
}

.contact__msg.is-visible { display: block; }

.contact__msg--error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }

.contact__msg svg { width: 56px; height: 56px; color: var(--brand); margin-bottom: 12px; }

@media (max-width: 760px) {
  .form-grid { grid-template-columns: 1fr; }
  .field--half { grid-template-columns: 1fr; }
}

/* ========== Footer ========== */

.site-footer {
  background: #0d1f15;
  color: rgba(255,255,255,0.78);
  padding: 60px 0 32px;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
}

.site-footer__brand { display: flex; flex-direction: column; gap: 8px; }
.site-footer__brand-row { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; font-size: 1.4rem; letter-spacing: 0.04em; }
.site-footer__brand-row img { width: 38px; filter: brightness(0) invert(1); }
.site-footer__tag { font-weight: 300; color: rgba(255,255,255,0.68); }
.site-footer__copy { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-top: 10px; }

.site-footer__links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.site-footer__links a {
  color: #fff;
  font-size: 0.95rem;
  position: relative;
}

.site-footer__links a:hover { color: #b5e0c1; }

@media (max-width: 720px) {
  .site-footer__inner { grid-template-columns: 1fr; align-items: start; }
}

/* ========== Legal pages (Impressum / Datenschutz) ========== */

.legal {
  padding: clamp(60px, 8vw, 96px) 0;
  max-width: 820px;
  margin: 0 auto;
}

.legal h1 { margin-bottom: 24px; }
.legal h2 { font-size: 1.4rem; margin: 38px 0 12px; color: var(--brand); }
.legal h3 { font-size: 1.1rem; margin: 24px 0 10px; }
.legal p { margin: 0 0 14px; color: var(--ink-2); }
.legal ul { margin: 0 0 16px; padding-left: 22px; color: var(--ink-2); }
.legal ul li { margin-bottom: 6px; }
.legal a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.legal address { font-style: normal; margin: 0 0 14px; }

@media (max-width: 640px) {
  .legal { padding-inline: 28px; }
}
