/* Backhaus Rosso — welcome landing (logo + bakery backgrounds) */

.wl {
  --wl-font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --wl-font-body: "Outfit", "Segoe UI", system-ui, sans-serif;
  --wl-rosso: #9c2b2b;
  --wl-rosso-dark: #6b1f1f;
  --wl-cream: #faf6f0;
  --wl-glass: rgba(255, 252, 248, 0.92);
  --wl-glass-border: rgba(255, 255, 255, 0.45);
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--wl-font-body);
  color: #2c2419;
}

#welcomeGate.sf-hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#shopApp:not(.sf-hidden) {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

/* Full-bleed slideshow background */
.wl__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #3d2a1a;
}

.wl__bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  animation: wl-kenburns 24s ease-in-out infinite;
  will-change: opacity, transform;
}

.wl__bg-slide--a {
  animation-delay: 0s;
}

.wl__bg-slide--b {
  animation-delay: 8s;
}

.wl__bg-slide--c {
  animation-delay: 16s;
}

@keyframes wl-kenburns {
  0% { opacity: 0; transform: scale(1.08); }
  4% { opacity: 1; }
  30% { opacity: 1; transform: scale(1); }
  36% { opacity: 0; }
  100% { opacity: 0; transform: scale(1.05); }
}

.wl__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 48% 58% at 50% 42%, rgba(28, 16, 10, 0.9) 0%, rgba(28, 16, 10, 0.45) 50%, rgba(20, 12, 8, 0.25) 100%),
    linear-gradient(160deg, rgba(44, 28, 18, 0.75) 0%, rgba(60, 32, 22, 0.5) 50%, rgba(20, 12, 8, 0.65) 100%);
}

/* Scattered Backwaren around the edges */
.wl__scatter {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.wl__scatter-item {
  position: absolute;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.45),
    0 0 0 3px rgba(255, 255, 255, 0.12);
  opacity: 0.88;
  animation: wl-float 7s ease-in-out infinite;
  will-change: transform;
}

@keyframes wl-float {
  0%, 100% {
    transform: translateY(0) rotate(var(--wl-rot, 0deg));
  }
  50% {
    transform: translateY(-10px) rotate(var(--wl-rot, 0deg));
  }
}

.wl__grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.35;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Layout */
.wl__shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px 20px;
  box-sizing: border-box;
}

.wl__top {
  text-align: center;
  margin-bottom: 28px;
  animation: wl-fade-up 0.7s ease-out both;
}

.wl__logo {
  display: block;
  margin: 0 auto;
  max-width: min(280px, 72vw);
  height: auto;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.35));
}

.wl__logo.is-fallback {
  content: "Backhaus Rosso";
}

.wl__content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 480px;
}

.wl__card {
  width: 100%;
  padding: 32px 28px 28px;
  border-radius: 20px;
  background: var(--wl-glass);
  border: 1px solid var(--wl-glass-border);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: wl-fade-up 0.7s ease-out 0.1s both;
}

.wl__card--hero {
  text-align: center;
}

.wl__card--form {
  text-align: left;
}

@keyframes wl-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wl__eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wl-rosso);
}

.wl__headline {
  margin: 0 0 12px;
  font-family: var(--wl-font-display);
  font-size: clamp(2rem, 6vw, 2.65rem);
  font-weight: 600;
  line-height: 1.15;
  color: #3d2817;
}

.wl__subline {
  margin: 0 0 24px;
  font-size: 1rem;
  line-height: 1.55;
  color: #5c4d3f;
}

.wl__steps {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.wl__steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: #4a3d32;
}

