/* ===========================================================================
   nice2BEE - Thinnes Beekeeping
   Colours are taken from the header banner: honey amber, meadow green,
   lavender and a warm off-white background.
   ======================================================================== */

:root {
  --honey:        #e5a02f;
  --honey-dark:   #c9861c;
  --honey-light:  #fbe9c7;
  --green:        #6b8f3a;
  --green-dark:   #4f6b2a;
  --lavender:     #7b6ba8;
  --ink:          #2e2a25;
  --ink-soft:     #5c544a;
  --bg:           #faf7f0;
  --surface:      #ffffff;
  --line:         #e7ddc9;
  --shadow:       0 1px 2px rgba(46, 42, 37, .06), 0 8px 24px rgba(46, 42, 37, .07);
  --shadow-hover: 0 2px 4px rgba(46, 42, 37, .08), 0 14px 32px rgba(46, 42, 37, .12);
  --radius:       14px;
  --wrap:         980px;   /* 940 content + 2x20 padding */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

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

/* Must beat any display rule further down, otherwise hidden elements show. */
[hidden] { display: none !important; }

a { color: var(--green-dark); text-underline-offset: 2px; }
a:hover { color: var(--honey-dark); }

h1, h2, h3 { line-height: 1.25; color: var(--ink); }
h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.6rem); margin: 0 0 .5rem; letter-spacing: -.01em; }
h2 { font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.65rem); margin: 0 0 .6rem; }
h3 { font-size: 1.12rem; margin: 0 0 .4rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* --- header ------------------------------------------------------------- */

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }

.banner { display: block; max-width: 940px; margin-inline: auto; }
.banner img { width: 100%; }

.navbar {
  max-width: var(--wrap); margin-inline: auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 56px;
}

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: .35rem .6rem; font: inherit; font-size: .95rem;
  color: var(--ink); cursor: pointer; align-items: center; gap: .45rem;
}
.nav-toggle:hover { border-color: var(--honey); }
.nav-toggle .bars { display: inline-block; width: 18px; height: 2px; background: var(--ink);
  position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after  { top: 6px; }

.nav-list { list-style: none; display: flex; flex-wrap: wrap; gap: .15rem; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: .55rem .7rem; border-radius: 8px;
  color: var(--ink-soft); text-decoration: none; font-size: .97rem; font-weight: 500;
}
.nav-list a:hover { color: var(--ink); background: var(--honey-light); }
.nav-list a { position: relative; }
.nav-list a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-list a[aria-current="page"]::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: 4px;
  height: 2px; background: var(--honey); border-radius: 2px;
}

