/* ==========================================================================
   EDEKA Lehmann – Gewinnspiel Landingpage
   Aesthetik: "Marktplakat" – Papierton, kräftiges EDEKA-Blau, Preisschild-Gelb
   Layout:    Vollbild-Screens, Schritt für Schritt (kein Seiten-Scroll)
   ========================================================================== */

:root{
  --paper:      #f8f2e2;
  --paper-2:    #fffdf7;
  --ink:        #12233b;
  --ink-soft:   #4a5c74;
  --blue:       #0a4b9c;
  --blue-tint:  #e4edf9;
  --yellow:     #ffd400;
  --red:        #e2231a;
  --green:      #1a8f4a;
  --line:       #12233b;

  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;

  --font-display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 30rem;
  --pad: clamp(1.1rem, 5vw, 1.75rem);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }

body{
  margin:0;
  height:100dvh;
  overflow:hidden;                 /* geblättert wird, nicht gescrollt */
  background-color:var(--paper);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(10,75,156,.10), transparent 55%),
    repeating-linear-gradient(0deg, rgba(18,35,59,.045) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(18,35,59,.045) 0 1px, transparent 1px 26px);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.5;
}
[hidden]{ display:none !important; }
a{ color:var(--blue); text-underline-offset:3px; }

.grain{
  position:fixed; inset:0; z-index:0; pointer-events:none; opacity:.2;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode:multiply;
}

/* ---------- Grundgerüst ---------- */
.app{
  position:relative; z-index:1;
  height:100dvh;
  display:grid;
  grid-template-rows:auto 1fr auto;
  max-width:var(--wrap);
  margin-inline:auto;
}

.topbar{
  display:flex; align-items:center; justify-content:center; gap:.55rem;
  padding:.7rem var(--pad);
  background:var(--blue); color:#fff;
  font-family:var(--font-display); font-weight:800;
  font-size:.72rem; letter-spacing:.16em; text-transform:uppercase;
  border-bottom:3px solid var(--line);
}
.topbar__dot{ width:5px; height:5px; border-radius:50%; background:var(--yellow); }
.topbar__label{ color:var(--yellow); }
.steps{ display:flex; gap:5px; margin-left:auto; }
.steps i{
  width:7px; height:7px; border-radius:50%;
  background:rgba(255,255,255,.3);
  transition:background .3s ease, transform .3s ease;
}
.steps i.is-on{ background:var(--yellow); transform:scale(1.25); }

/* ---------- Screens ---------- */
.stage{ position:relative; overflow:hidden; }

.screen{
  position:absolute; inset:0;
  display:flex; flex-direction:column;
  opacity:0; transform:translateX(28px);
  pointer-events:none;
  transition:opacity .38s ease, transform .38s cubic-bezier(.2,.8,.3,1);
}
.screen.is-active{ opacity:1; transform:none; pointer-events:auto; }
.screen.is-past{ transform:translateX(-28px); }

.screen__body{
  flex:1 1 auto;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  padding:1rem var(--pad) .5rem;
  text-align:center;
  scrollbar-width:thin;
}
.screen__body--center{ display:flex; flex-direction:column; align-items:center; justify-content:center; }

.screen__foot{
  flex:none;
  padding:.85rem var(--pad) 1rem;
  background:linear-gradient(180deg, rgba(248,242,226,0) 0%, var(--paper) 22%);
  border-top:2px dashed rgba(18,35,59,.2);
}
.foot-hint{
  margin:0 0 .55rem; text-align:center;
  font-family:var(--font-display); font-weight:600;
  font-size:.68rem; letter-spacing:.13em; text-transform:uppercase; color:var(--ink-soft);
}

/* ---------- Typo-Bausteine ---------- */
.kicker{
  display:inline-block; margin:0 0 .6rem;
  padding:.3rem .65rem;
  background:var(--yellow); border:2px solid var(--line); border-radius:999px;
  font-family:var(--font-display); font-weight:800;
  font-size:.66rem; letter-spacing:.15em; text-transform:uppercase;
  transform:rotate(-1.5deg);
}
.kicker--blue{ background:var(--blue); color:#fff; }

.hero__title{
  margin:0 0 .7rem;
  font-family:var(--font-display); font-weight:800;
  font-size:clamp(2.5rem,13vw,3.6rem); line-height:.9; letter-spacing:-.035em;
  text-wrap:balance;
}
.hero__title-em{ position:relative; color:var(--blue); }
.hero__title-em::after{
  content:""; position:absolute; left:-2%; right:-2%; bottom:.06em; height:.2em;
  background:var(--yellow); z-index:-1; transform:rotate(-1deg);
}
.hero__lead{ margin:0 auto 1.1rem; max-width:24rem; color:var(--ink-soft); font-size:.98rem; text-wrap:pretty; }

.section-title{
  margin:.1rem 0 .45rem;
  font-family:var(--font-display); font-weight:800;
  font-size:clamp(1.45rem,6vw,1.8rem); line-height:1.06; letter-spacing:-.03em;
}
.section-lead{ margin:0 0 .85rem; color:var(--ink-soft); font-size:.9rem; }

.cart{ color:var(--ink); margin:0 auto .9rem; max-width:11.5rem; }
.cart svg{ width:100%; height:auto; display:block; }
.cart__goods{ animation:bob 4.5s ease-in-out infinite; transform-origin:center; }
@keyframes bob{ 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(-4px) } }

