/* Finca Felicidad — ein Stylesheet, keine externen Abhängigkeiten.
   Farben und Typografie kommen aus dem Stitch-Entwurf:
   Weiß als Grund, Creme für Karten, Waldgrün für Akzente.
   Schriften liegen lokal in /fonts (kein Google-Fonts-Request). */

@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/caveat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/caveat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --weiss: #ffffff;
  --creme: #faf8f3;
  --sand: #f3ede2;
  --wald: #2e5a36;
  --blatt: #4a7c59;
  --tinte: #26301f;
  --erde: #5c5245;
  --linie: #e3ddcf;
  --rot: #b3261e;
  --schrift: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe UI", cursive;
  --breit: 76rem;
  --radius: 1.15rem;
  --schatten: 0 10px 28px -14px rgba(46, 90, 54, 0.35);
}

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

/* Wichtig: eine eigene display-Regel (etwa .mobilnav { display: flex })
   überschreibt das hidden-Attribut des Browsers. Ohne diese Zeile wäre ein
   "verstecktes" Menü unsichtbar im Text, aber weiterhin klickbar und würde
   die Seite darunter blockieren. */
[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--weiss);
  color: var(--tinte);
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: var(--wald);
}

h1,
h2,
h3 {
  margin: 0 0 0.4em;
  line-height: 1.15;
  font-weight: 700;
  color: var(--wald);
}

p {
  margin: 0 0 1em;
}

.icon {
  width: 1.5em;
  height: 1.5em;
  flex: none;
}

.sprung {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--wald);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}
.sprung:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.innen {
  width: min(100% - 2.5rem, var(--breit));
  margin-inline: auto;
}
.innen-schmal {
  max-width: 46rem;
}

/* ---------------------------------------------------------------- Kopf */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linie);
}

.kopf-inner {
  width: min(100% - 2rem, var(--breit));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0;
  min-height: 4.4rem;
}

.marke {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  flex: none;
}

.marke-zeichen svg {
  width: 2.6rem;
  height: 2.6rem;
  display: block;
}

.marke-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.marke-name {
  font-family: var(--hand);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--wald);
}

.marke-zusatz {
  font-size: 0.7rem;
  color: var(--erde);
  max-width: 20rem;
}

.nav {
  display: none;
  margin-left: auto;
  gap: 0.15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  text-decoration: none;
  color: var(--tinte);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border-radius: 99px;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
  background: var(--creme);
  color: var(--wald);
}

.nav-link.ist-aktiv {
  background: var(--wald);
  color: #fff;
}

.sprachen {
  display: flex;
  gap: 0.2rem;
  flex: none;
}

.sprache {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--erde);
  border: 1px solid var(--linie);
  border-radius: 99px;
  padding: 0.28rem 0.55rem;
}

.sprache.ist-aktiv {
  background: var(--wald);
  border-color: var(--wald);
  color: #fff;
}

.nav-knopf {
  margin-left: auto;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 1px solid var(--linie);
  border-radius: 0.6rem;
  padding: 0.55rem 0.6rem;
  cursor: pointer;
}

.nav-knopf-strich {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--wald);
  border-radius: 2px;
}

.mobilnav {
  border-top: 1px solid var(--linie);
  padding: 0.75rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: var(--weiss);
}

.mobilnav a {
  text-decoration: none;
  color: var(--tinte);
  font-weight: 600;
  padding: 0.6rem 0.4rem;
  border-radius: 0.5rem;
}

.mobilnav a:hover {
  background: var(--creme);
}

.mobilnav-sprachen {
  display: flex;
  gap: 0.4rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--linie);
  margin-top: 0.5rem;
}

@media (min-width: 1080px) {
  .nav {
    display: flex;
  }
  .nav-knopf {
    display: none;
  }
}

/* --------------------------------------------------------------- Hero */

.hero {
  position: relative;
  padding-top: 1.25rem;
}

.hero-bild {
  position: relative;
  width: min(100% - 2.5rem, var(--breit));
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
}

