/* ============================================================
   ERTLER HOF — Website
   Farben & Logo nach BRAND.md (Originallogo, nicht nachgebaut)
   ============================================================ */

:root {
  --black:      #111110;
  --ink:        #23221E;
  --ink-soft:   #55524A;
  --yellow:     #F5B800;
  --yellow-dk:  #D9A200;
  --cream:      #FBF8F1;
  --sand:       #F2ECDF;
  --line:       #E2DACA;
  --line-dark:  #3A3832;
  --white:      #FFFFFF;

  --serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --gut: clamp(20px, 5vw, 48px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 350;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

/* ---------- Typografie ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--black);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 300;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow-dk);
  margin: 0 0 1.1rem;
  display: block;
}

.on-dark .eyebrow, .hero .eyebrow { color: var(--yellow); }

/* Ei als Aufzähl-Zeichen — Anlehnung an das "O" im Logo */
.egg-list { list-style: none; padding: 0; margin: 0; }
.egg-list li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.7rem;
}
.egg-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 10px; height: 13px;
  background: var(--yellow);
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
}

/* ---------- Layout ---------- */

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gut), 760px); margin-inline: auto; }

section { padding: clamp(56px, 9vw, 116px) 0; }
[id] { scroll-margin-top: 128px; }
@media (max-width: 900px) { [id] { scroll-margin-top: 108px; } }

.bg-sand   { background: var(--sand); }
.bg-white  { background: var(--white); }
.bg-dark   { background: var(--black); color: #E8E4DA; }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--white); }
.bg-dark .lead { color: #B9B4A8; }

.grid { display: grid; gap: clamp(28px, 4vw, 60px); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.wide-text { grid-template-columns: 1.05fr 0.95fr; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 30px;
  border: 1.5px solid var(--black);
  background: var(--black);
  color: var(--white);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--yellow); border-color: var(--yellow); color: var(--black); }

.btn-yellow { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.btn-yellow:hover { background: var(--black); border-color: var(--black); color: var(--white); }

.btn-ghost { background: transparent; color: var(--black); }
.btn-ghost:hover { background: var(--black); color: var(--white); }

.on-dark .btn-ghost, .hero .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.55); }
.on-dark .btn-ghost:hover, .hero .btn-ghost:hover { background: var(--white); color: var(--black); border-color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }

.link-more {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; color: var(--black);
  border-bottom: 1.5px solid var(--yellow); padding-bottom: 4px;
  transition: gap .2s ease;
}
.link-more:hover { gap: 1rem; }
.bg-dark .link-more { color: var(--white); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 241, .94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 0;
}
.logo img { width: 132px; height: auto; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav a {
  text-decoration: none;
  font-size: .76rem; font-weight: 600; letter-spacing: .17em; text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .18s ease, color .18s ease;
}
.nav a:hover { border-color: var(--yellow); }
.nav a.active { border-color: var(--yellow); color: var(--black); }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  padding: 8px; margin-right: -8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--black); margin: 5px 0;
  transition: transform .22s ease, opacity .22s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: clamp(520px, 82vh, 760px);
  display: flex; align-items: flex-end;
  color: var(--white);
  padding: 0 0 clamp(48px, 7vw, 90px);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,9,.42) 0%, rgba(10,10,9,.18) 38%, rgba(10,10,9,.82) 100%);
}
.hero .wrap { position: relative; }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero .lead { color: rgba(255,255,255,.86); max-width: 46ch; }
.hero-seal { width: 92px; margin-bottom: 22px; }

/* Runde Marken-Buttons im Hero */
.hero-badges {
  position: absolute; right: 0; bottom: 6px;
  display: flex; gap: 16px; align-items: center;
}
.hero-badges a {
  width: 84px; height: 84px;
  border-radius: 50%; overflow: hidden; display: block;
  border: 2px solid rgba(255,255,255,.85);
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hero-badges a:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
  border-color: #fff;
}
.hero-badges img { width: 100%; height: 100%; object-fit: cover; }

.hero-compact { min-height: clamp(340px, 46vh, 460px); align-items: center; padding: 60px 0; }
.hero-compact h1 { max-width: 20ch; }

/* ---------- Archivfotos (Sektion „Der Ursprung“) ---------- */

.archive {
  columns: 2;
  column-gap: clamp(20px, 3vw, 36px);
}
.archive figure {
  break-inside: avoid;
  margin: 0 0 clamp(20px, 3vw, 36px);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 12px 12px 0;
  box-shadow: 0 1px 2px rgba(35,34,30,.05);
}
.archive img { width: 100%; height: auto; }
.archive figcaption {
  font-size: .84rem;
  line-height: 1.55;
  color: var(--ink-soft);
  padding: 12px 4px 14px;
}

@media (max-width: 700px) { .archive { columns: 1; } }

/* ---------- Karten / Werte ---------- */

