/* Standalone one-pager. Colors mirror the Mascarpone tokens in src/app/globals.css. */

@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/poppins-latin-400.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/poppins-latin-500.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/poppins-latin-600.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f6f1e6;
  --ink: #2c241c;
  --ink-soft: #4e453c;
  --ink-muted: #5c534a;
  --ink-faint: #655c54;
  --paper-deep: #e4d8c6;
  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
  background: var(--paper);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  /* The document itself scrolls. `none` stops the gesture from chaining into the
     browser's pull-to-refresh, which otherwise reloads the page on the way up. */
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  /* svh stays still while the mobile browser chrome shows and hides. dvh resizes
     mid-gesture and makes the scroll jump. */
  min-height: 100svh;
  margin: 0;
  display: flex;
  flex-direction: column;
  overscroll-behavior: none;
  background: var(--paper);
  color: var(--ink);
  font-family: Poppins, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  touch-action: pan-y pinch-zoom;
}

::selection {
  background: var(--paper-deep);
  color: var(--ink);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

main {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100% - 2.5rem, 40rem);
  margin-inline: auto;
  padding-top: max(2.5rem, env(safe-area-inset-top));
  padding-bottom: 2.25rem;
  text-align: center;
}

.logo-plate {
  display: grid;
  place-items: center;
  width: 7.5rem;
  height: 7.5rem;
  color: var(--ink);
}

.logo {
  width: 4.7rem;
  height: auto;
}

.logo path {
  fill: none;
}

h1 {
  margin: 1.35rem 0 0;
  max-width: 100%;
  font-size: clamp(2.7rem, 11vw, 5.5rem);
  font-weight: 500;
  letter-spacing: 0.045em;
  line-height: 0.95;
}

.stack {
  width: min(100%, 22rem);
  margin-top: 1.55rem;
}

.stack > .route:first-child {
  margin-top: 0;
}

.eyebrow {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.route {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 3.5rem;
  margin-top: 0.85rem;
  padding: 0.4rem 1.35rem 0.4rem 0.4rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 16px 36px -16px color-mix(in srgb, var(--ink) 45%, transparent);
  transition: background-color 200ms var(--ease);
}

.route-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
}

.route-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.route-icon.card svg {
  width: 2.15rem;
  height: auto;
}

.anfahrt {
  margin-top: 1.55rem;
}

.anfahrt address {
  margin: 0.65rem 0 0;
  color: var(--ink);
  font-style: normal;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.4;
}

