@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500..700;1,9..144,500..700&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  /* ruhiges, dunkles Papier — ein gedämpfter Akzent, kein Neon */
  --bg: #17191c;
  --bg-soft: #1d2023;
  --card: #202327;
  --card-alt: #262a2e;

  --ink: #e7e4dd;
  --ink-soft: #a5a29a;
  --ink-faint: #6c6a63;

  --clay: #c1815c;
  --clay-deep: #a86846;
  --clay-soft: rgba(193, 129, 92, 0.16);
  --gold: #c9a35b;
  --sage: #7f9a80;
  --red: #b96a5a;

  --line: rgba(231, 228, 221, 0.08);

  --radius: 16px;
  --radius-sm: 11px;
  --radius-pill: 100px;

  --shadow-sm: 0 2px 10px -4px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 26px -10px rgba(0, 0, 0, 0.5);

  --ease-pop: cubic-bezier(0.22, 1.61, 0.36, 1);
  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Work Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.01em;
  margin: 0;
}

button, input, select, textarea { font-family: inherit; }
a { color: inherit; }

::selection { background: var(--clay); color: var(--bg); }

/* ---------- top accent ---------- */

.stripe-bar {
  height: 2px;
  width: 100%;
  background: var(--clay);
  opacity: 0.6;
}

/* ---------- layout shell ---------- */

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 30px 20px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-body { flex: 1; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
  gap: 12px;
}

.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }

.brand-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--clay);
  transition: transform 0.4s var(--ease-pop);
}
.brand:hover .brand-icon { transform: rotate(-14deg); }

.brand-mark { font-size: 24px; line-height: 1; color: var(--ink); white-space: nowrap; }

.brand-mark .hl {
  position: relative;
  z-index: 0;
  display: inline-block;
  padding: 0 4px;
}
.brand-mark .hl::before {
  content: "";
  position: absolute;
  inset: 10% -1px 6%;
  background: var(--clay-soft);
  transform: rotate(-1deg);
  z-index: -1;
  border-radius: 4px;
}

.admin-link {
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: transparent;
  transition: all 0.2s var(--ease-out);
  flex-shrink: 0;
}
.admin-link:hover { color: var(--ink); border-color: var(--clay); }

/* ---------- progress ---------- */

.progress-track {
  position: relative;
  height: 4px;
  background: var(--card-alt);
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--clay);
  border-radius: var(--radius-pill);
  transition: width 0.5s var(--ease-smooth);
}

.progress-steps { display: flex; justify-content: space-between; margin-bottom: 30px; }

.progress-step {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-faint);
  transition: color 0.3s var(--ease-out);
}
.progress-step.active { color: var(--ink); }
.progress-step.done { color: var(--clay); }

/* ---------- step panels ---------- */

.step-viewport { position: relative; }
.step { display: none; }
.step.active { display: block; animation: step-in 0.4s var(--ease-out); }

@keyframes step-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-title { font-size: 25px; margin-bottom: 4px; color: var(--ink); }
.step-hint { color: var(--ink-soft); font-size: 14px; margin-bottom: 22px; }

/* ---------- cards / options ---------- */

.option-grid { display: grid; gap: 10px; }

.option-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.18s var(--ease-out);
  animation: card-in 0.4s var(--ease-out) backwards;
}

.option-card:hover { background: var(--card-alt); border-color: rgba(231,228,221,0.14); }
.option-card:active { transform: scale(0.99); }

.option-card.selected {
  background: var(--clay-soft);
  border-color: var(--clay);
}
.option-card.selected .check-badge { transform: scale(1); opacity: 1; }

@keyframes card-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.option-main { display: flex; flex-direction: column; gap: 4px; }
.option-name { font-weight: 600; font-size: 15px; color: var(--ink); }
.option-meta { font-size: 12.5px; color: var(--ink-faint); }
.option-price { font-weight: 600; font-size: 15px; color: var(--clay); white-space: nowrap; }

.check-badge {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--clay);
  display: flex; align-items: center; justify-content: center;
  transform: scale(0);
  opacity: 0;
  transition: all 0.3s var(--ease-pop);
  flex-shrink: 0;
}
.check-badge svg { width: 12px; height: 12px; }

/* ---------- calendar ---------- */

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.calendar-title { font-weight: 500; font-size: 16px; font-family: 'Fraunces', serif; font-style: italic; color: var(--ink); }

.icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}
.icon-btn:hover:not(:disabled) { border-color: var(--clay); color: var(--ink); }
.icon-btn:active:not(:disabled) { transform: scale(0.92); }
.icon-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.calendar-grid-wrap { overflow: hidden; }

.weekday-row { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 8px; }
.weekday-row span {
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.day-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  animation: cal-slide 0.3s var(--ease-out);
}
@keyframes cal-slide {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

.day-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  color: var(--ink-soft);
  transition: all 0.15s var(--ease-out);
}
.day-cell.empty { cursor: default; }
.day-cell.disabled { color: var(--ink-faint); opacity: 0.35; cursor: not-allowed; }
.day-cell:not(.disabled):not(.empty):hover { background: var(--card-alt); }
.day-cell.today { color: var(--clay); }
.day-cell.today::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--clay);
}
.day-cell.selected { background: var(--clay); color: var(--bg); font-weight: 700; }
.day-cell.selected::after { display: none; }
.day-cell:active:not(.disabled):not(.empty) { transform: scale(0.92); }

/* ---------- time slots ---------- */

.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 8px; }

.slot-btn {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.16s var(--ease-out);
  animation: slot-in 0.3s var(--ease-out) backwards;
}
.slot-btn:hover { background: var(--card-alt); border-color: rgba(231,228,221,0.14); }
.slot-btn:active { transform: scale(0.95); }
.slot-btn.selected { background: var(--clay); border-color: var(--clay); color: var(--bg); }

@keyframes slot-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.empty-state {
  text-align: center;
  color: var(--ink-faint);
  font-size: 14px;
  padding: 28px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.skeleton {
  background: linear-gradient(90deg, var(--card) 25%, var(--card-alt) 37%, var(--card) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------- form ---------- */

.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12.5px; color: var(--ink-soft); margin-bottom: 6px; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 13px;
  color: var(--ink);
  font-size: 15px;
  outline: none;
  transition: all 0.16s var(--ease-out);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--clay);
  box-shadow: 0 0 0 3px var(--clay-soft);
}
.field textarea { resize: vertical; min-height: 66px; }
.field-note { font-size: 11.5px; color: var(--ink-faint); margin-top: 6px; }

.hidden { display: none !important; }

/* ---------- waitlist ---------- */

.waitlist-cta { margin-top: 14px; }
.waitlist-form {
  margin-top: 14px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  animation: step-in 0.3s var(--ease-out);
}

/* ---------- returning customer note ---------- */

.returning-note {
  margin: -6px 0 15px;
  padding: 12px 14px;
  background: var(--clay-soft);
  border: 1px solid rgba(193, 129, 92, 0.3);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
  animation: step-in 0.3s var(--ease-out);
}
.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--clay);
  font-weight: 700;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}
.link-btn:hover { color: var(--ink); }

.summary-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 17px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.summary-row { display: flex; justify-content: space-between; font-size: 13.5px; }
.summary-row .label { color: var(--ink-faint); font-weight: 500; }
.summary-row .value { font-weight: 600; color: var(--ink); }

/* ---------- buttons ---------- */

.btn {
  border: none;
  border-radius: var(--radius-pill);
  padding: 13px 24px;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.18s var(--ease-out);
}

