/* Dorfjugend Wiedensahl – Entwurf Version 1 */

:root {
  /* Dunkel wie eine Scheune am Abend: leicht warmes Schwarz statt neutralem Grau */
  --grund: #15130f;
  --grund-2: #1e1b16;
  --text: #efe9dd;
  --text-ruhig: #d8d1c4;
  --text-leise: #aaa294;
  --linie: #36322b;
  --korn: #d9a73c;       /* Akzent: Stroh und Korn */
  --korn-dunkel: #a87a22;
  --korn-hell: #f0c463;
  --bindfaden: rgba(52, 33, 8, .8);
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Überschriften schmal und kräftig, wie Beschriftungen auf Erntewagen. Nur Systemschriften:
     Mac/iOS Avenir Next Condensed, Windows Bahnschrift, Android Roboto Condensed */
  --titel: "Avenir Next Condensed", "Bahnschrift SemiCondensed", Bahnschrift, "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  /* Strohmatte: senkrechte Halme in unregelmäßigem Takt, zwei Bindfäden quer.
     So werden die Matten für die Erntewagen gebunden. */
  --stroh:
    linear-gradient(to bottom, transparent 28%, var(--bindfaden) 28% calc(28% + 2px), transparent calc(28% + 2px) 70%, var(--bindfaden) 70% calc(70% + 2px), transparent calc(70% + 2px)),
    repeating-linear-gradient(90deg, rgba(255, 238, 180, .5) 0 1px, transparent 1px 4px, rgba(110, 72, 16, .55) 4px 5px, transparent 5px 7px),
    repeating-linear-gradient(90deg, transparent 0 5px, rgba(80, 52, 12, .45) 5px 6px, transparent 6px 11px, rgba(255, 230, 160, .35) 11px 12px, transparent 12px 17px),
    linear-gradient(to bottom, #b9852a, #e2b44f 45%, #d4a03a 60%, #a87a22);
  --breite: 1140px;
  --kopf-hoehe: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a { color: var(--korn); text-underline-offset: .2em; }
a:hover { color: #f0c463; }
:focus-visible { outline: 3px solid var(--korn); outline-offset: 3px; }

h1, h2, h3 {
  margin: 0 0 .5em;
  font-family: var(--titel);
  font-stretch: condensed;
  line-height: 1.05;
  font-weight: 700;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); max-width: 22ch; }
h3 { font-size: 1.625rem; }
p { margin: 0 0 1em; }

.rahmen {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 700px) {
  .rahmen { padding-inline: 32px; }
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: .5em 1em;
  background: var(--korn);
  color: #000;
}
.skip-link:focus { top: 12px; }

/* Kopf */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--grund);  /* deckend, sonst zeichnet sich das Wappen als Kasten ab */
  border-bottom: 1px solid var(--linie);
}
.kopf-innen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--kopf-hoehe);
}
.marke {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.25;
}
.marke:hover { color: var(--text); }

/* Das Wappen ist schwarz auf weiß (JPG-Herkunft, ohne Transparenz).
   Invertiert und mit "screen" verschmilzt der schwarze Grund mit dem dunklen Hintergrund. */
.wappen {
  width: 44px;
  height: auto;
  filter: invert(1);
  mix-blend-mode: screen;
}

.navi {
  display: flex;
  gap: 4px;
  font-size: .9375rem;
}
.navi a {
  padding: .5em .6em;
  color: var(--text);
  text-decoration: none;
  border-radius: 4px;
}
.navi a:hover { color: var(--korn); }

@media (max-width: 599px) {
  .marke span { display: none; }
  .navi { font-size: .875rem; gap: 0; }
  .navi a { padding: .5em .45em; }
}

/* Titel */

