/* ==========================================================================
   Basis: Farben, Typografie, Layout-Helfer, Buttons, Tags, Animationen
   ========================================================================== */

:root {
  --green-900: #2a5c33;
  --green-700: #3d7d47;
  --green-600: #4f9158;
  --green-500: #67b26f;
  --green-400: #8bc68a;
  --green-300: #a6cf6a;
  --green-100: #e6f0df;
  --lime: #d1d63a;
  --ink: #2f3331;
  --ink-soft: #545a56;
  --muted: #6b716d;
  --line: #dfe4dc;
  --paper: #f6f8f3;
  --dark: #1d201e;
  --dark-2: #262a28;
  --white: #ffffff;

  --font-head: "Jost", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;

  --container: 1280px;
  --gutter: 32px;
  --cut: 16px; /* abgeschrägte Ecke = Mesh-Facette */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
figure {
  margin: 0;
}
a {
  color: var(--green-700);
}
a:hover {
  color: var(--green-900);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Abschnitte ---------- */
.section {
  padding-block: 96px;
}
.section--paper {
  background: var(--paper);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 64px;
  margin-bottom: 40px;
}
.section-head h2 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 46px;
  line-height: 1.1;
}
.section-head p {
  max-width: 500px;
  color: var(--ink-soft);
}
.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Kleine Zeile mit Dreieck über Überschriften */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green-700);
}
.eyebrow::before {
  content: "";
  flex: 0 0 16px;
  height: 14px;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 28px 0 22px;
  border: 0;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 14px),
    calc(100% - 14px) 100%,
    0 100%
  );
  transition:
    background 0.2s,
    padding 0.2s;
}
.btn:hover {
  padding-right: 36px;
}
.btn--green {
  background: var(--green-700);
  color: var(--white);
}
.btn--green:hover {
  background: #2f6638;
  color: var(--white);
}
.btn--white {
  background: var(--white);
  color: var(--ink);
}
.btn--white:hover {
  background: #e7f1df;
  color: var(--ink);
}
.btn--lime {
  background: var(--lime);
  color: var(--dark);
}
.btn--lime:hover {
  background: #e0e46a;
  color: var(--dark);
}

/* ---------- Tags (Projekt-Labels) ---------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green-900);
  background: var(--green-100);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

/* Weiße Karte mit abgeschrägter Ecke */
.facet-card {
  background: var(--white);
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 34px),
    calc(100% - 34px) 100%,
    0 100%
  );
}

/* ---------- Einblenden beim Scrollen (Chrome/Edge) ---------- */
@supports (animation-timeline: view()) {
  .section-head,
  .member,
  .download-card,
  .join__copy,
  .join__card,
  .contact__col,
  .workflow__stage,
  .projects,
  .timeline {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 820px) {
  :root {
    --gutter: 20px;
  }
  .section {
    padding-block: 72px;
  }
  .section-head h2 {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Bildausschnitt für Fotos: Motiv rechts bzw. links halten */
.focus-right {
  object-position: 68% center;
}
.focus-left {
  object-position: left center;
}
