@font-face { font-family: "IBM Plex Serif"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-serif-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-weight: 500; font-style: italic; font-display: swap; src: url(fonts/ibm-plex-serif-latin-500-italic.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }

:root {
  --oliv: #aaaa96;
  --orange: #ffa000;
  --dunkel: #211f03;
  --nacht: #0a0321;
  --gruen: #00963f;
  --schwarz: #000;
  --weiss: #fff;
  --serif: "IBM Plex Serif", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --rand: 40px;
  --kopf-links: 40px;
  --kopf-rechts: 42px;
  --cta-breite: 252px;
  --cta-hoehe: 248px;
  --cta-versatz: -40px;
  --cta-seitlich: -40px;
}

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

html { overflow-x: clip; scroll-padding-top: 90px; }
html.menue-offen { overflow: hidden; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--oliv);
  color: var(--schwarz);
  font: 20px/30px var(--serif);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
p, h1, h2, ul { margin: 0; padding: 0; }
h1, h2 { font: inherit; }
a { color: inherit; }

.spalte {
  width: 100%;
  max-width: calc(320px + 2 * var(--rand));
  margin-inline: auto;
  padding-inline: var(--rand);
}

.sprung {
  position: absolute;
  left: -999px;
  z-index: 40;
  background: var(--weiss);
  padding: 8px 16px;
}
.sprung:focus { left: 16px; top: 16px; }

/* Sticky-Header */
/* Der Header steht über dem Kopfbild still und scrollt am Ende des Bildes mit:
   .kopf ist so hoch wie das Kopfbild, die Leiste darin ist sticky. */
.kopf {
  --kopf-strecke: 720px;
  position: absolute;
  inset: 0 0 auto;
  height: var(--kopf-strecke);
  z-index: 30;
  padding: 25px var(--kopf-rechts) 0 var(--kopf-links);
  color: var(--weiss);
  pointer-events: none;
  transition: color .2s;
}
.kopf[data-ton="dunkel"] { color: var(--schwarz); }
.menue-offen .kopf { color: var(--weiss); }

body:has(.seitenkopf) .kopf { --kopf-strecke: 560px; }

.kopf__innen {
  position: sticky;
  top: 25px;
  height: 55px;
  border-bottom: 1px solid color-mix(in srgb, currentColor 50%, transparent);
}

.kopf__logo, .kopf__menue { pointer-events: auto; color: inherit; }
.kopf__logo { position: absolute; left: 10px; top: 0; }
.kopf__logo svg { display: block; }
.kopf__name { position: absolute; right: 0; top: 5px; font-family: var(--sans); }
.kopf__menue[hidden] { display: none; }

.kopf__menue {
  position: absolute;
  right: 0;
  top: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.kopf__menue span {
  position: absolute;
  left: 5px;
  width: 30px;
  height: 2px;
  background: currentColor;
  transition: transform .2s, opacity .2s;
}
.kopf__menue span:nth-child(1) { top: 15px; }
.kopf__menue span:nth-child(2) { top: 19px; }
.kopf__menue span:nth-child(3) { top: 23px; }
.menue-offen .kopf__menue span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menue-offen .kopf__menue span:nth-child(2) { opacity: 0; }
.menue-offen .kopf__menue span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

/* Menü-Overlay */
.menue {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  padding: 100px var(--rand) 40px;
  background: var(--dunkel);
  color: var(--weiss);
  overflow-y: auto;
}
.menue[hidden] { display: none; }
.menue ul { list-style: none; width: 100%; max-width: 640px; margin-inline: auto; }
.menue li + li { margin-top: 24px; }
.menue a { font-size: 25px; line-height: 40px; text-decoration: none; }
.menue a:hover, .menue a:focus-visible, .menue a[aria-current] { text-decoration: underline; }

/* Kopfbild */
.hero {
  position: relative;
  height: 720px;
  overflow: hidden;
  color: var(--weiss);
}

/* Kopf der Unterseiten: orange Fläche mit Titel und Vereinslogo */
.seitenkopf { position: relative; height: 560px; background: var(--orange); }
.seitenkopf__innen { padding: 100px var(--rand) 0; }
.seitenkopf__titel { font-family: var(--sans); }
.seitenkopf__logo { width: 120px; height: auto; margin: 30px auto 0; }

.hero__bild {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1926);
  transform-origin: 50% 36.7%;
}

.hero__inhalt {
  position: relative;
  padding: 162px var(--rand) 0;
}
.hero__gruss { font-family: var(--sans); }
.hero__daten {
  margin-top: 218px;
  font-family: var(--mono);
  opacity: .5;
}

/* Test: neues Himmelsfoto (2026-11-12) – füllt das Kopfbild ohne Verschiebung */
.hero .hero__bild--himmel { inset: 0; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transform: none; }

/* Runde Call to Actions: laufen innerhalb ihrer Sektion mit */
.mission, .verein, .projekte, .abschnitt { position: relative; }

.cta-bahn {
  position: absolute;
  inset: var(--cta-versatz) 0 0;
  pointer-events: none;
}

.cta {
  position: sticky;
  top: calc(100vh - var(--cta-hoehe) - 12px);
  top: calc(100svh - var(--cta-hoehe) - 12px);
  z-index: 10;
  display: block;
  width: var(--cta-breite);
  height: var(--cta-hoehe);
  color: var(--weiss);
  font: 20px/30px var(--mono);
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  pointer-events: auto;
  transition: opacity .25s, transform .2s;
}
.cta-bahn--rechts .cta { margin-left: auto; margin-right: var(--cta-seitlich); }
.cta-bahn--links .cta { margin-left: var(--cta-seitlich); }
.cta:hover, .cta:focus-visible { transform: scale(1.04); }
.cta--multipliziert { color: var(--gruen); mix-blend-mode: multiply; }

/* „Jetzt Mitglied werden“: blendet nicht aus, sondern läuft unter die
   orange Mitglieder-Sektion. Die Bahn reicht dafür um eine CTA-Höhe hinein. */
.cta-bahn--mitglied {
  /* Startet im Hero bei y=339 und bleibt dort stehen (Hero mobil 720, Desktop 800 hoch) */
  top: calc(339px - 720px);
  bottom: calc(-1 * var(--cta-hoehe));
}
.cta-bahn--mitglied .cta { top: min(339px, calc(100svh - var(--cta-hoehe) - 12px)); }
/* Flächen, unter die der Button läuft */
.verein, .abschnitt--orange, .fuss { position: relative; z-index: 11; }
.seitenkopf + .abschnitt .cta-bahn--mitglied { top: calc(339px - 560px); }

.cta__aussen, .cta__innen {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  rotate: 23.75deg;
}
.cta__aussen { width: 75.5%; height: 75.9%; }
.cta__innen { width: 69.25%; height: 69.6%; }

.cta__text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .9;
}