.transit {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.social {
  margin-top: 1.85rem;
}

.handle {
  margin: 0.7rem 0 0;
  color: var(--ink-muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.social-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  width: 100%;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.social-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding-inline: 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: inherit;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color 200ms var(--ease),
    border-color 200ms var(--ease);
}

.social-list svg {
  width: 1.2rem;
  height: 1.2rem;
  flex: none;
}

.review {
  margin-top: 1.85rem;
  padding: 1.05rem 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 1.75rem;
}

.review-lead {
  margin: 0.4rem 0 0;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.35;
}

.stars {
  display: flex;
  justify-content: center;
  margin-top: 0.45rem;
  color: var(--ink);
  pointer-events: none;
}

.stars svg {
  width: 9.25rem;
  height: auto;
}

.review-go {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.25rem;
  margin-top: 0.35rem;
  padding-inline: 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 16px 36px -16px color-mix(in srgb, var(--ink) 45%, transparent);
  transition: background-color 200ms var(--ease);
}

.review-note {
  margin: 0.75rem 0 0;
  color: var(--ink-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
  text-wrap: pretty;
}

footer {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, 22rem);
  margin-inline: auto;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  text-align: center;
}

footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding-inline: 0.75rem;
  color: var(--ink-faint);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.legal {
  align-items: stretch;
  width: min(100% - 2.5rem, 36rem);
  text-align: left;
}

.legal h1 {
  margin-top: 0.35rem;
  font-size: clamp(2rem, 8vw, 2.75rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-align: left;
}

.back {
  margin: 0;
}

.back a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-inline: -0.7rem;
  padding-inline: 0.7rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.legal h2 {
  margin: 1.7rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.legal p {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.legal a {
  color: inherit;
}

.legal-note {
  margin-top: 1.7rem;
  color: var(--ink-faint);
  font-size: 0.8125rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 360px) {
  .social-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-height: 740px) {
  .logo-plate {
    width: 6.25rem;
    height: 6.25rem;
  }

  .logo {
    width: 3.9rem;
  }

  h1 {
    margin-top: 1rem;
    font-size: 2.7rem;
  }

  .stack {
    margin-top: 1.15rem;
  }

  .anfahrt {
    margin-top: 1.35rem;
  }

  .social,
  .review {
    margin-top: 1.25rem;
  }
}

@media (hover: hover) {
  .route:hover,
  .review-go:hover {
    background: #3a3128;
  }

  .social-list a:hover,
  .back a:hover {
    background: var(--paper-deep);
  }

  footer a:hover {
    color: var(--ink);
  }
}

.route:active,
.review-go:active {
  background: #3a3128;
}

.social-list a:active,
.back a:active {
  background: var(--paper-deep);
}

@media (prefers-reduced-motion: no-preference) {
  .logo path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 0.9s var(--ease) forwards;
    animation-delay: calc(var(--i) * 45ms);
  }

  .route:active,
  .review-go:active,
  .social-list a:active {
    transform: scale(0.98);
  }

  .loading-spinner {
    animation: spin 0.7s linear infinite;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

@media (forced-colors: active) {
  .route,
  .review,
  .review-go,
  .social-list a,
  .logo-plate {
    border: 1px solid ButtonText;
  }

  .marks li,
  .print-button,
  .qr-plate {
    border: 1px solid ButtonText;
  }
}

.subpage h1 {
  max-width: 16ch;
  font-size: clamp(2.1rem, 8vw, 3.5rem);
  letter-spacing: 0.03em;
}

.lead-copy {
  margin: 0.85rem 0 0;
  max-width: 26rem;
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.marks {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.55rem;
  width: min(100%, 16rem);
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.marks li {
  aspect-ratio: 1;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}

.marks li.gift {
  border-width: 2.5px;
}

.perks {
  width: min(100%, 22rem);
  margin-top: 1.35rem;
}

.perk {
  margin: 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--line);
}

.perk + .perk {
  margin-top: 0.75rem;
}

.perk p {
  margin: 0.25rem 0 0;
  font-size: 1.0625rem;
  font-weight: 500;
}

.subpage .route {
  width: min(100%, 22rem);
  margin-top: 1.35rem;
}

body.is-holding {
  overflow: hidden;
}

.loading-screen {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding:
    max(1.25rem, env(safe-area-inset-top))
    1.25rem
    max(1.25rem, env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--ink) 46%, transparent);
}

.loading-screen[hidden] {
  display: none;
}

.loading-card {
  width: min(100%, 18rem);
  padding: 1.7rem 1.3rem 1.45rem;
  border-radius: 1.5rem;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 24px 50px -28px color-mix(in srgb, var(--ink) 70%, transparent);
}

.loading-spinner {
  width: 2.25rem;
  height: 2.25rem;
  margin-inline: auto;
  border: 3px solid color-mix(in srgb, var(--ink) 18%, transparent);
  border-top-color: var(--ink);
  border-radius: 50%;
}

.loading-title {
  margin: 1.05rem 0 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  text-wrap: balance;
}

.loading-text {
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.4;
}

@media (forced-colors: active) {
  .loading-screen,
  .loading-card,
  .loading-spinner {
    border: 1px solid ButtonText;
  }

  .loading-spinner {
    border-top-color: Highlight;
  }
}

.qr-plate {
  width: min(100%, 18rem);
  margin-top: 1.35rem;
  padding: 0.9rem;
  border-radius: 1.25rem;
  background: #fff;
}

.qr {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.print-button {
  margin-top: 1.25rem;
  min-height: 3.25rem;
  padding-inline: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

@media (hover: hover) {
  .print-button:hover {
    background: var(--paper-deep);
  }
}

@media print {
  .no-print {
    display: none !important;
  }

  html:has(body.standee),
  body.standee {
    background: var(--paper) !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body.standee main {
    justify-content: center;
    min-height: 100vh;
    padding-top: 0;
    padding-bottom: 0;
  }

  body.standee .qr-plate {
    width: 9.6cm;
    padding: 0.7cm;
    background: #fff !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
