/* ============================================================
   Dorfhonig-Plattform – gemeinsames Design für alle Unterseiten
   Farben & Grundformen sind aus der Startseite (index.html)
   übernommen, damit die ganze Plattform wie aus einem Guss wirkt.
   ============================================================ */

:root {
  --paper: #eee5d6;
  --paper-light: #f4ecdf;
  --clay: #cfb998;
  --honey: #d49a34;
  --honey-dark: #9a641f;
  --forest: #365441;
  --forest-light: #74866b;
  --ink: #2f281f;
  --muted: #6d655a;
  --line: rgba(47, 40, 31, .13);
  --white: #f6edd6;
  --shadow: 0 18px 55px rgba(51, 43, 31, .11);
  --shadow-soft: 0 10px 30px rgba(51, 43, 31, .08);
  --radius: 28px;
  --radius-sm: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .2;
  pointer-events: none;
  background-image: radial-gradient(rgba(47, 40, 31, .18) .6px, transparent .6px);
  background-size: 9px 9px;
}

h1, h2, h3, h4, .serif {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.1;
  font-weight: 500;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.03em; }
h3 { font-size: 1.4rem; }
p { color: var(--muted); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.wrap-narrow { width: min(760px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 80px 0; }
.soft-section { background: rgba(218, 204, 182, .52); border-block: 1px solid var(--line); }
.eyebrow {
  color: var(--honey-dark);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.lead { max-width: 680px; margin-top: 16px; font-size: 1.1rem; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .lead { margin-inline: auto; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--forest); }
.btn-primary:hover { background: #253d2e; }
.btn-honey { color: #2f2416; background: #e2ad50; }
.btn-honey:hover { background: #efc36f; }
.btn-ghost { color: var(--ink); border-color: var(--line); background: rgba(255, 255, 255, .72); }
.btn-ghost:hover { background: #fff; }
.btn-small { min-height: 42px; padding: 8px 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-danger { color: #fff; background: #a8453a; }
.btn-danger:hover { background: #8d362c; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(247, 242, 232, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-bar {
  width: min(1180px, calc(100% - 40px));
  height: 92px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand img { height: 76px; width: auto; }
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav a { font-weight: 650; font-size: .98rem; }
.nav a:hover { color: var(--honey-dark); }
.nav a.active { color: var(--honey-dark); }
.nav-cta {
  background: var(--forest);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
}
.nav-cta:hover { background: #253d2e; }
.menu-button {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 46px;
  height: 46px;
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .menu-button { display: block; }
  .nav {
    position: absolute;
    top: 92px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    background: rgba(247, 242, 232, .98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-radius: 12px; }
  .nav a:hover { background: rgba(255, 255, 255, .6); }
}

/* ---------- Page hero (kleiner Kopfbereich auf Unterseiten) ---------- */
.page-hero {
  padding: 64px 0 40px;
  background: linear-gradient(180deg, rgba(212, 154, 52, .14), transparent);
}
.page-hero .lead { font-size: 1.15rem; }

/* ---------- Karten / Grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
@media (max-width: 820px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.card.linkable:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media {
  aspect-ratio: 4 / 3;
  background: var(--clay) center/cover no-repeat;
  position: relative;
}
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { margin-bottom: 2px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.price { font-family: Georgia, serif; font-size: 1.35rem; color: var(--honey-dark); font-weight: 600; }

/* ---------- Badges / Chips ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .02em;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(212, 154, 52, .18);
  color: var(--honey-dark);
}
.badge-green { background: rgba(54, 84, 65, .14); color: var(--forest); }
.badge-grey { background: rgba(47, 40, 31, .09); color: var(--muted); }
.badge-red { background: rgba(168, 69, 58, .14); color: #8d362c; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: .85rem;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .6);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.chip:hover { background: #fff; }
.chip.active { background: var(--forest); color: #fff; border-color: var(--forest); }

/* ---------- Formulare / Panels ---------- */
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 28px;
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 650; font-size: .92rem; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--paper-light);
  transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--honey);
  background: #fdf8ec;
}
.field textarea { min-height: 100px; resize: vertical; }
.field .hint { font-size: .82rem; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.form-status {
  margin-top: 12px;
  font-weight: 650;
  color: var(--forest);
}

/* ---------- Suchleiste ---------- */
.searchbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 10px 10px 22px;
  box-shadow: var(--shadow-soft);
  align-items: center;
}
.searchbar input, .searchbar select {
  border: none;
  background: none;
  padding: 10px 6px;
  min-width: 0;
}
.searchbar input:focus, .searchbar select:focus { outline: none; }
.searchbar .sep { width: 1px; align-self: stretch; background: var(--line); }
.searchbar input.grow { flex: 1; min-width: 140px; }
@media (max-width: 680px) {
  .searchbar { border-radius: var(--radius-sm); flex-direction: column; align-items: stretch; padding: 16px; }
  .searchbar .sep { display: none; }
  .searchbar .btn { width: 100%; }
}

/* ---------- Info-/Hinweis-Boxen ---------- */
.notice {
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .6);
}
.notice-honey { background: rgba(212, 154, 52, .14); border-color: rgba(212, 154, 52, .35); }
.notice-info { background: rgba(54, 84, 65, .1); border-color: rgba(54, 84, 65, .25); }

/* ---------- Tabellen (Dashboard / Admin) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
tr:last-child td { border-bottom: none; }
.table-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Avatar / Imker-Kopf ---------- */
.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--honey) center/cover no-repeat;
  border: 3px solid #fff;
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}
.avatar-sm { width: 48px; height: 48px; border-width: 2px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #2c2419;
  color: #e9ddc7;
  padding: 56px 0 28px;
  margin-top: 60px;
}
.site-footer a { color: #e9ddc7; opacity: .85; }
.site-footer a:hover { opacity: 1; color: var(--honey); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; margin-bottom: 12px; font-size: 1.05rem; }
.footer-grid a { display: block; padding: 4px 0; font-size: .95rem; }
.footer-logo { height: 48px; margin-bottom: 14px; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; opacity: .7; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Toast (kleine Rückmeldung) ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--forest);
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 650;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Helfer ---------- */
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row-between { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.hidden { display: none !important; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; }
.dl dt { color: var(--muted); font-size: .92rem; }
.dl dd { font-weight: 600; }
.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); }