/* Mission */
.mission { padding-block: 40px 66px; }

/* Verein */
.verein {
  padding-block: 40px 60px;
  background: var(--orange);
  text-align: center;
}
.verein__logo {
  width: 160px;
  height: 452px;
  margin: 0 auto 60px;
}

.knopf {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 60px;
  margin: 48px auto 0;
  padding: 0 10px;
  border: 1px solid var(--schwarz);
  border-radius: 5px;
  color: var(--schwarz);
  font: italic 500 16px/20px var(--serif);
  text-align: center;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}
.knopf:hover, .knopf:focus-visible { background: var(--schwarz); color: var(--orange); }

/* Projekte auf der Startseite */
.projekte { padding-block: 40px 138px; }

.projekte__raster {
  display: grid;
  gap: 24px;
  max-width: calc(320px + 2 * var(--rand));
  margin-inline: auto;
  padding-inline: var(--rand);
}

.projekte__titel {
  margin-bottom: 36px;
  font-family: var(--sans);
  color: var(--weiss);
}

.projekt { display: block; text-decoration: none; }
/* Hover aus, solange die Projekte keine Unterseiten haben: .projekt:hover span { text-decoration: underline; } */
.projekt img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.projekt span { display: block; margin-top: 16px; min-height: 40px; }

/* Abschnitte der Unterseiten */
.abschnitt { padding-block: 60px; }
.abschnitt--orange { background: var(--orange); }
.abschnitt h2 { margin-bottom: 30px; font-family: var(--sans); color: var(--weiss); }
.abschnitt--orange h2 { color: var(--schwarz); }
.abschnitt .spalte > * + h2 { margin-top: 60px; }
.abschnitt p + p { margin-top: 30px; }
.abschnitt .knopf { margin: 60px 0 0; }
.platzhalter {
  padding: 12px 16px;
  border: 1px dashed currentColor;
  font: 16px/24px var(--mono);
}

