/* =========================================================
   Joel Digitals · Adventskalender
   Mitternachtsblau, Gold und ein bisschen Winterzauber.
   ========================================================= */

:root {
  --night-0: #060912;
  --night-1: #0b1120;
  --night-2: #121a30;
  --night-3: #1a2440;
  --line: rgba(231, 184, 102, 0.16);
  --line-strong: rgba(231, 184, 102, 0.45);
  --gold: #e7b866;
  --gold-bright: #f8dda8;
  --gold-deep: #b98b3f;
  --cream: #f7f0e3;
  --muted: #9aa6c0;
  --rose: #d97a91;
  --green: #7fc9a4;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--cream);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background:
    radial-gradient(1000px 640px at 12% -8%, rgba(231, 184, 102, 0.14), transparent 62%),
    radial-gradient(820px 520px at 92% 2%, rgba(120, 160, 255, 0.12), transparent 65%),
    radial-gradient(1000px 760px at 50% 118%, rgba(178, 58, 85, 0.16), transparent 68%),
    linear-gradient(180deg, var(--night-0), var(--night-1) 42%, #070c18);
  background-attachment: fixed;
  overflow-x: hidden;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: var(--gold-bright);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.14;
  margin: 0 0 0.45em;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--cream);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

img {
  max-width: 100%;
}

code {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

::selection {
  background: rgba(231, 184, 102, 0.35);
  color: #fff;
}

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

/* ---------- Hintergrund: Schnee & Aurora ---------- */

.snow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    radial-gradient(1.6px 1.6px at 20px 30px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.4px 1.4px at 120px 90px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.8px 1.8px at 210px 40px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.2px 1.2px at 60px 160px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 180px 200px, rgba(255, 255, 255, 0.65), transparent);
  background-size: 260px 260px;
  animation: snowfall 26s linear infinite;
}

@keyframes snowfall {
  to {
    background-position: 40px 260px, 90px 350px, 160px 300px, 20px 420px, 140px 460px;
  }
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(420px 420px at 85% 18%, rgba(231, 184, 102, 0.08), transparent 70%),
    radial-gradient(520px 520px at 8% 62%, rgba(96, 128, 210, 0.08), transparent 72%);
  animation: breathe 18s ease-in-out infinite alternate;
}

@keyframes breathe {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .snow, .aurora { animation: none; }
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(20px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 9, 18, 0.72);
  backdrop-filter: blur(16px) saturate(120%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--cream);
}

.brand:hover {
  color: var(--cream);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: radial-gradient(circle at 30% 20%, rgba(231, 184, 102, 0.35), transparent 70%);
  color: var(--gold-bright);
  font-size: 20px;
  box-shadow: inset 0 0 18px rgba(231, 184, 102, 0.14);
}

.brand-text strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.brand-text small {
  display: block;
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.header-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search svg {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.header-search input {
  width: 168px;
  padding: 9px 12px 9px 34px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  font: inherit;
  font-size: 0.82rem;
  transition: width 0.25s ease, border-color 0.2s ease, background 0.2s ease;
}

.header-search input::placeholder {
  color: rgba(154, 166, 192, 0.8);
}

.header-search input:focus {
  width: 220px;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 0.88rem;
}

.nav-link {
  position: relative;
  color: var(--cream);
  opacity: 0.82;
  padding-bottom: 2px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.22s ease;
}

.nav-link:hover {
  color: var(--gold-bright);
  opacity: 1;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link-search {
  display: none;
}

.nav-user {
  padding-left: 18px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.logout-form {
  margin: 0;
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--cream);
  font: inherit;
  font-size: 0.88rem;
  opacity: 0.82;
  cursor: pointer;
}

.link-button:hover {
  color: var(--gold-bright);
  opacity: 1;
}

/* ---------- Layout ---------- */

.site-main {
  position: relative;
  z-index: 1;
  flex: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 60px) clamp(20px, 4vw, 40px) 90px;
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 30px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-dot {
  color: var(--gold);
}

.footer-link {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.02em;
}

.footer-link:hover {
  color: var(--gold-bright);
}

.section {
  margin-top: clamp(48px, 7vw, 76px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin-bottom: 0;
}

.section-link {
  font-size: 0.84rem;
  letter-spacing: 0.06em;
}

/* ---------- Typografie-Bausteine ---------- */

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.page-hero {
  margin-bottom: 36px;
  animation: rise 0.6s ease both;
}

.page-hero-center {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.page-hero-center .eyebrow {
  justify-content: center;
}

.page-hero h1,
.hero h1,
.calendar-hero h1,
.giveaway-hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  background: linear-gradient(120deg, #fffaf0 8%, var(--gold-bright) 55%, var(--gold) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.page-hero-center .hero-sub {
  margin-left: auto;
  margin-right: auto;
}

.hero-text {
  max-width: 64ch;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.fine-print {
  margin: 16px 0 0;
  color: rgba(154, 166, 192, 0.85);
  font-size: 0.76rem;
  line-height: 1.6;
}

.fine-print code {
  color: var(--gold-bright);
  font-size: 0.74rem;
  word-break: break-all;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero (Startseite) ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(28px, 5vw, 60px);
  padding: clamp(8px, 2vw, 20px) 0 clamp(24px, 4vw, 48px);
}

.hero-copy {
  animation: rise 0.7s ease both;
}

.hero-title {
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.02;
}

.hero-title span {
  font-style: italic;
}

.hero-sub {
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions-center {
  justify-content: center;
  margin-top: 20px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 28px;
  color: rgba(154, 166, 192, 0.9);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-badges span {
  position: relative;
  padding-left: 14px;
}

.hero-badges span::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.6rem;
  top: 0.1em;
}

.hero-art {
  position: relative;
  animation: rise 0.9s ease both;
}

.hero-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 28px 28px 120px 28px;
  box-shadow: var(--shadow);
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(6, 9, 18, 0.05), rgba(6, 9, 18, 0.55));
  pointer-events: none;
}

.hero-frame img {
  display: block;
  width: 100%;
  height: clamp(280px, 44vw, 440px);
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 8s ease;
}

.hero-frame:hover img {
  transform: scale(1.08);
}

.hero-frame-caption {
  position: absolute;
  left: 22px;
  bottom: 20px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-frame-mark {
  color: var(--gold);
}

.hero-orb {
  position: absolute;
  top: -22px;
  right: -16px;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(9, 14, 27, 0.9);
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 2rem;
  box-shadow: 0 0 40px rgba(231, 184, 102, 0.22);
  backdrop-filter: blur(6px);
}

/* ---------- Feature-Streifen ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(30px, 5vw, 54px);
}

.feature {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.9rem;
}

.feature h2 {
  font-size: 1.06rem;
  margin-bottom: 4px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

/* ---------- Jahresübersicht ---------- */

.year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.year-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 210px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(231, 184, 102, 0.14), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  color: var(--cream);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.year-card:hover {
  color: var(--cream);
  border-color: var(--line-strong);
  transform: translateY(-5px);
}

.year-card-with-cover {
  justify-content: flex-end;
}

.year-card-cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.6s ease;
}

.year-card-with-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 9, 18, 0.2), rgba(6, 9, 18, 0.88));
}

.year-card:hover .year-card-cover {
  opacity: 0.66;
}

.year-card > *:not(.year-card-cover) {
  position: relative;
  z-index: 1;
}

.year-card-year {
  font-family: var(--serif);
  font-size: 2.7rem;
  line-height: 1;
  color: var(--gold-bright);
}

.year-card-title {
  font-size: 1.05rem;
}

.year-card-sub {
  color: var(--muted);
  font-size: 0.9rem;
}

.year-card-meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.year-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.year-card-link {
  margin-left: auto;
  color: var(--gold);
  font-size: 0.82rem;
}

/* ---------- Badges & Chips ---------- */

.badge {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: rgba(231, 184, 102, 0.12);
  color: var(--gold-bright);
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  vertical-align: middle;
}

.badge-muted {
  border-color: rgba(154, 166, 192, 0.35);
  background: rgba(154, 166, 192, 0.1);
  color: var(--muted);
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.meta-chip-gold {
  border-color: var(--line-strong);
  color: var(--gold-bright);
  background: rgba(231, 184, 102, 0.1);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid rgba(154, 166, 192, 0.35);
  border-radius: 99px;
  background: rgba(154, 166, 192, 0.1);
  color: var(--muted);
  font-size: 0.62rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  vertical-align: middle;
}

.status-teilnahme-offen {
  border-color: rgba(127, 201, 164, 0.45);
  background: rgba(127, 201, 164, 0.12);
  color: #a8e3c4;
}

.status-ausgelost {
  border-color: var(--line-strong);
  background: rgba(231, 184, 102, 0.14);
  color: var(--gold-bright);
}

/* ---------- Kalenderkopf ---------- */

.calendar-hero {
  position: relative;
  margin-bottom: 26px;
  padding: clamp(26px, 4.5vw, 48px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(620px 300px at 100% 0%, rgba(231, 184, 102, 0.16), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  box-shadow: var(--shadow);
}

.calendar-hero.has-cover {
  background-image:
    linear-gradient(100deg, rgba(6, 9, 18, 0.94) 10%, rgba(6, 9, 18, 0.72) 55%, rgba(6, 9, 18, 0.42)),
    var(--cover);
  background-size: cover;
  background-position: center;
}

.calendar-hero:not(.has-cover) {
  background-image:
    linear-gradient(100deg, rgba(6, 9, 18, 0.97) 8%, rgba(6, 9, 18, 0.86) 48%, rgba(6, 9, 18, 0.55) 100%),
    url("../img/hero.jpg");
  background-size: cover;
  background-position: center right;
}

.calendar-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.calendar-hero .hero-sub,
.calendar-hero .hero-text {
  color: #c4ccdd;
}

.calendar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
}

.calendar-stat {
  margin-top: 24px;
  max-width: 520px;
}

.progress-track {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-bright));
  box-shadow: 0 0 18px rgba(231, 184, 102, 0.5);
  transition: width 0.8s ease;
}

.progress-label {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.next-door-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding: 16px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(6, 9, 18, 0.45);
  max-width: 620px;
}

.next-door-card .eyebrow {
  margin-bottom: 2px;
}

.next-door-title {
  margin: 0;
  color: var(--cream);
  font-size: 0.92rem;
}

.staff-hint {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 99px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Countdown ---------- */

.countdown {
  display: flex;
  gap: 8px;
}

.countdown > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 54px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
}

.countdown span {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.1;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}

.countdown small {
  color: var(--muted);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.countdown-block {
  margin-top: 24px;
}

.countdown-block .eyebrow {
  margin-bottom: 8px;
}

/* ---------- Jahresschalter ---------- */

.year-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.year-chip {
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.year-chip:hover {
  border-color: var(--line-strong);
  color: var(--gold-bright);
}

.year-chip.is-active {
  border-color: var(--gold);
  background: rgba(231, 184, 102, 0.14);
  color: var(--gold-bright);
}

/* ---------- Suche ---------- */

.search-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 10px 12px 10px 18px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.search-bar:focus-within {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.055);
}

.search-bar svg {
  width: 19px;
  height: 19px;
  flex: none;
  color: var(--gold);
}

.search-bar input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--cream);
  font: inherit;
  font-size: 0.96rem;
  outline: none;
}

.search-bar input::placeholder {
  color: rgba(154, 166, 192, 0.8);
}

.search-bar .button {
  margin: 0;
}

.search-reset {
  padding: 0 10px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.search-bar-large {
  max-width: 720px;
  margin: 26px auto 0;
  padding: 13px 16px 13px 22px;
}

.search-summary {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

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

.search-hero .eyebrow {
  justify-content: center;
}

.search-hints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.search-hint {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 0.8rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.search-hint:hover {
  border-color: var(--line-strong);
  color: var(--gold-bright);
}

.result-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--cream);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.result-item:hover {
  border-color: var(--line-strong);
  background: rgba(231, 184, 102, 0.07);
  transform: translateX(3px);
  color: var(--cream);
}

.result-day {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.result-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.result-copy strong {
  font-weight: 500;
}

.result-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-arrow {
  color: var(--gold);
  font-size: 1.1rem;
}

/* ---------- Türen ---------- */

.door-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.door {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  aspect-ratio: 1 / 1.18;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  color: var(--cream);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.door::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(150px 100px at 75% 0%, rgba(231, 184, 102, 0.2), transparent 70%);
}

.door.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(6, 9, 18, 0.35), rgba(6, 9, 18, 0.86)),
    var(--door-image);
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  transition: opacity 0.25s ease, transform 0.5s ease;
}

.door.has-image:hover::before {
  opacity: 1;
  transform: scale(1.04);
}

.door > * {
  position: relative;
  z-index: 1;
}

.door-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.door-day {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1;
  color: var(--gold-bright);
}

.door-icon {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--muted);
  opacity: 0.75;
}

.door-body-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.door-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--cream);
  font-size: 0.8rem;
  line-height: 1.35;
}

