/* Hof Sonnhalde: hof / vollbild */

@font-face { font-family: 'Alegreya'; font-weight: 700; font-display: swap; src: url('fonts/alegreya-700.woff2') format('woff2'); }
@font-face { font-family: 'Alegreya'; font-weight: 400; font-style: italic; font-display: swap; src: url('fonts/alegreya-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Alegreya Sans'; font-weight: 400; font-display: swap; src: url('fonts/alegreya-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'Alegreya Sans'; font-weight: 700; font-display: swap; src: url('fonts/alegreya-sans-700.woff2') format('woff2'); }

:root {
  --paper: #F5F2E9;
  --paper-2: #EDE8DA;
  --white: #FBF9F3;
  --ink: #263020;
  --text: #333B2C;
  --muted: #535B49;
  --grass: #5B7F2A;
  --grass-d: #44621C;
  --ocker: #C8892B;
  --terra: #B4532A;
  --terra-d: #8F3E1D;
  --rule: #CFC7B2;
  --serif: 'Alegreya', Georgia, serif;
  --sans: 'Alegreya Sans', system-ui, sans-serif;
  --wrap: 1200px;
}

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

body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--sans); font-size: 1.25rem; line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--ink); line-height: 1.12; margin: 0; }
p, figure, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--grass-d); }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 2rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px;
  padding: 0.75rem 1.6rem; border-radius: 3px; font-weight: 700; font-size: 1.1rem; text-decoration: none;
  transition: background-color .15s ease;
}
.btn--main { background: var(--terra); color: #fff; font-variant-numeric: lining-nums; }
.btn--main:hover { background: var(--terra-d); }
.textlink {
  display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--ocker); text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.textlink:hover { color: var(--terra-d); }

/* Kopf */
.top { background: var(--paper); border-bottom: 1px solid var(--rule); }
.top__in { display: flex; align-items: center; gap: 1.25rem; min-height: 78px; position: relative; }
.logo { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.logo__text { font-family: var(--serif); font-weight: 700; font-size: 1.6rem; letter-spacing: 0.005em; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 0.2rem; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.8rem; color: var(--ink); text-decoration: none; font-size: 1.1rem; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--ocker); text-underline-offset: 6px; }
.iconbtn { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 1.5px solid var(--ink); border-radius: 50%; color: var(--ink); }
.iconbtn:hover { background: var(--paper-2); }
.menubtn { display: none; min-height: 46px; padding: 0 1rem; border: 1.5px solid var(--ink); border-radius: 3px; background: transparent; color: var(--ink); font: 700 1.05rem var(--sans); cursor: pointer; }

/* Hero (vollbild) */
.hero { position: relative; }
.hero__img { width: 100%; height: min(84vh, 780px); min-height: 560px; object-fit: cover; object-position: 60% 50%; }
.hero__panel {
  position: absolute; left: max(2rem, calc((100% - var(--wrap)) / 2 + 2rem)); bottom: 3rem;
  width: min(36rem, calc(100% - 4rem)); background: var(--paper); padding: 2.5rem 2.75rem 2.25rem;
  border-top: 6px solid var(--ocker);
}
.kicker { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--grass-d); margin-bottom: 0.6rem; }
.hero h1 { font-size: clamp(2.6rem, 4.6vw, 4.1rem); letter-spacing: -0.01em; text-wrap: balance; }
.lead { margin-top: 1.1rem; font-size: 1.25rem; }
.hero__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.6rem; margin-top: 1.8rem; }

