/* Wunschliste – Frontend v1.0.0 */
:root {
  --bg: #fbf6f0;
  --surface: #ffffff;
  --ink: #2b1d1a;
  --muted: #7a6660;
  --line: #ecdfd4;
  --accent: #a3253a;
  --accent-dark: #7f1a2c;
  --gold: #d9a43a;
  --green: #2f7a4f;
  --green-bg: #e7f3ec;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(60, 30, 20, .06), 0 8px 24px rgba(60, 30, 20, .07);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; font-weight: 600; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(680px, 100% - 32px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { border-radius: 10px; }
.brand-title { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 700; line-height: 1.1; }
.brand-tag { display: block; font-size: .82rem; color: var(--muted); }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .95rem; }
.main-nav a:hover { background: var(--bg); }
.main-nav a[aria-current] { background: var(--accent); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; font-size: 1.3rem; padding: 4px 12px; cursor: pointer; color: var(--ink); }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
}

/* Hero */
.hero { --hero: url("img/hero.svg"); position: relative; min-height: 300px; display: grid; align-items: end; color: #fff;
  background: linear-gradient(180deg, rgba(43, 18, 18, .05) 20%, rgba(43, 18, 18, .65)), var(--hero) center/cover no-repeat, var(--accent); }
.hero-inner { padding: 64px 0 36px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.hero p { margin: 4px 0 0; font-size: 1.15rem; opacity: .95; }

/* Listenkarten */
.lists { margin-top: -28px; position: relative; }
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.list-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.list-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(60,30,20,.08), 0 16px 32px rgba(60,30,20,.12); }
.list-card-img { aspect-ratio: 16/10; background: #f6e7da; overflow: hidden; }
.list-card-img img { width: 100%; height: 100%; object-fit: cover; }
.list-card-body { padding: 16px 18px 18px; }
.list-card-title { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--accent); }
.list-card-meta { display: block; color: var(--muted); font-size: .9rem; margin-top: 2px; }

/* Beiträge */
.section-title { font-size: 1.6rem; margin: 56px 0 18px; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.post-item { display: grid; grid-template-columns: 180px 1fr; gap: 20px; background: var(--surface); padding: 16px; border-radius: var(--radius); box-shadow: var(--shadow); }
.post-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.post-item h3 { margin: 0; font-size: 1.25rem; }
.post-item h3 a { color: var(--ink); text-decoration: none; }
.post-item time, .article time { color: var(--muted); font-size: .88rem; }
.post-item p { margin: 6px 0 0; }
@media (max-width: 560px) { .post-item { grid-template-columns: 1fr; } }

/* Einzelseite */
.article { padding: 32px 0 48px; }
.article h1 { font-size: 2.2rem; margin: 8px 0 4px; }
.article-img { border-radius: var(--radius); margin: 20px 0; }
.article-body { margin-top: 16px; }
.crumbs { margin: 0; font-size: .9rem; }
.crumbs a { text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: 10px 16px; font: 600 .95rem var(--sans); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--accent-dark); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; }
form.inline { display: inline; }
input[type=text], input[type=password], input:not([type]) { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); min-width: 0; }

.notice { padding: 12px 16px; border-radius: 10px; margin: 16px 0; }
.notice-ok { background: var(--green-bg); color: var(--green); }
.notice-err { background: #fbe9eb; color: var(--accent-dark); }
.empty { color: var(--muted); padding: 32px 0; }

/* Passwortabfrage */
.gate { text-align: center; padding: 56px 0 72px; }
.gate-img { width: 120px; height: 120px; object-fit: cover; border-radius: 24px; margin: 0 auto 16px; box-shadow: var(--shadow); }
.gate h1 { font-size: 2rem; margin: 0 0 8px; }
.gate-form { display: flex; gap: 8px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.gate-form input { width: min(280px, 100%); }

/* Listenkopf */
.list-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 28px 0 0; margin-bottom: 28px; }
.list-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 6px 0 4px; }
.intro { color: var(--muted); max-width: 70ch; margin: 0; }
.list-tools { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin: 20px 0 16px; }
.progress { flex: 1 1 280px; }
.progress-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; max-width: 420px; }
.progress-bar span { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.progress-text { font-size: .9rem; color: var(--muted); }
.tool-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { display: flex; gap: 4px; }
.filter a { padding: 10px 14px; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; font-weight: 600; font-size: .95rem; }
.filter a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }

/* Geschenke */
.gift-grid { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.gift { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 90px; }
.gift-img { position: relative; aspect-ratio: 4/3; background: #fff; border-bottom: 1px solid var(--line); display: grid; place-items: center; }
.gift-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.gift-img.noimg, .gift-img:has(.noimg-icon) { background: #f6e7da; }
.noimg-icon, .gift-img.noimg::after { font-size: 3.4rem; }
.gift-img.noimg::after { content: "🎁"; }
.prio { position: absolute; left: 10px; top: 10px; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--gold); color: #3a2606; }
.prio-3 { background: #e8e2dc; color: var(--muted); }
.stamp { position: absolute; right: 10px; top: 10px; background: var(--green); color: #fff; font-weight: 700; font-size: .8rem; padding: 4px 10px; border-radius: 99px; letter-spacing: .02em; }
.gift-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.gift-title { font-size: 1.2rem; margin: 0; }
.gift-title small { color: var(--muted); font-family: var(--sans); font-size: .85rem; }
.gift-desc { margin: 0; color: var(--muted); font-size: .95rem; }
.gift-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.price { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--accent); }
.shop-link { font-size: .9rem; word-break: break-all; }
.gift-actions { margin-top: auto; padding-top: 6px; }
.buy-form { display: flex; gap: 8px; flex-wrap: wrap; }
.buy-form input { flex: 1 1 140px; }
.buy-form .btn { flex: 1 1 auto; }
.bought-info { margin: 0 0 4px; color: var(--green); background: var(--green-bg); padding: 8px 12px; border-radius: 10px; font-size: .95rem; }
.gift.is-bought .gift-img img { filter: grayscale(.7); opacity: .6; }
.gift.is-bought .gift-title { color: var(--muted); }

/* Footer */
.site-footer { background: #2b1d1a; color: #e9dcd3; margin-top: 48px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 32px 0; }
.footer-title { font-family: var(--serif); font-size: 1.4rem; color: #fff; text-decoration: none; margin-right: auto; }
.footer-credit { margin: 0; font-size: .9rem; }
.footer-credit a, .footer-nav a { color: #e9dcd3; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; text-transform: uppercase; font-size: .82rem; letter-spacing: .06em; }