.door-title-muted {
  color: rgba(247, 240, 227, 0.55);
}

.door-media-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--gold);
  font-size: 0.66rem;
  opacity: 0.9;
}

.door-state {
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.door.is-locked {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
}

.door.is-locked .door-day {
  color: rgba(246, 215, 155, 0.5);
}

.door.is-unlocked {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 1px rgba(231, 184, 102, 0.1), 0 18px 36px rgba(0, 0, 0, 0.32);
}

.door.is-unlocked .door-icon {
  color: var(--gold);
  opacity: 1;
}

.door.is-unlocked:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
  color: var(--cream);
}

.door.is-opened {
  background: linear-gradient(160deg, rgba(231, 184, 102, 0.2), rgba(231, 184, 102, 0.05));
}

.door.is-today {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 0 34px rgba(231, 184, 102, 0.28);
}

.door-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  padding: 3px 10px;
  border-radius: 0 16px 0 10px;
  background: linear-gradient(120deg, var(--gold), var(--gold-bright));
  color: var(--night-1);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.door.is-empty {
  display: none;
}

/* ---------- Türseite ---------- */

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.back-link:hover {
  color: var(--gold-bright);
}

.door-page {
  max-width: 820px;
  margin: 0 auto;
}

.door-hero {
  position: relative;
  padding: clamp(26px, 5vw, 46px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(500px 240px at 100% 0%, rgba(231, 184, 102, 0.18), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  box-shadow: var(--shadow);
}

.door-hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  color: var(--cream);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.door-hero .eyebrow,
.door-hero .hero-sub,
.door-hero .door-hero-meta {
  position: relative;
  z-index: 1;
}

.door-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.door-watermark {
  position: absolute;
  top: -28px;
  right: 8px;
  font-family: var(--serif);
  font-size: clamp(8rem, 22vw, 14rem);
  line-height: 1;
  color: rgba(231, 184, 102, 0.09);
  pointer-events: none;
}

.door-body {
  margin-top: 24px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 17, 32, 0.78);
  box-shadow: var(--shadow);
}

.door-image {
  margin: 0 0 26px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.door-image img {
  display: block;
  width: 100%;
  height: auto;
}

.video-frame {
  position: relative;
  margin: 0 0 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.door-content {
  color: #e7e1d6;
  font-size: 1.02rem;
}

.door-content p:last-child {
  margin-bottom: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item figcaption {
  padding: 8px 11px;
  color: var(--muted);
  font-size: 0.72rem;
}

.door-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  font-size: 0.85rem;
}

.door-nav-link {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--cream);
  letter-spacing: 0.04em;
  transition: border-color 0.2s ease;
}

.door-nav-link:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* ---------- Gutschein ---------- */

.coupon {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(300px 160px at 100% 0%, rgba(231, 184, 102, 0.16), transparent 70%),
    rgba(231, 184, 102, 0.06);
}

.coupon::before,
.coupon::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--night-1);
  border: 1px dashed var(--line-strong);
}