/* Öffnungszeiten groß */
.hours { background: var(--grass-d); color: #fff; padding: 4rem 0 3.5rem; }
.hours__title { color: #fff; font-size: 1.15rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.14em; }
.hours__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.6rem; }
.hours__item { padding: 0 2rem; border-left: 1px solid rgba(255,255,255,.35); }
.hours__item:first-child { padding-left: 0; border-left: 0; }
.hours__day { font-size: 1.2rem; color: #EEF2E2; }

.hours__time { text-wrap: balance; font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 3.3vw, 2.9rem); line-height: 1.12; margin-top: 0.4rem; color: #fff; }
.hours__item--accent .hours__time { color: #F3D29B; font-style: normal; }
.hours__note { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.35); color: #EEF2E2; font-size: 1.1rem; }

/* Abschnitte */
.section { padding: 6rem 0; }
.section--white { background: var(--white); }
.section h2 { font-size: clamp(2.1rem, 3.6vw, 3.1rem); text-wrap: balance; }
.eyebrow { display: inline-block; font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--terra-d); margin-bottom: 0.6rem; }

/* Gerade im Hofladen */
.now { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 4.5rem; align-items: start; }
.fresh { margin-top: 2rem; border-top: 2px solid var(--ink); }
.fresh li { padding: 1.15rem 0 1.2rem; border-bottom: 1px solid var(--rule); }
.fresh h3 { font-size: 1.45rem; }
.fresh p { margin-top: 0.25rem; }
.order { margin-top: 2rem; padding: 1.5rem 1.6rem; background: var(--paper-2); border-left: 5px solid var(--terra); }
.order h3 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.now__pics { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 1rem; }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic--wide { grid-column: 1 / -1; }
.pic--wide img { aspect-ratio: 4 / 3; }
.pic--tall img { aspect-ratio: 4 / 5; }
.pic--square img { aspect-ratio: 4 / 5; }

/* Sortiment */
.section--rule { border-top: 1px solid var(--rule); }
.range { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 2.6rem; border-top: 2px solid var(--ink); }
.range__col { padding: 1.6rem 2rem 0.5rem; border-left: 1px solid var(--rule); }
.range__col:first-child { padding-left: 0; border-left: 0; }
.range h3 { font-size: 1.55rem; font-style: italic; font-weight: 400; color: var(--terra-d); margin-bottom: 0.8rem; }
.range li { padding: 0.5rem 0; border-bottom: 1px dotted var(--rule); color: var(--ink); }
.range li:last-child { border-bottom: 0; }

/* Saisonkalender */
.saison__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2rem; align-items: end; margin-bottom: 2.6rem; }
.cal { --label: 9.5rem; }
.cal__row { display: grid; grid-template-columns: var(--label) repeat(12, minmax(0, 1fr)); align-items: center; min-height: 52px; border-bottom: 1px solid var(--paper-2); }
.cal__row:not(.cal__months) { background: repeating-linear-gradient(to right, transparent 0, transparent calc((100% - var(--label)) / 12 - 1px), var(--paper-2) calc((100% - var(--label)) / 12 - 1px), var(--paper-2) calc((100% - var(--label)) / 12)) var(--label) 0 / calc(100% - var(--label)) 100% no-repeat; }
.cal__months { min-height: 40px; border-bottom: 2px solid var(--ink); }
.cal__months span { text-align: center; font-weight: 700; color: var(--ink); }
.cal__label { grid-column: 1; grid-row: 1; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--ink); padding-right: 1rem; }
.cal__bar {
  grid-row: 1; grid-column: calc(var(--from) + 1) / calc(var(--to) + 1);
  height: 22px; margin: 0 3px; border-radius: 11px; background: var(--ocker);
}
.cal__bar--store { background: repeating-linear-gradient(135deg, #E7C88F 0 6px, #F1DDB5 6px 12px); border: 1.5px solid var(--ocker); }
.cal__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 1.4rem; color: var(--muted); font-size: 1.05rem; }
.key { display: inline-block; width: 34px; height: 14px; border-radius: 7px; background: var(--ocker); }
.key--store { margin-left: 1.2rem; background: repeating-linear-gradient(135deg, #E7C88F 0 6px, #F1DDB5 6px 12px); border: 1.5px solid var(--ocker); }

/* Selbstbedienung */
.self { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4.5rem; align-items: center; }
.self__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.self__lead { font-size: 1.35rem; margin: 1.2rem 0 1.8rem; color: var(--ink); }
.self__list { border-top: 2px solid var(--ink); margin-bottom: 1.4rem; }
.self__list div { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 1rem; padding: 0.95rem 0; border-bottom: 1px solid var(--rule); }
.self__list dt { font-weight: 700; color: var(--terra-d); }
.self__list dd { color: var(--ink); }

/* Der Hof */
.farm { background: var(--terra); color: #fff; padding: 5.5rem 0; }
.farm__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
.farm h2 { color: #FBE9D9; font-family: var(--sans); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.14em; }
.farm__quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.2; margin: 1rem 0 1.4rem; color: #fff; text-wrap: balance; }
.farm__text > p:last-child { color: #FFF3EA; max-width: 34rem; }
.farm__facts li { padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.35); color: #FFF3EA; font-size: 1.15rem; }
.farm__facts li:first-child { border-top: 1px solid rgba(255,255,255,.35); }
.farm__facts strong { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1.15; color: #fff; }

/* Anfahrt */
.way { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 4rem; align-items: start; }
.way__addr { font-style: normal; font-size: 1.3rem; color: var(--ink); margin: 1.4rem 0 1.8rem; padding-left: 1rem; border-left: 4px solid var(--ocker); }
.way h3 { font-size: 1.35rem; margin-top: 1.4rem; }
.way h3 + p { margin-top: 0.3rem; }
.way__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.6rem; margin-top: 2rem; }
.way__wege { display: grid; gap: 1.6rem; padding-top: 0.6rem; }
.way__weg { border-top: 2px solid var(--ink); padding-top: 1rem; }
.way__weg h3 { margin-top: 0; }

/* Fußzeile */
.foot { background: var(--ink); color: #DCE0D2; padding: 3rem 0; }
.foot__in { display: flex; flex-wrap: wrap; gap: 1.2rem 3rem; justify-content: space-between; align-items: flex-end; }
.foot__name { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: #fff; }
.foot a { color: #fff; }
.foot__links { display: flex; gap: 1.5rem; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; }

/* Tablet */
@media (max-width: 1020px) {
  .menubtn { display: inline-flex; align-items: center; }
  .iconbtn { margin-left: auto; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 0.5rem 1.25rem 1rem; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { min-height: 52px; width: 100%; font-size: 1.2rem; }
  .now, .self, .farm__in, .way { grid-template-columns: 1fr; gap: 2.8rem; }
  .saison__head { grid-template-columns: 1fr; gap: 0.8rem; }
  .self__img img { aspect-ratio: 16 / 10; object-position: 50% 40%; }
}

/* Handy */
@media (max-width: 720px) {
  body { font-size: 1.125rem; }
  .wrap { padding: 0 1.15rem; }
  .top__in { min-height: 66px; gap: 0.6rem; }
  .logo__text { font-size: 1.4rem; }

  .hero__img { height: 30vh; min-height: 210px; max-height: 260px; object-position: 55% 62%; }
  .hero__panel { position: static; width: auto; padding: 1.5rem 1.15rem 2.4rem; border-top: 0; }
  .kicker { font-size: 1.1rem; }
  .hero h1 { font-size: 2.55rem; }
  .lead { font-size: 1.15rem; margin-top: 0.8rem; }
  .hero__btns { margin-top: 1.3rem; }
  .hero__btns .btn { flex: 1 1 100%; }

  .hours { padding: 2.8rem 0; }
  .hours__grid { grid-template-columns: 1fr; margin-top: 1rem; }
  .hours__item { padding: 1rem 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.35); }
  .hours__item:first-child { border-top: 0; padding-top: 0; }
  .hours__time { font-size: 2rem; }
  .hours__note { margin-top: 1rem; }

  .section { padding: 4rem 0; }
  .now__pics { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .range { grid-template-columns: 1fr; }
  .range__col { padding: 1.4rem 0 0.4rem; border-left: 0; border-top: 1px solid var(--rule); }
  .range__col:first-child { border-top: 0; }

  .cal { --label: 5.6rem; }
  .cal__label { font-size: 1rem; padding-right: 0.4rem; }
  .cal__row { min-height: 46px; }
  .cal__months span { font-size: 0.95rem; }
  .cal__bar { height: 16px; margin: 0 1px; }

  .self__list div { grid-template-columns: 1fr; gap: 0.1rem; }
  .farm { padding: 4rem 0; }
  .way__contact .btn { flex: 1 1 100%; }
}