.projekt-eintrag {
  display: grid;
  gap: 24px;
  max-width: calc(320px + 2 * var(--rand));
  margin-inline: auto;
  padding-inline: var(--rand);
}
.projekt-eintrag img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }

/* Impressum + Datenschutz */
.rechtliches__spalte { max-width: calc(800px + 2 * var(--rand)); margin-inline: auto; padding-inline: var(--rand); }
.rechtliches__impressum { overflow-wrap: anywhere; }
.rechtliches__datenschutz { margin-top: 120px; font: 15px/25px var(--mono); }
.abschnitt .rechtliches__datenschutz h2 { margin-bottom: 40px; font: inherit; line-height: 30px; color: inherit; }
.rechtliches__datenschutz h3 { margin: 40px 0 0; font: inherit; }
.abschnitt .rechtliches__datenschutz p + p { margin-top: 40px; }
.rechtliches__stand { margin-top: 80px !important; }
.offen { background: var(--orange); }

/* Mitglied werden */
.mitglied__spalte {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: calc(640px + 2 * var(--rand));
  margin-inline: auto;
  padding-inline: var(--rand);
}
.abschnitt .mitglied .knopf, .mitglied .knopf { margin: 0; }
.notiz { width: 100%; max-width: 321px; font: 15px/25px var(--mono); }
.abschnitt .notiz p + p { margin-top: 25px; }
.mitglied__aufruf { text-align: center; }
.nur-breit { display: none; }

/* Footer */
.fuss {
  position: relative;
  padding-block: 41px 69px;
  background: var(--nacht);
  color: var(--weiss);
}
.fuss__innen {
  max-width: calc(640px + 2 * var(--rand));
  margin-inline: auto;
  padding-inline: var(--rand);
}
.fuss__liste { margin: 0; }
.fuss__liste > div {
  padding-block: 14px 15px;
  border-bottom: 1px solid rgb(255 255 255 / .2);
}
.fuss__liste > div:first-child { padding-top: 0; }
.fuss__liste > div:last-child { padding-bottom: 24px; }
.fuss__liste dt { font-family: var(--mono); opacity: .5; }
.fuss__liste dd { margin: 0; }
.fuss__unten { display: flex; align-items: flex-start; gap: 24px; margin-top: 38px; }
.fuss__unten svg { flex: none; }
.fuss__recht { margin-top: 5px; }
.fuss a { text-decoration: none; }
.fuss a:hover, .fuss .fuss__recht { text-decoration: underline; }

