:root {
  --bg: #fffaf3;
  --bg-soft: #f7efe3;
  --surface: #fff;
  --surface-soft: #fffaf4;
  --ink: #1f1915;
  --ink-soft: #4e4036;
  --brand: #b84c21;
  --brand-dark: #8d3615;
  --mint: #2f7861;
  --line: #e7d8c2;
  --radius: 18px;
  --shadow-sm: 0 10px 22px rgba(33, 24, 16, 0.09);
  --shadow-md: 0 22px 44px rgba(33, 24, 16, 0.14);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Literata", Georgia, serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% -5%, #f6e9d3 0, transparent 30%),
    radial-gradient(circle at 95% 12%, #f4e7d3 0, transparent 24%),
    var(--bg);
  line-height: 1.65;
  text-align: center;
}

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 78vh;
  background:
    linear-gradient(108deg, rgba(24, 17, 12, 0.55), rgba(63, 32, 17, 0.34)),
    url("assets/images/bg-hens.webp") right center/cover no-repeat;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 120%, rgba(255, 193, 139, 0.34), transparent 40%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.14), transparent 45%);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.42) 0.8px, transparent 0.8px);
  background-size: 3px 3px;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-top: 0;
  padding-top: 0.85rem;
}

.nav-shell {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.74rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(19, 13, 10, 0.58);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.brand {
  text-decoration: none;
  color: #fff;
  text-align: left;
  border-radius: 10px;
  padding: 0.3rem 0.45rem;
  transition: background-color 140ms ease;
}

.brand:hover {
  background: rgba(255, 255, 255, 0.08);
}

.brand-mark {
  display: block;
  font: 700 1.34rem/1 "Barlow Condensed", sans-serif;
  letter-spacing: 0.045em;
}

.brand-sub {
  display: block;
  margin-top: 0.16rem;
  font: 600 0.8rem/1.1 "Barlow Condensed", sans-serif;
  letter-spacing: 0.08em;
  color: #efd9bf;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.28rem;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0.34rem;
}

.nav-links a {
  position: relative;
  padding: 0.62rem 0.84rem;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  font: 600 1.03rem/1 "Barlow Condensed", sans-serif;
  letter-spacing: 0.04em;
  transition: background-color 140ms ease, color 140ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0.74rem;
  right: 0.74rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 10px;
  background: #ffd7a8;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 150ms ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fffaf3;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a[aria-current="page"] {
  color: #fffaf3;
  background: rgba(255, 255, 255, 0.13);
}

.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-cta {
  text-decoration: none;
  color: #fff;
  font: 700 0.99rem/1 "Barlow Condensed", sans-serif;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.72rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #ba4f21, #de7440);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
  transition: transform 140ms ease, filter 140ms ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 1.5rem 0 2.8rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, 360px);
  gap: 1.2rem;
  align-items: stretch;
  background: rgba(255, 250, 243, 0.95);
  border: 1px solid rgba(142, 109, 80, 0.26);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.2rem;
  box-shadow: var(--shadow-md);
}

.hero-logo {
  background: #fff;
  border-radius: 14px;
  padding: 0.62rem;
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 240px;
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.45rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(184, 76, 33, 0.28);
  color: var(--brand-dark);
  background: #ffefdf;
  font: 700 0.9rem/1 "Barlow Condensed", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.012em;
  line-height: 1.08;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.55rem);
  color: var(--ink);
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  margin-bottom: 0.95rem;
}

h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  margin-top: 1.4rem;
  margin-bottom: 0.45rem;
}

p, li { color: var(--ink-soft); }

.hero-copy p { margin: 0.3rem 0; }
.hero-copy { text-align: left; }

.hero-lead {
  font-size: 1.12rem;
  color: #45372d;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.hero-actions .btn {
  margin-top: 0;
}

.btn {
  display: inline-block;
  margin-top: 0.72rem;
  padding: 0.74rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), #cf6838);
  color: #fff;
  text-decoration: none;
  font: 700 0.98rem/1 "Barlow Condensed", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
  transition: transform 140ms ease, filter 140ms ease;
}

.btn:hover { transform: translateY(-1px); filter: brightness(1.04); }

.btn-ghost {
  background: #fff;
  border: 1px solid rgba(184, 76, 33, 0.42);
  color: var(--brand-dark);
  box-shadow: none;
}

.btn-ghost:hover {
  background: #fff7ef;
}

