/*
  Fluff Farm – Rechtsseiten
  Alles wird vom eigenen Server ausgeliefert: keine Schriften, Skripte oder
  Bilder von Dritten. Beim Aufruf verlässt kein Byte den Server.
*/

:root {
  /* Papier und Karten – leicht durchscheinend, damit die Wiese mitspielt.
     Die Deckkraft ist bewusst hoch: Rechtstexte müssen lesbar bleiben. */
  --creme: rgba(248, 240, 220, 0.94);
  --creme-tief: #f1e5c8;
  --creme-rand: #e3d3ae;
  --panel: rgba(250, 244, 228, 0.9);

  /* Schrift */
  --braun-dunkel: #4e3212;
  --braun: #6b4a24;
  --braun-hell: #8a6a44;

  /* Holz */
  --holz: #8a5f33;
  --holz-tief: #6d4823;
  --holz-hell: #a67a45;

  /* Akzente aus der Wiese */
  --gruen: #6f9e3a;
  --rosa: #f2a3b3;

  --radius-gross: 30px;
  --radius: 18px;
  --radius-klein: 12px;

  --schatten-karte: 0 10px 30px rgba(78, 50, 18, 0.18);
  --schatten-weich: 0 4px 14px rgba(78, 50, 18, 0.12);

  --spalte: 62rem;
  --schrift: "Nunito", "Segoe UI Rounded", ui-rounded, "Trebuchet MS", "Segoe UI",
    system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--braun);
  background-color: #86c9ea;
}

/*
  Der Hintergrund liegt in einer fest positionierten Ebene hinter dem Inhalt.
  Über "background-attachment: fixed" wäre das kürzer, aber iOS Safari ignoriert
  das – dort würde bei langen Rechtstexten unterhalb des Bildes eine leere
  Fläche stehen bleiben.
*/
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #86c9ea;
  background-image: image-set(url("hintergrund-v2.webp") type("image/webp"), url("hintergrund-v2.jpg") type("image/jpeg"));
  background-size: cover;
  /* Leicht nach oben gezogen, damit das Schaf über der Inhaltskarte
     vollständig sichtbar bleibt und nicht halb dahinter verschwindet. */
  background-position: center -6%;
  background-repeat: no-repeat;
}

.huelle {
  width: 100%;
  max-width: var(--spalte);
  margin-inline: auto;
  padding-inline: clamp(0.75rem, 3vw, 1.5rem);
}

/* ---------- Kopfzeile ---------- */

.kopf {
  margin-top: clamp(0.75rem, 2vw, 1.5rem);
  background: var(--creme);
  border-radius: 999px;
  box-shadow: var(--schatten-karte);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem clamp(1rem, 3vw, 1.75rem);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.kopf__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: none;
}

.kopf__logo img {
  display: block;
  height: clamp(54px, 8vw, 84px);
  width: auto;
  filter: drop-shadow(0 3px 5px rgba(78, 50, 18, 0.25));
}

