/* =========================================================
   Balottahof – Simon Matt · Stylesheet
   Keine externen Schriften/CDNs (datenschutzfreundlich)
   ========================================================= */

:root {
  --cream: #f7f3ea;
  --cream-2: #efe8d8;
  --paper: #fffdf8;
  --forest: #1e3a2a;
  --forest-2: #2c513a;
  --leaf: #7bb03c;
  --leaf-light: #dcebc6;
  --apple: #c8412f;
  --plum: #5d3a6e;
  --wood: #a46f3c;
  --ink: #1f2420;
  --muted: #5d665f;
  --line: rgba(30, 58, 42, 0.14);

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -20px rgba(30, 58, 42, 0.35);
  --wrap: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-2); }
a:hover { color: var(--leaf); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--forest);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--forest); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 36em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 2px solid transparent; transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-2); color: #fff; }
.btn-ghost { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-ghost:hover { background: var(--forest); color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 234, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 20px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none; color: var(--forest); font-weight: 600; font-size: .97rem;
  padding: 10px 14px; border-radius: 999px; transition: background .2s;
}
.nav a:hover { background: var(--leaf-light); color: var(--forest); }
.nav .btn { padding: 11px 20px; margin-left: 8px; color: #fff; }
.nav .btn:hover { background: var(--forest-2); color: #fff; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--paper); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--forest); border-radius: 2px; position: relative; transition: .25s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--cream); padding: 16px 16px 24px; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.3);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .25s;
  }
  .nav a { padding: 14px 16px; font-size: 1.05rem; }
  .nav .btn { margin: 8px 0 0; padding: 16px; }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .brand img { height: 44px; }
}

/* ---------- Status pill (geöffnet/geschlossen) ---------- */
.status {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px 8px 12px; font-size: .92rem; font-weight: 600; color: var(--forest);
  box-shadow: 0 8px 24px -16px rgba(0,0,0,.35);
}
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: #9aa39c; position: relative; }
.status.open .dot { background: #3fa34d; }
.status.open .dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #3fa34d;
  animation: pulse 1.8s ease-out infinite;
}
.status.closed .dot { background: var(--apple); }
.status small { font-weight: 500; color: var(--muted); }
@media (max-width: 520px) {
  .status { flex-wrap: wrap; row-gap: 0; border-radius: 16px; }
  .status small { flex-basis: 100%; padding-left: 20px; }
}
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(24px, 4vw, 64px); }
.hero h1 span { color: var(--leaf); font-style: italic; }
.hero .lead { margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 560px; justify-self: end; width: 100%; }
.hero-visual .blob {
  position: absolute; inset: 6% 2% 0 6%;
  background: radial-gradient(circle at 30% 25%, #8fc04f 0%, var(--leaf) 35%, var(--forest-2) 100%);
  border-radius: 58% 42% 46% 54% / 52% 46% 54% 48%;
  animation: morph 14s ease-in-out infinite alternate;
}
.hero-visual .ring {
  position: absolute; inset: 0 0 4% 0; border: 2px dashed rgba(30,58,42,.25);
  border-radius: 44% 56% 52% 48% / 50% 44% 56% 50%;
}
.hero-visual img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 100%;
  filter: drop-shadow(0 30px 30px rgba(0,0,0,.25));
}
.hero-badge {
  position: absolute; left: -4%; bottom: 14%; z-index: 2;
  background: var(--paper); border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px;
}
.hero-badge strong { font-family: var(--font-display); font-size: 2rem; color: var(--forest); line-height: 1; }
.hero-badge span { font-size: .85rem; color: var(--muted); line-height: 1.3; }
@keyframes morph {
  0% { border-radius: 58% 42% 46% 54% / 52% 46% 54% 48%; }
  100% { border-radius: 44% 56% 58% 42% / 44% 58% 42% 56%; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; max-width: 440px; margin-top: 12px; }
  .hero-badge { left: 0; }
}

