/* Blumen Haimerl – one stylesheet, mobile first, no external resources. */

@font-face {
  font-family: "Young Serif";
  src: url("../fonts/young-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* palette: taken from the logo and the heather in the shop's own photos */
  --gruen: #1f4d2c;      /* Gärtnergrün: headings, buttons */
  --gruen-tief: #163a21;
  --blatt: #cdd68f;      /* light leaf green of the logo: plant tag, today row */
  --erika: #a3245f;      /* heather: closed state, focus */
  --glas: #f4f6f1;       /* greenhouse white: page background */
  --erde: #1c241e;       /* text */
  --moos: #4f5c47;       /* secondary text */
  --linie: #d5dccd;

  /* seasonal accent (plant tag, today row, footer edge); set by jahreszeit.js */
  --akzent: var(--blatt);

  --serif: "Young Serif", Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;

  --rand: clamp(1.25rem, 5vw, 3rem);
  --breite: 72rem;
}

/* seasons: light tones only, the dark green text on them must stay readable */
:root[data-jahreszeit="fruehling"] { --akzent: #c3de86; } /* fresh shoots */
:root[data-jahreszeit="sommer"]    { --akzent: #f4cf55; } /* sunflower yellow */
:root[data-jahreszeit="herbst"]    { --akzent: #f0ac6e; } /* chrysanthemum orange */
:root[data-jahreszeit="winter"]    { --akzent: #b5d2dc; } /* hoarfrost */

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

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

body {
  margin: 0;
  background: var(--glas);
  color: var(--erde);
  font: 400 1.125rem/1.6 var(--sans);
}

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

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--gruen);
  margin: 0 0 0.75em;
}
h1 { font-size: clamp(2rem, 6.5vw, 3.75rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }

p { margin: 0 0 1em; max-width: 62ch; }

a { color: var(--gruen); text-underline-offset: 0.18em; }
a:hover { color: var(--gruen-tief); }

:focus-visible {
  outline: 3px solid var(--erika);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 1rem;
  background: var(--gruen);
  color: #fff;
  z-index: 10;
}
.skip:focus { top: 1rem; }

/* buttons */
.knopf {
  display: inline-block;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  background: var(--gruen);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  text-align: center;
}
.knopf:hover { background: var(--gruen-tief); color: #fff; }
.knopf--hell {
  background: transparent;
  color: var(--gruen);
  box-shadow: inset 0 0 0 2px var(--gruen);
}
.knopf--hell:hover { background: var(--gruen); color: #fff; }
.knopf--klein { padding: 0.55rem 1rem; font-size: 1rem; }
/* header call button: one line; on very narrow phones only "Anrufen"
   (the number is right below in the contact section) */
.kopf__anruf { white-space: nowrap; flex-shrink: 0; }
.kopf__kurz { display: none; }
@media (max-width: 23.5rem) {
  .kopf__lang { display: none; }
  .kopf__kurz { display: inline; }
}

/* header */
.kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem var(--rand);
  background: #fff;
}
.kopf__logo img { width: 128px; }

/* hero */
.buehne {
  position: relative;
  display: grid;
}
.buehne__bild img {
  width: 100%;
  height: min(70vh, 34rem);
  object-fit: cover;
  object-position: 42% 55%;
}
.buehne__text {
  padding: 2rem var(--rand) 0;
  max-width: var(--breite);
}
.buehne__text p {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--moos);
}

/* the plant tag: the one bold element of the page.
   A label with a punched hole on a long stake, stuck into the bottom edge of the hero photo.
   It always wears the season's accent; open/closed is the dot in front of the status. */
.stecker {
  --stiel: 5.5rem;
  position: absolute;
  top: min(70vh, 34rem);            /* bottom edge of the hero photo */
  right: var(--rand);
  width: 12.5rem;
  color: var(--gruen-tief);
  filter: drop-shadow(0 6px 10px rgb(22 58 33 / 0.28));
  transform-origin: 50% 100%;
  /* lift it so the stake's tip sits just below the photo edge, then lean it a little */
  transform: translateY(calc(-100% + 0.6rem)) rotate(4deg);
}
.stecker__schild {
  padding: 1.1rem 1.25rem 2rem;
  background: var(--akzent);
  clip-path: polygon(0 0, 100% 0, 100% 82%, 55% 100%, 45% 100%, 0 82%);
}
.stecker__schild::before { /* the punched hole */
  content: "";
  display: block;
  width: 0.7rem;
  height: 0.7rem;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: var(--glas);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.3);
}
.stecker::after { /* the stake */
  content: "";
  display: block;
  width: 10%;
  height: var(--stiel);
  margin: -1px auto 0;
  background: var(--akzent);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%);
}
.stecker p { margin: 0; }
.stecker__status {
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.15;
}
.stecker__status::before { /* open/closed dot */
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin-right: 0.35em;
  border-radius: 50%;
  background: #2f7d3a;
  box-shadow: 0 0 0 2px rgb(255 255 255 / 0.7);
  vertical-align: 0.08em;
}
.stecker[data-zustand="zu"] .stecker__status::before { background: var(--erika); }
.stecker:not([data-zustand]) .stecker__status::before { display: none; } /* no JS: no live status */
.stecker__detail { margin-top: 0.4rem !important; font-size: 1rem; line-height: 1.35; }

/* seasonal decorations around the plant tag (templates in index.html, inserted by jahreszeit.js).
   Bottom-anchored ones stand on the photo edge, which is 0.6rem above the stake's tip. */
.deko { position: absolute; pointer-events: none; overflow: visible; }
.deko--lichter { top: -0.8rem; left: -7%; width: 114%; height: 3.4rem; }
.deko--lichter .birne {
  filter: drop-shadow(0 0 2.5px #ffcf5c);
  animation: funkeln 2.6s ease-in-out infinite;
}
@keyframes funkeln { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.deko--sonnenblume { left: -4.6rem; bottom: 0.45rem; width: 6.6rem; }
.deko--tulpen { left: 50%; bottom: 0.5rem; width: 8rem; transform: translateX(-50%); }
.deko--kuerbis { left: calc(50% + 0.4rem); bottom: 0.4rem; width: 4.8rem; }
.deko--laub { top: -1.4rem; right: -1.6rem; width: 4.4rem; }
@media (prefers-reduced-motion: reduce) {
  .deko--lichter .birne { animation: none; }
}

/* visit: opening hours + contact */
.besuch {
  display: grid;
  gap: 3rem;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 3.5rem var(--rand);
}
.zeiten { border-collapse: collapse; width: 100%; max-width: 26rem; }
.zeiten th, .zeiten td {
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--linie);
  text-align: left;
  font-weight: 400;
}
.zeiten th { padding-left: 0; }
.zeiten tr.heute { background: var(--akzent); }
.zeiten tr.heute th { font-weight: 700; padding-left: 0.5rem; }
.hinweis {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--erika);
  background: #fff;
}
address { font-style: normal; font-size: 1.25rem; margin-bottom: 1.5rem; }
.wege {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.nebenwege { color: var(--moos); }

/* history */
.geschichte {
  display: grid;
  gap: 2.5rem;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 3.5rem var(--rand);
  border-top: 1px solid var(--linie);
}
.chronik {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}
.chronik li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding-bottom: 1.25rem;
  position: relative;
}
.chronik li::before { /* stem connecting the years */
  content: "";
  position: absolute;
  left: 2.1rem;
  top: 2.2rem;
  bottom: 0.3rem;
  width: 2px;
  background: var(--linie);
}
.chronik li:last-child::before { display: none; }
.chronik__jahr {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--gruen);
  line-height: 1.6;
}
.chronik p { margin: 0; padding-top: 0.15rem; }
.geschichte__bild { margin: 0; }
.geschichte__bild img { border-radius: 0.5rem; }
.geschichte__bild figcaption { margin-top: 0.5rem; font-size: 1rem; color: var(--moos); font-style: italic; }

/* gallery: horizontal strip on phones, five columns on wide screens */
.galerie {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 3.5rem 0 4rem;
  border-top: 1px solid var(--linie);
}
.galerie h2 { padding: 0 var(--rand); }
.galerie__reihe {
  list-style: none;
  margin: 0;
  padding: 0 var(--rand) 0.5rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 60vw;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}
.galerie__reihe li { scroll-snap-align: start; }
.galerie__reihe img {
  width: 100%;
  aspect-ratio: 3 / 5;
  object-fit: cover;
  border-radius: 0.5rem;
}

/* footer */
.fuss {
  border-top: 6px solid var(--akzent);
  background: var(--gruen);
  color: #e6ecdf;
  padding: 2rem var(--rand);
  font-size: 1rem;
}
.fuss p { margin: 0 0 0.75rem; }
.fuss nav { display: flex; gap: 1.5rem; }
.fuss a { color: #fff; }

/* legal pages */
.recht {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3rem var(--rand) 4rem;
}
.recht h1, .rechtstext h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
.recht h2, .rechtstext h2 { font-size: 1.4rem; margin-top: 2rem; }
.recht ul, .rechtstext ul { padding-left: 1.25rem; }
.recht li, .rechtstext li { margin-bottom: 0.4rem; }

/* imprint / privacy dialog on the home page */
.rechtstext {
  width: min(46rem, 100% - 2rem);
  max-height: min(85vh, 60rem);
  padding: 0;
  border: 0;
  border-radius: 0.75rem;
  background: var(--glas);
  color: var(--erde);
  box-shadow: 0 20px 50px rgb(22 58 33 / 0.3);
  overflow: hidden;
}
.rechtstext[open] { display: flex; flex-direction: column; }
.rechtstext::backdrop { background: rgb(28 36 30 / 0.55); }
.rechtstext__leiste {
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem 0.75rem 0;
}
.rechtstext__zu {
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--gruen);
  color: #fff;
  cursor: pointer;
}
.rechtstext__zu:hover { background: var(--gruen-tief); }
.rechtstext__inhalt {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem) 2rem;
}
.rechtstext__inhalt h1 { margin-top: 0.25rem; }
html:has(.rechtstext[open]) { overflow: hidden; } /* no page scrolling behind the dialog */
@media (max-width: 47.99rem) {
  .rechtstext { width: 100%; max-width: 100%; max-height: 92vh; margin: auto 0 0; border-radius: 1rem 1rem 0 0; }
}
.zurueck { display: inline-block; margin-bottom: 2rem; }
[data-placeholder] { background: #fde68a; outline: 2px dashed #b45309; }

/* tablet and up */
@media (min-width: 48rem) {
  .kopf__logo img { width: 180px; }
  .besuch { grid-template-columns: 1fr 1fr; }
  .stecker { width: 14rem; --stiel: 6.5rem; }
}

@media (min-width: 60rem) {
  .buehne__text { padding-right: 20rem; }
  .geschichte { grid-template-columns: 3fr 2fr; align-items: start; }
  .geschichte__bild { position: sticky; top: 2rem; }
  .galerie__reihe {
    grid-auto-flow: row;
    /* fixed column width, so 3 seasonal photos stay as large as 5 */
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible;
  }
}

@media (min-width: 72rem) {
  .stecker { right: calc((100vw - var(--breite)) / 2 + var(--rand)); }
}