.coupon::before { left: -10px; }
.coupon::after { right: -10px; }

.coupon-main {
  min-width: 0;
}

.coupon-note {
  margin-bottom: 10px;
  color: var(--cream);
  font-size: 1rem;
}

.coupon-code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.coupon-code {
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(6, 9, 18, 0.6);
  color: var(--gold-bright);
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  word-break: break-all;
}

.coupon-code-row .button {
  margin: 0;
}

.coupon-valid {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.coupon .button-ghost {
  margin: 0;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 99px;
  background: linear-gradient(120deg, var(--gold), var(--gold-bright));
  color: var(--night-1);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
}

.button:hover {
  color: var(--night-1);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(231, 184, 102, 0.3);
}

.button-ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--gold-bright);
}

.button-ghost:hover {
  background: rgba(231, 184, 102, 0.1);
  color: var(--gold-bright);
  box-shadow: none;
}

.button-wide {
  width: 100%;
}

.button-small {
  margin-top: 0;
  padding: 9px 18px;
  font-size: 0.7rem;
  white-space: nowrap;
}

/* ---------- Gewinnspiel ---------- */

.giveaway-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.giveaway-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(400px 220px at 100% 0%, rgba(231, 184, 102, 0.13), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  color: var(--cream);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.giveaway-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  color: var(--cream);
}