.navigation {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(0.35rem, 1.6vw, 1.1rem);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.navigation a {
  color: var(--braun);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
}

.navigation a:hover {
  color: var(--braun-dunkel);
  background: var(--creme-tief);
}

.navigation a[aria-current="page"] {
  background: var(--creme-tief);
  box-shadow: inset 0 0 0 2px var(--creme-rand);
  color: var(--braun-dunkel);
}

.sprache {
  font-size: 0.8rem !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 2px var(--creme-rand);
}

/* ---------- Holzschild als Seitentitel ---------- */

/*
  Das Titelschild ist eine freigestellte Grafik. Der Text sitzt in festen
  Prozentbereichen darauf: die Überschrift auf dem dunklen Brett, die
  Unterzeile auf dem hellen Band darunter. Die Schriftgrößen rechnen in
  Container-Einheiten (cqw), damit der Text exakt mit dem Schild mitwächst.
*/
.schild {
  container-type: inline-size;
  position: relative;
  /* Der untere Abstand gibt dem Schaf im Hintergrund Luft. */
  margin: clamp(1.25rem, 3vw, 2.25rem) auto clamp(2.5rem, 5vw, 4.25rem);
  width: 100%;
  max-width: 40rem;
  aspect-ratio: 1400 / 540;
  background: image-set(url("schild-v2.webp") type("image/webp"), url("schild-v2.png") type("image/png"))
    no-repeat center / 100% 100%;
  filter: drop-shadow(0 10px 22px rgba(78, 50, 18, 0.28));
}

.schild h1 {
  position: absolute;
  /* Innenmaß des dunklen Bretts */
  left: 14%;
  right: 14%;
  top: 7%;
  height: 57%;
  margin: 0;
  display: grid;
  place-items: center;
  font-size: 8.5cqw;
  font-weight: 800;
  line-height: 1.02;
  color: #fffbf2;
  text-shadow: 0 3px 5px rgba(60, 35, 10, 0.5);
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Für lange Seitentitel wie „Nutzungsbedingungen" */
.schild--lang h1 {
  font-size: 5.4cqw;
}

.schild__unterschrift {
  position: absolute;
  /* Innenmaß des hellen Bandes */
  left: 8%;
  right: 8%;
  top: 71%;
  height: 24%;
  display: grid;
  place-items: center;
  color: #7a5227;
  font-weight: 700;
  font-size: 3.4cqw;
  line-height: 1.1;
  text-align: center;
  overflow-wrap: anywhere;
}

/* ---------- Inhaltskarte ---------- */

.karte {
  background: var(--panel);
  backdrop-filter: blur(6px) saturate(1.05);
  -webkit-backdrop-filter: blur(6px) saturate(1.05);
  border-radius: var(--radius-gross);
  box-shadow: var(--schatten-karte);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

/* Zweispaltiges Raster für Angaben wie im Impressum */
.angaben {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.angabe {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.angabe__icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--creme);
  box-shadow:
    inset 0 -2px 4px rgba(120, 85, 40, 0.15),
    var(--schatten-weich);
  display: grid;
  place-items: center;
  color: var(--holz);
}

.angabe__icon svg {
  width: 26px;
  height: 26px;
}

.angabe h2 {
  margin: 0.1rem 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--braun-dunkel);
  line-height: 1.25;
}

.angabe p {
  margin: 0;
}

.angabe p + p {
  margin-top: 0.15rem;
}

.angabe--voll {
  grid-column: 1 / -1;
}

.trenner {
  grid-column: 1 / -1;
  height: 1px;
  background: var(--creme-rand);
  border: 0;
  margin: 0;
}

/* Hinweiskasten am Fuß einer Karte */
.hinweis {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  background: var(--creme);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.35rem);
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: inset 0 0 0 2px var(--creme-rand);
}

.hinweis__icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--panel);
  display: grid;
  place-items: center;
  color: var(--rosa);
  box-shadow: var(--schatten-weich);
}

.hinweis__text {
  flex: 1 1 16rem;
}

.hinweis__text strong {
  display: block;
  color: var(--braun-dunkel);
  font-size: 1.05rem;
}

.hinweis__text p {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
}

.knopf {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, #fffaf0, var(--creme-tief));
  color: var(--braun-dunkel);
  font-weight: 800;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 2px var(--creme-rand),
    var(--schatten-weich);
  white-space: nowrap;
}

.knopf:hover {
  background: linear-gradient(180deg, #fffdf7, #f6ecd4);
}

.knopf svg {
  width: 20px;
  height: 20px;
  color: var(--holz);
}

/* ---------- Kachelraster der Übersicht ---------- */

/* Bewusst höchstens zwei Spalten – so bleibt das 2×2-Raster der Entwurfsvorlage
   erhalten, statt bei breiten Fenstern auf drei Spalten umzubrechen. */
.kacheln {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.85rem, 2.5vw, 1.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 40rem) {
  .kacheln {
    grid-template-columns: 1fr 1fr;
  }
}

.kachel {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--creme);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.4rem);
  text-decoration: none;
  color: inherit;
  box-shadow: inset 0 0 0 2px rgba(227, 211, 174, 0.7);
}

.kachel:hover {
  background: #fffaf0;
  box-shadow:
    inset 0 0 0 2px var(--creme-rand),
    var(--schatten-weich);
}

.kachel__icon {
  flex: none;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--holz);
}

.kachel__icon svg {
  width: 42px;
  height: 42px;
}

.kachel h2 {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
  color: var(--braun-dunkel);
}

.kachel p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.kachel__pfeil {
  margin-left: auto;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--panel);
  display: grid;
  place-items: center;
  color: var(--braun-hell);
  box-shadow: var(--schatten-weich);
}

/* ---------- Fließtext der Rechtstexte ---------- */

.text {
  max-width: 44rem;
  margin-inline: auto;
}

.text > *:first-child {
  margin-top: 0;
}

.text h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--braun-dunkel);
  line-height: 1.3;
  scroll-margin-top: 1.5rem;
}

.text h3 {
  margin: 1.6rem 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--braun-dunkel);
}