.hero-foto {
  width: 100%;
  height: clamp(19rem, 52vh, 34rem);
  object-fit: cover;
  transform-origin: center;
}

/* Weicher weißer Verlauf oben und unten: der Text bleibt lesbar,
   ohne dass ein Kasten über dem Bild liegt. */
.hero-verlauf {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.72) 0%,
      rgba(255, 255, 255, 0) 32%,
      rgba(255, 255, 255, 0) 58%,
      rgba(255, 255, 255, 0.88) 100%
    ),
    linear-gradient(to top, rgba(20, 34, 22, 0.42), rgba(20, 34, 22, 0) 55%);
  pointer-events: none;
}

.hero-inhalt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(6.5rem, 14vh, 10rem);
  text-align: center;
  padding: 0 1.5rem;
  /* Der Text soll keine Klicks schlucken (das Bild darunter bleibt ruhig).
     Die Stifte im Bearbeitungsmodus brauchen Klicks und bekommen sie unten
     ausdrücklich zurück. */
  pointer-events: none;
}

body.ist-editor .hero-inhalt {
  pointer-events: auto;
}

body.ist-editor .hero-inhalt .edit-stift {
  z-index: 30;
}

.hero-unterzeile {
  margin: 0 0 0.35rem;
  font-size: clamp(0.66rem, 1.6vw, 0.85rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.hero-titel {
  font-family: var(--hand);
  font-size: clamp(3.2rem, 11vw, 7.5rem);
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 0.95;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.45);
}

.hero-leitspruch {
  font-family: var(--hand);
  font-size: clamp(1.35rem, 4vw, 2.3rem);
  color: #fff;
  margin: 0.4rem 0 0;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.5);
}

/* ------------------------------------------------------------ Säulen */

.saeulen {
  width: min(100% - 2.5rem, var(--breit));
  margin: -4.5rem auto 0;
  position: relative;
  z-index: 10;
}

.saeulen-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}

.saeule {
  background: var(--creme);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 2.1rem 0.85rem 1.1rem;
  text-align: center;
  box-shadow: var(--schatten);
  position: relative;
}

.saeule-kreis {
  position: absolute;
  top: -1.35rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  background: var(--weiss);
  border: 1.5px solid var(--blatt);
  color: var(--wald);
  display: grid;
  place-items: center;
}

.saeule-kreis .icon {
  width: 1.3rem;
  height: 1.3rem;
}