.wl__step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--wl-rosso), var(--wl-rosso-dark));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.wl__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wl__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 22px;
  border: none;
  border-radius: 12px;
  font-family: var(--wl-font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.wl__btn:active {
  transform: scale(0.98);
}

.wl__btn--primary {
  background: linear-gradient(145deg, #b83232, var(--wl-rosso-dark));
  color: #fff;
  box-shadow: 0 8px 24px rgba(156, 43, 43, 0.45);
}

.wl__btn--primary:hover {
  box-shadow: 0 12px 32px rgba(156, 43, 43, 0.55);
}

.wl__btn--ghost {
  background: rgba(255, 255, 255, 0.65);
  color: #3d2817;
  border: 1px solid rgba(92, 61, 30, 0.2);
}

.wl__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.9);
}

.wl__btn--full {
  width: 100%;
}

.wl__btn-icon {
  flex-shrink: 0;
}

.wl__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: -8px 0 16px;
  padding: 6px 0;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 500;
  color: #6b5d4f;
  cursor: pointer;
}

.wl__back:hover {
  color: var(--wl-rosso);
}

.wl__form-title {
  margin: 0 0 6px;
  font-family: var(--wl-font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: #3d2817;
}

.wl__form-lead {
  margin: 0 0 20px;
  font-size: 0.92rem;
  color: #6b5d4f;
}

.wl__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wl__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wl__field label {
  font-size: 12px;
  font-weight: 600;
  color: #6b5d4f;
  letter-spacing: 0.03em;
}

.wl__optional {
  font-weight: 400;
  color: #9a8b7a;
}

.wl__field input {
  padding: 12px 14px;
  border: 1px solid rgba(92, 61, 30, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.wl__field input:focus {
  outline: none;
  border-color: var(--wl-rosso);
  box-shadow: 0 0 0 3px rgba(156, 43, 43, 0.15);
}

.wl__error {
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
  color: #7a2222;
  background: rgba(156, 43, 43, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(156, 43, 43, 0.2);
}

.wl__switch {
  margin: 18px 0 0;
  text-align: center;
  font-size: 14px;
  color: #6b5d4f;
}

.wl__switch a {
  color: var(--wl-rosso);
  font-weight: 600;
  text-decoration: none;
}

.wl__switch a:hover {
  text-decoration: underline;
}

.wl__switch--tight {
  margin-top: 10px;
}

.wl__info {
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
  color: #2c5a3d;
  background: rgba(44, 90, 61, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(44, 90, 61, 0.2);
}

.wl__resend {
  margin: 0 0 12px;
  text-align: center;
  font-size: 13px;
}

.wl__resend a {
  color: var(--wl-rosso);
  font-weight: 600;
  text-decoration: none;
}

.wl__resend a:hover {
  text-decoration: underline;
}

.wl__dev-link {
  margin: 12px 0 0;
  padding: 10px 12px;
  font-size: 12px;
  color: #4a4035;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  border: 1px dashed rgba(156, 43, 43, 0.35);
  word-break: break-all;
}

.wl__dev-link a {
  color: var(--wl-rosso);
}

.wl__footer {
  margin-top: 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  animation: wl-fade-up 0.7s ease-out 0.2s both;
}

.wl__footer-sep {
  margin: 0 8px;
  opacity: 0.5;
}

/* Desktop: wider card, logo larger */
@media (min-width: 768px) {
  .wl__shell {
    padding: 40px 32px 28px;
  }

  .wl__logo {
    max-width: 320px;
  }

  .wl__content {
    max-width: 440px;
  }

  .wl__card {
    padding: 36px 32px 32px;
  }

  .wl__scatter-item {
    opacity: 0.92;
  }
}

/* Mobile: fewer / smaller scatter so it does not crowd */
@media (max-width: 520px) {
  .wl__scatter-item:nth-child(n + 9) {
    display: none;
  }

  .wl__scatter-item {
    opacity: 0.75;
    box-shadow:
      0 8px 20px rgba(0, 0, 0, 0.4),
      0 0 0 2px rgba(255, 255, 255, 0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wl__bg-slide {
    animation: none;
    opacity: 0;
  }

  .wl__bg-slide--a {
    opacity: 1;
    transform: none;
  }

  .wl__scatter-item {
    animation: none;
  }
}
