/* Hofgemeinschaft Dorfleben e.V. – gemeinsames Stylesheet für alle Seiten

   Farben stammen vom Hof selbst:
   Blau   = Fensterrahmen am rosa Gutshaus
   Lachs  = Putz des Gutshauses
   Kalk   = heller Kalkputz
   Wiese  = Grün des Gartens
   Alle Textfarben erreichen mindestens Kontrast 4,5:1 (WCAG 2.1 AA), Fließtext mehr als 14:1. */

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Bitter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/bitter-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Bitter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/bitter-latin-800-normal.woff2") format("woff2");
}

:root {
  --kalk: #f2f5f1;
  --weiss: #ffffff;
  --tinte: #1c2433;
  --tinte-leise: #4a5568;
  --blau: #1e3e96;
  --blau-tief: #14275f;
  --lachs: #f4bba6;
  --wiese: #2f6b43;
  --linie: #cfd8cf;

  --text: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --titel: "Bitter", Georgia, "Times New Roman", serif;

  --max: 76rem;
  --rand: clamp(1rem, 0.4rem + 3vw, 2.25rem);
  --lesebreite: 38rem;
  --navi-breite: 15rem;
}

/* ---------- Grundlagen ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--kalk);
  color: var(--tinte);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.65;
}

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

figure {
  margin: 0;
}

figcaption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--tinte-leise);
}

/* Basisstil für Links mit Spezifität 0, damit Klassen ihn immer überschreiben */
:where(a) {
  color: var(--blau);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}
:where(a):hover {
  color: var(--blau-tief);
  text-decoration-thickness: 0.16em;
}

:focus-visible {
  outline: 3px solid var(--blau);
  outline-offset: 3px;
  border-radius: 2px;
}

main:focus {
  outline: none;
}

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

.sprung {
  position: absolute;
  left: var(--rand);
  top: -5rem;
  z-index: 10;
  padding: 0.75rem 1.25rem;
  background: var(--blau);
  color: var(--weiss);
  font-weight: 700;
}
.sprung:focus {
  top: 0.5rem;
  outline-color: var(--weiss);
  outline-offset: -6px;
}

/* ---------- Kopfbereich ---------- */

.kopf {
  background: var(--weiss);
  border-bottom: 1px solid var(--linie);
}

.kopf-innen {
  width: min(100% - 2 * var(--rand), var(--max));
  margin-inline: auto;
  padding-block: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.marke {
  display: flex;
  flex: 1 1 12rem;
  align-items: center;
  min-width: 0;
  gap: 0.9rem;
  color: var(--blau-tief);
  text-decoration: none;
}

.marke-zeichen {
  flex: none;
  width: 2rem;
  height: 2.5rem;
}

.marke-name {
  font-family: var(--titel);
  font-weight: 800;
  font-size: clamp(1.15rem, 0.95rem + 1.1vw, 1.65rem);
  line-height: 1.15;
}

.marke-zusatz {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--text);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--tinte-leise);
}

/* Auf kleinen Bildschirmen bleibt neben dem Namen Platz für den Menü-Knopf;
   der Leitsatz steht gleich darunter in der Überschrift und im Fußbereich. */
@media (max-width: 39.99em) {
  .marke-zusatz {
    display: none;
  }
}

.menu-knopf {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.4rem 1rem;
  font: 700 1rem/1 var(--text);
  color: var(--blau-tief);
  background: var(--weiss);
  border: 2px solid var(--blau);
  border-radius: 0.3rem;
  cursor: pointer;
}
.js .menu-knopf {
  display: inline-flex;
}
.menu-knopf svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ---------- Seitenrahmen mit Menü ---------- */

.rahmen {
  flex: 1;
  width: min(100% - 2 * var(--rand), var(--max));
  margin-inline: auto;
  padding-block: 1.5rem 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem 3rem;
}

.navi {
  padding: 1rem 1.25rem;
  background: var(--weiss);
  border: 1px solid var(--linie);
}
.js .navi {
  display: none;
}
.js .navi.ist-offen {
  display: block;
}