.saeule-titel {
  font-size: 0.92rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.saeule-text {
  margin: 0;
  font-size: 0.85rem;
  color: var(--erde);
  line-height: 1.4;
}

@media (min-width: 760px) {
  .saeulen-inner {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

/* --------------------------------------------------------- Abschnitte */

.abschnitt {
  padding: clamp(3.2rem, 8vw, 6rem) 0;
}

.abschnitt-ueber {
  background: var(--weiss);
}

.abschnitt-ziele {
  background: var(--creme);
}

.abschnitt-projekte {
  background: var(--weiss);
}

.abschnitt-mitmachen {
  background: var(--creme);
}

.abschnitt-kontakt {
  background: var(--weiss);
}

.kicker {
  font-family: var(--hand);
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  color: var(--blatt);
  margin: 0 0 0.1rem;
  font-weight: 600;
}

.kicker a {
  text-decoration: none;
}

.abschnitt-titel {
  font-size: clamp(1.6rem, 4.2vw, 2.6rem);
  color: var(--wald);
  letter-spacing: -0.01em;
  max-width: 34ch;
}

.fliesstext {
  color: var(--erde);
  max-width: 62ch;
}

.fliesstext p:last-child {
  margin-bottom: 0;
}

.fliesstext-schmal {
  max-width: 52ch;
}

.hinweis-klein {
  font-size: 0.85rem;
  color: var(--erde);
  margin-top: -0.4rem;
}

/* ---------------------------------------------------------- Wer wir sind */

.ueber-raster {
  display: grid;
  gap: 1.75rem;
  margin: 1.75rem 0 2.5rem;
  align-items: center;
}

.ueber-bildrahmen {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
  order: -1;
}

.ueber-foto {
  width: 100%;
  height: clamp(14rem, 30vw, 24rem);
  object-fit: cover;
  transform-origin: center;
}

@media (min-width: 900px) {
  .ueber-raster {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .ueber-bildrahmen {
    order: 0;
  }
}

.karten-drei,
.mitmach-raster,
.team-raster {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .karten-drei,
  .mitmach-raster {
    grid-template-columns: repeat(3, 1fr);
  }
  .team-raster {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1060px) {
  .mitmach-raster {
    grid-template-columns: repeat(4, 1fr);
  }
  .team-raster {
    grid-template-columns: repeat(4, 1fr);
  }
}

.karte,
.mitmach-karte {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: 0 6px 18px -14px rgba(38, 48, 31, 0.5);
}

.abschnitt-ziele .karte {
  background: var(--weiss);
}

.karte-kopf {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.karte-kreis,
.mitmach-kreis {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--creme);
  border: 1px solid var(--linie);
  color: var(--wald);
  display: grid;
  place-items: center;
  flex: none;
}

.karte-kreis .icon,
.mitmach-kreis .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.karte-titel,
.mitmach-titel {
  font-size: 1.1rem;
  margin: 0;
}

.karte-text,
.karte-liste {
  font-size: 0.92rem;
  color: var(--erde);
  margin: 0;
}

.karte-liste {
  padding-left: 1.1rem;
}

.karte-liste li {
  margin-bottom: 0.3rem;
}

.mitmach-karte {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mitmach-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--erde);
}

/* ------------------------------------------------------------ Team */

.team {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--linie);
}

.team-titel {
  font-size: 1.2rem;
}

.team-einleitung {
  color: var(--erde);
  font-size: 0.92rem;
  max-width: 60ch;
}

.portrait {
  text-align: center;
}

.portrait-bild {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
  margin-bottom: 0.75rem;
}

.portrait-foto {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.portrait-name {
  font-size: 1.05rem;
  margin: 0;
}

.portrait-rolle {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blatt);
  margin: 0.1rem 0 0.4rem;
}

.portrait-bio {
  font-size: 0.88rem;
  color: var(--erde);
}

/* Die Bearbeiten-Knöpfe der Teamplätze: nur mit Anmeldung sichtbar. */
.team-stifte {
  display: none;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

body.ist-editor .team-stifte {
  display: flex;
}

.team-stift {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--weiss);
  color: var(--wald);
  border: 1px dashed var(--blatt);
  border-radius: 99px;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
}

.team-stift:hover {
  background: var(--wald);
  color: #fff;
  border-style: solid;
}

/* ------------------------------------------------------------- Ziele */
.zielliste {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .zielliste {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1020px) {
  .zielliste {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ziel {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ziel-kreis {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--creme);
  color: var(--wald);
  display: grid;
  place-items: center;
}

.ziel-kreis .icon {
  width: 1.05rem;
  height: 1.05rem;
}

.ziel-titel {
  font-weight: 700;
  color: var(--wald);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.ziel-text {
  font-size: 0.86rem;
  color: var(--erde);
  line-height: 1.4;
}

/* --------------------------------------------------------- Kacheln */

.kacheln {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1.5rem;
}

@media (min-width: 620px) {
  .kacheln {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1020px) {
  .kacheln {
    grid-template-columns: repeat(4, 1fr);
  }
}

.kachel {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 18px -14px rgba(38, 48, 31, 0.5);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.kachel:hover {
  transform: translateY(-2px);
  box-shadow: var(--schatten);
}

.kachel-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.kachel-bild {
  display: block;
  background: var(--sand);
  overflow: hidden;
}

.kachel-foto {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transform-origin: center;
  transition: transform 0.4s ease;
}

.kachel-text {
  display: block;
  padding: 0.9rem 1rem 1.1rem;
  text-align: center;
}

.kachel-titel {
  display: block;
  font-size: 1.02rem;
  margin: 0 0 0.2rem;
}

.kachel-kurz {
  display: block;
  font-size: 0.83rem;
  color: var(--erde);
  margin: 0;
  line-height: 1.4;
}

/* -------------------------------------------------------- Beiträge */

.beitraege {
  margin-top: 1.5rem;
}

.beitrag {
  position: relative;
  background: var(--creme);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.5rem;
  overflow: hidden;
  animation: aufklappen 0.28s ease;
}

@keyframes aufklappen {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Das Themenfoto als sehr zartes Wasserzeichen: höchstens 8 % Deckkraft,
   damit der Text klar bleibt. */
.beitrag-wasserzeichen {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  filter: grayscale(0.15);
  pointer-events: none;
}

.beitrag-kopf,
.beitrag-inhalt,
.beitrag-wechsel {
  position: relative;
  z-index: 1;
}

.beitrag-kopf {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.beitrag-titel {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin: 0;
}

.beitrag-schliessen {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--erde);
  flex: none;
}

.beitrag-schliessen .icon {
  width: 1rem;
  height: 1rem;
}

.beitrag-inhalt {
  margin: 0.9rem 0 1.1rem;
  max-width: 62ch;
  color: var(--erde);
}

.beitrag-inhalt p:last-child {
  margin-bottom: 0;
}

.beitrag-wechsel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  border-top: 1px solid var(--linie);
  padding-top: 0.9rem;
}

.beitrag-wechsel button {
  font: inherit;
  font-size: 0.83rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  border: 1px solid var(--linie);
  background: var(--weiss);
  color: var(--erde);
  cursor: pointer;
}

.beitrag-wechsel button.ist-aktiv {
  background: var(--wald);
  border-color: var(--wald);
  color: #fff;
}

/* ---------------------------------------------------------- Spenden */

.spenden {
  margin-top: 2rem;
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-left: 4px solid var(--wald);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}

.spenden-titel {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.spenden-text {
  font-size: 0.9rem;
  color: var(--erde);
}

.spenden-iban {
  font-size: 0.95rem;
  margin: 0;
}

.spenden-iban span {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blatt);
  margin-right: 0.5rem;
}

/* --------------------------------------------------------- Kontakt */

.kontakt-raster {
  display: grid;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (min-width: 900px) {
  .kontakt-raster {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.knopf {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--wald);
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 99px;
  padding: 0.7rem 1.25rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
}

.knopf:hover {
  background: #24462a;
}

.knopf-gross {
  font-size: 0.95rem;
  word-break: break-word;
}

.knopf .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.kontakt-ort {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--erde);
  margin-top: 1rem;
}

.kontakt-ort .icon {
  width: 1rem;
  height: 1rem;
  color: var(--blatt);
}

.kontaktformular {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.kontaktformular label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--erde);
}

.kontaktformular input[type="text"],
.kontaktformular input[type="email"],
.kontaktformular textarea {
  font: inherit;
  font-size: 0.95rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--linie);
  border-radius: 0.6rem;
  background: var(--weiss);
  color: var(--tinte);
}

.kontaktformular input:focus,
.kontaktformular textarea:focus,
.kontaktformular button:focus-visible {
  outline: 2px solid var(--blatt);
  outline-offset: 2px;
}

.kontaktformular .einwilligung {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 400;
  font-size: 0.82rem;
  line-height: 1.45;
}

.kontaktformular .einwilligung input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--wald);
  flex: none;
}

.formular-status {
  font-size: 0.87rem;
  margin: 0;
  min-height: 1.2em;
}

.formular-status.ist-gut {
  color: var(--wald);
  font-weight: 700;
}

.formular-status.ist-schlecht {
  color: var(--rot);
  font-weight: 700;
}

/* ---------------------------------------------------------- Footer */

.fuss {
  background: var(--wald);
  color: rgba(255, 255, 255, 0.88);
  padding: 2.75rem 0 1.75rem;
  margin-top: 0;
}

.transparenz {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
  background: rgba(255, 255, 255, 0.05);
}

.transparenz-titel {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.transparenz-text {
  font-size: 0.86rem;
  line-height: 1.55;
  max-width: 70ch;
}

.transparenz-text p:last-child {
  margin-bottom: 0;
}

.fuss-unten {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.fuss-verein {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
}

.fuss-recht {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.fuss-recht a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.fuss-recht a:hover {
  color: #fff;
}

.fuss-edit {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 99px;
  color: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 0.78rem;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
}

.fuss-edit:hover {
  border-color: #fff;
  color: #fff;
}

.fuss-edit .icon {
  width: 0.9rem;
  height: 0.9rem;
}

/* ------------------------------------------------------- Rechtstexte */

.recht-main {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  min-height: 50vh;
}

.recht-text {
  max-width: 66ch;
  color: var(--erde);
  margin-top: 1.5rem;
}

.recht-text p {
  white-space: pre-wrap;
}

/* ------------------------------------------------- Bild ohne Quelle */

.bild-fehlt {
  background: repeating-linear-gradient(
    45deg,
    var(--sand),
    var(--sand) 12px,
    var(--creme) 12px,
    var(--creme) 24px
  );
  min-height: 8rem;
}

/* ---------------------------------------------------------- Editor */

/* Alles, was nur mit Anmeldung sichtbar ist, hängt an .ist-editor auf <body>. */
.edit-stift {
  display: none;
  position: absolute;
  top: -0.55rem;
  right: -0.55rem;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--wald);
  color: #fff;
  border: 2px solid var(--weiss);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  z-index: 20;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.edit-stift .icon {
  width: 0.9rem;
  height: 0.9rem;
}

body.ist-editor [data-edit],
body.ist-editor [data-edit-bild] {
  position: relative;
}

body.ist-editor [data-edit] {
  outline: 1px dashed rgba(74, 124, 89, 0.5);
  outline-offset: 3px;
  border-radius: 3px;
}

body.ist-editor [data-edit-bild] {
  outline: 1px dashed rgba(74, 124, 89, 0.75);
  outline-offset: -1px;
}

body.ist-editor .edit-stift {
  display: inline-flex;
}

/* Der Foto-Knopf sitzt am Bild und ist größer: er ist der häufigste Weg. */
.edit-foto-knopf {
  display: none;
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  z-index: 21;
  align-items: center;
  gap: 0.35rem;
  background: rgba(46, 90, 54, 0.94);
  color: #fff;
  border: none;
  border-radius: 99px;
  padding: 0.35rem 0.75rem;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.edit-foto-knopf .icon {
  width: 0.85rem;
  height: 0.85rem;
}

body.ist-editor .edit-foto-knopf {
  display: inline-flex;
}

.edit-leiste {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 90;
  display: none;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  background: #1f3d25;
  color: #fff;
  border-radius: 99px;
  padding: 0.5rem 0.7rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  max-width: calc(100vw - 1.5rem);
}

body.ist-editor .edit-leiste {
  display: flex;
}

/* Angemeldet ist der Stift im Fuß überflüssig: die Leiste unten übernimmt.
   Zwei Knöpfe mit derselben Bedeutung verwirren nur. */
body.ist-editor .fuss-edit {
  display: none;
}

.edit-leiste button,
.edit-leiste a {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 99px;
  padding: 0.3rem 0.7rem;
  text-decoration: none;
  cursor: pointer;
}

.edit-leiste button:hover,
.edit-leiste a:hover {
  background: rgba(255, 255, 255, 0.22);
}

.edit-leiste .ist-aus {
  opacity: 0.55;
}

/* --------------------------------------------------- Dialoge */

.dialog {
  border: none;
  border-radius: 1rem;
  padding: 0;
  width: min(100% - 1.5rem, 44rem);
  max-height: calc(100vh - 3rem);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  background: var(--weiss);
  color: var(--tinte);
}

.dialog::backdrop {
  background: rgba(20, 30, 22, 0.55);
  backdrop-filter: blur(2px);
}

.dialog-inhalt {
  padding: 1.35rem 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
}

.dialog-kopf {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.dialog-titel {
  font-size: 1.15rem;
  margin: 0;
}

.dialog-zu {
  background: none;
  border: 1px solid var(--linie);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--erde);
  flex: none;
}

.dialog-zu .icon {
  width: 0.9rem;
  height: 0.9rem;
}

.dialog-hinweis {
  font-size: 0.82rem;
  color: var(--erde);
  margin: 0;
}

.reiter {
  display: flex;
  gap: 0.3rem;
  border-bottom: 1px solid var(--linie);
  padding-bottom: 0.55rem;
}

.reiter button {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--linie);
  background: var(--creme);
  color: var(--erde);
  border-radius: 0.5rem 0.5rem 0 0;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
}

.reiter button[aria-selected="true"] {
  background: var(--wald);
  border-color: var(--wald);
  color: #fff;
}

.feld {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.feld label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--erde);
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.feld .zaehler {
  font-weight: 400;
  color: #8a8271;
  font-variant-numeric: tabular-nums;
}

.feld .zaehler.ist-zu-lang {
  color: var(--rot);
  font-weight: 700;
}

.feld input[type="text"],
.feld input[type="password"],
.feld input[type="email"],
.feld textarea {
  font: inherit;
  font-size: 0.92rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--linie);
  border-radius: 0.55rem;
  width: 100%;
  background: var(--weiss);
  color: var(--tinte);
}

.feld textarea {
  min-height: 8rem;
  resize: vertical;
  line-height: 1.55;
}

.feld input[type="range"] {
  width: 100%;
  accent-color: var(--wald);
}

.schieber {
  display: grid;
  gap: 0.15rem;
}

.schieber-wert {
  font-size: 0.78rem;
  color: var(--erde);
  font-variant-numeric: tabular-nums;
}

.dialog-fuss {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--linie);
  padding-top: 0.9rem;
}

.dialog-fuss .knopf-rand {
  background: none;
  border: 1px solid var(--linie);
  color: var(--erde);
}

.dialog-fuss .knopf-rand:hover {
  background: var(--creme);
}

.dialog-meldung {
  font-size: 0.82rem;
  margin: 0;
  min-height: 1.1em;
  color: var(--erde);
}

.dialog-meldung.ist-fehler {
  color: var(--rot);
  font-weight: 700;
}

/* Bildvorschau mit den beiden Reglern */
.bildvorschau {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.6rem;
  overflow: hidden;
  background: var(--sand);
  position: relative;
}

.bildvorschau img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
}

.schalter-zeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--linie);
  border-radius: 0.6rem;
  padding: 0.6rem 0.8rem;
}

.schalter-zeile span {
  font-size: 0.87rem;
  font-weight: 600;
}

.schalter {
  position: relative;
  width: 2.7rem;
  height: 1.5rem;
  flex: none;
}

.schalter input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.schalter span {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: #cfc9ba;
  transition: background-color 0.15s ease;
  pointer-events: none;
}

.schalter span::after {
  content: "";
  position: absolute;
  top: 0.18rem;
  left: 0.18rem;
  width: 1.14rem;
  height: 1.14rem;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}

.schalter input:checked + span {
  background: var(--wald);
}

.schalter input:checked + span::after {
  transform: translateX(1.2rem);
}

.schalter input:focus-visible + span {
  outline: 2px solid var(--blatt);
  outline-offset: 2px;
}

/* ------------------------------------------------------- Bewegung */

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

/* Beim Drucken: keine Stifte, keine Leisten. */
@media print {
  .kopf,
  .fuss-edit,
  .edit-leiste,
  .edit-stift,
  .edit-foto-knopf,
  .dialog {
    display: none !important;
  }
}
