/* =============================================================
   Züttels Geflügelmast – Webseite
   Farben aus dem Emmental: Tannengrün, Wiese, Stroh, Scheunenrot
   ============================================================= */
@font-face { font-family: "Bitter"; font-weight: 500; font-display: swap; src: url(fonts/bitter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Bitter"; font-weight: 700; font-display: swap; src: url(fonts/bitter-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Bitter"; font-weight: 800; font-display: swap; src: url(fonts/bitter-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson"; font-weight: 400; font-display: swap; src: url(fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson"; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/atkinson-hyperlegible-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Atkinson"; font-weight: 700; font-display: swap; src: url(fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); }

:root {
  --fir: #1f3b2d;
  --fir-2: #2c5240;
  --meadow: #4f7a34;
  --meadow-soft: #e3ecd8;
  --straw: #e9c46a;
  --straw-soft: #fbf1d4;
  --barn: #9e2b25;
  --paper: #fafbf7;
  --white: #ffffff;
  --ink: #1d231f;
  --muted: #56615a;
  --line: #d4dccb;
  --radius: 10px;
  --focus: 0 0 0 3px var(--white), 0 0 0 6px var(--barn);
  --wrap: 1180px;
  --serif: "Bitter", Georgia, "Times New Roman", serif;
  --sans: "Atkinson", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.1875rem/1.65 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--fir-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--barn); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); color: var(--fir); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--white); padding: 10px 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 10px 22px; border-radius: 999px; border: 2px solid transparent;
  font: 700 1.05rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--barn); color: var(--white); }
