/* elsiART – öffentliche Seite */
:root {
  --bg: #f7f1e8;
  --paper: #fffdf9;
  --ink: #3b2f2a;
  --muted: #8a7a70;
  --accent: #b5654a;
  --accent-dark: #924c35;
  --sage: #8fa58a;
  --line: #e8ddcf;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, 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: 17px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

/* Header */
.hero { text-align: center; padding: 4.5rem 0 2.5rem; }
.logo { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 9vw, 5.5rem); letter-spacing: .02em; margin: 0; line-height: 1; }
.logo span { color: var(--accent); font-weight: 700; letter-spacing: .08em; }
.tagline { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1.2rem; margin: .9rem 0 0; }
.stitch { margin: 2rem auto 0; width: 160px; border-top: 2px dashed var(--accent); opacity: .55; }

/* Intro */
.about { max-width: 680px; margin: 0 auto 3rem; text-align: center; font-size: 1.08rem; }
.about p { margin: 0 0 .8em; }

/* Grid */
.grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin-bottom: 4rem; }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(59,47,42,.06), 0 8px 24px rgba(59,47,42,.06); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(59,47,42,.08), 0 14px 34px rgba(59,47,42,.10); }
.card-img { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--line); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-body { padding: 1rem 1.15rem 1.25rem; }
.card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; margin: 0 0 .2rem; line-height: 1.3; }
.price { color: var(--accent); font-weight: 650; margin: 0 0 .4rem; }
.desc { margin: 0; color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.badge, .count { position: absolute; font-size: .8rem; font-weight: 600; border-radius: 99px; padding: .25rem .7rem; }
.badge { top: .8rem; left: .8rem; background: var(--ink); color: #fff; letter-spacing: .04em; }
.count { bottom: .8rem; right: .8rem; background: rgba(255,253,249,.9); color: var(--ink); }
.is-sold .card-img img { filter: grayscale(.5) opacity(.75); }
.is-sold .price { text-decoration: line-through; color: var(--muted); }
.empty { text-align: center; color: var(--muted); font-size: 1.15rem; padding: 3rem 0 5rem; }

/* Kontakt */
.contact { background: var(--paper); border-top: 1px solid var(--line); text-align: center; padding: 3.5rem 0; }
.contact h2 { font-family: var(--serif); font-weight: 500; font-size: 2rem; margin: 0 0 .4rem; }
.contact p { color: var(--muted); margin: 0 0 1.5rem; }
.contact-links { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: .4rem; background: var(--accent); color: #fff; text-decoration: none; padding: .75rem 1.3rem; border-radius: 99px; font-weight: 600; border: 2px solid var(--accent); transition: background .2s; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--accent-dark); }
.btn-ghost:hover { color: #fff; }
.footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 2rem 0; }
.footer a { color: var(--muted); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(35,27,23,.82); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 1rem; backdrop-filter: blur(4px); }
.lightbox[hidden] { display: none; }
.lb-inner { position: relative; background: var(--paper); border-radius: var(--radius); width: min(1000px, 100%); max-height: calc(100dvh - 2rem); overflow: auto; display: grid; grid-template-columns: 1.4fr 1fr; }
.lb-stage { position: relative; background: #efe7dc; display: flex; align-items: center; justify-content: center; min-height: 320px; grid-row: span 2; }
.lb-img { max-height: calc(100dvh - 2rem); width: 100%; object-fit: contain; }
.lb-thumbs { display: none; }
.lb-info { padding: 2rem 1.8rem; }
.lb-info h2 { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; margin: 0 0 .3rem; line-height: 1.25; padding-right: 2rem; }
.lb-info .price { font-size: 1.2rem; }
.lb-desc { white-space: pre-line; margin: 1rem 0 1.6rem; }
.lb-close { position: absolute; top: .6rem; right: .7rem; z-index: 2; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; background: rgba(255,253,249,.92); font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--ink); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.8rem; height: 2.8rem; border-radius: 50%; border: 0; background: rgba(255,253,249,.9); font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--ink); }
.lb-prev { left: .7rem; } .lb-next { right: .7rem; }
.lb-nav[hidden] { display: none; }
.lb-dots { display: flex; gap: .4rem; justify-content: center; position: absolute; bottom: .8rem; left: 0; right: 0; }
.lb-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.6); }
.lb-dots span.on { background: #fff; }

@media (max-width: 760px) {
  .hero { padding: 3rem 0 1.8rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
  .card-body { padding: .8rem .9rem 1rem; }
  .card h3 { font-size: 1.05rem; }
  .desc { display: none; }
  .lightbox { padding: 0; align-items: stretch; }
  .lb-inner { grid-template-columns: 1fr; border-radius: 0; max-height: 100dvh; }
  .lb-stage { min-height: 50vh; }
  .lb-img { max-height: 70vh; }
}