.titel {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: calc(100vh - var(--kopf-hoehe));
  min-height: calc(100svh - var(--kopf-hoehe));
  overflow: hidden;
  isolation: isolate;
}
.titel picture, .titel-bild {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.titel-bild {
  object-fit: cover;
  object-position: 50% 35%;
  z-index: -2;
}
.titel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(21, 19, 15, .92) 0%, rgba(21, 19, 15, .6) 28%, rgba(21, 19, 15, .05) 55%);
}
.titel-text { padding-block: 48px 40px; }
@media (max-width: 899px) {
  .titel::after { background: linear-gradient(to top, rgba(21, 19, 15, .94) 0%, rgba(21, 19, 15, .7) 45%, rgba(21, 19, 15, .1) 80%); }
}
/* Breit: Überschrift links, Text rechts daneben, damit die Wappen auf den Rücken frei bleiben */
@media (min-width: 900px) {
  .titel-text {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 56px;
    align-items: end;
    padding-block: 40px 48px;
  }
  .titel-text { grid-template-columns: auto minmax(18rem, 1fr); }
  .titel-text h1 { grid-column: 1; grid-row: 1 / span 2; align-self: end; margin-bottom: 0; }
  .titel-text .einleitung { grid-column: 2; grid-row: 1; align-self: end; margin-bottom: 0; }
  .titel-text .naechster { grid-column: 2; grid-row: 2; justify-self: start; margin-top: 16px; margin-bottom: 0; }
}
.titel h1 {
  font-size: clamp(3.75rem, 1rem + 11vw, 8.5rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .82;
  letter-spacing: -.01em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.einleitung {
  max-width: 36ch;
  font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem);
  color: var(--text);
}

/* Das Leitmotiv: ein Streifen Strohmatte als Saum unter dem Titelfoto */
.strohmatte {
  height: clamp(22px, 2.6vw, 34px);
  background: var(--stroh);
  box-shadow: inset 0 1px 0 rgba(255, 240, 190, .35), inset 0 -2px 0 rgba(0, 0, 0, .35);
}

.naechster {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 1em;
  padding: .75em 1.1em;
  border-left: 3px solid var(--korn);
  background: rgba(21, 19, 15, .72);
}
.naechster[hidden] { display: none; }
.naechster-label {
  color: var(--text-leise);
  font-size: .875rem;
}
.naechster-wert { font-weight: 700; }

/* Abschnitte */

.abschnitt {
  padding-block: clamp(64px, 8vw, 112px);
  scroll-margin-top: var(--kopf-hoehe);
}
.abschnitt-dunkel { background: var(--grund-2); }
.abschnitt-akzent { background: var(--korn); color: #1a1407; }

.zweispaltig {
  display: grid;
  gap: 40px;
}
.zweispaltig p { max-width: 60ch; color: var(--text-ruhig); }
@media (min-width: 900px) {
  .zweispaltig { grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: end; }
}

/* Steckbrief mit Punktführung, wie im Programmheft vom Erntefest */
.steckbrief { margin: 0; }
.steckbrief div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 .6em;
  padding-block: 10px;
}
.steckbrief dt {
  display: flex;
  flex: 1 0 auto;
  color: var(--text-leise);
}
.steckbrief dt::after {
  content: "";
  flex: 1;
  min-width: 2em;
  margin-left: .6em;
  border-bottom: 2px dotted var(--linie);
  transform: translateY(-.3em);
}
.steckbrief dd {
  margin: 0;
  font-family: var(--titel);
  font-stretch: condensed;
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.2;
  color: var(--korn);
}

.gruppenfoto { margin-top: 56px; margin-bottom: 0; }
.gruppenfoto img { width: 100%; }
figcaption, .hinweis {
  margin-top: .6em;
  color: var(--text-leise);
  font-size: .875rem;
}

/* Feste */

.feste {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}
/* Breit: beide Feste gleichwertig nebeneinander, das Foto darunter über die volle Breite */
@media (min-width: 900px) {
  .feste { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .feste .fest-foto { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
}
.fest {
  display: flex;
  flex-direction: column;
  background: var(--grund);
  border: 1px solid var(--linie);
}
.fest-foto { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 40%; }
.fest-text { padding: 28px 24px 12px; }
.fest p { color: var(--text-ruhig); }
/* Osterfeuer ohne Foto: Feuerschein von unten statt Bild (bis ein gutes Foto da ist) */
#osterfeuer {
  border-top: 4px solid var(--korn);
  background:
    radial-gradient(120% 70% at 50% 115%, rgba(232, 110, 32, .55), rgba(217, 167, 60, .12) 55%, transparent 75%),
    var(--grund);
}
#osterfeuer .fest-text { padding-bottom: 96px; }
#erntefest { border-top: 4px solid var(--korn); }
.fest-text { padding-top: 32px; }
.fest .termin-datum { font-size: 1.375rem; }

.termin {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.1em;
}
.termin-regel { color: var(--text-leise); font-size: .9375rem; }
.termin-datum { color: var(--korn); font-weight: 700; font-size: 1.125rem; }
.termin-datum:empty { display: none; }

.unterzeile { margin-top: 56px; }

/* Ablauf: die vier Schritte hängen an einem Strang Stroh */
.ablauf {
  --knoten: 44px;
  position: relative;
  display: grid;
  gap: 28px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: schritt;
}
.ablauf::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--knoten) / 2 - 6px);
  width: 12px;
  background: var(--stroh);
  background-size: auto;
  border-radius: 2px;
}
.ablauf li {
  position: relative;
  min-height: var(--knoten);
  padding-left: calc(var(--knoten) + 20px);
  color: var(--text-ruhig);
  font-size: .9375rem;
  counter-increment: schritt;
}
.ablauf li::before {
  content: counter(schritt);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: var(--knoten);
  height: var(--knoten);
  border: 2px solid var(--korn);
  border-radius: 50%;
  background: var(--grund-2);
  color: var(--korn);
  font-family: var(--titel);
  font-stretch: condensed;
  font-weight: 800;
  font-size: 1.375rem;
}
.ablauf strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--text);
  font-family: var(--titel);
  font-stretch: condensed;
  font-size: 1.375rem;
  line-height: 1.1;
}
/* Breit: Strang waagerecht, Schritte nebeneinander */
@media (min-width: 1000px) {
  .ablauf { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .ablauf::before {
    left: 0;
    right: 0;
    bottom: auto;
    top: calc(var(--knoten) / 2 - 7px);
    width: auto;
    height: 14px;
  }
  .ablauf li { padding-left: 0; padding-top: calc(var(--knoten) + 12px); }
}

.ausserdem p { max-width: 60ch; color: var(--text-ruhig); }

/* Fotos */

.fotoreihe {
  display: grid;
  gap: 16px;
  margin: 32px 0;
}
@media (min-width: 900px) {
  .fotoreihe { grid-template-columns: 1fr 1fr; }
}
.fotoreihe img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.knopf {
  display: inline-block;
  padding: .85em 1.4em;
  background: var(--korn);
  color: #1a1407;
  font-weight: 700;
  text-decoration: none;
  border-radius: 3px;
}
.knopf:hover { background: var(--korn-hell); color: #1a1407; }
.knopf-hell { background: var(--grund); color: var(--text); overflow-wrap: anywhere; }
.knopf-hell:hover { background: #000; color: #fff; }

/* Entwurf: Stellen, an denen noch Angaben von Chris fehlen */
[data-offen], .offen { outline: 2px dashed #e5484d; outline-offset: 4px; }

/* Mitmachen */

.mitmachen {
  display: grid;
  gap: 24px;
  align-items: center;
}
.mitmachen h2 { color: #1a1407; }
.mitmachen p { margin-bottom: 0; }
@media (min-width: 900px) {
  .mitmachen { grid-template-columns: 1.4fr 1fr; }
  .mitmachen > p { justify-self: end; }
}

/* Fuß */

.fuss {
  padding-block: 28px;
  border-top: 1px solid var(--linie);
  color: var(--text-leise);
  font-size: .875rem;
}
.fuss-innen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.fuss p { display: flex; align-items: center; gap: 10px; margin: 0; }
.fuss .wappen { width: 28px; }
.fuss nav { display: flex; gap: 20px; }
.fuss a { color: var(--text-leise); }
.fuss a:hover { color: var(--korn); }

/* Rechtstexte */

.seitenkopf { padding-block: 56px 8px; }
.rechtstext { padding-bottom: 80px; }
.rechtstext > * { max-width: 760px; }
.rechtstext h2 { font-size: 1.25rem; margin-top: 2em; }
.rechtstext h3 { font-size: 1.0625rem; margin-top: 1.5em; }
.rechtstext p, .rechtstext li { color: var(--text-ruhig); }
.rechtstext ul { padding-left: 1.2em; }
.stand { margin-top: 2.5em; color: var(--text-leise); font-size: .875rem; }
