:root {
  --bg: #f3f1ec;
  --bg-deep: #e8e4dc;
  --ink: #1c2422;
  --ink-soft: #3d4a46;
  --muted: #5f6e69;
  --teal: #0d7a6f;
  --teal-deep: #0a5f57;
  --teal-soft: #d5ebe7;
  --line: rgba(28, 36, 34, 0.12);
  --hero-ink: #f6f4ef;
  --max: 68rem;
  --section-pad: clamp(3.5rem, 8vw, 6.5rem);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

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

a {
  color: var(--teal-deep);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--teal);
}

code {
  font-size: 0.9em;
  background: var(--bg-deep);
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--hero-ink);
  padding: 0.6rem 1rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  padding: 1.25rem 1.5rem;
}

.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--hero-ink);
  text-decoration: none;
}

.logo:hover {
  color: #fff;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  justify-content: flex-end;
}

.nav a {
  color: rgba(246, 244, 239, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a:hover {
  color: #fff;
}

/* Hero — full-bleed */
.hero {
  position: relative;
  min-height: min(100vh, 52rem);
  display: grid;
  align-items: end;
  color: var(--hero-ink);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0c1c1a;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Halde Hoheward: Observatorium links, Weite rechts */
  object-position: 42% 38%;
  filter: contrast(1.04) brightness(0.98) saturate(1.05);
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      105deg,
      rgba(10, 22, 20, 0.84) 0%,
      rgba(10, 22, 20, 0.52) 28%,
      rgba(10, 22, 20, 0.18) 52%,
      rgba(10, 22, 20, 0.05) 100%
    ),
    linear-gradient(
      to top,
      rgba(10, 22, 20, 0.62) 0%,
      rgba(10, 22, 20, 0.18) 32%,
      transparent 55%
    );
}

@media (max-width: 700px) {
  .hero-photo {
    object-position: 35% 32%;
  }

  .hero-atmosphere {
    background:
      linear-gradient(
        180deg,
        rgba(10, 22, 20, 0.35) 0%,
        rgba(10, 22, 20, 0.12) 38%,
        rgba(10, 22, 20, 0.78) 100%
      );
  }
}

.hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 11px,
      rgba(255, 255, 255, 0.03) 11px,
      rgba(255, 255, 255, 0.03) 12px
    );
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: clamp(7rem, 18vh, 10rem) 1.5rem clamp(3.5rem, 8vh, 5rem);
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 1.25rem;
  color: #fff;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 4.2vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  max-width: 18ch;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(246, 244, 239, 0.88);
}

.lede-region {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.92em;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(213, 235, 231, 0.9);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  padding: 0.85rem 1.35rem;
  border-radius: 0.35rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.btn-primary:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--hero-ink);
  border-color: rgba(246, 244, 239, 0.45);
}

.btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

.btn-secondary {
  background: var(--ink);
  color: var(--hero-ink);
  border-color: var(--ink);
}

.btn-secondary:hover {
  background: #000;
  color: #fff;
}

.btn-large {
  padding: 1rem 1.6rem;
  font-size: 1.05rem;
}

/* Sections */
.section {
  padding: var(--section-pad) 1.5rem;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  max-width: 36rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.65rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.section-how {
  background: #fffefb;
}

.section-scope {
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

.section-stories {
  background: #fffefb;
}

.section-fair {
  background: var(--teal-soft);
}

.section-contact {
  background: var(--bg);
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1rem;
  align-items: start;
}

.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  color: var(--teal);
  letter-spacing: -0.04em;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Scope — list, not cards */
.scope-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.scope-list li {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.scope-list strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-right: 0.35rem;
}

.scope-else strong {
  color: var(--teal-deep);
}

/* Stories */
.stories {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .stories {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 2.5rem;
  }
}

.story {
  padding-top: 1.25rem;
  border-top: 3px solid var(--teal);
}

.story h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

.story p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Fair */
.fair-points {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 36rem;
}

.fair-points li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.5rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.fair-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 0.1rem;
  background: var(--teal);
}

/* Contact */
.contact-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .contact-layout {
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: start;
  }
}

.contact-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 28rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-intro {
  margin: 0;
  font-weight: 600;
  color: var(--ink-soft);
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: #fff;
  color: var(--ink);
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: transparent;
}

.form-hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(246, 244, 239, 0.75);
  padding: 2.5rem 1.5rem;
}

.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.site-footer a {
  color: rgba(246, 244, 239, 0.9);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-copy {
  margin: 1rem 0 0;
  font-size: 0.9rem;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero .reveal {
  transition-duration: 0.9s;
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}

/* Legal pages */
.legal-page .site-header {
  position: relative;
  background: var(--ink);
}

.legal-main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.legal-main h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
}

.legal-main h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.legal-main p,
.legal-main li {
  color: var(--ink-soft);
}

.placeholder-box {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  background: var(--teal-soft);
  border-left: 3px solid var(--teal);
  color: var(--ink);
  font-size: 1rem;
}

@media (max-width: 640px) {
  .nav a:nth-child(n + 3) {
    display: none;
  }
}
