/* =====================================================
   Hochzeit Gysau – Wunschliste
   Modern & Minimalistisch · Dark Editorial
   ===================================================== */

:root {
  --bg:          #0c0c0c;
  --surface:     #161616;
  --surface-2:   #202020;
  --border:      rgba(255,255,255,0.07);
  --border-2:    rgba(255,255,255,0.13);
  --text:        #eeebe5;
  --text-muted:  #666;
  --accent:      #d4b87a;
  --accent-dim:  #9a8055;
  --tag-bg:      rgba(255,255,255,0.08);
  --tag-exp-bg:  rgba(74,140,90,0.25);
  --tag-exp-c:   #7ecb91;
  --radius:      10px;
  --radius-sm:   6px;
  --font-d:      'DM Serif Display', Georgia, serif;
  --font-s:      'DM Sans', 'Helvetica Neue', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-s);
  font-weight: 300;
  line-height: 1.65;
  min-height: 100vh;
}

/* ── Topbar ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 54px;
  background: rgba(12,12,12,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar-names {
  font-family: var(--font-d);
  font-size: 1.05rem;
  color: var(--accent);
  letter-spacing: .1em;
}

.topbar-date {
  font-size: .68rem;
  letter-spacing: .28em;
  color: var(--text-muted);
}

.topbar-tabs {
  display: flex;
  gap: 3px;
  background: var(--surface-2);
  border-radius: 100px;
  padding: 3px;
}

.tab-btn {
  background: none;
  border: none;
  padding: 5px 14px;
  border-radius: 100px;
  font-family: var(--font-s);
  font-size: .72rem;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
  transition: background .18s, color .18s;
}

.tab-btn.active {
  background: var(--accent);
  color: var(--bg);
  font-weight: 500;
}

.tab-btn:hover:not(.active) {
  color: var(--text);
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 80px 24px 64px;
  border-bottom: 1px solid var(--border);
  animation: fadeUp .8s ease both;
}

.hero-label {
  font-size: .68rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-d);
  font-size: clamp(3.2rem, 10vw, 6rem);
  font-weight: 400;
  line-height: 1.0;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
  display: block;
  font-size: .6em;
  line-height: 1.3;
}

.hero-sub {
  font-size: .88rem;
  color: var(--text-muted);
  max-width: 380px;
  margin: 0 auto 32px;
  line-height: 1.75;
}

.progress-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pbar {
  width: 160px;
  height: 1px;
  background: var(--surface-2);
  border-radius: 2px;
  overflow: hidden;
}

.pfill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0%;
  transition: width .6s cubic-bezier(.4,0,.2,1);
}

.plabel {
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--text-muted);
}

/* ── Grid ── */
.grid {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 100px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

/* ── Skeleton loaders ── */
.skeleton-wrap {
  display: contents;
}

.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 320px;
  animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: .4; }
  50%       { opacity: .7; }
}

/* ── Card ── */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, border-color .25s ease;
  animation: cardIn .5s ease both;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-2);
}

.card.is-reserved {
  opacity: .48;
}

.card.is-reserved:hover {
  transform: none;
}

/* ── Card image ── */
.img-wrap {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
  filter: brightness(.82);
}

.card:hover .img-wrap img {
  transform: scale(1.05);
}

.card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
  background: var(--tag-bg);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
}

.card-tag.erlebnis {
  background: var(--tag-exp-bg);
  color: var(--tag-exp-c);
  border-color: rgba(74,140,90,0.3);
}

/* ── Card body ── */
.card-body {
  padding: 18px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-family: var(--font-d);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.2;
}

.card-desc {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  gap: 10px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.card-price {
  font-family: var(--font-d);
  font-style: italic;
  font-size: .95rem;
  color: var(--accent-dim);
}

/* Slot-Anzeige */
.slot-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 14px;
}

.slot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  transition: background .2s;
  flex-shrink: 0;
}

.slot.slot-taken {
  background: var(--accent);
  border-color: var(--accent);
}

.slot-label {
  font-size: .7rem;
  color: var(--text-muted);
  margin-left: 4px;
  letter-spacing: .06em;
}

/* Link-Button */
.link-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  font-family: var(--font-s);
  font-size: .72rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s, border-color .18s;
}

.link-btn:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
}

.res-btn {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-family: var(--font-s);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .07em;
  cursor: pointer;
  transition: opacity .18s, transform .15s;
  white-space: nowrap;
}

.res-btn:hover:not(:disabled) {
  opacity: .82;
  transform: scale(1.03);
}

.res-btn:disabled {
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: default;
}

/* ── Reserved overlay ── */
.res-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(12,12,12,.65);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  backdrop-filter: blur(3px);
  border-radius: var(--radius);
  animation: fadeIn .3s ease;
  padding: 16px;
}

.card.is-reserved .res-overlay {
  display: flex;
}

.res-label {
  font-family: var(--font-d);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.res-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.res-by {
  font-size: .72rem;
  color: rgba(255,255,255,.6);
  letter-spacing: .06em;
}

/* ── Name modal ── */
.modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 32px 28px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  animation: fadeUp .3s ease both;
}

.modal h3 {
  font-family: var(--font-d);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
}

.modal p {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.65;
}

.modal input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text);
  font-family: var(--font-s);
  font-size: .9rem;
  margin-bottom: 12px;
  outline: none;
  transition: border-color .18s;
}

.modal input:focus {
  border-color: var(--accent-dim);
}

.modal input::placeholder {
  color: var(--text-muted);
}

.modal button {
  width: 100%;
  padding: 11px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-s);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .08em;
  cursor: pointer;
  transition: opacity .18s;
}

.modal button:hover {
  opacity: .85;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--accent);
  color: var(--bg);
  padding: 10px 22px;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease, transform .28s ease;
  white-space: nowrap;
  z-index: 200;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 36px 20px 60px;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-mail {
  color: var(--accent-dim);
  text-decoration: none;
  letter-spacing: .05em;
}

.footer-mail:hover {
  color: var(--accent);
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 620px) {
  .topbar { padding: 0 14px; }
  .topbar-date { display: none; }
  .hero { padding: 56px 18px 48px; }
  .grid { grid-template-columns: 1fr; padding: 16px 14px 80px; }
  .modal { padding: 24px 18px; }
}