.giveaway-card h3 {
  margin: 4px 0 0;
  font-size: 1.3rem;
}

.giveaway-card-prize {
  margin: 0;
  color: var(--gold-bright);
  font-size: 0.95rem;
}

.giveaway-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.giveaway-card-cta {
  margin-top: auto;
  padding-top: 14px;
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.giveaway-card-muted {
  opacity: 0.78;
}

.giveaway-teaser {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 28px;
  margin-top: clamp(44px, 6vw, 70px);
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(500px 260px at 0% 0%, rgba(231, 184, 102, 0.14), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

.giveaway-teaser h2 {
  margin-bottom: 10px;
}

.giveaway-teaser-prize {
  padding: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(6, 9, 18, 0.4);
}

.giveaway-teaser-prize span {
  display: block;
  color: var(--gold);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.giveaway-teaser-prize strong {
  display: block;
  margin: 6px 0;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
}

.giveaway-teaser-prize small {
  color: var(--muted);
  font-size: 0.76rem;
}

.mini-giveaway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.mini-giveaway {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  color: var(--cream);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.mini-giveaway:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  color: var(--cream);
}

.mini-giveaway strong {
  margin-top: 4px;
  font-weight: 500;
}

.mini-giveaway small {
  color: var(--gold);
  font-size: 0.72rem;
}

/* ---------- Gewinnspielseite ---------- */

.giveaway-page {
  max-width: 1060px;
  margin: 0 auto;
}

.giveaway-hero {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: start;
  gap: clamp(22px, 4vw, 40px);
  padding: clamp(26px, 4.5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(620px 320px at 100% 0%, rgba(231, 184, 102, 0.18), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  box-shadow: var(--shadow);
}

.giveaway-hero h1 {
  margin-bottom: 12px;
}

.prize-card {
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(6, 9, 18, 0.45);
}

.prize-label {
  display: block;
  color: var(--gold);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.prize-name {
  margin: 8px 0;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.25;
}

.prize-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.prize-note {
  margin: 10px 0 0;
  color: var(--gold-bright);
  font-size: 0.78rem;
}

.giveaway-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 22px;
  margin-top: 24px;
}

.giveaway-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.panel {
  padding: clamp(22px, 3.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 17, 32, 0.72);
}

.panel h2 {
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.panel h2:not(:first-child) {
  margin-top: 28px;
}

.rich-text {
  color: #e2dcd0;
  font-size: 0.98rem;
}

.rich-text p:last-child {
  margin-bottom: 0;
}

.join-card {
  position: sticky;
  top: 96px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(320px 180px at 100% 0%, rgba(231, 184, 102, 0.16), transparent 70%),
    rgba(14, 21, 39, 0.92);
  box-shadow: var(--shadow);
}

.join-card h2 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.join-card > p.muted {
  font-size: 0.86rem;
}

.join-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.join-form .button {
  margin-top: 0;
}

.join-state {
  text-align: center;
  padding: 6px 0 14px;
}

.join-state h2 {
  margin-bottom: 4px;
}

.join-state p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.join-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold-bright);
  font-size: 1.1rem;
}

.join-state-active .join-icon {
  border-color: rgba(127, 201, 164, 0.5);
  background: rgba(127, 201, 164, 0.12);
  color: #a8e3c4;
}

.join-win {
  margin-top: 10px !important;
  color: var(--gold-bright) !important;
  font-size: 0.9rem !important;
}

.join-facts {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

.join-facts > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 7px 0;
}

.join-facts dt {
  color: var(--muted);
}

.join-facts dd {
  margin: 0;
  color: var(--cream);
  text-align: right;
}

.winner-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.winner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(231, 184, 102, 0.06);
}

.winner-self {
  border-color: var(--line-strong);
  background: rgba(231, 184, 102, 0.14);
}

.winner-mark {
  color: var(--gold);
}

.winner-name {
  font-weight: 500;
}

.winner-date {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.74rem;
}

/* ---------- Bedingungen ---------- */

.rules-page {
  max-width: 1060px;
  margin: 0 auto;
}

.rules-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 22px;
}

.rules-body .panel h2 {
  font-size: 1.15rem;
  color: var(--gold-bright);
  margin-top: 26px;
}

.rules-body .panel h2:first-child {
  margin-top: 0;
}

.rules-body .panel p {
  color: #d9d4c8;
  font-size: 0.94rem;
}

.rules-aside {
  position: sticky;
  top: 96px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 17, 32, 0.8);
}

.rules-aside h2 {
  font-size: 1.1rem;
}

.rules-giveaway-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.rules-giveaway-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}

.rules-giveaway-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rules-giveaway-list small {
  color: var(--muted);
  font-size: 0.72rem;
}

/* ---------- Login ---------- */

.is-login .snow {
  opacity: 0.7;
}

.login-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(70vh, 620px);
}