.navi-gruppe + .navi-gruppe {
  margin-top: 1.5rem;
}

.navi-titel {
  margin: 0 0 0.35rem;
  font-family: var(--titel);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blau-tief);
}

.navi ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.navi a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-left: 4px solid transparent;
  color: var(--tinte);
  line-height: 1.3;
  text-decoration: none;
}
.navi a:hover {
  background: var(--kalk);
  color: var(--tinte);
  text-decoration: underline;
}
.navi a[aria-current="page"] {
  border-left-color: var(--blau);
  background: var(--kalk);
  color: var(--blau-tief);
  font-weight: 700;
}

.extern::after {
  content: "";
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-left: 0.4em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%231e3e96' stroke-width='1.6'%3E%3Cpath d='M5 2H2v8h8V7M7 1.5h3.5V5M10.5 1.5 5.5 6.5'/%3E%3C/svg%3E") no-repeat center / contain;
}

@media (min-width: 60em) {
  .rahmen {
    grid-template-columns: var(--navi-breite) minmax(0, 1fr);
    padding-block: 2.5rem 4rem;
  }
  .js .menu-knopf {
    display: none;
  }
  .navi,
  .js .navi {
    display: block;
    align-self: start;
    padding: 0;
    background: none;
    border: 0;
  }
  .navi a {
    margin-left: -0.75rem;
  }
}

/* ---------- Inhalt ---------- */

.inhalt {
  min-width: 0;
  container-type: inline-size;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--titel);
  color: var(--blau-tief);
  line-height: 1.15;
  overflow-wrap: break-word;
  hyphens: auto;
}
h1 {
  font-weight: 800;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  letter-spacing: -0.01em;
}
h2 {
  font-weight: 700;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}

h1,
h2 {
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.fliess {
  max-width: var(--lesebreite);
}
.fliess > * + * {
  margin-top: 1.2rem;
}
.fliess > h2 {
  margin-top: 2.4rem;
}
.fliess > .ziele,
.fliess > .namen {
  margin-top: 2.2rem;
}

.einstieg {
  max-width: 34rem;
  font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  line-height: 1.5;
}

.seite {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem 3rem;
}

.beiwerk {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 1.5rem;
}
.beiwerk figure {
  flex: 1 1 11rem;
  max-width: 18rem;
}

@media (min-width: 80em) {
  .seite--mit-bildern {
    grid-template-columns: minmax(0, var(--lesebreite)) 14rem;
  }
  .beiwerk {
    flex-direction: column;
    flex-wrap: nowrap;
  }
  .beiwerk figure {
    flex: none;
    max-width: none;
  }
}

/* ---------- Knöpfe ---------- */

.knopfreihe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.knopf {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.6rem 1.4rem;
  background: var(--blau);
  border: 2px solid var(--blau);
  border-radius: 0.3rem;
  color: var(--weiss);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
.knopf:hover {
  background: var(--blau-tief);
  border-color: var(--blau-tief);
  color: var(--weiss);
}
.knopf--hell {
  background: var(--weiss);
  color: var(--blau-tief);
}
.knopf--hell:hover {
  background: var(--kalk);
  color: var(--blau-tief);
}

/* ---------- Startseite ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem 3rem;
  align-items: center;
}
.hero-text > * + * {
  margin-top: 1.4rem;
}

/* Der Bogen: Durchgang in der Scheune, als Rahmen für das Titelfoto */
.bogenbild {
  width: min(100%, 21rem);
  padding: 0 0.9rem 0.9rem 0;
}
.bogenbild img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px 0 0;
  box-shadow: 0.9rem 0.9rem 0 var(--lachs);
}

@container (min-width: 44rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 21rem;
  }
  .bogenbild {
    justify-self: end;
  }
}

.abschnitt {
  margin-top: 4rem;
}
.abschnitt > * + * {
  margin-top: 1.25rem;
}

.blick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 1.5rem;
}
.blick img {
  width: 100%;
}