.value {
  border-top: 2px solid var(--black);
  padding-top: 20px;
}
.value .num {
  font-family: var(--serif); font-size: 1rem; color: var(--yellow-dk); display: block; margin-bottom: .6rem;
}
.value h3 { font-size: 1.3rem; margin-bottom: .45rem; }
.value p { font-size: .96rem; color: var(--ink-soft); }
.bg-dark .value { border-top-color: var(--yellow); }
.bg-dark .value p { color: #B9B4A8; }

.figure { margin: 0; }
.figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.figure.portrait img { aspect-ratio: 3 / 4; }
.figure.square img { aspect-ratio: 1 / 1; }
.figure.wide img { aspect-ratio: 16 / 9; }
.figure figcaption {
  font-size: .8rem; color: var(--ink-soft); margin-top: .8rem; letter-spacing: .02em;
}

/* Zahlen-Block */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.fact .big {
  font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1;
  color: var(--yellow); display: block; margin-bottom: .5rem;
}
.fact p { font-size: .95rem; color: #B9B4A8; margin: 0; }

/* ---------- Produkte ---------- */

.product {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.product img { aspect-ratio: 1 / 1; object-fit: cover; }
.product-body { padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; flex: 1; }
.product h3 { margin-bottom: .5rem; }
.product p { font-size: .96rem; color: var(--ink-soft); }
.price {
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.35rem; color: var(--black);
}
.price small { display: block; font-family: var(--sans); font-size: .78rem; color: var(--ink-soft); letter-spacing: .04em; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 22px 40px 22px 0; position: relative;
  font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--black);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 1.5rem; font-weight: 300; color: var(--yellow-dk);
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 40px 24px 0; color: var(--ink-soft); font-size: .99rem; }

/* ---------- Partner / Bezugsquellen ---------- */

.partner-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.partner-list div,
.partner-list a { background: var(--cream); padding: 22px 24px; display: block; text-decoration: none; color: inherit; transition: background .18s ease, color .18s ease; }
.partner-list a { position: relative; }
.partner-list a:hover { background: var(--black); color: var(--white); }
.partner-list a:hover span { color: rgba(255,255,255,.7); }
.partner-list a strong::after { content: " \2197"; color: var(--yellow-dk); font-weight: 400; }
.partner-list a:hover strong::after { color: var(--yellow); }
.partner-list strong { display: block; font-weight: 600; font-size: 1rem; }
.partner-list span { font-size: .88rem; color: var(--ink-soft); }

/* ---------- Kontakt ---------- */

.contact-card { background: var(--white); border: 1px solid var(--line); padding: clamp(26px, 4vw, 44px); }
.contact-card dt { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow-dk); font-weight: 600; margin-top: 1.6rem; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: .35rem 0 0; font-size: 1.05rem; }
.contact-card a { text-decoration: none; border-bottom: 1px solid var(--yellow); }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin-bottom: .5rem; color: var(--ink-soft); }
.form-field input, .form-field textarea {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 1rem;
  border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 0;
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--yellow); outline-offset: -1px; }
.form-note { font-size: .82rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */

.site-footer { background: #000; color: #A8A49A; padding: clamp(52px, 7vw, 88px) 0 32px; }
.site-footer h4 { color: var(--white); font-family: var(--sans); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; margin-bottom: 1.1rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.site-footer a { color: #D8D4CA; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; font-size: .95rem; }
.footer-logo img { width: 168px; margin-bottom: 20px; }
.footer-bottom {
  margin-top: clamp(38px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: space-between;
  font-size: .84rem; color: #7C786F;
}
.social { display: flex; gap: 14px; margin-top: 6px; }
.social a {
  width: 38px; height: 38px; border: 1px solid var(--line-dark); border-radius: 50%;
  display: grid; place-items: center; transition: border-color .2s, background .2s;
}
.social a:hover { border-color: var(--yellow); background: var(--yellow); }
.social a:hover svg { fill: var(--black); }
.social svg { width: 17px; height: 17px; fill: #D8D4CA; }

/* Hinweis-Box für den Entwurf */
.draft-note {
  background: #FFF6D8; border: 1px dashed var(--yellow-dk);
  padding: 14px 18px; font-size: .86rem; color: #6B5500;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-3, .partner-list { grid-template-columns: repeat(2, 1fr); }
  .split, .split.wide-text { grid-template-columns: 1fr; }
  .split.reverse .split-img { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr; gap: 28px; }

  .logo img { width: 104px; }
  .header-inner { padding: 10px 0; }
  .hero-badges { position: static; margin-top: 30px; }
  .hero-badges a { width: 68px; height: 68px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 0 var(--gut); max-height: 0; overflow: hidden;
    transition: max-height .28s ease, padding .28s ease;
  }
  .nav-open .nav { max-height: 420px; padding: 10px var(--gut) 26px; }
  .nav a { width: 100%; padding: 13px 0; font-size: .85rem; border-bottom: 1px solid transparent; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .g-2, .g-3, .g-4, .partner-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