.btn-primary:hover { background: #82211c; color: var(--white); }
.btn-ghost { background: transparent; color: var(--fir); border-color: var(--fir); }
.btn-ghost:hover { background: var(--fir); color: var(--white); }
.btn-lg { min-height: 58px; padding: 12px 28px; font-size: 1.15rem; }
.btn-block { width: 100%; }

/* ---------- Kopf ---------- */
.masthead { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.masthead-row { display: flex; align-items: center; gap: 20px; min-height: 92px; }
.brand { display: flex; flex-direction: column; text-decoration: none; margin-right: auto; line-height: 1; }
.brand-name { font: 800 2.3rem/1 var(--serif); color: var(--fir); letter-spacing: -.02em; }
.brand-sub { font: 500 .98rem/1.3 var(--serif); color: var(--meadow); margin-top: 4px; }
.phone { display: inline-flex; align-items: center; gap: 8px; background: var(--straw-soft); color: var(--fir); font-weight: 700; padding: 10px 18px; border-radius: 999px; text-decoration: none; border: 1px solid #ecd9a2; white-space: nowrap; }
.phone:hover { background: var(--straw); color: var(--fir); }
.nav-toggle { display: none; }

.mainnav { background: var(--fir); }
.mainnav > ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0 auto; padding-top: 0; padding-bottom: 0; }
.mainnav li { position: relative; }
.mainnav > ul > li > a, .nav-parent {
  display: block; padding: 15px 18px; color: #f2f5ee; text-decoration: none; font: 700 1.02rem/1.2 var(--sans);
  background: none; border: 0; cursor: pointer;
}
.nav-parent::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.mainnav > ul > li > a:hover, .nav-parent:hover { background: var(--fir-2); color: var(--white); }
.mainnav > ul > li.is-active > a, .mainnav > ul > li.is-active > .nav-parent { box-shadow: inset 0 -4px 0 var(--straw); }
.subnav { display: none; position: absolute; left: 0; top: 100%; min-width: 250px; list-style: none; margin: 0; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 10px 24px rgba(31,59,45,.14); }
.subnav a { display: block; padding: 10px 14px; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 700; }
.subnav a:hover, .subnav a[aria-current] { background: var(--meadow-soft); color: var(--fir); }
li.is-open > .subnav { display: block; }
@media (hover: hover) and (min-width: 901px) { .mainnav li:hover > .subnav { display: block; } }

/* ---------- Startseite: Kopfbereich ---------- */
.hero { position: relative; background: linear-gradient(180deg, #eef3e7 0%, #e3ecd8 100%); padding: 56px 0 120px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 380px); gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); max-width: 14ch; }
.hero-lead { font-size: 1.3rem; color: #33413a; max-width: 34em; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 120px; display: block; }
.hills .h1 { fill: #b9cfa3; }
.hills .h2 { fill: var(--paper); }

/* ---------- Kalenderblatt ---------- */
.sheet { position: relative; background: var(--white); border-radius: 6px 6px 12px 12px; box-shadow: 0 2px 0 #d9d2c0, 0 14px 30px rgba(31,59,45,.18); text-align: center; transform: rotate(-1.5deg); margin-top: 14px; }
.sheet-rings { position: absolute; top: -12px; left: 0; right: 0; display: flex; justify-content: space-around; padding: 0 22%; }
.sheet-rings i { width: 14px; height: 26px; border-radius: 8px; background: linear-gradient(90deg, #8d8d8d, #e6e6e6 45%, #9a9a9a); box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.sheet-top { background: var(--barn); color: var(--white); font: 700 1.05rem/1 var(--serif); letter-spacing: .02em; padding: 22px 16px 14px; border-radius: 6px 6px 0 0; }
.sheet-body { padding: 14px 20px 8px; }
.sheet-weekday { font: 700 1.15rem/1.2 var(--serif); color: var(--barn); }
.sheet-day { display: block; font: 800 6.2rem/0.95 var(--serif); color: var(--ink); letter-spacing: -.04em; margin: 4px 0; }
.sheet-month { font: 700 1.5rem/1.2 var(--serif); color: var(--fir); }
.sheet-what { margin-top: 8px; font-size: 1.15rem; font-weight: 700; color: var(--meadow); }
.sheet-when { display: inline-block; margin: 10px 0 6px; padding: 3px 12px; background: var(--straw-soft); border-radius: 999px; font-size: .95rem; color: #6b5414; font-weight: 700; }
.sheet-note { margin: 12px 0 16px; color: var(--muted); }
.sheet-actions { display: grid; gap: 10px; padding: 8px 20px 22px; border-top: 1px dashed var(--line); margin-top: 10px; }
.sheet-link { font-size: .98rem; }
.sheet-empty .sheet-body { padding-bottom: 22px; }
.aside .sheet { transform: none; margin-bottom: 28px; }
.aside .sheet-day { font-size: 4.6rem; }

/* ---------- Unterseiten-Kopf ---------- */
.pagehead { background: var(--meadow-soft); border-bottom: 1px solid var(--line); padding: 44px 0 36px; }
.pagehead h1 { margin: 0; }
.pagehead-lead { max-width: 44em; margin: 12px 0 0; font-size: 1.2rem; color: #33413a; }
.pagehead.has-image { background: linear-gradient(rgba(20,40,30,.35), rgba(20,40,30,.55)), var(--headimg) center / cover no-repeat; padding: 120px 0 40px; }
.pagehead.has-image h1 { color: var(--white); text-shadow: 0 2px 12px rgba(0,0,0,.35); }

/* ---------- Inhalt + Seitenspalte ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; padding-top: 48px; padding-bottom: 72px; align-items: start; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.85rem; margin-top: 1.2em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose table { border-collapse: collapse; width: 100%; max-width: 100%; margin: 1em 0; }
.prose td, .prose th { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.prose figure { margin: 1.2em 0; max-width: 100%; overflow-x: auto; }
.prose figure.table { width: auto !important; }
.prose img { border-radius: 6px; }
.prose span[style*="font-size: 10px"] { font-size: .85rem !important; color: var(--muted); }
.prose figure.table td:has(> .photo) { border: 0; padding: 4px; }
.photo { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; transition: transform .3s; }
.photo:hover img { transform: scale(1.03); }

.aside { position: sticky; top: 20px; display: grid; gap: 24px; }
.aside h2 { font-size: 1.25rem; margin-bottom: .6em; }
.note { background: var(--straw-soft); border: 1px solid #ecd9a2; border-radius: var(--radius); padding: 20px 22px; }
.note-body { font-size: 1.05rem; }
.note-body p { margin: 0 0 .6em; text-align: left !important; }
.note-body p:empty, .note-body p:has(> br:only-child) { display: none; }
.contactcard { background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--meadow); border-radius: var(--radius); padding: 20px 22px; }
.contactcard p { margin: 0; }

/* ---------- Shop ---------- */
.layout-shop { grid-template-columns: minmax(0, 1fr) 320px; }
.catjump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.catjump a { padding: 8px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--fir); font-weight: 700; }
.catjump a:hover { border-color: var(--fir); }
.cat { margin-bottom: 32px; scroll-margin-top: 16px; }
.cat h2 { padding-bottom: 8px; border-bottom: 3px solid var(--straw); }
.articles { list-style: none; margin: 0; padding: 0; }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 4px 16px; align-items: center; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.article:has(.article-img) { grid-template-columns: 44px minmax(0, 1fr) 190px; }
.article.is-chosen { background: var(--meadow-soft); border-radius: 8px; }
.article-img img { display: block; width: 44px; height: 44px; object-fit: cover; border-radius: 5px; }
.article-info { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; min-width: 0; }
.article-name { font-weight: 700; font-size: 1.08rem; cursor: pointer; }
.article-desc { order: 3; flex-basis: 100%; margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.35; }
.article-price { margin: 0; color: var(--fir-2); font-size: 1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.article-qty input { min-height: 42px; padding: 7px 11px; font-size: 1.02rem; }
.badge { display: inline-block; background: var(--barn); color: var(--white); font-size: .8rem; padding: 1px 10px; border-radius: 999px; vertical-align: 2px; margin-left: 6px; }
.fineprint { color: var(--muted); font-size: .95rem; }
.empty { padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }

input, select, textarea {
  width: 100%; font: 400 1.1rem/1.4 var(--sans); color: var(--ink); background: var(--white);
  border: 2px solid #b4bfaa; border-radius: 8px; padding: 11px 13px; min-height: 52px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--fir); box-shadow: 0 0 0 3px rgba(233,196,106,.6); }
.article-qty input { text-align: left; }
.article.is-chosen .article-qty input { border-color: var(--meadow); font-weight: 700; }

.checkout { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 28px; margin-top: 16px; scroll-margin-top: 16px; }
.summary { background: var(--meadow-soft); border-radius: 10px; padding: 14px 18px; margin-bottom: 22px; }
.summary ul { margin: 0; padding-left: 20px; }
.summary-empty { margin: 0; color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px 18px; }
.f { grid-column: span 3; }
.f-s { grid-column: span 2; }
.f-s + .f { grid-column: span 4; }
.f-wide { grid-column: span 6; }
.f-full { grid-column: 1 / -1; }
.f label, .fields label { display: block; font-weight: 700; margin: 14px 0 6px; }
.req, .opt { font-weight: 400; color: var(--muted); font-size: .92rem; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0; font-weight: 400; cursor: pointer; }
.check input { width: 26px; height: 26px; min-height: 0; flex: none; margin-top: 2px; accent-color: var(--fir); }
.alert { background: #fdecea; border-left: 6px solid var(--barn); padding: 16px 20px; border-radius: 8px; margin-bottom: 24px; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.cartbar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 30; background: var(--fir); color: var(--white); padding: 14px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; box-shadow: 0 8px 22px rgba(0,0,0,.25); white-space: nowrap; }
.cartbar:hover { color: var(--white); background: var(--fir-2); }

.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 8px 28px 28px; }
.contact-form .btn { margin-top: 22px; }

.page-plain { padding-top: 56px; padding-bottom: 80px; max-width: 760px; }
.thanks { text-align: center; }
.thanks-mark { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; background: var(--meadow); color: var(--white); font-size: 3rem; line-height: 84px; }
.lead { font-size: 1.25rem; }

/* ---------- Fuss ---------- */
.sitefoot { position: relative; background: var(--fir); color: #dfe7d9; margin-top: 60px; padding: 40px 0 36px; font-size: 1rem; }
.sitefoot a { color: var(--white); }
.hills-foot { position: absolute; top: -59px; left: 0; width: 100%; height: 60px; fill: var(--fir); }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 32px; }
.foot-name { font: 700 1.3rem/1.2 var(--serif); color: var(--white); margin: 0 0 8px; }
.foot-grid p { margin: 0 0 12px; }
.foot-legal a { margin-right: 14px; }
.foot-cms, .foot-cms td { font-size: .9rem; color: #b9c8b3; }
.foot-cms table { width: auto !important; border-collapse: collapse; }
.foot-cms td { display: block; padding: 0 0 4px; width: auto !important; text-align: left !important; }

/* ---------- Bildvergrösserung ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(10,20,14,.85); }
.lightbox img { display: block; max-width: 94vw; max-height: 88vh; border-radius: 6px; }
.lightbox-close { position: fixed; top: 16px; right: 16px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--white); font-size: 1.4rem; cursor: pointer; }

/* ---------- Tablet / Handy ---------- */
@media (max-width: 1000px) {
  .layout, .layout-shop { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .aside { position: static; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero .sheet { max-width: 380px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--fir); background: var(--white); color: var(--fir); font: 700 1rem var(--sans); cursor: pointer; }
  .mainnav { display: none; }
  .mainnav.is-open { display: block; }
  .mainnav > ul { flex-direction: column; padding: 8px 0 16px; }
  .mainnav > ul > li > a, .nav-parent { width: 100%; text-align: left; padding: 14px 24px; font-size: 1.1rem; }
  .subnav { position: static; display: none; box-shadow: none; border: 0; border-radius: 0; background: var(--fir-2); padding: 0 0 8px; }
  .subnav a { color: #f2f5ee; padding: 12px 24px 12px 44px; }
  .subnav a:hover, .subnav a[aria-current] { background: rgba(255,255,255,.08); color: var(--white); }
  .masthead-row { flex-wrap: wrap; gap: 12px; padding-top: 14px; padding-bottom: 14px; min-height: 0; }
  .phone { order: 3; }
}
@media (max-width: 640px) {
  body { font-size: 1.125rem; }
  .wrap { padding: 0 16px; }
  .brand-name { font-size: 1.9rem; }
  .phone { width: 100%; justify-content: center; }
  .hero { padding: 36px 0 100px; }
  .sheet { transform: none; }
  .article, .article:has(.article-img) { grid-template-columns: minmax(0, 1fr) 128px; gap: 4px 10px; padding: 6px 4px; }
  .article-img { display: none; }
  .article-info { flex-direction: column; row-gap: 0; }
  .article-qty input { padding: 6px 8px; font-size: 1rem; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .f, .f-s, .f-s + .f, .f-wide { grid-column: 1 / -1; }
  .checkout, .contact-form { padding: 20px 16px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .cartbar { width: calc(100% - 32px); text-align: center; white-space: normal; padding: 10px 16px; font-size: .98rem; }
}
@media print { .masthead, .mainnav, .sitefoot, .aside, .cartbar { display: none; } }
