/* Nexus Habitat eGbR – statische Seite, keine externen Ressourcen */
:root {
  --green: #3b6b3a;
  --green-dark: #2c5230;
  --sand: #c09a6b;
  --navy: #1e3557;
  --text: #1e3557;
  --muted: #4a5a70;
  --bg: #fbfaf7;
  --bg-alt: #f1eee6;
  --line: #ddd6c8;
  --max: 46rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 100%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
}

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 10;
}
.skip:focus { left: 0; }

a { color: var(--green-dark); text-underline-offset: .15em; }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

header.site { border-bottom: 1px solid var(--line); background: #fff; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .9rem; padding-bottom: .9rem; }
header.site img { display: block; height: 3.2rem; width: auto; }
header.site nav a { margin-left: 1.25rem; text-decoration: none; font-weight: 600; font-size: .95rem; }
header.site nav a:hover { text-decoration: underline; }

.hero { padding: 3.5rem 0 3rem; text-align: center; background: #fff; }
.hero img { width: min(11rem, 55%); height: auto; margin: 0 auto 1.25rem; display: block; }
.hero h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); line-height: 1.2; margin: 0 0 .6rem; color: var(--navy); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; margin: 0 auto; }

section { padding: 2.5rem 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section h2 { font-size: 1.4rem; margin: 0 0 .8rem; color: var(--navy); }
section h2::after { content: ""; display: block; width: 2.5rem; height: 3px; background: var(--sand); margin-top: .5rem; }

.cta {
  display: inline-block; margin-top: .5rem; padding: .7rem 1.3rem; border-radius: .4rem;
  background: var(--green-dark); color: #fff; text-decoration: none; font-weight: 600;
}
.cta:hover { background: var(--navy); color: #fff; }

footer.site { border-top: 1px solid var(--line); background: #fff; padding: 1.5rem 0; font-size: .92rem; color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; }
footer.site a { margin-right: 1rem; }

/* Rechtstexte */
.legal { padding: 2.5rem 0 3.5rem; }
.legal h1 { font-size: 1.9rem; margin: 0 0 1rem; }
.legal h2 { font-size: 1.15rem; margin: 2rem 0 .4rem; }
.legal h2::after { display: none; }
.legal address { font-style: normal; }
.legal ul { padding-left: 1.2rem; }

@media (max-width: 36rem) {
  header.site nav a { margin-left: .8rem; }
  .hero { padding: 2.5rem 0 2rem; }
}

@media (prefers-reduced-motion: no-preference) {
  a, .cta { transition: color .15s, background-color .15s; }
}

@media print {
  header.site nav, .cta, .skip { display: none; }
  body { background: #fff; }
}