.text p,
.text ul,
.text ol {
  margin: 0 0 1rem;
}

.text ul,
.text ol {
  padding-left: 1.35rem;
}

.text li {
  margin-bottom: 0.35rem;
}

.text li::marker {
  color: var(--gruen);
}

.text a {
  color: #8a5a1e;
  text-underline-offset: 0.16em;
  overflow-wrap: anywhere;
}

.text a:hover {
  color: var(--braun-dunkel);
}

.text strong {
  color: var(--braun-dunkel);
}

/*
  Hinweis auf den englischen Seiten: Die deutsche Fassung ist die
  maßgebliche. Ohne diesen Vorrang wäre bei einer Abweichung zwischen
  beiden Sprachfassungen unklar, welche gilt.
*/
.uebersetzungshinweis {
  background: var(--creme);
  box-shadow: inset 0 0 0 2px var(--creme-rand);
  border-radius: var(--radius-klein);
  padding: 0.85rem 1.15rem;
  margin: 0 0 1.75rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

/*
  Noch nicht ausgefüllte Angaben. Deutlich sichtbar, damit keine davon
  versehentlich veröffentlicht wird. Vor dem Ausrollen darf keine
  Fundstelle mehr übrig sein.
*/
.luecke {
  background: rgba(226, 118, 90, 0.16);
  box-shadow: inset 0 -2px 0 rgba(196, 84, 56, 0.55);
  border-radius: 3px;
  padding: 0 0.25em;
  font-weight: 700;
  color: #9d4224;
}

.stand {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--braun-hell);
  background: var(--creme);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.tabelle-rollt {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.text table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 32rem;
}

.text th,
.text td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.9rem 0.6rem 0;
  border-bottom: 1px solid var(--creme-rand);
}

.text th {
  color: var(--braun-dunkel);
  font-weight: 800;
}

/* ---------- Fußzeile ---------- */

.fuss {
  background: var(--creme);
  border-radius: 999px;
  box-shadow: var(--schatten-karte);
  padding: 0.9rem clamp(1rem, 3vw, 2rem);
  margin-bottom: clamp(1rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 0.88rem;
}

.fuss__spruch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-style: italic;
  color: var(--braun-hell);
}

.fuss__spruch svg {
  width: 18px;
  height: 18px;
  color: var(--rosa);
  flex: none;
}

.fuss nav {
  display: flex;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
}

.fuss a {
  color: var(--braun);
  text-decoration: none;
  font-weight: 700;
}

.fuss a:hover {
  color: var(--braun-dunkel);
  text-decoration: underline;
}

.fuss a[aria-current="page"] {
  color: var(--braun-dunkel);
}

/* ---------- Bedienhilfen ---------- */

.zum-inhalt {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  background: var(--creme);
  color: var(--braun-dunkel);
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-klein);
  font-weight: 800;
  z-index: 20;
}

.zum-inhalt:focus {
  left: 1rem;
}

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

/* ---------- Kleine Schirme ---------- */

@media (max-width: 48rem) {
  body::before {
    background-image: image-set(url("hintergrund-mobil-v2.webp") type("image/webp"), url("hintergrund-mobil-v2.jpg") type("image/jpeg"));
    background-position: 20% top;
  }

  /* Auf dem Handy schaut das Schaf zwischen Titelschild und Karte hervor.
     Der größere Abstand hält diese Lücke frei. */
  .schild {
    margin-bottom: 6.5rem;
  }

  .kopf {
    flex-wrap: wrap;
    border-radius: var(--radius-gross);
    justify-content: center;
  }

  .navigation {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    gap: 0.2rem;
  }

  .navigation a {
    font-size: 0.85rem;
    padding: 0.35rem 0.6rem;
  }

  .fuss {
    border-radius: var(--radius-gross);
    justify-content: center;
    text-align: center;
  }

  .fuss nav {
    justify-content: center;
  }
}

@media (max-width: 30rem) {
  .angabe {
    gap: 0.75rem;
  }

  .angabe__icon {
    width: 44px;
    height: 44px;
  }

  .angabe__icon svg {
    width: 22px;
    height: 22px;
  }

  .hinweis {
    justify-content: center;
    text-align: center;
  }
}

/* ---------- Druck ---------- */

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .kopf,
  .fuss,
  .zum-inhalt,
  .kachel__pfeil {
    display: none;
  }

  .karte,
  .schild {
    box-shadow: none;
    background: #fff;
  }

  .schild h1 {
    color: #000;
    text-shadow: none;
  }

  .text a {
    color: #000;
  }
}

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