.login-card {
  width: min(430px, 100%);
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(400px 220px at 100% 0%, rgba(231, 184, 102, 0.16), transparent 70%),
    rgba(10, 15, 30, 0.82);
  box-shadow: var(--shadow);
  animation: rise 0.5s ease both;
}

.login-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, rgba(231, 184, 102, 0.4), transparent 70%);
  color: var(--gold-bright);
  font-size: 24px;
}

.login-card h1 {
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  color: var(--cream);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.login-intro {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.94rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.field label {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  cursor: pointer;
}

.checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--gold);
}

.login-foot {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

.form-errors {
  margin-bottom: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(214, 96, 118, 0.5);
  border-radius: 10px;
  background: rgba(178, 58, 85, 0.16);
  color: #ffd7de;
  font-size: 0.85rem;
}

.form-errors p {
  margin: 0;
}

.field-error {
  color: #ffb3c0;
  font-size: 0.78rem;
}

.errorlist {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  color: #ffb3c0;
  font-size: 0.78rem;
}

/* ---------- Meldungen ---------- */

.messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.message {
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(20, 28, 51, 0.85);
  color: var(--cream);
  font-size: 0.88rem;
}

.message-success {
  border-color: rgba(127, 201, 164, 0.45);
}

.message-error {
  border-color: rgba(214, 96, 118, 0.45);
}

/* ---------- Leerer Zustand ---------- */

.empty-state {
  padding: clamp(32px, 6vw, 56px);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(11, 17, 32, 0.6);
  text-align: center;
}

.empty-inline {
  grid-column: 1 / -1;
}

.empty-mark {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 26px;
}

.empty-state h2 {
  color: var(--cream);
  font-size: 1.5rem;
}

.empty-state p {
  max-width: 52ch;
  margin-right: auto;
  margin-left: auto;
  color: var(--muted);
}

.empty-state code {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--gold-bright);
  font-size: 0.85rem;
}

