/* Haideshof · Flurkarte Eggingen
   Flächenfarben aus Acker, Wiese und Siegel. Fjalla One für Überschriften, Barlow für Text. */

@font-face { font-family: "Fjalla One"; src: url("../fonts/fjalla-one-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-500i.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  --siegel: #3e1a04;        /* Logo-Braun, Text und dunkle Flächen */
  --siegel-hell: #6b3a1c;
  --acker: #dcb75e;         /* Stoppelfeld */
  --acker-tief: #c99d3c;
  --wiese: #8d9a45;
  --wiese-tief: #4f5a22;
  --kalk: #f4efe2;          /* Kartenpapier, Stallwand */
  --ziegel: #b4532a;        /* Ortsmarken auf der Karte */
  --ziegel-text: #7f3214;   /* Ziegelrot als Schriftfarbe, auf Acker und Kalk lesbar */
  --auf-gruen: #f3f0d8;
  --auf-braun: #efe2c8;

  --display: "Fjalla One", "Arial Narrow", sans-serif;
  --text: "Barlow", system-ui, sans-serif;
  --wrap: 1200px;
  --rand: clamp(16px, 4.5vw, 56px);
  --abschnitt: clamp(72px, 11vw, 144px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--siegel-hell) var(--kalk); }
body {
  margin: 0;
  background: var(--acker);
  color: var(--siegel);
  font: 400 1.1875rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--acker); color: var(--siegel); }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--siegel); outline-offset: 3px; border-radius: 2px; }
.leiste :focus-visible, .nebel :focus-visible, .f-wiese :focus-visible, .f-braun :focus-visible, .karte-abschnitt :focus-visible, .fuss :focus-visible { outline-color: #fff; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0.005em;
  margin: 0 0 0.45em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.25rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
p { margin: 0 0 1em; max-width: 64ch; }
.gross { font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.5; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--rand); }

.skip { position: absolute; left: -9999px; top: 10px; z-index: 100; background: var(--acker); color: var(--siegel); padding: 10px 16px; font-weight: 600; }
.skip:focus { left: 16px; }

/* ---------- Leiste ---------- */
.leiste { position: sticky; top: 0; z-index: 50; background: var(--siegel); color: var(--auf-braun); }
.leiste .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; padding: 6px 0; flex: none; }
.marke img { width: clamp(124px, 12vw, 148px); height: auto; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav ul { gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 9px; padding: 10px 12px; white-space: nowrap;
  font: 400 1.08rem/1 var(--display); letter-spacing: 0.04em;
  color: var(--auf-braun); text-decoration: none; border-radius: 3px;
  transition: color .2s, background-color .2s;
}
/* kleines Legendenquadrat statt Unterstrich */
.nav a::before {
  content: ""; width: 7px; height: 7px; flex: none; background: currentColor;
  opacity: 0; transform: scale(.3);
  transition: opacity .25s, transform .25s cubic-bezier(.2, .8, .2, 1);
}
.nav a:hover { color: #fff; }
.nav a:hover::before { opacity: .55; transform: scale(.75); }
.nav a[aria-current="page"] { color: var(--acker); }
.nav a[aria-current="page"]::before { opacity: 1; transform: none; }
.menue {
  display: none; background: none; color: #fff; cursor: pointer;
  border: 1.5px solid rgba(239, 226, 200, .5); border-radius: 3px;
  padding: 10px 14px; font: 400 1.05rem/1 var(--display); letter-spacing: .06em;
}
@media (max-width: 1080px) {
  .menue { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--siegel); padding: 6px var(--rand) 18px; }
  .nav.offen { display: block; }
  .nav ul { flex-direction: column; }
  .nav ul { gap: 4px; padding-top: 6px; }
  .nav a { padding: 13px 4px; font-size: 1.35rem; }
  .nav a::before { opacity: .35; transform: scale(.7); }
}

/* ---------- Startbild ---------- */
.nebel {
  position: relative; overflow: hidden;
  min-height: min(90vh, 880px);
  display: flex; align-items: stretch;
  color: #fff; background: #6b5a3c;
}
.nebel > img.foto, .nebel > picture > img.foto, .nebel .dia img.foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.nebel::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(40, 22, 6, .5) 0%, rgba(40, 22, 6, .16) 46%, rgba(40, 22, 6, 0) 70%),
    linear-gradient(180deg, rgba(40, 22, 6, 0) 55%, rgba(40, 22, 6, .5) 100%);
}
.nebel .wrap { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding-top: clamp(28px, 6vh, 72px); padding-bottom: clamp(36px, 7vh, 72px); }
.nebel h1 { margin: 0; }
.nebel h1 img { width: clamp(220px, 30vw, 400px); filter: drop-shadow(0 2px 18px rgba(30, 14, 2, .35)); }
.nebel .unten { max-width: 560px; }
.nebel .unten p { font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.45; text-shadow: 0 1px 14px rgba(30, 14, 2, .55); margin-bottom: 1.2em; }