/* Generic list design upgrade */
main ul:not(.nudeln-items):not(.nav-links) {
  list-style: none;
  margin: 0.8rem 0 0.2rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

main ul:not(.nudeln-items):not(.nav-links) li {
  position: relative;
  padding: 0.62rem 0.82rem 0.62rem 1.9rem;
  border: 1px solid rgba(122, 90, 60, 0.16);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
  transition: transform 130ms ease, box-shadow 130ms ease, border-color 130ms ease;
}

main ul:not(.nudeln-items):not(.nav-links) li::before {
  content: "";
  position: absolute;
  left: 0.72rem;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--brand), #d47743);
  transform: translateY(-50%);
}

main ul:not(.nudeln-items):not(.nav-links) li:hover {
  transform: translateY(-1px);
  border-color: rgba(184, 76, 33, 0.35);
  box-shadow: 0 8px 18px rgba(43, 29, 17, 0.1);
}

.hero-facts {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  justify-content: flex-start;
}

.hero-facts span {
  border-radius: 8px;
  padding: 0.36rem 0.62rem;
  background: #f8ead9;
  border: 1px solid #dfc2a0;
  color: #533f2e;
  font: 600 0.95rem/1.2 "Barlow Condensed", sans-serif;
  letter-spacing: 0.04em;
}

.hero-panel {
  border-radius: 14px;
  border: 1px solid rgba(130, 98, 72, 0.25);
  background: linear-gradient(180deg, #fffaf4, #fff3e6);
  padding: 1rem;
  display: grid;
  align-content: start;
  gap: 0.8rem;
  text-align: left;
}

.hero-panel p {
  margin: 0;
}

.hero-panel-title {
  font: 700 1.05rem/1.2 "Barlow Condensed", sans-serif;
  letter-spacing: 0.04em;
  color: #442f20;
}

.hero-inline-link {
  display: inline-block;
  width: fit-content;
  text-decoration: none;
  color: #7d3415;
  font: 700 0.92rem/1 "Barlow Condensed", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 2px solid rgba(125, 52, 21, 0.25);
  padding-bottom: 0.2rem;
}

.hero-inline-link:hover {
  border-bottom-color: rgba(125, 52, 21, 0.7);
}

main { padding-bottom: 1rem; }

.section {
  padding: 3.7rem 0;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.section:last-of-type { border-bottom: 0; }
.section.card-like { margin-top: 0.65rem; }

.section-photo-products,
.section-photo-history,
.section-photo-contact {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.section-photo-products {
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.5), rgba(255, 250, 244, 0.58)),
    url("assets/images/bg-egg-dishes.webp") center/cover no-repeat;
  padding: 2rem 1.4rem;
}

.section-photo-history {
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.44), rgba(255, 248, 240, 0.56)),
    url("assets/images/bg-farm-eggs.webp") center/cover no-repeat;
}

.section-photo-contact {
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.86), rgba(255, 248, 240, 0.92)),
    url("assets/images/bg-hens.webp") center/cover no-repeat;
}

.intro {
  max-width: 830px;
  margin-top: 0.9rem;
}

.card-like,
.panel,
.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.card-like { padding: 1.45rem; }

/* Ensure photo sections stay visible even when combined with .card-like */
.section-photo-products.card-like {
  background:
    linear-gradient(180deg, rgba(31, 23, 18, 0.44), rgba(31, 23, 18, 0.4)),
    url("assets/images/bg-egg-dishes.webp") center/cover no-repeat;
}

.section-photo-history.card-like {
  background:
    linear-gradient(180deg, rgba(22, 17, 13, 0.5), rgba(22, 17, 13, 0.46)),
    url("assets/images/bg-farm-eggs.webp") center/cover no-repeat;
}

.section-photo-products .card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(2px);
}

.section-photo-products > h2,
.section-photo-products > p,
.section-photo-history > h2,
.section-photo-history > p {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
}

.nudeln-toggle {
  margin-top: 1rem;
}

.nudeln-list {
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  text-align: left;
}

#nudeln-sortiment {
  max-height: 360px;
  overflow: auto;
  scrollbar-width: thin;
}

.nudeln-list h3 {
  margin-top: 0;
}

.nudeln-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nudeln-items li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7rem;
  padding: 0.26rem 0;
  border-bottom: 1px dashed rgba(90, 64, 43, 0.16);
  transition: background-color 120ms ease;
}

.nudeln-items li:hover {
  background: rgba(255, 255, 255, 0.66);
}

.nudeln-items li:last-child {
  border-bottom: 0;
}

.nudeln-items strong {
  white-space: nowrap;
}

.signature {
  color: #2b5f91;
  font-style: italic;
}

.cards-3,
.grid-2,
.split {
  display: grid;
  gap: 1.2rem;
  justify-items: center;
}

.cards-3 {
  margin-top: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  padding: 1rem;
  transition: transform 140ms ease;
  text-align: center;
}