.band {
  margin-top: 4rem;
  padding: clamp(1.5rem, 1rem + 3vw, 3rem);
  background: var(--lachs);
  color: var(--tinte);
}
.band > * + * {
  margin-top: 1.1rem;
}
.band a {
  color: var(--blau-tief);
}
.leitsatz {
  max-width: 34rem;
  font-family: var(--titel);
  font-weight: 700;
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem);
  line-height: 1.3;
  color: var(--blau-tief);
}

.wege {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1.75rem 2rem;
  margin: 4rem 0 0;
  padding: 0;
  list-style: none;
}
.wege a {
  font-family: var(--titel);
  font-weight: 700;
  font-size: 1.3rem;
}
.wege p {
  margin-top: 0.3rem;
}

/* ---------- Unterseiten ---------- */

.ziele {
  display: grid;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ziele li {
  position: relative;
  padding-left: 2.6rem;
  font-family: var(--titel);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.55rem);
  line-height: 1.35;
}
.ziele li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.35rem;
  height: 1.65rem;
  background: var(--lachs);
  border: 3px solid var(--blau);
  border-radius: 999px 999px 0 0;
}

.namen {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.namen li {
  font-family: var(--titel);
  font-weight: 800;
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
  line-height: 1.2;
  color: var(--blau-tief);
}

.plan {
  max-width: 36rem;
}
.plan img {
  width: 100%;
  background: var(--weiss);
  border: 1px solid var(--linie);
}

.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 2rem 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.galerie img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--weiss);
}
.galerie a {
  display: block;
}

.zeitleiste {
  margin: 0;
  padding: 0;
}
.zeitleiste > div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0 1rem;
  padding-block: 0.85rem;
  border-top: 1px solid var(--linie);
}
.zeitleiste > div:last-child {
  border-bottom: 1px solid var(--linie);
}
.zeitleiste dt {
  font-family: var(--titel);
  font-weight: 800;
  line-height: 1.5;
  color: var(--blau-tief);
}
.zeitleiste dd {
  margin: 0;
}
@container (max-width: 26rem) {
  .zeitleiste > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.1rem;
  }
}

.linkliste {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.linkliste a {
  font-family: var(--titel);
  font-weight: 700;
  font-size: 1.3rem;
}

.fliess > .zeitleiste,
.fliess > .linkliste {
  margin-top: 2rem;
}

address {
  font-family: var(--titel);
  font-style: normal;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.4;
}

/* ---------- Fußbereich ---------- */

.fuss {
  background: var(--blau-tief);
  color: var(--weiss);
}
.fuss-innen {
  width: min(100% - 2 * var(--rand), var(--max));
  margin-inline: auto;
  padding-block: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.25rem 3rem;
  align-items: start;
}
.fuss-name {
  font-family: var(--titel);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.3;
}
.fuss ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fuss a {
  display: inline-block;
  padding-block: 0.4rem;
  color: var(--weiss);
}
.fuss :focus-visible {
  outline-color: var(--weiss);
}

/* ---------- Sonderfälle ---------- */

@media (forced-colors: active) {
  .knopf,
  .menu-knopf {
    border-color: ButtonText;
  }
  .navi a[aria-current="page"] {
    border-left-color: Highlight;
  }
}

@media print {
  .sprung,
  .menu-knopf,
  .navi,
  .fuss {
    display: none;
  }
  body {
    background: var(--weiss);
    font-size: 12pt;
  }
  .rahmen {
    display: block;
  }
  .bogenbild img {
    box-shadow: none;
  }
}

/* ---------- Presseartikel (Bild), einfache Listen, Stand-Zeile ---------- */

.artikel {
  max-width: 1000px;
  margin-top: 1.5rem;
}
.artikel img {
  width: 100%;
  background: var(--weiss);
  border: 1px solid var(--linie);
}
.artikel + .fliess {
  margin-top: 1.5rem;
}

.fliess > .stand {
  margin-top: 2.5rem;
  font-size: 0.95rem;
  color: var(--tinte-leise);
}