.nebel.mit-karte { min-height: min(80vh, 760px); }
.nebel.mit-karte .wrap { padding-bottom: clamp(150px, 20vh, 190px); }
.seitenkopf { min-height: min(62vh, 600px); }
.seitenkopf .wrap { justify-content: flex-end; }
.seitenkopf h1 { text-shadow: 0 2px 22px rgba(30, 14, 2, .45); max-width: 16ch; margin-bottom: .3em; }
.seitenkopf p { font-size: clamp(1.15rem, 1.6vw, 1.35rem); max-width: 46ch; text-shadow: 0 1px 12px rgba(30, 14, 2, .6); margin: 0; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 24px 14px;
  background: var(--acker); color: var(--siegel);
  font: 400 1.15rem/1 var(--display); letter-spacing: .04em;
  text-decoration: none; border: 0; border-radius: 3px; cursor: pointer;
  box-shadow: 0 6px 18px -8px rgba(30, 14, 2, .55);
  transition: background .2s, transform .2s cubic-bezier(.2, .8, .2, 1);
}
/* Icons aus Lucide (ISC), als Maske eingefärbt in der Schriftfarbe */
.knopf.i-korb { --icon: url("../img/icons/shopping-basket.svg"); }
.knopf.i-route { --icon: url("../img/icons/route.svg"); }
.knopf.i-stern { --icon: url("../img/icons/star.svg"); }
.knopf.i-karte { --icon: url("../img/icons/map.svg"); }
.knopf.i-stall { --icon: url("../img/icons/warehouse.svg"); }
.knopf.i-geschichte { --icon: url("../img/icons/history.svg"); }
.knopf.i-ort { --icon: url("../img/icons/map-pin.svg"); }
.knopf.i-mail { --icon: url("../img/icons/mail.svg"); }
.knopf.i-kalender { --icon: url("../img/icons/calendar-check.svg"); }
.knopf.i-aktuelles { --icon: url("../img/icons/newspaper.svg"); }
.knopf:not([class*="i-"])::after { content: none; }
.knopf::after {
  content: ""; width: 20px; height: 20px; flex: none; background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.knopf:hover { background: #e8c56f; transform: translateY(-1px); text-decoration: none; }
.knopf:hover::after { transform: scale(1.12); }
.knopf.dunkel { background: var(--siegel); color: var(--auf-braun); }
.knopf.dunkel:hover { background: var(--siegel-hell); }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* ---------- Flächen ---------- */
.flaeche { padding: var(--abschnitt) 0; }
.f-acker { background: var(--acker); }
.f-wiese { background: var(--wiese-tief); color: var(--auf-gruen); }
.f-wiese a:not(.knopf) { color: #fff; }
.f-braun { background: var(--siegel); color: var(--auf-braun); }
.f-braun a:not(.knopf) { color: #fff; }
.f-kalk { background: var(--kalk); }  /* nur Kartenpapier */

.zwei { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(36px, 7vw, 104px); align-items: center; }
.zwei.umgekehrt > :first-child { order: 2; }
@media (max-width: 860px) { .zwei { grid-template-columns: minmax(0, 1fr); } .zwei.umgekehrt > :first-child { order: 0; } }

.bild { margin: 0; }
.bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1.5px solid currentColor; padding: 6px; background: color-mix(in srgb, currentColor 8%, transparent); }
.bild.hoch img { aspect-ratio: 4 / 5; }
.bild figcaption { font: italic 500 1rem/1.4 var(--text); margin-top: 10px; }

/* ---------- Karte ---------- */
.karte-abschnitt { background: var(--wiese-tief); color: var(--auf-gruen); padding: 0 0 var(--abschnitt); }
.karte-kopf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.karte-kopf h2, .karte-kopf p { margin: 0; }
@media (max-width: 860px) { .karte-kopf { grid-template-columns: 1fr; } }

.karte { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.karte .legende { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); }
.karte .legende li { border-bottom: 0; }
@media (max-width: 960px) { .karte .legende { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .karte .legende li { border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent); } }
@media (max-width: 560px) { .karte .legende { grid-template-columns: minmax(0, 1fr); } }
.karte-blatt { margin-top: clamp(-150px, -16vh, -110px); z-index: 2; box-shadow: 0 18px 40px -18px rgba(20, 10, 2, .6); }
.karte-text { padding-top: clamp(40px, 5vw, 64px); }
.karte-text h2 { color: #fff; }
@media (max-width: 960px) { .karte { grid-template-columns: minmax(0, 1fr); } }
.karte-blatt { position: relative; background: var(--kalk); color: var(--siegel); border: 1.5px solid var(--siegel); padding: 8px; }
.karte-blatt svg { display: block; width: 100%; height: auto; }
.karte-blatt .karte-hoch { display: none; }
@media (max-width: 700px) {
  .karte-blatt .karte-quer { display: none; }
  .karte-blatt .karte-hoch { display: block; }
  .karte-blatt { margin-top: -96px; }
}

.ort { cursor: pointer; transition: transform .35s cubic-bezier(.2, .8, .2, 1), filter .35s; transform-box: fill-box; transform-origin: center; }
.ort:hover, .ort:focus-visible, .ort.aktiv { transform: translateY(-5px); filter: drop-shadow(0 7px 5px rgba(62, 26, 4, .35)); }
.ort:focus { outline: none; }
.flurname { font: italic 500 20px var(--text); fill: var(--siegel-hell); letter-spacing: .02em; }
.ortname { font: 400 24px var(--display); fill: var(--siegel); letter-spacing: .03em; }
.mass { font: italic 500 20px var(--text); fill: var(--siegel); }
.weg-zeichnen { stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 2.4s cubic-bezier(.3, .7, .2, 1) .3s; }
.karte.sichtbar .weg-zeichnen, .ohne-js .weg-zeichnen { stroke-dashoffset: 0; }

.legende { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1.5px solid currentColor; }
.legende li { border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.legende button {
  all: unset; box-sizing: border-box; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px;
  width: 100%; padding: 16px 4px; cursor: pointer;
}
.legende button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.legende .zeichen { width: 22px; height: 22px; margin-top: 3px; border: 1.5px solid var(--auf-gruen); }
.legende strong { display: block; font: 400 1.3rem/1.15 var(--display); letter-spacing: .02em; transition: color .2s; }
.legende .t { display: block; font-size: 1.02rem; line-height: 1.45; margin-top: 4px; }
.legende button:hover strong, .legende button.aktiv strong { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Maßlinie (Geschichte) ---------- */
.masslinie { list-style: none; margin: clamp(36px, 5vw, 60px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid currentColor; }
.masslinie li { position: relative; padding: 24px 24px 0 0; }
.masslinie li::before { content: ""; position: absolute; left: 0; top: -12px; width: 2px; height: 22px; background: currentColor; }
.masslinie .jahr { display: block; font: 400 clamp(2rem, 3.6vw, 3rem)/1 var(--display); color: var(--acker); margin-bottom: 10px; }
.masslinie p { font-size: 1.04rem; line-height: 1.45; margin: 0; }
@media (max-width: 860px) {
  .masslinie { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 2px solid currentColor; row-gap: 0; }
  .masslinie li { padding: 0 0 30px 30px; }
  .masslinie li::before { left: -12px; top: 18px; width: 22px; height: 2px; }
  .masslinie li:last-child { padding-bottom: 4px; }
}

.chronik { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--siegel); }
.chronik li { position: relative; padding: 0 0 clamp(28px, 4vw, 44px) clamp(24px, 4vw, 44px); }
.chronik li::before { content: ""; position: absolute; left: -12px; top: 18px; width: 22px; height: 2px; background: var(--siegel); }
.chronik .jahr { display: block; font: 400 clamp(1.9rem, 3.4vw, 2.6rem)/1.1 var(--display); color: var(--ziegel-text); }
.chronik p { margin: 6px 0 0; }

/* ---------- Aktuelles ---------- */
.beitraege { margin-top: clamp(28px, 4vw, 48px); border-top: 1.5px solid var(--siegel); }
.beitrag { display: grid; grid-template-columns: 150px minmax(0, 1fr) 260px; gap: clamp(20px, 3.5vw, 48px); padding: 30px 0; border-bottom: 1px solid rgba(62, 26, 4, .3); align-items: start; }
.beitrag time { font: 400 1.1rem/1.3 var(--display); letter-spacing: .04em; color: var(--ziegel-text); padding-top: 4px; }
.beitrag h3 { margin-bottom: .3em; }
.beitrag p { margin: 0; }
.beitrag img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
@media (max-width: 760px) { .beitrag { grid-template-columns: 1fr; gap: 12px; } .beitrag img { order: -1; } }

/* ---------- Listen, Tabellen ---------- */
.feldliste { list-style: none; margin: 0 0 1.4em; padding: 0; border-top: 1px solid currentColor; }
.feldliste li { padding: 12px 0 12px 30px; border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent); position: relative; }
.feldliste li::before { content: ""; position: absolute; left: 2px; top: 25px; width: 14px; height: 2px; background: currentColor; }

.preise { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; }
.preise th, .preise td { padding: 18px 0; border-bottom: 1px solid rgba(62, 26, 4, .35); text-align: left; vertical-align: baseline; }
.preise tr:first-child th, .preise tr:first-child td { border-top: 1.5px solid var(--siegel); }
.preise th { font-weight: 600; }
.preise th small { display: block; font-weight: 400; font-size: .95rem; }
.preise td { text-align: right; font: 400 2rem/1 var(--display); font-variant-numeric: tabular-nums; }

.adresse { font: 400 1.6rem/1.3 var(--display); letter-spacing: .02em; margin-bottom: 1.2em; }

.galerie { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; margin-top: clamp(32px, 5vw, 56px); }
.galerie img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
@media (max-width: 700px) { .galerie { grid-template-columns: 1fr 1fr; } .galerie img:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; } }

/* Google-Karte mit Zwei-Klick */
.gmap { position: relative; aspect-ratio: 4 / 3; background: var(--wiese-tief); color: var(--auf-gruen); border-radius: 2px; overflow: hidden; }
.gmap .zustimmung { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(24px, 4vw, 44px); }
.gmap .zustimmung strong { font: 400 1.7rem/1.1 var(--display); color: #fff; }
.gmap .zustimmung p { font-size: 1.02rem; margin: .5em 0 1.3em; }
.gmap .zustimmung a { color: #fff; }
.gmap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Rechtstexte */
.recht h1 { hyphens: auto; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.recht h2 { font-size: 1.7rem; margin-top: 1.8em; }
.recht h3 { font-size: 1.25rem; margin-top: 1.4em; }
.recht p, .recht li { font-size: 1.06rem; }

/* ---------- Fuß ---------- */
.fuss { background: var(--siegel); color: var(--auf-braun); padding: clamp(56px, 8vw, 96px) 0 28px; }
.fuss a { color: #fff; }
.fuss-raster { display: grid; grid-template-columns: 200px 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.fuss-raster img { width: 170px; }
.fuss h2 { font-size: 1.35rem; margin-bottom: .5em; color: #fff; }
.fuss p { font-size: 1.05rem; margin: 0; }
.fuss-unten { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(239, 226, 200, .22); font-size: .98rem; }
.fuss-unten nav { display: flex; gap: 22px; }
@media (max-width: 760px) { .fuss-raster { grid-template-columns: 1fr; } .fuss-raster img { width: 140px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .weg-zeichnen { stroke-dashoffset: 0; }
}

/* Legendenzeichen der Karte als Ortsbezug in Überschriften */
.zeichen-inline { display: inline-block; width: .5em; height: .5em; margin: 0 .28em .1em 0; vertical-align: middle; border: 2px solid currentColor; }
.z-hof { border-radius: 50%; background: var(--ziegel); }
.z-stall { background: currentColor; }
.z-acker { background: var(--acker); }

/* Kontaktseite */
.kontakt-mail { margin: 1.4em 0 0; padding: 18px 0; border-top: 1.5px solid currentColor; border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.kontakt-name { display: block; font-weight: 600; margin-bottom: 6px; }
.kontakt-zeile { display: block; font-size: 1.15rem; line-height: 1.7; }
.kontakt-zeile a { font: inherit; letter-spacing: 0; }
.kontakt-mail a { font: 400 clamp(1.4rem, 2.4vw, 1.9rem)/1.2 var(--display); letter-spacing: .02em; overflow-wrap: anywhere; }
.anschriften { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); margin-top: clamp(24px, 3vw, 40px); border-top: 1.5px solid currentColor; padding-top: 28px; }
.anschriften h3 { margin-bottom: .5em; }
.anschriften p { margin: 0; }
.anschriften .knopf-reihe { margin-top: 1.2em; }
@media (max-width: 860px) { .anschriften { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 861px) {
  h2:has(> .zeichen-inline) { position: relative; }
  h2 > .zeichen-inline { position: absolute; left: -.85em; top: .3em; margin: 0; }
}

/* Vermessungsmaß: Linie mit Endstrichen, Wert in der Mitte */
.massangabe { display: flex; align-items: center; gap: 14px; max-width: 520px; margin: .2em 0 1.2em; font: italic 500 1.08rem/1.2 var(--text); }
.massangabe::before, .massangabe::after { content: ""; flex: 1; height: 14px; border-top: 0; background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat; border-inline: 1.5px solid currentColor; }
.massangabe::before { border-right: 0; }
.massangabe::after { border-left: 0; }
.massangabe span { white-space: nowrap; }

/* Startseite: Leitsatz im Startbild, durchgehender Willkommenstext */
.nebel .unten .leitsatz { font: 400 clamp(1.9rem, 4vw, 3rem)/1.1 var(--display); letter-spacing: .01em; margin-bottom: .7em; }
.zwischen { margin-top: 1.6em; font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.bildstapel { display: grid; gap: clamp(16px, 2vw, 24px); }
@media (min-width: 861px) { .bildstapel { position: sticky; top: 96px; } }

/* Unser Hof: Bild ungeschnitten im Querformat */
.bild.quer img { aspect-ratio: 3 / 2; object-position: 50% 60%; }

/* Kühlanhänger: Fotostrecke direkt unter den Preisen, auf Ackergrund */
.f-kalk-frei { background: var(--acker); padding: 0 0 var(--abschnitt); }
.galerie.anhaenger { margin-top: 0; grid-template-columns: 1.6fr 1fr 1fr; }
.galerie.anhaenger img { border: 1.5px solid var(--siegel); padding: 6px; background: color-mix(in srgb, var(--siegel) 8%, transparent); }
.galerie.anhaenger img:first-child { aspect-ratio: 4 / 3; }
.galerie.anhaenger img:not(:first-child) { aspect-ratio: 3 / 4; height: auto; }
@media (max-width: 700px) { .galerie.anhaenger { grid-template-columns: 1fr 1fr; } .galerie.anhaenger img:first-child { grid-column: 1 / -1; } }

/* Knöpfe auf Ackergrund dunkel, sonst verschwinden sie im Hintergrund */
.f-acker .knopf:not(.dunkel), .f-kalk-frei .knopf:not(.dunkel) { background: var(--siegel); color: var(--auf-braun); }
.f-acker .knopf:not(.dunkel):hover, .f-kalk-frei .knopf:not(.dunkel):hover { background: var(--siegel-hell); color: #fff; }

/* Startseite: langsamer Wechsel der Startbilder */
.nebel .dia { position: absolute; inset: 0; opacity: 0; transition: opacity 2.6s ease-in-out; }
.nebel .dia.aktiv { opacity: 1; }
.nebel .dia:nth-of-type(2) img.foto { object-position: 50% 55%; }
.wechsel-pause {
  position: absolute; z-index: 2; right: max(16px, var(--rand)); bottom: clamp(18px, 4vh, 36px);
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, .6); background: rgba(40, 22, 6, .35); color: #fff;
  display: grid; place-items: center; transition: background .2s;
}
.wechsel-pause::before {
  content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("../img/icons/pause.svg") center / contain no-repeat; mask: url("../img/icons/pause.svg") center / contain no-repeat;
}
.wechsel-pause[aria-pressed="true"]::before { -webkit-mask-image: url("../img/icons/play.svg"); mask-image: url("../img/icons/play.svg"); }
.wechsel-pause:hover { background: rgba(40, 22, 6, .6); }
@media (prefers-reduced-motion: reduce) { .nebel .dia { transition: none; } }
