:root {
  --bg: #F5F2EB;
  --paper: #FFFFFF;
  --ink: #1F1F1D;
  --muted: #6F6A60;
  --green: #1F3B2E;
  --gold: #C8A15A;
  --line: rgba(31, 59, 46, .16);
  --shadow: 0 18px 45px rgba(31, 31, 29, .10);
  --radius: 22px;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(245, 242, 235, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { text-decoration: none; }
.brand-kicker {
  display: block;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.brand-title {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  color: var(--green);
}
.nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.nav a, .chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  text-decoration: none;
  background: rgba(255,255,255,.55);
  color: var(--green);
  cursor: pointer;
}
.nav a:hover, .chip:hover, .chip.active { background: var(--green); color: var(--bg); }

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 110px) clamp(18px, 4vw, 56px) 44px;
}
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
h1, h2, h3 { font-family: var(--font-serif); color: var(--green); line-height: 1.08; }
h1 { font-size: clamp(42px, 8vw, 92px); margin: 10px 0 20px; max-width: 980px; }
h2 { font-size: clamp(30px, 4vw, 48px); }
.intro { font-size: clamp(18px, 2vw, 23px); max-width: 720px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  background: var(--green);
  color: var(--bg);
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--green);
}
.button-secondary { background: transparent; color: var(--green); }
.button:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.toolbar {
  max-width: 1100px;
  margin: 0 auto 24px;
  padding: 0 clamp(18px, 4vw, 56px);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.search-label { font-weight: 700; color: var(--green); }
#suche {
  flex: 1 1 260px;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0 16px;
  background: #fff;
  font: inherit;
}
.category-overview, .gallery, .howto {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 56px);
}
.category-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}
.category-card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--green);
  color: var(--bg);
}
.category-card strong { display: block; font-family: var(--font-serif); font-size: 26px; }
.category-card span { color: rgba(245,242,235,.8); }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
  padding-bottom: 70px;
}
.card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  cursor: pointer;
  border: 1px solid rgba(31,59,46,.08);
}
.card img { aspect-ratio: 4/3; width: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover img { transform: scale(1.035); }
.card-body { padding: 18px; }
.card-body h3 { margin: 0 0 8px; font-size: 25px; }
.meta { color: var(--muted); margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { font-size: 12px; padding: 4px 8px; border-radius: 999px; background: var(--bg); color: var(--green); }

.image-dialog {
  width: min(1050px, calc(100vw - 28px));
  border: none;
  border-radius: 28px;
  padding: 0;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.image-dialog::backdrop { background: rgba(31,31,29,.55); }
.close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--green);
  color: var(--bg);
  font-size: 30px;
  cursor: pointer;
}
.detail { display: grid; grid-template-columns: 1.4fr .8fr; gap: 0; }
.detail img { width: 100%; height: 100%; max-height: 78vh; object-fit: cover; }
.detail-text { padding: clamp(24px, 4vw, 42px); }
.detail-text h2 { margin-top: 0; }
.detail-text .button { margin-top: 18px; }
.howto {
  background: rgba(255,255,255,.45);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 50px;
  padding-bottom: 50px;
}
.site-footer { padding: 32px; text-align: center; color: var(--muted); }

@media (max-width: 760px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .nav { justify-content: flex-start; }
  .detail { grid-template-columns: 1fr; }
}
