/* Wüthrich Blumen – Farben aus dem Logo, Schriften lokal gehostet */

@font-face { font-family: "Lora"; src: url("/fonts/lora.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/fonts/lora-italic.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Heros"; src: url("/fonts/heros.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Heros"; src: url("/fonts/heros-bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --tanne: #2A4433;        /* Logo-Grün */
  --tanne-tief: #1E3226;
  --ocker: #D09C3C;        /* Sonnenblume im Logo */
  --ocker-hell: #E8C377;
  --rost: #B96842;         /* Dahlie im Logo */
  --rost-tief: #96502F;
  --papier: #FBF8F2;
  --packpapier: #E9DCC2;
  --sand: #F1E7D3;        /* helle Leiste */
  --leinen: #E2D4B8;
  --bast: #CDB78A;
  --tinte: #22301F;
  --tinte-weich: #4A5646;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Heros", "Helvetica Neue", Arial, sans-serif;

  --bar-h: 84px;
  --rand: clamp(16px, 4vw, 48px);
  --breite: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rost-tief); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--tanne); }
:focus-visible { outline: 3px solid var(--ocker); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.35rem; line-height: 1.25; }
p { margin: 0 0 1em; max-width: 62ch; }
.gross { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.5; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--tanne); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.rahmen { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }
.abschnitt { padding: clamp(64px, 10vw, 128px) 0; scroll-margin-top: var(--bar-h); }
.kopf { margin-bottom: clamp(32px, 5vw, 56px); }
.kopf h2 { margin-bottom: .35em; }
.kopf p { font-size: 1.15rem; color: var(--tinte-weich); }

/* Knöpfe */
.knopf {
  display: inline-block;
  font-family: var(--sans);
  font-size: .95rem;
  letter-spacing: .02em;
  padding: .85em 1.5em;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color .2s, color .2s;
}
.knopf--hell { background: var(--papier); color: var(--tanne); }
.knopf--hell:hover { background: var(--ocker-hell); color: var(--tanne-tief); }
.knopf--rand { border-color: rgba(255,255,255,.8); color: #fff; }
.knopf--rand:hover { background: rgba(255,255,255,.15); color: #fff; }
.knopf--gruen { background: var(--tanne); color: #fff; }
.knopf--gruen:hover { background: var(--tanne-tief); color: #fff; }

/* ---------- Fixe Leiste ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--bar-h);
  background: rgba(241, 231, 211, .97);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.bar.ist-gescrollt { border-bottom-color: rgba(42,68,51,.12); box-shadow: 0 6px 18px -14px rgba(30,50,38,.5); }
.bar__inner { height: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--rand); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.bar__logo img { height: calc(var(--bar-h) - 16px); width: auto; }
.bar__logo { flex: none; }
.nav { margin-left: auto; }
.bar__rechts { display: flex; align-items: center; gap: 18px; }
.sozial { list-style: none; margin: 0; padding: 0 0 0 18px; display: flex; gap: 6px; border-left: 1px solid rgba(42,68,51,.2); }
.sozial a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--tanne); transition: background-color .2s, color .2s; }
.sozial a:hover { background: var(--tanne); color: var(--sand); }
.sozial svg { display: block; }
.sozial--gross { border-left: 0; padding: 0; margin-top: 4px; gap: 10px; }
.sozial--gross a { width: 48px; height: 48px; border: 1.5px solid rgba(42,68,51,.35); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(14px, 1.8vw, 28px); }
.nav a {
  font-family: var(--sans); font-size: .95rem; color: var(--tanne);
  text-decoration: none; padding: 6px 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--ocker); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:hover::after, .nav a.ist-aktiv::after { transform: scaleX(1); }

.bar__toggle { display: none; }

@media (max-width: 1040px) {
  :root { --bar-h: 66px; }
  .bar__toggle {
    display: inline-flex; align-items: center; gap: 10px;
    background: none; border: 0; padding: 10px 4px; cursor: pointer;
    font-family: var(--sans); font-size: .95rem; color: var(--tanne);
  }
  .bar__toggle-lines, .bar__toggle-lines::before, .bar__toggle-lines::after {
    display: block; width: 22px; height: 2px; background: var(--tanne); position: relative; transition: transform .2s, background-color .2s;
  }
  .bar__toggle-lines::before, .bar__toggle-lines::after { content: ""; position: absolute; left: 0; }
  .bar__toggle-lines::before { top: -7px; }
  .bar__toggle-lines::after { top: 7px; }
  .bar__toggle[aria-expanded="true"] .bar__toggle-lines { background: transparent; }
  .bar__toggle[aria-expanded="true"] .bar__toggle-lines::before { transform: translateY(7px) rotate(45deg); }
  .bar__toggle[aria-expanded="true"] .bar__toggle-lines::after { transform: translateY(-7px) rotate(-45deg); }

  .bar__rechts { margin-left: auto; gap: 10px; }
  .sozial { border-left: 0; padding: 0; gap: 2px; }
  .nav {
    position: fixed; top: var(--bar-h); left: 0; right: 0; margin: 0;
    background: var(--sand);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.ist-offen { max-height: 80vh; border-bottom: 1px solid rgba(42,68,51,.12); }
  .nav ul { flex-direction: column; gap: 0; padding: 8px var(--rand) 20px; }
  .nav a { display: block; font-family: var(--serif); font-size: 1.35rem; padding: 12px 0; border-bottom: 1px solid rgba(42,68,51,.08); }
  .nav a::after { display: none; }
  .nav a.ist-aktiv { color: var(--rost-tief); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: min(100svh, calc(var(--bar-h) + 50vw));
  min-height: 560px;
  padding-top: var(--bar-h);
  display: flex; align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--tanne-tief);
}
.hero picture { position: absolute; top: var(--bar-h); left: 0; right: 0; bottom: 0; }
.hero__img { display: block; width: 100%; height: 100%; }
.hero__img { object-fit: cover; object-position: 50% 0%; }
.hero::after {
  content: ""; position: absolute; inset: var(--bar-h) 0 0 0;
  background: linear-gradient(180deg, rgba(20,34,25,0) 35%, rgba(20,34,25,.72) 100%),
              linear-gradient(90deg, rgba(20,34,25,.45) 0%, rgba(20,34,25,0) 60%);
}
.hero__text {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--breite); margin: 0 auto;
  padding: 0 var(--rand) clamp(48px, 9vh, 96px);
}
.hero h1 {
  font-size: clamp(2.7rem, 7.4vw, 6.2rem);
  line-height: 1.1;
  font-weight: 500;
  max-width: 11ch;
  margin-bottom: .35em;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.hero__ort { display: block; font-style: italic; color: var(--ocker-hell); margin-top: .06em; }
.hero p { font-size: clamp(1.08rem, 1.6vw, 1.28rem); max-width: 44ch; margin-bottom: 1.6em; color: rgba(255,255,255,.94); }
.hero__links { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 700px) {
  .hero { height: auto; min-height: calc(var(--bar-h) + 148vw); }
  .hero::after { background: linear-gradient(180deg, rgba(20,34,25,.05) 25%, rgba(20,34,25,.82) 78%); }
  .hero__img { object-position: 50% 0%; }
}

/* ---------- So geht's ---------- */
.sogehts {
  background-color: var(--leinen);
  background-image: url("/img/muster-beige.png"), url("/img/struktur-leinen.jpg");
  background-size: 920px auto, auto;
}
.sogehts .schritt figure { border: 8px solid var(--papier); border-radius: 6px; box-shadow: 0 16px 28px -18px rgba(60,40,10,.55); }
.sogehts .kopf p, .sogehts .schritt p { color: #3E4A3A; }
.schritte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.5vw, 48px); }
.schritt figure { margin: 0 0 22px; overflow: hidden; border-radius: 4px; }
.schritt figure img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.schritt__text { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: baseline; }
.schritt__nr { grid-row: span 2; font-style: italic; font-size: 3.4rem; line-height: .8; color: var(--ocker); }
.schritt h3 { margin-bottom: .4em; }
.schritt p { grid-column: 2; color: var(--tinte-weich); }

@media (max-width: 820px) {
  .schritte { grid-template-columns: 1fr; gap: 48px; }
  .schritt figure img { aspect-ratio: 5 / 4; }
}

/* ---------- Aktuell: Pflanzenetiketten ---------- */
.aktuell { background: var(--tanne); color: #fff; position: relative; }
.kopf--hell h2 { color: #fff; }
.kopf--hell p { color: rgba(255,255,255,.86); }
.aktuell__stand { font-family: var(--sans); font-size: .9rem; color: var(--ocker-hell) !important; margin-top: -.3em; }
.aktuell__stand:empty { display: none; }

.etiketten {
  list-style: none; margin: 0; padding: 36px 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 56px 32px;
}
@media (max-width: 900px) { .etiketten { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.etikett {
  position: relative;
  background: var(--packpapier);
  color: var(--tinte);
  padding: 34px 14px 20px;
  border-radius: 46% 46% 6px 6px / 22px 22px 6px 6px;
  box-shadow: 0 14px 22px -16px rgba(0,0,0,.55);
  transform: rotate(var(--dreh, 0deg));
}
.etikett:nth-child(4n+1) { --dreh: -1.6deg; }
.etikett:nth-child(4n+2) { --dreh: 1.1deg; }
.etikett:nth-child(4n+3) { --dreh: -0.6deg; }
.etikett:nth-child(4n+4) { --dreh: 1.8deg; }
/* Loch */
.etikett::before {
  content: ""; position: absolute; top: 11px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; background: var(--tanne); box-shadow: inset 0 1px 2px rgba(0,0,0,.4);
}
/* Bastschnur */
.etikett::after {
  content: ""; position: absolute; top: -36px; left: 50%; width: 3px; height: 54px; margin-left: -1.5px;
  background: repeating-linear-gradient(180deg, var(--bast) 0 5px, #b9a271 5px 7px);
  border-radius: 2px; transform: rotate(calc(var(--dreh, 0deg) * -3)); transform-origin: bottom center;
}
.etikett img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 2px; }
.etikett h3 { font-style: italic; font-size: 1.45rem; margin: 14px 4px 2px; text-align: center; hyphens: auto; overflow-wrap: break-word; }
.etikett p { font-size: .98rem; line-height: 1.5; margin: 0 4px; color: var(--tinte-weich); }
@media (max-width: 560px) {
  .etiketten { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 14px; }
  .etikett { padding: 28px 9px 12px; }
  .etikett h3 { font-size: 1rem; margin: 10px 0 0; hyphens: none; overflow-wrap: normal; white-space: nowrap; letter-spacing: -0.01em; }
  .etikett p { font-size: .86rem; margin: 0 2px; }
}

/* ---------- Über uns ---------- */
.personen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px); }
.person__bild { aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; background: var(--packpapier); margin-bottom: 16px; }
.person__bild img { width: 100%; height: 100%; object-fit: cover; }
.person__platzhalter { height: 100%; display: grid; place-items: center; align-content: center; gap: 10px; color: var(--tinte-weich); font-family: var(--sans); font-size: .9rem; border: 1.5px dashed rgba(42,68,51,.25); border-radius: 4px; }
.person__platzhalter img { width: 30%; height: auto; opacity: .8; }
.person h3 { color: var(--tanne); }
.person__rolle { font-family: var(--sans); font-size: .9rem; color: var(--rost-tief); margin: 4px 0 8px; }
.person__text { color: var(--tinte-weich); font-size: 1rem; }
@media (max-width: 900px) { .personen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .personen { gap: 16px; } .person h3 { font-size: 1.1rem; } }

/* ---------- Hofgeschichte ---------- */
.geschichte { background: var(--packpapier); }
.geschichte__raster { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.geschichte__raster.mit-bild { grid-template-columns: 1.15fr .85fr; }
.geschichte__text h2 { margin-bottom: .5em; }
.geschichte__text p { font-size: 1.15rem; color: var(--tinte-weich); }
.geschichte__bild { margin: 0; }
.geschichte__bild img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.geschichte__bild figcaption { font-style: italic; font-size: .95rem; color: var(--tinte-weich); margin-top: 8px; }
.geschichte__bild figcaption:empty { display: none; }
@media (max-width: 820px) { .geschichte__raster.mit-bild { grid-template-columns: 1fr; } .geschichte__bild { max-width: 420px; } }

/* ---------- Impressionen ---------- */
.galerie { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 12px; }
.galerie li { aspect-ratio: 1 / 1; }
.galerie li.gross-bild { grid-column: span 2; grid-row: span 2; }
.galerie li[hidden] { display: none; }
.galerie button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--packpapier); cursor: zoom-in; border-radius: 3px; overflow: hidden; }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.galerie button:hover img { transform: scale(1.03); }
.galerie__mehr { margin: 32px 0 0; max-width: none; text-align: center; }
.galerie__mehr[hidden] { display: none; }
.knopf--linie { background: none; border-color: var(--tanne); color: var(--tanne); cursor: pointer; }
.knopf--linie:hover { background: var(--tanne); color: #fff; }
@media (max-width: 700px) { .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(18,28,21,.92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; border-radius: 3px; }
.lightbox__btn {
  position: fixed; background: rgba(251,248,242,.12); color: #fff; border: 0; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; font-family: var(--serif);
}
.lightbox__btn:hover { background: rgba(251,248,242,.25); }
.lightbox__zu { top: 16px; right: 16px; }
.lightbox__zurueck { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__vor { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Anfahrt ---------- */
.anfahrt { padding-top: 0; }
.anfahrt__raster { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: stretch; }
.anfahrt address { font-style: normal; font-size: 1.3rem; line-height: 1.5; margin: .6em 0 1em; color: var(--tanne); }
.anfahrt__text h2 { margin-bottom: .45em; }
.anfahrt__text .knopf { margin: 6px 0 32px; }
.anfahrt__bild { width: 70%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.karte { min-height: 420px; border-radius: 4px; overflow: hidden; background: var(--packpapier); }
.karte iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
@media (max-width: 820px) {
  .anfahrt__raster { grid-template-columns: 1fr; }
  .anfahrt__bild { display: none; }
  .karte, .karte iframe { min-height: 340px; }
}

/* ---------- Kontakt ---------- */
.kontakt { background: var(--tanne); color: #fff; }
.kontakt h2 { color: #fff; margin-bottom: .45em; }
.kontakt .gross { color: rgba(255,255,255,.9); }
.kontakt a { color: var(--ocker-hell); }
.kontakt a:hover { color: #fff; }
.kontakt__raster { display: grid; grid-template-columns: auto 1fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.kontakt__logo { display: block; width: clamp(200px, 24vw, 300px); border-radius: 50%; transition: transform .3s; }
.kontakt__logo:hover { transform: rotate(-4deg); }
.kontakt__logo img { width: 100%; height: auto; }
.kontakt__liste { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; grid-auto-flow: column; gap: 28px 40px; }
.kontakt__liste dt { font-family: var(--sans); font-size: .9rem; color: rgba(255,255,255,.7); margin-bottom: 2px; }
.kontakt__liste dd { margin: 0; font-size: 1.3rem; line-height: 1.45; }
@media (max-width: 820px) {
  .kontakt__raster { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .kontakt__logo { width: 220px; }
  .kontakt__liste { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
}

/* ---------- Fuss ---------- */
.fuss { background: var(--tanne-tief); color: rgba(255,255,255,.78); padding: 36px 0; font-family: var(--sans); font-size: .92rem; }
.fuss__inner { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; }
.fuss__blume { width: 34px; height: 34px; }
.fuss p { margin: 0; flex: 1; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.fuss a { color: rgba(255,255,255,.9); }
.fuss a:hover { color: var(--ocker-hell); }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.text-seite { padding: calc(var(--bar-h) + 56px) 0 96px; }
.text-seite .rahmen { max-width: 760px; }
.text-seite h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: .6em; }
.text-seite h2 { font-size: 1.45rem; margin: 2em 0 .5em; color: var(--tanne); }
.text-seite address { font-style: normal; margin-bottom: 1em; }
.zurueck { font-family: var(--sans); font-size: .95rem; }

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