/* hanf.doctor — heller Medizin-Look (grün auf creme), abgeleitet vom Marken-Banner */
:root {
  --bg: #f6f3ec;
  --panel: #ffffff;
  --ink: #24382c;
  --muted: #5d6e60;
  --soft: #8a9a8d;
  --green: #3e6b4f;
  --green-dark: #2c5240;
  --green-soft: #eaf1ea;
  --line: #e5decf;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(36, 56, 44, 0.07);
  font-family: 'Segoe UI', system-ui, -apple-system, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--green-dark); text-decoration: none; }
img { max-width: 100%; display: block; }
main { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* Header */
.site-header {
  max-width: 1120px; margin: 0 auto; padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { width: 44px; height: 44px; border-radius: 10px; }
.brand-name { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.brand-name span { color: var(--green); }
.main-nav { display: flex; gap: 22px; }
.main-nav a { font-weight: 600; font-size: .95rem; color: var(--muted); padding: 6px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.is-active { color: var(--green-dark); border-bottom-color: var(--green); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  padding: 34px 0 46px;
}
.eyebrow { color: var(--green); font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 10px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; margin: 0 0 16px; }
.lede { color: var(--muted); font-size: 1.06rem; line-height: 1.7; max-width: 50ch; margin: 0 0 22px; }
.hero-art img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }

/* Kategorie-Chips */
.cat-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.cat-chips a {
  padding: 8px 16px; border-radius: 999px; font-size: .88rem; font-weight: 600;
  border: 1px solid var(--line); background: var(--panel); color: var(--muted);
  transition: all .2s ease;
}
.cat-chips a:hover { border-color: var(--green); color: var(--green-dark); }
.cat-chips a.is-active { background: var(--green); border-color: var(--green); color: #fff; }

/* Sektionen */
.section { padding: 26px 0 38px; }
.section h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; letter-spacing: -.01em; margin: 0 0 20px; }
.page-head { padding: 34px 0 8px; }
.page-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 18px; }

/* Produkt-Grid */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.product-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(36,56,44,.12); }
.product-media { aspect-ratio: 4 / 3; display: grid; place-items: center; background: #fff; border-bottom: 1px solid var(--line); padding: 18px; }
.product-media img { max-height: 100%; object-fit: contain; }
.product-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cat-badge {
  align-self: flex-start; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-dark); background: var(--green-soft); border-radius: 999px; padding: 4px 11px;
}
.product-body h3 { margin: 0; font-size: 1.02rem; line-height: 1.35; }
.product-body h3 a { color: var(--ink); }
.price { margin: 0; font-weight: 700; color: var(--green-dark); }
.price.big { font-size: 1.6rem; }
.price-note { color: var(--soft); font-weight: 400; font-size: .82rem; }
.cta {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; background: var(--green); color: #fff; font-weight: 700; font-size: .92rem;
  transition: background .2s ease, transform .2s ease;
}
.cta:hover { background: var(--green-dark); transform: translateY(-1px); }
.cta.big { padding: 15px 28px; font-size: 1rem; align-self: flex-start; }
.empty { color: var(--muted); background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }

/* Produkt-Detail */
.product-detail { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; padding: 40px 0 50px; align-items: start; }
.detail-media { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; display: grid; place-items: center; min-height: 320px; }
.detail-media img { max-height: 420px; object-fit: contain; }
.detail-info h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.015em; margin: 10px 0 14px; line-height: 1.15; }
.detail-desc { color: var(--muted); line-height: 1.7; margin: 14px 0 22px; }
.detail-note { color: var(--soft); font-size: .84rem; margin-top: 14px; max-width: 52ch; }
.back { display: inline-block; margin-top: 20px; color: var(--muted); font-size: .9rem; }
.back:hover { color: var(--green-dark); }

/* Trust-Reihe */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.trust-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.trust-item strong { color: var(--green-dark); display: block; margin-bottom: 6px; }
.trust-item p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }

/* Prosa / Recht */
.prose { max-width: 760px; color: var(--muted); }
.prose h2 { font-size: 1.25rem; color: var(--ink); margin: 1.8rem 0 .6rem; }
.prose h3 { font-size: 1.05rem; color: var(--ink); margin: 1.4rem 0 .5rem; }
.prose p, .prose li { line-height: 1.7; }
.prose address { font-style: normal; line-height: 1.7; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.muted { color: var(--soft); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #f0ece2; margin-top: 30px; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 34px 22px 42px; display: grid; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 9px; }
.footer-brand span { color: var(--muted); font-size: .85rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { font-size: .88rem; font-weight: 600; color: var(--muted); }
.footer-links a:hover { color: var(--green-dark); }
.footer-legal { color: var(--soft); font-size: .8rem; max-width: 860px; }
.footer-legal p { margin: 5px 0; }
.footer-legal a { color: var(--muted); text-decoration: underline; }

/* Admin */
.admin-wrap { max-width: 1000px; margin: 0 auto; padding: 30px 22px 60px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.admin-head h1 { font-size: 1.5rem; margin: 0; }
.admin-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 22px; }
.admin-card h2 { margin: 0 0 16px; font-size: 1.15rem; }
.stat-row { display: flex; gap: 26px; flex-wrap: wrap; }
.stat { background: var(--green-soft); border-radius: 10px; padding: 12px 20px; }
.stat strong { display: block; font-size: 1.5rem; color: var(--green-dark); }
.stat span { color: var(--muted); font-size: .82rem; }
form.stack { display: grid; gap: 12px; }
form.stack label { font-weight: 600; font-size: .88rem; display: grid; gap: 5px; }
form.stack input[type="text"], form.stack input[type="password"], form.stack input[type="url"],
form.stack select, form.stack textarea {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; color: var(--ink); width: 100%;
}
form.stack textarea { min-height: 110px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 0; border-radius: 9px;
  background: var(--green); color: #fff; font-weight: 700; font-size: .92rem; cursor: pointer;
}
.btn:hover { background: var(--green-dark); }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn.ghost:hover { color: var(--green-dark); border-color: var(--green); }
.btn.danger { background: #b3453c; }
.btn.small { padding: 6px 12px; font-size: .8rem; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.admin-table th, table.admin-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.admin-table th { color: var(--soft); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
.thumb { width: 52px; height: 52px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.pill { font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pill.published { background: var(--green-soft); color: var(--green-dark); }
.pill.draft { background: #f3e9d8; color: #8a6d3b; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.error-box { background: #fbeaea; border: 1px solid #e4b6b0; color: #8c3a32; border-radius: 9px; padding: 12px 16px; margin-bottom: 14px; font-size: .9rem; }
.ok-box { background: var(--green-soft); border: 1px solid #bcd4bf; color: var(--green-dark); border-radius: 9px; padding: 12px 16px; margin-bottom: 14px; font-size: .9rem; }

/* Responsive */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .product-grid, .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .product-grid, .trust, .form-grid { grid-template-columns: 1fr; }
  .site-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}
