/* design.css – Alvera-Stil (Schriften, Knöpfe, Boxen). Lädt nach index.html + extra.css und überschreibt gezielt. */

@font-face { font-family: 'G_Medium';  src: url('/fonts/Gilroy-Medium.ttf') format('truetype');    font-display: swap; }
@font-face { font-family: 'G_SeBold';  src: url('/fonts/Gilroy-Semibold.ttf') format('truetype');  font-display: swap; }
@font-face { font-family: 'G_Bold';    src: url('/fonts/Gilroy-Bold.ttf') format('truetype');      font-display: swap; }
@font-face { font-family: 'G_ExBold';  src: url('/fonts/Gilroy-Extrabold.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'G_Black';   src: url('/fonts/Gilroy-Black.ttf') format('truetype');     font-display: swap; }
@font-face { font-family: 'Kenyan_It'; src: url('/fonts/KenyanCoffeeBdIt.otf') format('opentype'); font-display: swap; }
@font-face { font-family: 'Kenyan';    src: url('/fonts/KenyanCoffeeBd.otf') format('opentype');   font-display: swap; }
@font-face { font-family: 'Mekar';     src: url('/fonts/MekarScript.ttf') format('truetype');      font-display: swap; }

:root {
  --as-font: 'G_Medium', 'Manrope', system-ui, sans-serif;
  --as-font-sb: 'G_SeBold', 'Manrope', system-ui, sans-serif;
  --as-font-fett: 'G_Bold', 'Manrope', system-ui, sans-serif;
  --as-font-xfett: 'G_ExBold', 'Manrope', system-ui, sans-serif;
  --as-font-schwer: 'G_Black', 'Manrope', system-ui, sans-serif;
  --as-font-titel: 'Kenyan_It', 'G_Black', sans-serif;
  --as-font-script: 'Mekar', cursive;
  --font-display: var(--as-font-xfett);
  --font-body: var(--as-font);
  --badge-text: rgba(0, 0, 0, 0.75);
  --badge-bg: linear-gradient(180deg, #ff3a43 0%, #e3262f 100%);
}

/* ---------- Schriften ---------- */
body, button, input, select, textarea { font-family: var(--as-font); }
b, strong, .btn, .nav__link, .pc__name, .tk__num, .stat__value, .h3, .h4, .h5 { font-family: var(--as-font-fett); font-weight: normal; }
.h1, .h2, .page-head .h1, .section-head .h2 {
  font-family: var(--as-font-titel); font-weight: normal; letter-spacing: 0.01em; text-transform: uppercase; line-height: 0.95;
}
.hero__title .t1, .cal-aside__title .t1 {
  font-family: var(--as-font-titel); font-weight: normal; letter-spacing: 0.01em; line-height: 0.9;
}
.hero__title .t1, .cal-aside__title .t1 { font-family: 'Kenyan', 'G_Black', sans-serif; letter-spacing: 0.02em; }
.hero__title .t1 { font-size: clamp(4rem, 10vw, 8rem); }
.cal-aside__title .t1 { font-size: 3.4rem; }
.hero__title .t2, .cal-aside__title .t2 {
  font-family: var(--as-font-script); font-weight: normal; text-transform: none; letter-spacing: 0;
  color: var(--accent-hi); line-height: 1; text-shadow: 0 0 26px rgba(227, 38, 47, 0.55);
}
.hero__title .t2 { font-size: clamp(2.4rem, 5vw, 4rem); margin-top: 0.12em; margin-left: 0.1em; }
.cal-aside__title .t2 { font-size: 2.3rem; margin-top: 10px; margin-left: 4px; }
.brand__name { font-family: var(--as-font-titel); font-weight: normal; font-size: 1.25rem; letter-spacing: 0.02em; }
.brand__sub { font-family: var(--as-font-sb); }
.eyebrow, .partner-strip__label, .countdown__label, .pc__eyebrow { font-family: var(--as-font-fett); }

/* ---------- Rote Boxen: Text schwarz 75 % ---------- */
.pill--accent, .pill--violet, .hs__chip, .tk--today .tk__chip, .tk--joined .tk__mark, .tk--today .tk__mark, .icon-tile {
  background: var(--badge-bg); border-color: rgba(255, 120, 126, 0.55); color: var(--badge-text);
}
.pill--accent, .pill--violet { font-family: var(--as-font-fett); box-shadow: 0 6px 18px rgba(227, 38, 47, 0.3); }
.icon-tile { box-shadow: 0 8px 20px rgba(227, 38, 47, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.icon-tile svg { stroke-width: 2.2; }

/* „Bald · Türchen X öffnet“ */
.hs__chip {
  left: 9%; height: 28px; padding: 0 12px; border-radius: 6px; backdrop-filter: none;
  font-family: var(--as-font-fett); font-size: 0.74rem; box-shadow: 0 8px 22px rgba(227, 38, 47, 0.35);
}
.hs__chip i { background: var(--badge-text); box-shadow: none; }

/* ---------- Geschenk ohne viereckigen Hintergrund ---------- */
.hs__stage { border: 0 !important; background: none !important; box-shadow: none !important; overflow: visible !important; border-radius: 0 !important; -webkit-mask-image: none !important; mask-image: none !important; }
.hs__stage::before { display: none; }
.hs__rays { opacity: 0.2; inset: -55%; -webkit-mask-image: radial-gradient(closest-side, #000 5%, transparent 65%); mask-image: radial-gradient(closest-side, #000 5%, transparent 65%); }

/* ---------- Knöpfe wie Alvera-Scripts ---------- */
.btn {
  transition: filter 0.2s ease, box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.12s ease;
  will-change: transform;
}
.btn--primary {
  background: linear-gradient(90deg, #ff3a43 0%, #c8161f 100%); border-color: rgba(255, 120, 126, 0.5); color: #fff;
  box-shadow: 0 6px 20px rgba(227, 38, 47, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn--primary:hover:not(:disabled) {
  background: linear-gradient(90deg, #ff3a43 0%, #c8161f 100%);
  filter: brightness(1.12); box-shadow: 0 8px 32px rgba(227, 38, 47, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}
.btn--primary:active:not(:disabled) { filter: brightness(0.95); opacity: 0.9; transform: scale(0.97); box-shadow: 0 4px 14px rgba(227, 38, 47, 0.4); }
.btn--ghost { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.1); }
.btn--ghost:hover:not(:disabled) {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-color: rgba(255, 255, 255, 0.22); box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.08);
}
.btn--ghost:active:not(:disabled) { opacity: 0.8; transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid rgba(255, 77, 85, 0.8); outline-offset: 2px; }
.nav__link { font-family: var(--as-font-sb); transition: color 0.15s, background 0.2s, transform 0.12s; }
.nav__link:hover { background: linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.02) 100%); }
.nav__link:active { opacity: 0.8; transform: scale(0.97); }
.nav__link.is-active { background: var(--badge-bg); color: var(--badge-text); font-family: var(--as-font-fett); }

/* ---------- Zähler: ruhiger und sauberer ---------- */
.countdown { gap: 10px; }
.countdown__unit,
.countdown--lg .countdown__unit,
.countdown--lg .countdown__unit:first-child {
  position: relative; overflow: hidden; padding: 14px 6px 11px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.countdown--lg .countdown__unit:first-child {
  background: var(--badge-bg); border-color: rgba(255, 120, 126, 0.55); box-shadow: 0 10px 28px rgba(227, 38, 47, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.countdown--lg .countdown__unit:first-child .countdown__value,
.countdown--lg .countdown__unit:first-child .countdown__label { color: var(--badge-text); }
.countdown__unit:hover { border-color: rgba(255, 255, 255, 0.16); }
.countdown__value {
  font-family: var(--as-font-schwer); font-weight: normal; letter-spacing: 0; font-variant-numeric: tabular-nums; font-feature-settings: 'tnum';
  min-width: 2ch; text-align: center;
}
.countdown--lg .countdown__value { font-size: 2.3rem; }
.countdown__label { margin-top: 6px; font-size: 0.6rem; letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.45); }

/* ---------- „Präsentiert von“ ---------- */
.partner-strip {
  flex-direction: row; align-items: center; gap: 22px; padding: 16px 20px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(90deg, rgba(227, 38, 47, 0.1) 0%, rgba(255, 255, 255, 0.02) 35%, rgba(255, 255, 255, 0.015) 100%);
}
.partner-strip__label {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 6px;
  background: var(--badge-bg); color: var(--badge-text); letter-spacing: 0.16em; font-size: 0.66rem;
  box-shadow: 0 6px 18px rgba(227, 38, 47, 0.3);
}
.partner-strip__list { gap: 10px; }
.partner-strip__list li {
  height: 40px; padding: 0 14px 0 5px; gap: 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03); font-family: var(--as-font-sb); font-weight: normal; color: rgba(255, 255, 255, 0.82);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.partner-strip__list li:hover { background: linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 100%); border-color: rgba(255, 255, 255, 0.14); color: #fff; }
.partner-strip__list .logo-tile { width: 30px; height: 30px; border-radius: 7px; border: 0; background: rgba(255, 255, 255, 0.05); padding: 3px; }
@media (max-width: 760px) { .partner-strip { flex-direction: column; align-items: flex-start; } }

/* ---------- Türchen: Geschenk-Hintergrund cleaner ---------- */
.tk {
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(70% 55% at 50% 58%, rgba(227, 38, 47, 0.22) 0%, transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.012) 100%);
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.15s ease, filter 0.2s ease;
}
.tk::before, .tk::after { display: none !important; }
.tk:hover, .tk:focus-visible { border-color: rgba(255, 77, 85, 0.5); box-shadow: 0 8px 26px rgba(227, 38, 47, 0.25); filter: brightness(1.05); transform: translateY(-2px); }
.tk:active { transform: scale(0.97); opacity: 0.85; }
.tk--today { border-color: rgba(255, 77, 85, 0.6); background: radial-gradient(70% 55% at 50% 58%, rgba(227, 38, 47, 0.4) 0%, transparent 72%), linear-gradient(180deg, rgba(227, 38, 47, 0.14), rgba(227, 38, 47, 0.03)); }
.tk__img .pic__glow { opacity: 0.35; filter: blur(16px); }
.tk__chip { border-radius: 4px; font-family: var(--as-font-fett); background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.7); }
.tk__mark { border-radius: 5px; }
.tk__num { font-family: var(--as-font-titel); font-size: 1.35rem; letter-spacing: 0.02em; }

/* ---------- Partner-Karten: größere Logos + Logo im Hintergrund ---------- */
.pc { min-height: 236px; }
.pc__art { top: 14px; right: 14px; width: 92px; height: 92px; }
.pc__art--icon { top: 18px; right: 18px; width: 72px; height: 72px; }
.pc__logo { transform: scale(calc(var(--zoom, 1) * 1.08)); }
.pc__bg {
  position: absolute; right: -34px; bottom: -40px; z-index: -2; width: 190px; height: 190px; pointer-events: none;
  transform: rotate(-18deg); opacity: 0.18;
  -webkit--webkit-mask-image: linear-gradient(315deg, #000 25%, transparent 78%); mask-image: linear-gradient(315deg, #000 25%, transparent 78%);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.pc__bg::after {
  content: ''; position: absolute; inset: -20%;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(315deg, transparent 25%, #000 75%); mask-image: linear-gradient(315deg, transparent 25%, #000 75%);
}
.pc__bg img { width: 100%; height: 100%; object-fit: contain; filter: blur(1.5px) grayscale(0.15); }
.pc:hover .pc__bg { opacity: 0.26; transform: rotate(-14deg) scale(1.04); }
.pc__btn { margin-top: auto; }

/* ---------- Impressum ---------- */
.legal { display: grid; gap: 14px; max-width: 820px; }
.legal section { padding: 18px 20px; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 12px; background: rgba(255, 255, 255, 0.025); }
.legal h2 { margin: 0 0 8px; font-family: var(--as-font-fett); font-size: 1rem; letter-spacing: 0; text-transform: none; color: #fff; }
.legal p { margin: 0; color: rgba(255, 255, 255, 0.72); line-height: 1.6; }
.legal a { color: var(--accent-hi); }
.footer__bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }


/* ================= Runde 2 ================= */

/* Hintergrund-Strahlen mittig statt oben */
.app::before { top: 50%; margin-top: -65vmax; }

/* Keine Einblend-Animationen beim Aktualisieren */
#view.is-static *, #view.is-static *::before, #view.is-static *::after { animation: none !important; transition-duration: 0s !important; }
.countdown__value, .countdown__value.is-tick { animation: none !important; transform: none !important; }

/* ---------- Titel: ADVENTS Gilroy Black, „Kalender“ an der Ecke ---------- */
.hero__title, .cal-aside__title { position: relative; display: inline-block; line-height: 1; padding-bottom: 0.32em; }
.hero__title .t1, .cal-aside__title .t1 {
  font-family: var(--as-font-schwer); font-weight: normal; letter-spacing: -0.035em; line-height: 0.86; text-transform: uppercase;
  text-shadow: 0 0 50px rgba(255, 255, 255, 0.12);
}
.hero__title .t1 { font-size: clamp(3.6rem, 9vw, 7.4rem); }
.cal-aside__title .t1 { font-size: clamp(2.6rem, 3.6vw, 3.3rem); }
.hero__title .t2, .cal-aside__title .t2 {
  position: absolute; right: -0.55em; bottom: -0.05em; margin: 0; transform: rotate(-7deg); transform-origin: right bottom; white-space: nowrap;
}
.hero__title .t2 { font-size: clamp(2.1rem, 4.6vw, 3.7rem); }
.cal-aside__title .t2 { font-size: clamp(1.7rem, 2.2vw, 2.1rem); right: -0.45em; }
.hero__line { margin-top: 10px; }

/* ---------- Knöpfe 1:1 wie Alvera-UIs ---------- */
.btn { border-radius: 6px; font-family: var(--as-font); letter-spacing: -0.03em; transition: all .2s ease; filter: none; }
.btn--primary {
  border: 1px solid rgba(227, 38, 47, 0.5);
  background: linear-gradient(90deg, #e3262f 0%, #5c0a10 100%);
  box-shadow: 0 8px 48px rgba(227, 38, 47, 0.5); color: #fff;
}
.btn--primary:hover:not(:disabled) { background: linear-gradient(90deg, #e3262f 0%, #5c0a10 100%); filter: none; box-shadow: 0 8px 48px rgba(227, 38, 47, 0.75); transform: translateY(-1px); border-color: rgba(227, 38, 47, 0.5); }
.btn--primary:active:not(:disabled) { opacity: .8; transform: none; filter: none; box-shadow: 0 8px 48px rgba(227, 38, 47, 0.5); }
.btn--ghost { border: 0; background: linear-gradient(90deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 100%); box-shadow: none; color: rgba(255,255,255,0.85); }
.btn--ghost:hover:not(:disabled) { border: 0; color: #fff; background: linear-gradient(90deg, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0.02) 100%); box-shadow: none; transform: none; }
.btn--ghost:active:not(:disabled) { opacity: .8; transform: none; }
.nav__link { transition: all .2s ease; }
.nav__link:hover { color: #fff; background: linear-gradient(90deg, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0.02) 100%); }
.nav__link:active { opacity: .8; transform: none; }
.usermenu__trigger { transition: all .2s ease; }
.usermenu__trigger:active { opacity: .8; }

/* ---------- „Als Nächstes“-Karte cleaner ---------- */
.hs__card {
  gap: 12px; padding: 10px 18px 10px 10px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 6, 8, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.hs__card:hover { border-color: rgba(255, 255, 255, 0.14); }
.hs__card-pic { width: 44px; padding: 0; border: 0; background: none; }
.hs__card-pic .pic__glow { opacity: 0.5; filter: blur(10px); }
.hs__card-txt small { font-family: var(--as-font-fett); font-size: 0.62rem; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.45); }
.hs__card-txt b { font-family: var(--as-font-fett); font-size: 0.98rem; }
.hs__card-txt em { font-family: var(--as-font); font-size: 0.76rem; color: rgba(255, 255, 255, 0.6); }

/* ---------- Türchen-Hover ohne bunten Rand ---------- */
.tk:hover, .tk:focus-visible { border-color: rgba(255, 255, 255, 0.14); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45); filter: none; transform: translateY(-3px);
  background: radial-gradient(70% 55% at 50% 58%, rgba(227, 38, 47, 0.3) 0%, transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%); }
.tk .tk__img .pic { transition: transform .3s ease, opacity .3s ease, filter .3s ease; }
.tk:hover .tk__img .pic { transform: translateY(-6px) scale(1.06); }
.tk--today:hover { border-color: rgba(255, 77, 85, 0.6); }

/* ---------- Hintergrund-Icons (gefüllt, schräg, verschwommen) ---------- */
.stat, .how li, .how__latest { position: relative; overflow: hidden; isolation: isolate; }
.bgic {
  position: absolute; right: -14px; bottom: -18px; z-index: -1; width: 96px; height: 96px; pointer-events: none;
  color: #fff; opacity: 0.07; transform: rotate(16deg); filter: blur(1.5px);
  -webkit-mask-image: linear-gradient(135deg, transparent 5%, #000 70%); mask-image: linear-gradient(135deg, transparent 5%, #000 70%);
}
.bgic svg { width: 100%; height: 100%; display: block; }
.how__latest .bgic { width: 170px; height: 170px; right: -24px; bottom: -30px; }

/* ---------- Kennzahlen ---------- */
.stats { gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); }
.stat { padding: 20px 20px 18px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.07); background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)); }
.stat::after { display: none; }
.stat__value { font-family: var(--as-font-schwer); font-weight: normal; letter-spacing: -0.02em; }
.stat__label { font-family: var(--as-font-fett); letter-spacing: 0.16em; font-size: 0.66rem; color: rgba(255, 255, 255, 0.5); }

/* ---------- So funktioniert's + Letzte Gewinner: untereinander, sauber ---------- */
.how { display: flex !important; flex-direction: column; gap: 18px; }
.how ol { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 14px; }
.how li { flex-direction: column; gap: 12px; padding: 20px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.07); background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)); min-height: 190px; }
.how li b { font-family: var(--as-font-fett); font-weight: normal; font-size: 1.02rem; letter-spacing: -0.01em; }
.how li p { font-size: 0.86rem; line-height: 1.55; }
.how__num { position: absolute; top: 16px; right: 18px; font-family: var(--as-font-schwer); font-size: 0.8rem; color: rgba(255, 255, 255, 0.25); letter-spacing: 0.05em; }
.how__latest { padding: 22px 24px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.07); background: linear-gradient(90deg, rgba(227, 38, 47, 0.1) 0%, rgba(255, 255, 255, 0.02) 45%); min-height: 0; }
.how__latest .latest { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 18px; }
.how__latest .latest li { border-bottom: 0; padding: 6px 0; }
.how__latest .h4 { font-family: var(--as-font-fett); font-weight: normal; }
@media (max-width: 1060px) { .how ol { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 560px)  { .how ol { grid-template-columns: 1fr !important; } .how li { min-height: 0; } }

/* ---------- Partner-Karten ---------- */
.pc__art { width: 104px; height: 104px; top: 12px; right: 12px; }
.pc__logo { transform: scale(calc(var(--zoom, 1) * 1.15)); }
.pc__art img[src*="noctura"].pc__logo { transform: scale(calc(var(--zoom, 1) * 0.92)); }
.pc__art img[src*="noctura"].pc__glow { transform: scale(calc(var(--zoom, 1) * 0.95)); }
.pc__bg { right: -30px; bottom: -36px; width: 200px; height: 200px; transform: rotate(18deg); opacity: 0.22;
  -webkit-mask-image: linear-gradient(135deg, transparent 15%, #000 72%); mask-image: linear-gradient(135deg, transparent 15%, #000 72%); }
.pc__bg::after { -webkit-mask-image: linear-gradient(135deg, #000 20%, transparent 70%); mask-image: linear-gradient(135deg, #000 20%, transparent 70%); }
.pc:hover .pc__bg { opacity: 0.3; transform: rotate(14deg) scale(1.04); }
.partner-strip__list .logo-tile { width: 32px; height: 32px; }

/* ---------- Türchen-Seite: passt beim Öffnen in den Bildschirm ---------- */
body[data-route="kalender"] .page-head { padding-block: clamp(18px, 2.5vw, 30px) 0; }
body[data-route="kalender"] .page-head__text { display: none; }
.section--fit { padding-top: 14px; }
@media (min-width: 981px) {
  .section--fit .cal-panel { padding-top: 24px; padding-bottom: 54px; align-items: center; }
  .section--fit .door-grid { width: min(100%, calc((100svh - 330px) * 1.3)); justify-self: center; }
}

/* ---------- Responsive: große Bildschirme bis 4K ---------- */
@media (min-width: 1920px) { html { zoom: 1.12; } }
@media (min-width: 2400px) { html { zoom: 1.35; } }
@media (min-width: 3000px) { html { zoom: 1.7; } }
@media (min-width: 3600px) { html { zoom: 2; } }

/* ---------- Handy ---------- */
@media (max-width: 560px) {
  .hero__title .t2 { right: -0.3em; }
  .countdown { gap: 6px; }
  .countdown--lg .countdown__value { font-size: 1.8rem; }
  .pc__art { width: 84px; height: 84px; }
  .partner-strip { padding: 14px; }
}

/* Titel-Feinschliff: Block, „Kalender“ an der unteren rechten Ecke */
.hero__title, .cal-aside__title { display: block; width: fit-content; padding-bottom: 0.5em; margin-right: 1.6em; }
.hero__title .t2, .cal-aside__title .t2 { right: -1.25em; bottom: 0.02em; transform: rotate(-6deg); }
.cal-aside__title .t2 { right: -1em; }

/* ================= Runde 3 ================= */
/* Kopf: ADVENTSKALENDER groß */
.brand__name { text-transform: uppercase; letter-spacing: 0.03em; }

/* Kopf: Allen Discords beitreten */
.nav__chip-desktop { display: flex; align-items: center; gap: 10px; }
.nav__join { white-space: nowrap; }
@media (max-width: 1100px) { .nav__join span { display: none; } .nav__join { padding: 0 11px; } }

/* Nutzer-Menü: Name voll ausgeschrieben, Einträge im Alvera-Stil */
.usermenu__trigger { flex: none; background: linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,0)); border: 1px solid rgba(255,255,255,.08); }
.usermenu__trigger:hover { background: linear-gradient(90deg, rgba(255,255,255,.2), rgba(255,255,255,.02)); border-color: rgba(255,255,255,.14); }
.usermenu__name { max-width: 220px; flex: none; font-family: var(--as-font-sb, inherit); font-weight: normal; }
.usermenu__panel { width: 280px; padding: 8px; border-radius: 14px; background: rgba(18, 10, 13, .97); border-color: rgba(255,255,255,.08); }
.usermenu__head { padding: 8px 8px 12px; border-color: rgba(255,255,255,.07); }
.usermenu__display { font-family: var(--as-font-fett, inherit); font-weight: normal; white-space: normal; word-break: break-word; }
.usermenu__panel .chip { margin: 2px 8px 8px; }
.usermenu__item { padding: 10px 12px; border-radius: 9px; font-family: var(--as-font); font-weight: normal; color: rgba(255,255,255,.78); transition: all .2s ease; }
.usermenu__item svg { opacity: .7; }
.usermenu__item:hover { background: linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,0)); color: #fff; }
.usermenu__item:active { opacity: .8; }
.usermenu__item[data-act="logout"] { margin-top: 4px; border-top: 1px solid rgba(255,255,255,.06); border-radius: 0 0 9px 9px; }
.usermenu__item[data-act="logout"]:hover { background: linear-gradient(90deg, rgba(227,38,47,.22), rgba(227,38,47,0)); }

/* Erneut prüfen: schlank */
.membership [data-act="check"] { height: 32px; padding: 0 12px; gap: 7px; border: 0; border-radius: 8px; font-size: .8rem;
  background: linear-gradient(90deg, rgba(255,255,255,.1), rgba(255,255,255,0)); color: rgba(255,255,255,.8); box-shadow: none; }
.membership [data-act="check"]:hover { background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.02)); color: #fff; transform: none; }
.membership [data-act="check"]:active { opacity: .8; }
.membership [data-act="check"] svg { width: 14px; height: 14px; opacity: .8; }

/* Hinweis: nicht auf allen Discords */
.join-alert { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0; padding: 12px 14px; border-radius: 10px;
  background: linear-gradient(90deg, rgba(227,38,47,.9), rgba(140,16,24,.9)); color: rgba(0,0,0,.75); }
.join-alert svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.join-alert b { display: block; font-family: var(--as-font-fett, inherit); font-weight: normal; }
.join-alert span { display: block; font-size: .85rem; line-height: 1.45; }
.btn.is-locked { filter: saturate(.55); opacity: .75; }

/* Partnerkarten: Hintergrund-Logos deutlicher, Noctura kleiner */
.pc__bg { opacity: 0.32; }
.pc:hover .pc__bg { opacity: 0.4; }
.pc__bg img[src*="noctura"] { transform: scale(0.78); }

/* Hero-Hintergrund bis an den Rand (vorher 16 px Streifen links/rechts) */
.hero {
  margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
  margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px)));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ================= Runde 4 ================= */
/* „12 Partner“: Logos frei nebeneinander, ohne Kästen */
.logo-stack { gap: 7px; flex-wrap: wrap; max-width: 260px; }
.logo-stack img { width: 24px; height: 24px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)); }

/* Türchen: Gewinne nach Partner, Gewinner direkt dabei */
.pg { margin-top: 18px; display: grid; gap: 10px; }
.pg__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pg__head .dd__list-title { margin: 0; }
.pg__sum { font-size: .78rem; color: rgba(255,255,255,.5); }
.pg__note { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 10px; font-size: .82rem;
  background: linear-gradient(90deg, rgba(255,255,255,.07), rgba(255,255,255,0)); color: rgba(255,255,255,.75); }
.pg__note svg { width: 15px; height: 15px; flex: none; color: var(--accent-hi); }
.pg__box { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.025); }
.pg__partner { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,0)); }
.pg__partner .logo-tile { width: 26px; height: 26px; border: 0; background: none; box-shadow: none; }
.pg__partner .logo-tile img { object-fit: contain; }
.pg__partner b { font-family: var(--as-font-fett); font-weight: normal; font-size: .92rem; }
.pg__count { margin-left: auto; padding: 2px 8px; border-radius: 6px; font-size: .74rem; background: var(--badge-bg, #e3262f); color: var(--badge-text, rgba(0,0,0,.75)); font-family: var(--as-font-fett); }
.pg__list { list-style: none; margin: 0; padding: 4px 12px 10px; display: grid; }
.pg__item { padding: 7px 0; border-top: 1px solid rgba(255,255,255,.05); }
.pg__item:first-child { border-top: 0; }
.pg__row { display: flex; align-items: baseline; gap: 8px; font-size: .86rem; }
.pg__qty { flex: none; min-width: 30px; color: var(--accent-hi); font-family: var(--as-font-fett); }
.pg__title { flex: 1; min-width: 0; color: rgba(255,255,255,.85); }
.pg__val { flex: none; font-size: .74rem; color: rgba(255,255,255,.45); }
.pg__winners { display: flex; flex-wrap: wrap; gap: 6px; margin: 7px 0 0 38px; }
.pg__winner { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border-radius: 99px; font-size: .78rem;
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.85); }
.pg__winner .avatar { flex: none; }
.pg__winner.is-me { background: linear-gradient(90deg, #e3262f, #5c0a10); color: #fff; }
.pg__none { font-size: .76rem; color: rgba(255,255,255,.4); }

/* Nicht markierbar (außer Eingaben, Codes und Rechtstexte) */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select, [contenteditable], code, .mono, .code-reveal, .legal, .legal * { -webkit-user-select: text; user-select: text; }
img { -webkit-user-drag: none; }