/* Desktop */
@media (min-width: 900px) {
  :root {
    --kopf-links: 160px;
    --kopf-rechts: 160px;
    --cta-breite: 280px;
    --cta-hoehe: 276px;
    --cta-versatz: -160px;
    --cta-seitlich: 0px;
  }

  .cta-bahn--rechts .cta { margin-right: 7%; }
  .cta-bahn--links .cta { margin-left: 4.65%; }
  .cta-bahn--mitglied { top: calc(339px - 800px); }
  .seitenkopf + .abschnitt .cta-bahn--mitglied { top: calc(339px - 640px); }
  .cta-bahn--mitglied .cta { margin-right: var(--spalte-rechts); }

  .hero { height: 800px; }
  .hero__bild {
    inset: auto;
    top: -7.5%;
    left: -13.5%;
    width: 136.3%;
    height: 137%;
    object-fit: fill;
    transform: none;
  }

  .hero__inhalt {
    display: grid;
    /* Live-Daten bei 41,92 % der Spalte (Figma: 676 px bei 1440) */
    grid-template-columns: calc(var(--spalte-links) + (100vw - var(--spalte-links) - var(--spalte-rechts)) * .4192) 1fr;
    padding: 162px 0 0;
  }
  .hero__gruss { padding-left: calc(var(--spalte-links) + 10px); white-space: nowrap; }
  .hero__gruss .nur-mobil { display: none; }
  .hero__daten { margin-top: -2px; }

  .mission, .verein, .abschnitt { font-size: 25px; line-height: 40px; }
  .mission .spalte { max-width: 880px; }
  .mission { padding-block: 74px 132px; }
  .verein { padding-block: 64px 39px; }
  .verein .spalte { max-width: 714px; }
  .verein__logo { margin-bottom: 38px; }
  .verein .knopf {
    width: 324px;
    height: 81px;
    margin-top: 86px;
    font-size: 20px;
    line-height: 25px;
  }

  .projekte { padding-block: 40px 218px; }
  .fuss { padding-bottom: 129px; }
  .projekte__raster {
    grid-template-columns: minmax(180px, 279px) repeat(3, minmax(0, 320px));
    gap: 40px;
    justify-content: center;
    max-width: none;
  }
  .projekte__titel { margin-bottom: 0; }
  .projekt--apfelsaft { order: 1; }
  .projekt--chronik { order: 2; }
  .projekt--muehle { order: 3; }

  .abschnitt { padding-block: 80px; }
  .abschnitt .spalte { max-width: 880px; }
  .abschnitt h2 { font-size: 20px; line-height: 30px; }
  .abschnitt p + p { margin-top: 40px; }
  .platzhalter { font-size: 18px; line-height: 28px; }

  .projekt-eintrag {
    grid-template-columns: 320px minmax(0, 480px);
    gap: 40px;
    justify-content: center;
    max-width: none;
  }

  .menue a { font-size: 40px; line-height: 56px; }

  /* Header und Footer stehen in der Content-Spalte (Figma: 240 px links, 160 px rechts bei 1440) */
  :root {
    --spalte-links: calc(max(0px, (100vw - 1440px) / 2) + min(240px, 16.667vw));
    --spalte-rechts: calc(max(0px, (100vw - 1440px) / 2) + min(160px, 11.111vw));
  }
  .kopf { --kopf-strecke: 800px; padding-inline: var(--spalte-links) var(--spalte-rechts); }
  body:has(.seitenkopf) .kopf { --kopf-strecke: 640px; }

  .fuss { min-height: 830px; padding: 125px 0 120px; }
  .fuss__innen { max-width: none; padding-inline: var(--spalte-links) var(--spalte-rechts); }
  .fuss__liste > div { display: grid; grid-template-columns: 240px 1fr; }
  .fuss__unten { gap: 0; }
  .fuss__unten svg { width: 19px; margin-right: 221px; }

  .seitenkopf { height: 640px; }
  .seitenkopf__innen { padding: 162px 0 0 var(--spalte-links); }
  .seitenkopf__logo { position: absolute; top: 101px; left: 50%; width: 160px; margin: 0; transform: translateX(-50%); }

  .rechtliches { padding-block: 82px 388px; }
  .rechtliches__impressum { font-size: 25px; line-height: 40px; }
  .rechtliches__datenschutz { margin-top: 160px; }
  .notiz { min-height: 245px; }

  .mitglied { padding-block: 80px 310px; }
  .mitglied .knopf { width: 324px; height: 81px; font-size: 20px; line-height: 25px; }
  .mitglied__aufruf { font-size: 25px; line-height: 40px; }
  .nur-breit { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