/* ---------- Cookie-Hinweis ---------- */

.cookie-banner {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  left: clamp(14px, 3vw, 28px);
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(12, 18, 36, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.cookie-banner p {
  flex: 1 1 320px;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.cookie-banner strong {
  color: var(--cream);
}

.cookie-banner[hidden] {
  display: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .door-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .giveaway-layout,
  .rules-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .join-card,
  .rules-aside {
    position: static;
  }

  .giveaway-hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-art {
    order: -1;
  }

  .hero-frame {
    border-radius: 22px 22px 80px 22px;
  }

  .hero-frame img {
    height: clamp(220px, 52vw, 340px);
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .giveaway-teaser {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-search {
    display: none;
  }

  .nav-link-search {
    display: inline;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding: 14px 18px;
  }

  .site-nav {
    gap: 13px;
    font-size: 0.8rem;
  }

  .nav-user {
    display: none;
  }

  .header-tools {
    gap: 12px;
  }

  .door-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .door {
    padding: 11px;
    border-radius: 13px;
  }

  .door-state {
    font-size: 0.52rem;
    letter-spacing: 0.1em;
  }

  .door-title {
    font-size: 0.72rem;
  }

  .door-ribbon {
    font-size: 0.48rem;
    padding: 2px 7px;
  }

  .year-card {
    padding: 22px;
  }

  .door-nav {
    flex-direction: column;
  }

  .door-nav-link {
    text-align: center;
  }

  .countdown > div {
    min-width: 46px;
  }

  .search-bar {
    border-radius: 16px;
    padding: 12px 14px;
  }

  .search-bar .button {
    width: 100%;
  }

  .result-item {
    gap: 12px;
    padding: 14px;
  }

  .winner-date {
    margin-left: 0;
    width: 100%;
  }

  .coupon {
    padding: 20px;
  }

  .coupon-code-row .button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .door-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .door {
    aspect-ratio: 1 / 1.05;
  }
}

/* =========================================================
   Design-Pass 2 · Fenster, Lichterkette, Kalender-Regal, Login
   ========================================================= */

/* Türen als kleine Fenster */
.door,
.door.is-locked,
.door.is-unlocked {
  border-radius: 10px;
  aspect-ratio: 1 / 1.32;
  padding: 15px 13px 13px;
  box-shadow:
    inset 0 0 0 1px rgba(231, 184, 102, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 16px 32px rgba(0, 0, 0, 0.32);
}

.door.is-unlocked {
  border-color: rgba(231, 184, 102, 0.42);
}

.door.is-opened {
  background:
    linear-gradient(165deg, rgba(231, 184, 102, 0.26), rgba(231, 184, 102, 0.05) 60%),
    rgba(255, 255, 255, 0.02);
}

.door.is-today {
  padding-top: 25px;
  box-shadow:
    0 0 0 1px var(--gold),
    0 0 38px rgba(231, 184, 102, 0.3),
    inset 0 0 0 1px rgba(248, 221, 168, 0.5);
}

.door-date {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.door-date small {
  margin-bottom: 3px;
  color: var(--gold);
  font-size: 0.48rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.door-ribbon {
  top: 0;
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 0 0 8px 8px;
}

.door-giveaway-flag {
  color: var(--gold-bright);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.door.has-giveaway {
  border-color: rgba(231, 184, 102, 0.5);
}

.door.has-giveaway .door-day {
  color: var(--gold-bright);
}

.door-media-hints {
  font-size: 0.6rem;
}

/* Lichterkette über dem Türraster */
.garland {
  height: 26px;
  margin: 0 4px -2px;
  background-image:
    radial-gradient(circle at 10px 18px, rgba(248, 221, 168, 0.95) 0 2.6px, rgba(248, 221, 168, 0) 3.6px),
    radial-gradient(circle at 34px 8px, rgba(231, 184, 102, 0.5) 0 2px, rgba(231, 184, 102, 0) 3px),
    linear-gradient(180deg, transparent 12px, rgba(231, 184, 102, 0.28) 13px, rgba(231, 184, 102, 0.06) 15px, transparent 16px);
  background-size: 46px 26px, 46px 26px, 100% 26px;
  background-repeat: repeat-x;
  filter: drop-shadow(0 0 6px rgba(231, 184, 102, 0.35));
  opacity: 0.9;
}

/* Kalenderkopf mit Zahlen-Board */
.calendar-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.55fr);
  gap: clamp(22px, 3.5vw, 40px);
  align-items: start;
}

.calendar-hero-inner {
  max-width: none;
}

.calendar-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(6, 9, 18, 0.52);
  backdrop-filter: blur(10px);
}

.stat-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat-board div {
  padding: 4px 0;
  text-align: center;
}

.stat-board strong {
  display: block;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1;
}

.stat-board span {
  color: var(--muted);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.calendar-side .calendar-stat {
  margin: 0;
  max-width: none;
}

.calendar-side .next-door-card {
  display: block;
  margin: 0;
  padding: 14px;
  max-width: none;
}

.calendar-side .next-door-title {
  font-size: 0.84rem;
}

.calendar-side .countdown {
  gap: 6px;
  margin-top: 10px;
}

.calendar-side .countdown > div {
  flex: 1;
  min-width: 0;
  padding: 6px 4px;
}

.calendar-side .countdown span {
  font-size: 1rem;
}

.calendar-side .staff-hint {
  margin: 0;
  font-size: 0.56rem;
  text-align: center;
}

.side-note {
  margin: 0;
  color: var(--gold-bright);
  font-size: 0.8rem;
}

/* Gewinnspiel in der Tür */
.door-giveaway {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
  padding: clamp(22px, 3.5vw, 32px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(231, 184, 102, 0.18), transparent 70%),
    rgba(14, 21, 39, 0.86);
  box-shadow: var(--shadow);
}

.door-giveaway h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.door-giveaway .calendar-meta {
  margin: 14px 0 0;
}

.door-giveaway-action {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 210px;
}

.door-giveaway-action .button {
  margin: 0;
}

.door-giveaway-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.join-win-inline {
  margin: 0;
  color: #a8e3c4;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

/* Gewinnspielkarten im Kalender */
.calendar-giveaway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
}

.calendar-giveaway-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
}

.calendar-giveaway-card.is-open {
  border-color: rgba(231, 184, 102, 0.45);
  background:
    radial-gradient(360px 200px at 100% 0%, rgba(231, 184, 102, 0.16), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
}

.cg-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cg-door {
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.calendar-giveaway-card h3 {
  margin: 4px 0 0;
  font-size: 1.22rem;
}

.calendar-giveaway-card h3 a {
  color: var(--cream);
}

.calendar-giveaway-card h3 a:hover {
  color: var(--gold-bright);
}

.cg-dates {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.cg-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.cg-actions .button {
  margin: 0;
}

.cg-link {
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

/* Login */
.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: 640px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(7, 11, 22, 0.7);
  box-shadow: var(--shadow);
}

.login-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: clamp(26px, 4vw, 44px);
  overflow: hidden;
}

.login-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(190deg, rgba(6, 9, 18, 0.15), rgba(6, 9, 18, 0.82) 70%, rgba(6, 9, 18, 0.96));
}

.login-visual-copy {
  position: relative;
  z-index: 1;
  max-width: 420px;
}

.login-visual-copy h1 {
  margin-bottom: 14px;
  color: var(--cream);
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  line-height: 1.08;
}

.login-visual-sub {
  color: #cfd6e4;
  font-size: 0.92rem;
}

.login-perks {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: #d9d4c8;
  font-size: 0.8rem;
}

.login-perks li::before {
  content: "✦";
  margin-right: 8px;
  color: var(--gold);
  font-size: 0.7rem;
}

.login-visual-mark {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 1;
  color: var(--gold-bright);
  font-size: 1.4rem;
  opacity: 0.8;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 52px);
  background: rgba(6, 9, 18, 0.55);
}

.login-panel .login-card {
  width: 100%;
  max-width: 380px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  animation: none;
}

.login-panel .login-mark {
  margin-bottom: 18px;
}

.login-panel .login-card h2 {
  color: var(--cream);
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.login-panel .login-foot {
  margin-top: 22px;
}

@media (max-width: 1000px) {
  .calendar-hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .login-visual {
    min-height: 260px;
  }

  .login-visual-copy h1 {
    font-size: 1.9rem;
  }

  .login-perks {
    display: none;
  }

  .login-panel {
    padding: 30px 24px 36px;
  }
}

@media (max-width: 700px) {
  .door-giveaway {
    grid-template-columns: minmax(0, 1fr);
  }

  .door-giveaway-action {
    min-width: 0;
  }

  .garland {
    opacity: 0.7;
  }
}

@media (max-width: 420px) {
  .door {
    aspect-ratio: 1 / 1.12;
  }
}

/* =========================================================
   Öffentliche Teilnahme per E-Mail
   ========================================================= */

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

.section-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.join-form input[type="email"],
.door-giveaway-form input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.join-form input[type="email"]:focus,
.door-giveaway-form input[type="email"]:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

.join-form input[type="email"]::placeholder,
.door-giveaway-form input[type="email"]::placeholder {
  color: rgba(154, 166, 192, 0.75);
}

.inline-join {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.inline-join input[type="email"] {
  flex: 1 1 170px;
  min-width: 0;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  font: inherit;
  font-size: 0.85rem;
}

.inline-join input[type="email"]:focus {
  border-color: var(--gold);
  outline: none;
}

.inline-join input[type="email"]::placeholder {
  color: rgba(154, 166, 192, 0.75);
}

.inline-join .button {
  margin: 0;
}

.inline-consent {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.68rem;
  cursor: pointer;
}

.inline-consent input {
  accent-color: var(--gold);
}

.cg-actions {
  padding-top: 10px;
}

.cg-actions .cg-link {
  color: var(--muted);
}

.cg-actions .cg-link:hover {
  color: var(--gold-bright);
}

@media (max-width: 600px) {
  .inline-join {
    align-items: stretch;
  }

  .inline-join input[type="email"],
  .inline-join .button {
    width: 100%;
    flex: 1 1 100%;
  }
}

/* Kalenderbrett & Feinschliff */
.calendar-hero {
  position: relative;
}

.calendar-watermark {
  position: absolute;
  top: -18px;
  right: 24px;
  z-index: 0;
  color: rgba(231, 184, 102, 0.06);
  font-family: var(--serif);
  font-size: clamp(7rem, 16vw, 13rem);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.door-board {
  padding: 16px clamp(12px, 2vw, 26px) clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(800px 380px at 50% -12%, rgba(231, 184, 102, 0.1), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 30px 60px rgba(0, 0, 0, 0.3);
}

.door-board .garland {
  margin: 0 0 16px;
}

.door-board .door-grid {
  gap: clamp(10px, 1.4vw, 16px);
}

@media (max-width: 700px) {
  .door-board {
    padding: 10px 10px 16px;
    border-radius: 20px;
  }

  .calendar-watermark {
    display: none;
  }
}

/* ---------- Logo ---------- */
.brand-logo {
  display: block;
  height: 44px;
  width: auto;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.login-logo {
  display: block;
  height: 52px;
  width: auto;
  margin-bottom: 20px;
}

/* ---------- Rechtstexte ---------- */
.legal-page {
  max-width: 980px;
  margin: 0 auto;
}

.legal-page .rules-body .panel + .panel {
  margin-top: 18px;
}

.legal-page .panel h2 {
  margin-top: 0;
}

.legal-page .panel h2:not(:first-child) {
  margin-top: 26px;
}

.legal-table {
  width: 100%;
  margin: 14px 0 18px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.legal-table th,
.legal-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.legal-table th {
  color: var(--gold-bright);
  font-weight: 500;
}

.legal-table code {
  white-space: nowrap;
}

.legal-missing {
  padding: 12px 16px;
  border: 1px solid rgba(231, 184, 102, 0.35);
  border-radius: 12px;
  color: #f0e7d5;
  font-size: 0.88rem;
}

.legal-admin-hint {
  padding: 10px 14px;
  border: 1px dashed rgba(231, 184, 102, 0.45);
  border-radius: 12px;
  color: var(--gold-bright);
  font-size: 0.8rem;
}

.legal-admin-hint a {
  color: var(--gold-bright);
  text-decoration: underline;
}

.cookie-banner a {
  color: var(--gold-bright);
}

@media (max-width: 640px) {
  .brand-logo {
    height: 36px;
  }

  .brand-sub {
    display: none;
  }

  .legal-table {
    display: block;
    overflow-x: auto;
  }
}
