/* =========================================================
   4eco real estate — "Grünbuch" design system
   ========================================================= */

:root {
  /* Palette */
  --paper: #ffffff;
  --ink:   #15201b;   /* near-black with a faint green cast */
  --pine:  #1c3a2e;   /* brand green, deep and calm */
  --brass: #a8803b;   /* accent: value, warmth */
  --stone: #e8e5dd;   /* warm neutral for rules / fills */
  --mist:  #6b7a72;   /* desaturated green-grey for meta */

  /* Type */
  --display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Scale */
  --step-hero: clamp(2.1rem, 1rem + 5.2vw, 4.75rem);
  --step-body: 1.0625rem;
  --step-lead: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  --step-meta: 0.78rem;

  /* Layout */
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --line: 1px solid var(--stone);
  --radius: 4px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  font-family: var(--body);
  font-size: var(--step-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.mono {
  font-family: var(--mono);
  font-size: var(--step-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skip-link {
  position: absolute; left: 50%; top: -3rem; transform: translateX(-50%);
  background: var(--pine); color: #fff; padding: 0.55rem 1rem; border-radius: var(--radius);
  z-index: 100; transition: top 0.2s ease;
}
.skip-link:focus { top: 0.5rem; }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Eyebrow (mono label) ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--step-meta);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--brass);
}

/* ---------- Hero ---------- */
#hauptinhalt { flex: 1 1 auto; display: flex; flex-direction: column; }
.hero--solo {
  position: relative;
  overflow: hidden;
  flex: 1 1 auto;
  padding-block: clamp(1.75rem, 4vh, 3rem) clamp(2rem, 5vh, 3.5rem);
}
.hero-logo { height: 116px; width: auto; margin-bottom: clamp(1rem, 2.5vw, 1.5rem); }
/* subtle, on-brand aurora — a slow blurred glow in pine + brass on white */
.hero--solo::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(34% 46% at 72% 24%, rgba(28, 58, 46, 0.42), transparent 66%),
    radial-gradient(32% 42% at 28% 62%, rgba(168, 128, 59, 0.36), transparent 66%),
    radial-gradient(40% 50% at 90% 82%, rgba(28, 58, 46, 0.26), transparent 66%);
  filter: blur(48px);
  will-change: transform;
  animation: aurora-drift 26s ease-in-out infinite alternate;
}
.hero--solo > .wrap { position: relative; z-index: 1; }

@keyframes aurora-drift {
  from { transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1.05); }
  to   { transform: translate3d(3%, 2%, 0) rotate(7deg) scale(1.16); }
}
@media (prefers-reduced-motion: reduce) {
  .hero--solo::before { animation: none; }
}

.hero-title {
  font-size: var(--step-hero);
  margin-block: 0.1rem 0.9rem;
  max-width: 18ch;
  hyphens: auto;
  overflow-wrap: break-word;
}
.hero-lead { font-size: var(--step-lead); color: #33403a; max-width: 46ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine); color: #e7ece8; padding-top: clamp(1.5rem, 3vw, 2.25rem); }
.site-footer a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3); }
.site-footer a:hover { border-color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-bottom: 1.25rem;
}
.footer-logo { width: 104px; height: auto; filter: invert(1); }
.footer-head { color: #b9c7be; margin-bottom: 0.55rem; }
.footer-col p { margin-bottom: 0.45rem; line-height: 1.45; }
.footer-base { border-top: 1px solid rgba(255,255,255,0.16); padding-block: 1rem; }
.footer-base p { font-family: var(--mono); font-size: var(--step-meta); letter-spacing: 0.08em; color: #9fb1a6; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-logo { height: 88px; }
}