/* Sperr-Hinweis auf Screen 1 */
.locked-note{
  display:inline-flex; align-items:center; gap:.55rem;
  margin:0 auto; padding:.6rem .85rem;
  background:rgba(255,255,255,.55);
  border:2px dashed rgba(18,35,59,.35); border-radius:999px;
  font-size:.8rem; color:var(--ink-soft); text-align:left;
}
.locked-note__icon{
  display:grid; place-items:center; flex:none;
  width:26px; height:26px; border-radius:50%;
  background:var(--yellow); color:var(--ink); border:2px solid var(--line);
  animation:wiggle 3.5s ease-in-out infinite;
}
.locked-note strong{ color:var(--ink); }
@keyframes wiggle{ 0%,88%,100%{ transform:rotate(0) } 92%{ transform:rotate(-8deg) } 96%{ transform:rotate(8deg) } }
.locked-note.is-open{ border-style:solid; border-color:var(--green); background:#eefaf1; }
.locked-note.is-open .locked-note__icon{ background:var(--green); color:#fff; animation:none; }

/* ---------- Buttons ---------- */
.btn{
  display:flex; align-items:center; justify-content:center; gap:.55rem;
  width:100%; padding:1rem 1.1rem;
  border:3px solid var(--line); border-radius:var(--r-md);
  background:var(--ink); color:var(--paper-2);
  font-family:var(--font-display); font-weight:800; font-size:1.02rem;
  text-decoration:none; cursor:pointer;
  box-shadow:0 5px 0 var(--line);
  transition:transform .12s ease, box-shadow .12s ease, filter .2s ease;
}
.btn:active{ transform:translateY(5px); box-shadow:0 0 0 var(--line); }
.btn:focus-visible{ outline:3px solid var(--blue); outline-offset:3px; }
.btn--ig{ background:linear-gradient(100deg,#f9ce34 0%,#ee2a7b 48%,#6228d7 100%); color:#fff; }
.btn--ig .btn__ig-icon{ width:21px; height:21px; flex:none; }
.btn--submit{ background:var(--blue); color:#fff; }
.btn__arrow{ font-size:1.1rem; }
.btn[disabled]{ filter:grayscale(.5) opacity(.6); pointer-events:none; }

.handle{
  margin:.55rem 0 0; text-align:center;
  font-family:var(--font-display); font-weight:600; font-size:.85rem; color:var(--ink-soft);
}

.back{
  display:inline-flex; align-items:center; gap:.4rem;
  margin:0 0 .8rem; padding:.35rem .7rem;
  background:transparent; border:2px solid rgba(18,35,59,.25); border-radius:999px;
  font-family:var(--font-body); font-size:.78rem; color:var(--ink-soft); cursor:pointer;
}
.back:hover{ border-color:var(--line); color:var(--ink); }

.photo-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  width:100%; margin-top:.7rem; padding:.7rem 1rem;
  background:var(--paper-2); color:var(--ink);
  border:2.5px solid var(--line); border-radius:var(--r-md);
  font-family:var(--font-display); font-weight:800; font-size:.92rem; cursor:pointer;
  transition:background .15s ease, transform .12s ease;
}
.photo-btn:hover{ background:var(--yellow); }
.photo-btn:active{ transform:translateY(2px); }

/* ---------- Prüf-Status ---------- */
.checking{
  margin-top:.85rem; padding-top:.8rem;
  border-top:2px dashed rgba(18,35,59,.25);
  animation:fadeUp .4s ease both;
}
.checking__head{ display:flex; align-items:center; gap:.55rem; }
.checking__text{ margin:0; font-size:.88rem; font-weight:500; text-align:left; }
.checking__hint{ margin:.45rem 0 0; font-size:.76rem; color:var(--ink-soft); }
.spinner{
  width:15px; height:15px; flex:none; border-radius:50%;
  border:3px solid rgba(10,75,156,.25); border-top-color:var(--blue);
  animation:spin .8s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg) } }
.progress{
  margin-top:.6rem; height:13px;
  background:var(--blue-tint); border:2px solid var(--line); border-radius:999px; overflow:hidden;
}
.progress__fill{
  width:0%; height:100%;
  background-color:var(--blue);
  background-image:repeating-linear-gradient(115deg, rgba(255,255,255,.28) 0 8px, transparent 8px 16px);
  background-size:32px 100%;
  animation:stripes .7s linear infinite;
  transition:width .1s linear;
}
@keyframes stripes{ to{ background-position:32px 0 } }
.checking.is-done .spinner{ border-color:var(--green); border-top-color:var(--green); animation:none; }
.checking.is-done .progress__fill{ background-color:var(--green); animation:none; }

/* ---------- Hauptpreis & Hinweise ---------- */
.prize{
  position:relative; margin:0 0 1rem;
  padding:1.15rem .9rem .9rem;
  background:var(--blue); color:#fff;
  border:3px solid var(--line); border-radius:var(--r-md);
  box-shadow:0 6px 0 var(--line);
  text-align:left;
}
.prize__tag{
  position:absolute; top:-.8rem; left:.9rem;
  padding:.25rem .7rem;
  background:var(--yellow); color:var(--ink);
  border:2.5px solid var(--line); border-radius:6px;
  font-family:var(--font-display); font-weight:800;
  font-size:.68rem; letter-spacing:.13em; text-transform:uppercase;
  transform:rotate(-2deg);
}
.prize__list{ list-style:none; margin:0; padding:0; display:grid; gap:.55rem; }
.prize__list li{ display:flex; gap:.6rem; align-items:flex-start; min-width:0; font-size:.95rem; line-height:1.35; }
.prize__list li > span:last-child{ min-width:0; }
.prize__num{
  flex:none; margin-top:.1rem;
  font-family:var(--font-display); font-weight:800; font-size:.74rem;
  color:var(--yellow); letter-spacing:.06em;
}
.prize strong{ color:var(--yellow); }

.hints{ text-align:left; }
.hints__title{
  margin:0 0 .5rem;
  font-family:var(--font-display); font-weight:800; font-size:.92rem;
  letter-spacing:.06em; text-transform:uppercase;
}
.hints__list{ list-style:none; margin:0; padding:0; display:grid; gap:.42rem; }
.hints__list li{
  display:flex; gap:.6rem; align-items:flex-start; min-width:0;
  padding:.55rem .7rem;
  background:var(--blue-tint); border-radius:var(--r-sm);
  font-size:.86rem; line-height:1.35;
}
.hints__icon{
  flex:none; display:grid; place-items:center;
  width:21px; height:21px; border-radius:50%;
  background:var(--blue); color:#fff; font-size:.7rem; line-height:1;
}

/* ---------- Formular ---------- */
.form{ display:grid; gap:.85rem; text-align:left; }
.field{ display:grid; gap:.3rem; }
.field-row{ display:grid; gap:.85rem; grid-template-columns:1fr 1fr; }
label{ font-size:.82rem; font-weight:600; }
.field__opt{ font-weight:400; color:var(--ink-soft); }
.field__help{ margin:0; font-size:.74rem; color:var(--ink-soft); }
.field__error{ margin:0; font-size:.78rem; font-weight:600; color:var(--red); }

input[type="text"],input[type="email"],input[type="tel"]{
  width:100%; padding:.75rem .8rem;
  background:var(--paper); border:2.5px solid var(--line); border-radius:var(--r-sm);
  font-family:var(--font-body); font-size:16px; color:var(--ink);
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
input:focus{ outline:none; border-color:var(--blue); background:#fff; box-shadow:0 0 0 4px rgba(10,75,156,.16); }
input.is-invalid{ border-color:var(--red); background:#fdf0ef; }

.field--guess{ padding:.9rem; background:var(--yellow); border:3px solid var(--line); border-radius:var(--r-md); }
.field--guess .field__help{ color:#5c4a00; }
.guess-input{ position:relative; }
.guess-input input{
  font-family:var(--font-display); font-weight:800;
  font-size:1.9rem; letter-spacing:-.02em;
  padding:.55rem 2.4rem .55rem .8rem;
}
.guess-input__cur{
  position:absolute; right:.9rem; top:50%; transform:translateY(-50%);
  font-family:var(--font-display); font-weight:800; font-size:1.5rem; color:var(--blue);
  pointer-events:none;
}

.check{
  display:grid; grid-template-columns:auto 1fr; gap:.6rem; align-items:start;
  font-size:.81rem; line-height:1.4; font-weight:400; cursor:pointer;
}
.check input{ position:absolute; opacity:0; width:0; height:0; }
.check__box{
  width:21px; height:21px; margin-top:.05rem;
  border:2.5px solid var(--line); border-radius:6px; background:var(--paper);
  display:grid; place-items:center; transition:background .15s ease;
}
.check__box::after{
  content:"✓"; color:#fff; font-size:.8rem; font-weight:700;
  transform:scale(0); transition:transform .15s cubic-bezier(.2,1.4,.4,1);
}
.check input:checked + .check__box{ background:var(--blue); border-color:var(--blue); }
.check input:checked + .check__box::after{ transform:scale(1); }
.check input:focus-visible + .check__box{ outline:3px solid var(--blue); outline-offset:2px; }

.form__status{
  margin:0; padding:.7rem .85rem; border-radius:var(--r-sm);
  background:#fdf0ef; border:2px solid var(--red); color:#8c1611;
  font-size:.85rem; font-weight:500;
}
.form__status.is-ok{ background:#eefaf1; border-color:var(--green); color:#0f5c2f; }
.form__deadline{ margin:.5rem 0 0; text-align:center; font-size:.72rem; color:var(--ink-soft); }

/* ---------- Abschluss ---------- */
.success__seal{
  display:grid; place-items:center; width:74px; height:74px; margin:0 auto 1rem;
  border-radius:50%; background:var(--yellow); border:3px solid var(--line);
  box-shadow:0 5px 0 var(--line); font-size:2rem; line-height:1;
  animation:pop .6s cubic-bezier(.2,1.3,.4,1) both;
}
@keyframes pop{ 0%{ transform:scale(.9) } 55%{ transform:scale(1.05) } 100%{ transform:scale(1) } }
.success__text{ margin:0; color:var(--ink-soft); font-size:.95rem; }
.success__text strong{ color:var(--blue); font-size:1.3rem; font-family:var(--font-display); }
.success__meta{ margin-top:1rem; font-size:.78rem; color:var(--ink-soft); }

/* ---------- Footer ---------- */
.footer{
  flex:none;
  padding:.55rem var(--pad) .7rem;
  text-align:center;
  border-top:2px solid var(--line);
  background:var(--paper-2);
}
.footer__links{ display:flex; flex-wrap:wrap; justify-content:center; gap:.2rem .9rem; }
.footer__links a{ font-size:.75rem; }
.meta-disclaimer{ margin:.35rem 0 0; font-size:.62rem; line-height:1.35; color:var(--ink-soft); }

/* ---------- Dialoge ---------- */
.modal,.photo-modal{
  width:min(32rem,92vw); max-height:85dvh;
  padding:1.5rem 1.2rem;
  border:3px solid var(--line); border-radius:var(--r-lg);
  background:var(--paper-2); color:var(--ink);
  box-shadow:0 18px 40px -22px rgba(18,35,59,.55);
}
.modal::backdrop,.photo-modal::backdrop{ background:rgba(18,35,59,.6); backdrop-filter:blur(3px); }
.modal__close{
  position:absolute; top:.5rem; right:.6rem; z-index:2;
  width:34px; height:34px; border-radius:50%;
  border:2px solid var(--line); background:var(--paper);
  font-size:1.3rem; line-height:1; cursor:pointer; color:var(--ink);
}
.modal__title{ margin:0 0 .8rem; font-family:var(--font-display); font-weight:800; font-size:1.3rem; }
.modal__body{ font-size:.85rem; line-height:1.6; overflow-y:auto; max-height:65dvh; }
.modal__body h3{ margin:1.1rem 0 .25rem; font-family:var(--font-display); font-size:.92rem; }
.modal__body p,.modal__body li{ color:var(--ink-soft); }
.modal__body ul{ padding-left:1.1rem; margin:.25rem 0; }

.photo-modal{ padding:.9rem; }
.photo-modal__figure{ margin:0; }
.photo-modal img{
  display:block; width:100%; height:auto; max-height:70dvh; object-fit:contain;
  border:2.5px solid var(--line); border-radius:var(--r-md); background:var(--paper);
}
.photo-modal figcaption{
  margin-top:.6rem; text-align:center; font-size:.78rem; color:var(--ink-soft);
}

/* ---------- Animation ---------- */
@keyframes fadeUp{ from{ opacity:0; transform:translateY(14px) } to{ opacity:1; transform:none } }
.screen.is-active .screen__body > *{ animation:fadeUp .5s cubic-bezier(.2,.7,.3,1) both; }
.screen.is-active .screen__body > *:nth-child(2){ animation-delay:.05s }
.screen.is-active .screen__body > *:nth-child(3){ animation-delay:.1s }
.screen.is-active .screen__body > *:nth-child(4){ animation-delay:.15s }
.screen.is-active .screen__body > *:nth-child(5){ animation-delay:.2s }

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}

/* ---------- Größere Screens ---------- */
@media (min-height:800px){
  .screen__body{ padding-top:2rem; }
  .cart{ max-width:13rem; }
}
@media (min-width:640px){
  body{ font-size:17px; }
  .app{ border-inline:2px solid rgba(18,35,59,.12); }
}
