/* Farben und Formen aus der finpair-Masterpräsentation */
:root {
  --red: #FF2812;
  --red-soft: #FFE3DF;
  --text: #494949;
  --grey: #9B9B9B;
  --light: #F6F6F6;
  --line: #EDEDED;
  --ok: #1B7F3B;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "CircularXX Book", "CircularXX", "Circular Std", "Avenir Next", Avenir, "Century Gothic", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.45;
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Roter Kopf mit schräger Kante wie auf der Titelfolie */
.hero {
  position: relative;
  background: var(--red);
  padding: 34px 0 96px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 44px), 0 100%);
  overflow: hidden;
}
.hero.small { padding-bottom: 64px; }
/* Schneefall im Kopf: drei Ebenen, die sich nahtlos wiederholen */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(#fff 2px, transparent 2.5px),
    radial-gradient(rgba(255, 255, 255, .7) 1.5px, transparent 2px),
    radial-gradient(rgba(255, 255, 255, .45) 3px, transparent 3.5px);
  background-size: 120px 120px, 80px 80px, 200px 200px;
  background-position: 0 0, 40px 60px, 90px 30px;
  animation: snow 24s linear infinite;
}
@keyframes snow {
  to { background-position: 120px 600px, -40px 860px, 290px 430px; }
}
/* Tannen am rechten Rand */
.hero::after {
  content: "";
  position: absolute; right: 4%; bottom: 30px; width: 260px; height: 110px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 110'%3E%3Cg fill='%23165B39'%3E%3Cpath fill='%230F4A2D' transform='translate(0 22) scale(.85)' d='M24 100V88H4L20 66H10L26 42H18L32 16L46 42H38L54 66H44L60 88H40V100Z'/%3E%3Cpath fill='%23fff' transform='translate(0 22) scale(.85)' d='M32 16L39.5 30Q35.5 26.5 32 30.5Q28.5 26.5 24.5 30ZM26 42H38L42.8 49.2Q37.5 45.5 32 49.5Q26.5 45.5 21.2 49.2ZM20 66H44L48.8 72.6Q40 68.5 32 73Q24 68.5 15.2 72.6Z'/%3E%3Cpath transform='translate(52 0) scale(1.1)' d='M24 100V88H4L20 66H10L26 42H18L32 16L46 42H38L54 66H44L60 88H40V100Z'/%3E%3Cpath fill='%23fff' transform='translate(52 0) scale(1.1)' d='M32 16L39.5 30Q35.5 26.5 32 30.5Q28.5 26.5 24.5 30ZM26 42H38L42.8 49.2Q37.5 45.5 32 49.5Q26.5 45.5 21.2 49.2ZM20 66H44L48.8 72.6Q40 68.5 32 73Q24 68.5 15.2 72.6Z'/%3E%3Cpath fill='%23237A4E' transform='translate(122 34) scale(.72)' d='M24 100V88H4L20 66H10L26 42H18L32 16L46 42H38L54 66H44L60 88H40V100Z'/%3E%3Cpath fill='%23fff' transform='translate(122 34) scale(.72)' d='M32 16L39.5 30Q35.5 26.5 32 30.5Q28.5 26.5 24.5 30ZM26 42H38L42.8 49.2Q37.5 45.5 32 49.5Q26.5 45.5 21.2 49.2ZM20 66H44L48.8 72.6Q40 68.5 32 73Q24 68.5 15.2 72.6Z'/%3E%3Cpath fill='%231B6A42' transform='translate(166 10) scale(1)' d='M24 100V88H4L20 66H10L26 42H18L32 16L46 42H38L54 66H44L60 88H40V100Z'/%3E%3Cpath fill='%23fff' transform='translate(166 10) scale(1)' d='M32 16L39.5 30Q35.5 26.5 32 30.5Q28.5 26.5 24.5 30ZM26 42H38L42.8 49.2Q37.5 45.5 32 49.5Q26.5 45.5 21.2 49.2ZM20 66H44L48.8 72.6Q40 68.5 32 73Q24 68.5 15.2 72.6Z'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}
.hero .wrap { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }
.hero .logo { display: block; height: 50px; }

.title { margin: 28px 0 6px; font-size: 44px; line-height: 1.1; font-weight: bold; color: #222; }
.subtitle { margin: 0 0 6px; font-size: 20px; }
.intro { margin: 14px 0 36px; max-width: 720px; }
.label { margin: 0 0 14px; font-size: 14px; font-weight: bold; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px; margin-bottom: 40px; }
.door {
  aspect-ratio: 1; border: 0; border-radius: 16px; font: inherit; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--light); color: var(--grey);
  transition: transform .15s;
}
/* Kleine Zeichen in der Ecke: Schneeflocke, Stern, Haken */
.door { position: relative; }
.door::after { position: absolute; top: 9px; right: 12px; font-size: 15px; line-height: 1; }
.door.future::after { content: "\2744"; color: #D9D9D9; }
.door.today::after { content: "\2605"; color: #FFD27A; font-size: 17px; }
.door.past::after { content: "\2713"; color: var(--red); }
.door .num { font-size: 38px; font-weight: bold; line-height: 1; }
.door .date { font-size: 13px; }
.door.future { cursor: not-allowed; }
.door.past { background: var(--red-soft); color: var(--red); }
.door.today { background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(255, 40, 18, .35); }
.door.pause { background: #fff; border: 2px dashed #D9D9D9; }
.door:not(.future):hover { transform: translateY(-3px); }
.door.active { outline: 3px solid var(--text); outline-offset: 3px; }

.panel { background: var(--light); border-radius: 20px; padding: 32px; margin-bottom: 48px; }
.meta { color: var(--grey); font-size: 14px; margin: 0 0 14px; }
.question { font-size: 24px; line-height: 1.25; font-weight: bold; color: #222; margin: 0 0 22px; }
.option { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; background: #fff; border: 2px solid transparent; border-radius: 14px; margin-bottom: 10px; cursor: pointer; }
button.option { width: 100%; font: inherit; color: inherit; text-align: left; }
button.option:hover { border-color: var(--red); }
.option:has(input:checked) { border-color: var(--red); }
.option input { accent-color: var(--red); margin-top: 4px; }
.option.solution { border-color: var(--ok); color: var(--ok); font-weight: bold; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0 14px; }
.fields label { font-size: 14px; display: block; }
.fields .full { grid-column: 1 / -1; }
input[type=text], input[type=email], input[type=password], input[type=search], select {
  width: 100%; padding: 12px 14px; margin-top: 4px; font: inherit; color: inherit;
  background: #fff; border: 1px solid #D9D9D9; border-radius: 12px;
}
input:focus, select:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.consent { display: flex; gap: 10px; font-size: 14px; margin: 14px 0 22px; }
.consent input { accent-color: var(--red); margin-top: 3px; }
.btn { background: var(--red); color: #fff; border: 0; border-radius: 999px; padding: 13px 28px; font: inherit; font-weight: bold; cursor: pointer; }
.btn.ghost { background: #fff; color: var(--red); border: 2px solid var(--red); padding: 11px 26px; }
a.btn { display: inline-block; text-decoration: none; text-align: center; }
/* Leiste für angemeldete Admins in der Kundenansicht */
.adminbar { position: fixed; right: 20px; bottom: 20px; z-index: 5; display: flex; gap: 10px; align-items: center; padding: 10px 12px 10px 16px; background: #222; color: #fff; border-radius: 999px; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); font-size: 14px; }
.adminbar select { width: auto; margin: 0; padding: 7px 10px; border-radius: 999px; color: #222; }
.adminbar .btn { padding: 8px 18px; }
.msg.preview { background: #FFF1A8; color: #222; }
.btn:disabled { opacity: .5; cursor: default; }

.msg { padding: 16px 20px; border-radius: 14px; margin-top: 18px; background: #fff; }
.msg.won { background: #E4F4E9; color: var(--ok); font-weight: bold; }
.msg.no { background: var(--red-soft); color: #B01300; }
.result { background: #fff; border-radius: 16px; padding: 28px; margin-top: 18px; text-align: center; }
.result h3 { margin: 0 0 6px; font-size: 26px; color: var(--ok); }
.result.wrong h3 { color: var(--red); }
.result p { margin: 0; }
.ticket { border: 2px dashed rgba(255, 255, 255, .6); outline: 6px solid var(--red); }
.ticket { display: inline-block; margin: 18px 0 14px; padding: 14px 34px; background: var(--red); color: #fff; border-radius: 16px; }
.ticket small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.ticket strong { font-size: 54px; line-height: 1.05; letter-spacing: .04em; }

.heading { margin: 0 0 20px; font-size: 30px; line-height: 1.15; color: #222; }
.carousel { display: flex; align-items: center; gap: 10px; margin-bottom: 48px; }
.track { flex: 1; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 0; }
.track::-webkit-scrollbar { display: none; }
.prize { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; background: var(--light); border-radius: 20px; padding: 16px 16px 20px; }
.prize img, .prize .placeholder { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; margin-bottom: 14px; }
.prize .placeholder { background-color: var(--red-soft); background-image: radial-gradient(rgba(255, 40, 18, .45) 3px, transparent 3.5px); background-size: 20px 20px; }
.prize h3 { margin: 0 0 4px; font-size: 18px; color: #222; }
.prize .day { margin: 0 0 4px; font-size: 12px; font-weight: bold; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.prize.today { outline: 3px solid var(--red); outline-offset: -3px; }
.prize.past img { filter: grayscale(1); opacity: .6; }
.prize.past .day { color: var(--grey); }
.prize img { height: auto; }
.account { margin: -20px 0 32px; font-size: 14px; max-width: 720px; }
.account p { margin: 0 0 10px; }
.account .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.account .fields { margin: 0 0 12px; }
.win { margin: -6px 0 16px; font-weight: bold; color: #222; }
#prizeNote { margin: -32px 0 48px; }
.prize p { margin: 0; font-size: 14px; }
.nav { flex: 0 0 44px; height: 44px; border-radius: 50%; border: 2px solid var(--red); background: #fff; color: var(--red); font-size: 26px; line-height: 1; cursor: pointer; }
.nav:hover { background: var(--red); color: #fff; }

a { color: var(--red); }
footer { color: var(--grey); font-size: 13px; padding: 0 0 36px; }
/* Tannenreihe als Abschluss der Seite */
footer::before {
  content: ""; display: block; height: 64px; margin-bottom: 18px; opacity: .9;
  border-bottom: 2px solid #165B39;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 110'%3E%3Cg fill='%23165B39'%3E%3Cpath fill='%230F4A2D' transform='translate(0 22) scale(.85)' d='M24 100V88H4L20 66H10L26 42H18L32 16L46 42H38L54 66H44L60 88H40V100Z'/%3E%3Cpath fill='%23fff' transform='translate(0 22) scale(.85)' d='M32 16L39.5 30Q35.5 26.5 32 30.5Q28.5 26.5 24.5 30ZM26 42H38L42.8 49.2Q37.5 45.5 32 49.5Q26.5 45.5 21.2 49.2ZM20 66H44L48.8 72.6Q40 68.5 32 73Q24 68.5 15.2 72.6Z'/%3E%3Cpath transform='translate(52 0) scale(1.1)' d='M24 100V88H4L20 66H10L26 42H18L32 16L46 42H38L54 66H44L60 88H40V100Z'/%3E%3Cpath fill='%23fff' transform='translate(52 0) scale(1.1)' d='M32 16L39.5 30Q35.5 26.5 32 30.5Q28.5 26.5 24.5 30ZM26 42H38L42.8 49.2Q37.5 45.5 32 49.5Q26.5 45.5 21.2 49.2ZM20 66H44L48.8 72.6Q40 68.5 32 73Q24 68.5 15.2 72.6Z'/%3E%3Cpath fill='%23237A4E' transform='translate(122 34) scale(.72)' d='M24 100V88H4L20 66H10L26 42H18L32 16L46 42H38L54 66H44L60 88H40V100Z'/%3E%3Cpath fill='%23fff' transform='translate(122 34) scale(.72)' d='M32 16L39.5 30Q35.5 26.5 32 30.5Q28.5 26.5 24.5 30ZM26 42H38L42.8 49.2Q37.5 45.5 32 49.5Q26.5 45.5 21.2 49.2ZM20 66H44L48.8 72.6Q40 68.5 32 73Q24 68.5 15.2 72.6Z'/%3E%3Cpath fill='%231B6A42' transform='translate(166 10) scale(1)' d='M24 100V88H4L20 66H10L26 42H18L32 16L46 42H38L54 66H44L60 88H40V100Z'/%3E%3Cpath fill='%23fff' transform='translate(166 10) scale(1)' d='M32 16L39.5 30Q35.5 26.5 32 30.5Q28.5 26.5 24.5 30ZM26 42H38L42.8 49.2Q37.5 45.5 32 49.5Q26.5 45.5 21.2 49.2ZM20 66H44L48.8 72.6Q40 68.5 32 73Q24 68.5 15.2 72.6Z'/%3E%3C/g%3E%3C/svg%3E") repeat-x left bottom / auto 64px;
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .title { font-size: 32px; }
  .fields { grid-template-columns: 1fr; }
  .panel { padding: 20px; }
  .hero::after { width: 150px; height: 64px; bottom: 26px; }
  .prize { flex-basis: 82%; }
  .nav { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; }
}