.card:hover { transform: translateY(-2px); }

.card img {
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split {
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.9fr);
  align-items: start;
}

.split > div:first-child,
.split > img:first-child,
.split > .feature-image {
  min-width: 0;
  width: 100%;
}

.gallery-3 {
  display: grid;
  gap: 0.75rem;
  position: sticky;
  top: 1rem;
}

.gallery-3 img {
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-image {
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.nudeln-image {
  max-height: 520px;
  width: 100%;
  object-fit: cover;
}

.cols {
  columns: 2;
  column-gap: 1.8rem;
  padding-left: 0;
  list-style-position: outside;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.panel {
  padding: 1.3rem;
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 560px;
  margin-inline: auto;
}

.team-card {
  margin: 0;
  padding: 0.25rem 0.25rem 0.1rem;
  border: 0;
  background: transparent;
}

.team-card img {
  width: 100%;
  max-width: 130px;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.team-card figcaption {
  margin-top: 0.4rem;
  color: var(--ink);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.03rem;
  letter-spacing: 0.03em;
}

.team-note {
  grid-column: 1 / -1;
  margin: 0.25rem 0 0;
  padding-top: 0.45rem;
  border-top: 1px dashed var(--line);
  font-size: 0.95rem;
}

.footer {
  margin-top: 1.1rem;
  background: linear-gradient(135deg, #211a16, #3a2d24);
  color: #ece4dc;
  padding: 1.5rem 0 1.8rem;
}

.footer p { margin: 0.28rem 0; color: inherit; }
.footer a {
  color: #ffd3a5;
  margin-right: 0.9rem;
  text-decoration-thickness: 1px;
}

@media (max-width: 980px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-panel {
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 0.9rem;
  }

  .hero-panel .hero-logo {
    max-width: 170px;
  }

  .hero-panel-title,
  .hero-panel p,
  .hero-inline-link {
    grid-column: 2;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .gallery-3 {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container { width: min(1120px, calc(100% - 1.2rem)); }

  .hero { min-height: auto; }
  .hero {
    background:
      linear-gradient(108deg, rgba(24, 17, 12, 0.48), rgba(63, 32, 17, 0.32)),
      url("assets/images/bg-hens.webp") 78% center/cover no-repeat;
  }

  .top-nav {
    top: 0;
    padding-top: 0.5rem;
  }

  .nav-shell {
    grid-template-columns: 1fr;
    gap: 0.62rem;
    padding: 0.66rem;
    border-radius: 14px;
  }

  .brand {
    text-align: center;
    padding: 0.1rem 0.2rem;
  }

  .brand-mark { font-size: 1.2rem; }
  .brand-sub { font-size: 0.72rem; }

  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.24rem;
    padding: 0.3rem;
  }

  .nav-links a {
    padding: 0.52rem 0.7rem;
    font-size: 0.98rem;
  }

  .nav-cta {
    justify-self: center;
    width: min(220px, 100%);
    text-align: center;
  }

  .hero-content { padding: 0.85rem 0 1.4rem; }

  .hero-layout {
    grid-template-columns: 1fr;
    padding: 0.9rem;
    border-radius: 14px;
    gap: 0.85rem;
  }

  .hero-copy,
  .hero-panel {
    text-align: center;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-actions .btn {
    margin-top: 0;
  }

  .hero-facts {
    justify-content: center;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    row-gap: 0.55rem;
  }

  .hero-panel-title,
  .hero-panel p,
  .hero-inline-link {
    grid-column: auto;
  }

  .hero-inline-link {
    margin-inline: auto;
  }

  .hero-logo { max-width: 180px; }

  h1 { font-size: clamp(1.8rem, 8.1vw, 2.45rem); }
  h2 { font-size: clamp(1.7rem, 6.8vw, 2.3rem); }
  h3 { font-size: 1.24rem; }

  .section { padding: 2.6rem 0; }
  .card-like { padding: 1rem; }
  .panel { padding: 1rem; }
  .section-photo-products { padding: 1rem 0.85rem; }

  .cols { columns: 1; }
  main ul:not(.nudeln-items):not(.nav-links) li {
    padding: 0.58rem 0.72rem 0.58rem 1.7rem;
  }
  .nudeln-image { max-height: 360px; }
  .nudeln-items li { grid-template-columns: 1fr; gap: 0.12rem; }
  #nudeln-sortiment { max-height: 56vh; }

  .gallery-3 {
    grid-template-columns: 1fr;
  }

  .gallery-3 img { aspect-ratio: 16 / 10; }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 220px;
    gap: 0.6rem;
  }

  .team-card img {
    max-width: 92px;
  }
}