.btn-primary { background: var(--clay); color: #1a1512; }
.btn-primary:not(:disabled):hover { background: #cc8e68; }
.btn-primary:not(:disabled):active { transform: scale(0.97); }

.btn-ghost { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: rgba(231,228,221,0.2); }
.btn-ghost:active { transform: scale(0.97); }

.btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none !important; }

.btn-block { width: 100%; }

.nav-row { display: flex; gap: 12px; margin-top: 24px; }
.nav-row .btn-ghost { flex: 0 0 auto; }
.nav-row .btn-primary { flex: 1; }

/* ---------- success ---------- */

.success-wrap { text-align: center; padding: 26px 0 10px; }

.check-circle { width: 80px; height: 80px; margin: 0 auto 22px; }
.check-circle svg { width: 100%; height: 100%; }
.check-circle .ring {
  fill: var(--clay-soft);
  stroke: var(--clay);
  stroke-width: 3;
  stroke-dasharray: 264;
  stroke-dashoffset: 264;
  animation: draw-ring 0.6s var(--ease-out) forwards;
}
.check-circle .tick {
  fill: none;
  stroke: var(--clay);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw-tick 0.35s var(--ease-out) 0.55s forwards;
}
@keyframes draw-ring { to { stroke-dashoffset: 0; } }
@keyframes draw-tick { to { stroke-dashoffset: 0; } }

.success-title { font-size: 22px; margin-bottom: 8px; color: var(--ink); animation: pop-in 0.45s var(--ease-pop) 0.4s backwards; }
.success-text {
  color: var(--ink-soft);
  font-size: 13.5px;
  margin-bottom: 26px;
  animation: pop-in 0.45s var(--ease-pop) 0.5s backwards;
}
@keyframes pop-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.confetti-piece {
  position: fixed;
  top: -10px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 50;
  animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  to { transform: translateY(110vh) rotate(400deg); opacity: 0.15; }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--card-alt);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease-pop);
  z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { border-color: var(--red); color: #e2a89c; }

/* ---------- footer ---------- */

.site-footer {
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.site-footer .foot-brand {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-soft);
}
.site-footer a {
  color: var(--clay);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: color 0.18s var(--ease-out);
}
.site-footer a:hover { color: var(--ink); }
.site-footer .foot-note { font-size: 11.5px; color: var(--ink-faint); }

@media (max-width: 420px) {
  .slot-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- home / landing page ---------- */

.home-page { max-width: 760px; }

.btn-lg {
  padding: 16px 32px;
  font-size: 15.5px;
}

.hero {
  padding: 20px 0 44px;
  text-align: center;
}
.hero-title {
  font-size: clamp(32px, 6vw, 46px);
  line-height: 1.12;
  margin-bottom: 18px;
  color: var(--ink);
  animation: hero-in 0.75s var(--ease-out) backwards;
}
.hero-text {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 46ch;
  margin: 0 auto 28px;
  animation: hero-in 0.75s var(--ease-out) 0.12s backwards;
}
.hero .btn-lg { animation: hero-in 0.75s var(--ease-out) 0.24s backwards; }

@keyframes hero-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Scroll-Reveal: Abschnitte blenden sanft ein, sobald sie ins Blickfeld
   scrollen (siehe IntersectionObserver in index.html) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-title, .hero-text, .hero .btn-lg { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

.section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.section-title {
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 10px;
}
.section-text {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.65;
  max-width: 62ch;
}

.gallery-scroll-wrap {
  position: relative;
  margin-top: 20px;
}
.gallery-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  /* Kein scroll-snap hier — die Galerie läuft dauerhaft per rAF mit fester
     Geschwindigkeit (siehe index.html); ein CSS-Snap würde dagegen ankämpfen
     und die Bewegung ruckeln lassen. Pfeile/Punkte scrollen trotzdem exakt
     auf die Bildkante, weil das Ziel per JS berechnet wird. */
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 14px;
  margin: -4px -4px -14px;
  /* Scrollbar dezent ausblenden — die Pfeile übernehmen die Bedienung */
  scrollbar-width: none;
}
.gallery-scroll::-webkit-scrollbar { display: none; }
.gallery-item {
  flex: 0 0 auto;
  width: 220px;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(231, 228, 221, 0.18);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  position: relative;
}
.gallery-item::before {
  content: "📷";
  font-size: 20px;
  opacity: 0.35;
  position: absolute;
}
.gallery-label {
  font-size: 11.5px;
  color: var(--ink-faint);
  margin-top: 30px;
}
.gallery-item-photo {
  border: 1px solid var(--line);
  padding: 0;
  overflow: hidden;
}
.gallery-item-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease-out);
}
.gallery-item-photo:hover img { transform: scale(1.05); }

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: color 0.18s var(--ease-out), border-color 0.18s var(--ease-out), transform 0.18s var(--ease-out);
  z-index: 2;
}
.gallery-nav:hover { color: var(--ink); border-color: var(--clay); transform: translateY(-50%) scale(1.06); }
.gallery-nav:active { transform: translateY(-50%) scale(0.96); }
.gallery-nav-left { left: -8px; }
.gallery-nav-right { right: -8px; }
@media (max-width: 640px) {
  .gallery-nav { display: none; }
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
}
.gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s var(--ease-out), transform 0.25s var(--ease-pop), width 0.25s var(--ease-out);
}
.gallery-dot:hover { background: var(--clay-soft); }
.gallery-dot.active { background: var(--clay); width: 20px; border-radius: 4px; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.info-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
}
.info-value {
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.5;
}
.info-value a {
  color: var(--clay);
  text-decoration: none;
}
.info-value a:hover { color: var(--ink); }

@media (max-width: 480px) {
  .gallery-item { width: 168px; }
}
