:root {
  --ink: #2b2723;
  --muted: #8a7d6f;
  --paper: #faf5ec;
  --terracotta: #ad5340;
  --terracotta-dark: #8f4231;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
}

body {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.content {
  width: 100%;
  max-width: 1040px;
  text-align: center;
}

/* ---------- BRAND / TITLE ---------- */
.brand {
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.brand-pre {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  color: var(--terracotta);
  margin-bottom: -0.1em;
}

.brand-title {
  font-family: "Permanent Marker", cursive;
  font-weight: 400;
  font-size: clamp(2.6rem, 13vw, 7.5rem);
  line-height: 0.95;
  color: var(--terracotta);
  text-transform: uppercase;
}

.brand-sub {
  margin-top: 0.7rem;
  font-size: clamp(0.65rem, 1.8vw, 0.9rem);
  letter-spacing: 0.32em;
  /* compensate trailing letter-spacing so it centres optically */
  text-indent: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-logo {
  max-width: min(560px, 100%);
  height: auto;
}

/* ---------- KONSTANZ FLIP CARD ---------- */
.scene-wrap {
  margin: clamp(1.5rem, 3.5vw, 2.5rem) auto;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* the card: a page on the paper at a slight left tilt. clicking it turns it
   over; the shadow lives here so it stays put while the face flips */
.flipcard {
  position: relative;
  width: clamp(300px, 64vw, 540px);
  aspect-ratio: 1792 / 1976;
  perspective: 1600px;
  cursor: pointer;
  transform: rotate(-2.4deg);
  border-radius: 4px;
  box-shadow:
    0 12px 24px -12px rgba(43, 39, 35, 0.40),
    10px 14px 26px -14px rgba(43, 39, 35, 0.30);
  -webkit-tap-highlight-color: transparent;
}
.flipcard:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 6px;
}

.flipcard-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.6, 0.02, 0.2, 1);
}
.flipcard.flipped .flipcard-inner {
  transform: rotateY(180deg);
}

.flipcard-face {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #fffdf8;
  border: 1px solid rgba(43, 39, 35, 0.12);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}
.flipcard-back {
  transform: rotateY(180deg);
}

.sticker-video,
.menu-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sticker-video { object-position: center 32%; }
.menu-img { object-position: center top; background: #f4efe4; }

/* ---- the curling bottom-right corner (a page about to turn) ---- */
/* soft wedge of shadow in the gap the lifted corner opens up */
.page-curl {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 92px;
  height: 92px;
  pointer-events: none;
  background:
    radial-gradient(120% 120% at 100% 100%,
      rgba(43, 39, 35, 0.46) 0%,
      rgba(43, 39, 35, 0.24) 30%,
      rgba(43, 39, 35, 0) 58%);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  /* rests already lifted a little; grows on hover as if the page is turning */
  transform: scale(0.62);
  transform-origin: bottom right;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* the flap itself: the underside of the page, curled up toward its lit free edge */
.page-curl::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 66px;
  height: 66px;
  clip-path: path("M66 5 Q 15 15 5 66 L 66 66 Z");
  background:
    linear-gradient(135deg,
      #a99a7c 0%,
      #b8a889 12%,
      #d4c7ab 40%,
      #efe7d5 70%,
      #fffef9 100%);
  border-radius: 0 0 5px 8px;
  box-shadow:
    -4px -4px 8px -1px rgba(43, 39, 35, 0.32),
    inset -2px -2px 2px -1px rgba(255, 255, 255, 0.65);
}

/* hover anywhere on the card curls the corner up further, every time */
.flipcard:hover .page-curl {
  transform: scale(1);
}

/* handwritten "hier öffnen" hint pointing at the curled corner */
.open-hint {
  position: absolute;
  right: 4px;
  bottom: -50px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  transform: rotate(-3deg);
  transform-origin: bottom right;
  pointer-events: none;
  animation: open-hint-bob 2.4s ease-in-out infinite;
  transition: opacity 0.45s ease;
}
.open-hint-text {
  font-family: "Caveat", "Segoe Script", cursive;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--terracotta);
  transform: rotate(-4deg);
  white-space: nowrap;
}
.open-hint-arrow { display: block; }

@keyframes open-hint-bob {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50%      { transform: rotate(-3deg) translateY(4px); }
}

/* once flipped to the menu, hide the hint; it returns when flipped back */
.flipcard.flipped .open-hint {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .open-hint { animation: none; }
}

/* the opening hours — only revealed once the card is turned to the menu */
.menu-hours {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 28em;
  margin: 1.4rem auto 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
  pointer-events: none;
}
.flipcard.flipped ~ .menu-hours {
  opacity: 1;
  transform: none;
}

/* fades in on load */
.reveal-scene {
  opacity: 0;
  animation: fade-in-scene 1.1s ease 0.15s forwards;
}

@keyframes fade-in-scene { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .reveal-scene { animation: none; opacity: 1; }
  .flipcard-inner,
  .page-curl,
  .menu-hours { transition: none; }
}
/* ---------- CTA ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  text-indent: 0.14em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

.lead {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 34em;
  margin: 0 auto 1.1rem;
}

.lead-sub {
  margin-bottom: 2rem;
}

.contact-line {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.1rem, 2.6vw, 1.45rem);
  line-height: 1.7;
  color: var(--ink);
  max-width: 34em;
  margin: -0.6rem auto 2rem;
}
.contact-line strong {
  font-weight: 600;
  color: var(--terracotta);
}
.contact-line a {
  color: var(--terracotta);
  text-decoration: none;
  white-space: nowrap;
}
.contact-line a:hover {
  text-decoration: underline;
}
.wa-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}
.wa-icon {
  vertical-align: middle;
  flex: 0 0 auto;
}

.signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}

/* [hidden] must win over the display:flex above (used after confirmation) */
.signup-form[hidden] {
  display: none;
}

/* honeypot — off-screen, never shown to real users */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.signup-form input[type="email"] {
  flex: 1 1 260px;
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid #d9cdb8;
  border-radius: 4px;
  background: #fffdf8;
  color: var(--ink);
}

.signup-form input[type="email"]::placeholder {
  color: #ab9d89;
}

.signup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(173, 83, 64, 0.15);
}

.signup-form button {
  padding: 0.9rem 1.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  background: var(--terracotta);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: inherit;
}

.signup-form button:hover {
  background: var(--terracotta-dark);
}

.signup-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-message {
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.3em;
  color: var(--terracotta);
}

/* prominent thank-you shown after the email is confirmed */
.form-message--success {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 24em;
  margin-left: auto;
  margin-right: auto;
}
.form-message--success::before {
  content: "✓";
  display: block;
  font-size: 1.6em;
  line-height: 1;
  color: var(--terracotta);
  margin-bottom: 0.3rem;
}

/* ---------- ADDRESS ---------- */
.address {
  margin-top: clamp(2.5rem, 7vw, 4.5rem);
}

.address p {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-indent: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  animation: fade-in 0.9s ease forwards;
}

@keyframes fade-in {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
  }
}