.lang-switch { display: flex; align-items: center; gap: 2px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch button {
  font: inherit; font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  border: 0; background: none; color: var(--ink-soft);
  padding: .2rem .6rem; border-radius: 999px; cursor: pointer;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { background: var(--honey); color: #fff; }

/* --- layout ------------------------------------------------------------- */

main { display: block; padding: 2.5rem 0 3rem; }

.page-head { margin-bottom: 2rem; }
.lead { font-size: 1.1rem; color: var(--ink-soft); }

.section { margin-bottom: 2rem; }
/* No reading-width cap: every text block runs the full width of the column,
   the same as the cards and the boxes, so nothing stops short of the rest. */
.section > h2 { padding-bottom: .35rem; border-bottom: 2px solid var(--honey-light); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow);
}

.grid { display: grid; gap: 1.2rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.teaser { display: flex; flex-direction: column; }
.teaser h3 { color: var(--green-dark); }
.teaser p { color: var(--ink-soft); flex: 1; }
.teaser .link-more { margin-top: .9rem; font-weight: 600; text-decoration: none; }
.teaser .link-more::after { content: " \2192"; }

.note { background: var(--honey-light); border: 1px solid #efd9a8; border-radius: var(--radius);
  padding: 1.2rem 1.4rem; }
.note h2, .note h3 { margin-top: 0; }

.disclaimer { font-size: .9rem; color: var(--ink-soft); font-style: italic; margin-top: 1.5rem; }

.btn {
  display: inline-block; font: inherit; font-weight: 600; font-size: .97rem;
  background: var(--honey); color: #fff; border: 0; border-radius: 999px;
  padding: .62rem 1.3rem; cursor: pointer; text-decoration: none; text-align: center;
}
.btn:hover { background: var(--honey-dark); color: #fff; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-ghost { background: none; color: var(--green-dark); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--honey-light); color: var(--ink); }

/* --- products ----------------------------------------------------------- */

.product { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.product-img { aspect-ratio: 4 / 3; background: var(--honey-light); display: grid; place-items: center; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-img .placeholder { font-size: 3rem; opacity: .55; }
.product-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.product-body p { color: var(--ink-soft); flex: 1; }
.product-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: .9rem 0; }
.product-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.product-actions .btn { flex: 1 1 auto; }
.tag { font-size: .85rem; background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: .15rem .7rem; color: var(--ink-soft); }
.tag-price { background: var(--honey-light); border-color: #efd9a8; color: var(--ink); font-weight: 600; }

/* A product that is not on offer stays readable, it just steps back
   visually. Sold out and not available look the same apart from the ribbon. */
.product.is-soldout .product-img { filter: grayscale(.7); opacity: .65; }
.product.is-soldout h3 { color: var(--ink-soft); }
.product.is-unavailable .soldout-ribbon { background: #4a5568; }
.soldout-ribbon {
  position: absolute; top: .8rem; left: 0; z-index: 1;
  background: #a3311f; color: #fff; font-size: .78rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .2rem .8rem; border-radius: 0 999px 999px 0;
}
.product { position: relative; }

/* --- infos / faq -------------------------------------------------------- */

.faq { display: grid; gap: .6rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .85rem 1.2rem;
}
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--honey-dark); font-weight: 700; margin-right: .6rem; }
.faq details[open] summary::before { content: "\2013"; }
.faq details[open] summary { margin-bottom: .5rem; }
.faq p { color: var(--ink-soft); }

.bullets { margin: 0; padding-left: 1.2rem; color: var(--ink-soft); }
.bullets li { margin-bottom: .4rem; }

/* --- gallery ------------------------------------------------------------ */

.gallery { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.gallery button {
  padding: 0; border: 1px solid var(--line); background: var(--surface);
  border-radius: 10px; overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow);
}
.gallery img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; transition: transform .25s ease; }
.gallery button:hover img { transform: scale(1.05); }

.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(28, 25, 21, .92);
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 8px; }
.lightbox button {
  position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0;
  border-radius: 999px; width: 46px; height: 46px; font-size: 1.5rem; cursor: pointer;
  display: grid; place-items: center;
}
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }

/* --- social ------------------------------------------------------------- */

.social-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.social-card:hover { box-shadow: var(--shadow-hover); color: inherit; }
.social-card .icon { font-size: 1.9rem; line-height: 1; margin-bottom: .5rem; }
.social-card h3 { color: var(--green-dark); }
.social-card p { color: var(--ink-soft); flex: 1; }
.social-card .link-more { margin-top: .9rem; font-weight: 600; color: var(--honey-dark); }
.social-card .link-more::after { content: " \2192"; }

/* --- forms -------------------------------------------------------------- */

.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
.form-field .req { color: var(--honey-dark); }
.form-field input, .form-field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: .65rem .8rem;
}
.form-field input:focus, .form-field textarea:focus { background: var(--surface); border-color: var(--honey); }
.form-field textarea { min-height: 160px; resize: vertical; }
.form-field.invalid input, .form-field.invalid textarea { border-color: #c0392b; }
.field-error { color: #c0392b; font-size: .88rem; margin-top: .25rem; }

.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .93rem; color: var(--ink-soft); }
.consent input { width: auto; margin-top: .35rem; flex: none; }
.consent label { font-weight: 400; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 10px; display: none; }
.form-status.show { display: block; }
.form-status.ok  { background: #e8f2dc; border: 1px solid #c3d9a4; color: var(--green-dark); }
.form-status.err { background: #fbe6e3; border: 1px solid #f0c0b8; color: #a3311f; }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { margin-bottom: .8rem; }
.contact-list .label {
  display: block; font-size: .82rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; color: var(--ink-soft);
}
.contact-list a { overflow-wrap: anywhere; }

/* --- footer ------------------------------------------------------------- */

.site-footer {
  background: var(--ink); color: #d9d2c6; margin-top: 2rem;
  padding: 2rem 0 1.6rem; font-size: .93rem;
}
.site-footer a { color: var(--honey); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: space-between; align-items: flex-start; }
.footer-tagline { font-style: italic; color: var(--honey); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-bottom {
  margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; justify-content: space-between;
  color: #9d9689; font-size: .87rem;
}
.footer-account { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.footer-legal { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-left: auto; }
.footer-user { color: #9d9689; }

.btn-login {
  display: inline-block; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px;
  padding: .3rem .95rem; font: inherit; font-size: .85rem; font-weight: 600;
  color: var(--honey) !important; background: none; cursor: pointer;
  text-decoration: none !important;
}
.btn-login:disabled { opacity: .6; cursor: default; }
.btn-login:hover { background: var(--honey); color: var(--ink) !important; border-color: var(--honey); }

.counter { display: none; }
.counter.show { display: inline; }
.counter strong { color: #fff; font-variant-numeric: tabular-nums; }

/* --- responsive --------------------------------------------------------- */

@media (max-width: 760px) {
  .navbar { flex-wrap: wrap; padding-block: .5rem; }
  .nav-toggle { display: inline-flex; order: 1; }
  .lang-switch { order: 2; margin-left: auto; }
  .nav-list {
    order: 3; flex-basis: 100%; flex-direction: column; gap: 0;
    display: none; border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .4rem;
  }
  .nav-list.open { display: flex; }
  .nav-list a { padding: .7rem .4rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-list a[aria-current="page"]::after { left: 0; right: auto; width: 2.2rem; bottom: 6px; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .lightbox button { width: 40px; height: 40px; }
}

@media print {
  .site-header .navbar, .site-footer, .btn { display: none; }
}

/* --- utilities & contact layout ---------------------------------------- */

.mt { margin-top: 1.4rem; }

.contact-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 800px) {
  .contact-grid { grid-template-columns: 320px 1fr; }
}

.noscript-note { margin-bottom: 1.5rem; }

/* --- modal dialog (product reservation) --------------------------------- */

.modal {
  position: fixed; inset: 0; z-index: 60; background: rgba(28, 25, 21, .6);
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.modal.open { display: flex; }
.modal-box {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-hover);
  padding: 1.6rem; width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto;
}
.modal-box h2 { margin-top: 0; }
.modal-intro { color: var(--ink-soft); font-size: .95rem; }
.modal-actions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1.2rem; }

.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
/* A hint sits either inside its .form-field (right under the input) or as the
   next sibling after one. The first case needs a small gap, the second has to
   pull up against the field's own bottom margin. */
.field-hint { font-size: .85rem; color: var(--ink-soft); margin: .3rem 0 0; }
.form-field + .field-hint,
.form-row + .field-hint { margin: -.6rem 0 1rem; }
/* One tickable line per product in the reservation window. The rows sit inside
   a .form-field, whose rules make every label a block and every input full
   width - so these have to be a shade more specific to win. */
.res-items { display: grid; gap: .4rem; }
.res-items .res-item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: .5rem .7rem; cursor: pointer;
}
.res-items .res-item:hover { border-color: var(--honey); }
.res-items .res-item input[type="checkbox"] {
  width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--honey);
}
.res-items .res-item-name { font-weight: 600; }
.res-items .res-item-amount {
  width: 4.5rem; margin: 0; padding: .35rem .5rem; text-align: right;
}
.res-items .res-item-amount:disabled { opacity: .45; }

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-legal { margin-left: 0; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; }
}

/* --- back to top -------------------------------------------------------- */

.to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 40;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow); cursor: pointer;
  display: grid; place-items: center; padding: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--honey); border-color: var(--honey); color: #fff; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 560px) {
  .to-top { right: .8rem; bottom: .8rem; width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .to-top { transition: none; }
}

/* --- product areas ------------------------------------------------------ */

.area-title {
  margin: 3.4rem 0 1.1rem; padding-bottom: .35rem;
  border-bottom: 2px solid var(--honey-light);
}
#product-list > .area-title:first-child { margin-top: 0; }

/* auto-fill, not auto-fit: an area with only one or two products keeps its
   cards the same size as a full row instead of stretching them. */
#product-list .grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