/* ---------- Facts strip ---------- */
.facts { background: var(--forest); color: #eaf2e1; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 30px 24px; border-left: 1px solid rgba(255,255,255,.12); }
.fact:first-child { border-left: 0; }
.fact strong { display: block; font-family: var(--font-display); font-size: 2rem; color: #fff; line-height: 1.1; }
.fact span { font-size: .93rem; opacity: .8; }
@media (max-width: 760px) {
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact { padding: 22px 16px; }
  .fact strong { font-size: 1.45rem; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-photo { position: relative; }
.about-photo .frame {
  background: linear-gradient(160deg, var(--cream-2), #e3d7bc);
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.4; position: relative;
  box-shadow: var(--shadow);
}
.about-photo .frame::before {
  content: ""; position: absolute; width: 70%; aspect-ratio: 1; right: -12%; top: -18%;
  border-radius: 50%; background: var(--leaf-light);
}
.about-photo img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 118%; max-width: none; }
.about-photo .quote {
  position: absolute; right: -18px; bottom: -26px; max-width: 280px;
  background: var(--forest); color: #fff; border-radius: 18px; padding: 18px 22px;
  font-family: var(--font-display); font-style: italic; font-size: 1.08rem; line-height: 1.4;
  box-shadow: var(--shadow);
}
.signature { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: var(--forest-2); margin-top: 8px; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { margin-bottom: 30px; }
  .about-photo .quote { right: 12px; left: 12px; max-width: none; }
}

/* Values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.value {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px; display: flex; flex-direction: column; gap: 8px;
}
.value svg { width: 30px; height: 30px; color: var(--leaf); }
.value strong { color: var(--forest); }
.value span { font-size: .9rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } .value { flex-direction: row; align-items: flex-start; } }

/* Products */
.products { background: var(--paper); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product {
  border-radius: var(--radius); overflow: hidden; background: var(--cream);
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-art { aspect-ratio: 5 / 4; display: grid; place-items: center; position: relative; overflow: hidden; }
.product-art svg { width: 58%; height: auto; position: relative; z-index: 1; transition: transform .4s; }
.product:hover .product-art svg { transform: scale(1.06) rotate(-3deg); }
.product-art::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.35);
}
.art-milk { background: linear-gradient(150deg, #dfe9f1, #b9cfdf); }
.art-apple { background: linear-gradient(150deg, #f6d6c9, #e9a28f); }
.art-plum { background: linear-gradient(150deg, #e6d8ee, #b99bc9); }
.art-brand { background: linear-gradient(150deg, #f1e3c4, #d9b77a); }
.product-body { padding: 22px 22px 26px; }
.product-body .tag {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--wood); margin-bottom: 6px;
}
.product-body h3 { margin-bottom: 8px; }
.product-body p { font-size: .96rem; color: var(--muted); margin: 0; }
@media (max-width: 1020px) { .product-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .product-grid { grid-template-columns: 1fr; } }

.note-box {
  margin-top: 36px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: space-between;
  background: var(--leaf-light); border-radius: var(--radius); padding: 22px 28px; color: var(--forest);
}
.note-box p { margin: 0; font-weight: 600; }

/* Farm / history */
.farm { position: relative; background: var(--forest); color: #e7efe0; overflow: hidden; }
.farm h2 { color: #fff; }
.farm .eyebrow { color: #a9d46f; }
.farm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; position: relative; z-index: 1; }
.farm p { color: #d5e1cd; }
.farm-hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; opacity: .5; pointer-events: none; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 10px; bottom: 10px; width: 2px; background: rgba(169,212,111,.35); }
.timeline li { position: relative; padding: 0 0 30px 48px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 3px; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--forest); border: 3px solid #a9d46f;
}
.timeline .when { font-family: var(--font-display); font-size: 1.5rem; color: #fff; display: block; line-height: 1.2; }
.timeline p { margin: 4px 0 0; }
@media (max-width: 900px) { .farm-grid { grid-template-columns: 1fr; } }

/* Visit */
.visit-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 40px);
}
.hours { width: 100%; border-collapse: collapse; margin: 10px 0 18px; }
.hours th, .hours td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours th { font-weight: 600; color: var(--forest); white-space: nowrap; padding-right: 20px; }
.hours td { color: var(--muted); }
.hours tr.today th, .hours tr.today td { color: var(--forest); }
.hours tr.today th::after {
  content: "Heute"; margin-left: 8px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--leaf); color: #fff; padding: 3px 8px; border-radius: 999px; vertical-align: middle;
}
.hours .closed-day { color: #9aa39c; }
.hours td span { white-space: nowrap; }
@media (max-width: 520px) {
  .hours th { white-space: normal; }
}
.small-note { font-size: .92rem; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.small-note svg { flex: none; width: 20px; height: 20px; color: var(--leaf); margin-top: 2px; }

.visit-card { display: flex; flex-direction: column; gap: 20px; }
.map-card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 240px; flex: 1;
  background: #dfe8cf; display: flex; align-items: flex-end;
}
.map-card svg.map-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-card .map-info {
  position: relative; margin: 16px; background: var(--paper); border-radius: 16px; padding: 16px 18px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; width: calc(100% - 32px);
  box-shadow: var(--shadow);
}
.map-card address { font-style: normal; font-weight: 600; color: var(--forest); line-height: 1.4; }
.map-card address span { display: block; font-weight: 400; color: var(--muted); font-size: .92rem; }
.map-card .btn { padding: 11px 18px; font-size: .92rem; }

@media (max-width: 900px) { .visit-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact { background: var(--cream-2); }
.contact-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-tiles a {
  height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 34px 22px 30px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line);
  text-decoration: none; color: var(--forest); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.contact-tiles a:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--leaf); color: var(--forest); }
.contact-tiles .ico {
  width: 58px; height: 58px; border-radius: 18px; background: var(--forest); color: #fff;
  display: grid; place-items: center; margin-bottom: 12px; transition: background .25s;
}
.contact-tiles a:hover .ico { background: var(--leaf); }
.contact-tiles .ico svg { width: 26px; height: 26px; }
.contact-tiles small { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wood); }
.contact-tiles strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .contact-tiles { grid-template-columns: 1fr; gap: 12px; }
  .contact-tiles a {
    display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 2px;
    text-align: left; padding: 18px;
  }
  .contact-tiles .ico { grid-row: 1 / 3; margin: 0; width: 50px; height: 50px; }
  .contact-tiles small { align-self: end; }
  .contact-tiles strong { font-size: 1.12rem; align-self: start; }
}

/* ---------- Footer ---------- */
.site-footer { background: #15291e; color: #b9c8b5; padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin: 0 0 14px; }
.site-footer a { color: #d8e5d2; text-decoration: none; }
.site-footer a:hover { color: #a9d46f; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-logo { background: var(--cream); display: inline-block; padding: 10px 16px; border-radius: 14px; margin-bottom: 16px; }
.footer-logo img { height: 44px; width: auto; }
.footer-bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .88rem;
}
.footer-bottom nav { display: flex; gap: 20px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Rechtstexte (Impressum / Datenschutz) ---------- */
.legal-hero { padding: clamp(48px, 7vw, 90px) 0 clamp(28px, 4vw, 40px); }
.legal-hero p { color: var(--muted); }
.legal { padding-bottom: clamp(64px, 9vw, 110px); }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.legal-toc { position: sticky; top: 100px; font-size: .92rem; }
.legal-toc strong { display: block; margin-bottom: 10px; color: var(--forest); }
.legal-toc ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--muted); }
.legal-toc a { color: var(--muted); text-decoration: none; }
.legal-toc a:hover { color: var(--forest); }
.legal-body { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 52px); }
.legal-body h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-top: 1.8em; padding-top: .2em; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.1rem; margin-top: 1.4em; }
.legal-body ul { padding-left: 20px; }
.legal-body li { margin-bottom: 6px; }
.legal-body dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0 0 1em; }
.legal-body dt { font-weight: 600; color: var(--forest); }
.legal-body dd { margin: 0; }
.todo {
  background: #fff1b8; color: #6b4e00; padding: 1px 6px; border-radius: 4px; font-weight: 600;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.todo-banner {
  display: flex; gap: 12px; align-items: flex-start; background: #fff7d6; border: 1px solid #f0d77a; color: #5c4400;
  border-radius: 14px; padding: 14px 18px; margin-bottom: 28px; font-size: .93rem;
}
.todo-banner svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 24px; }
  .legal-toc { position: static; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
  .legal-body dl { grid-template-columns: 1fr; gap: 2px; }
  .legal-body dd { margin-bottom: 10px; }
}
