
:root {
    --bg: #f7f7fb;
    --panel: rgba(255,255,255,0.88);
    --card: #ffffff;
    --text: #19202b;
    --muted: #647089;
    --line: #e6eaf2;
    --accent: #4f46e5;
    --accent-2: #7c3aed;
    --success: #0f9f6e;
    --danger: #dc2626;
    --shadow: 0 18px 44px rgba(31, 41, 55, 0.08);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --container: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.contest-page-new {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--text);
    background:
      radial-gradient(circle at top left, rgba(124,58,237,0.08), transparent 28%),
      radial-gradient(circle at top right, rgba(79,70,229,0.09), transparent 22%),
      linear-gradient(180deg, #fbfcff 0%, #f5f7fb 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Shop-/Index-Navigation übernommen */
.site-header--shop .main-nav {
    position: sticky;
    top: 0;
    z-index: 1100;
    backdrop-filter: blur(18px);
    background: rgba(255,255,255,0.82);
    border-bottom: 1px solid rgba(230,234,242,0.75);
}
.site-header--shop .nav-inner {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    min-height: 64px;
}
.site-header--shop .desktop-nav,
.site-header--shop .nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.site-header--shop .desktop-nav--shop { justify-self: center; justify-content: center; }
.site-header--shop .brand--shop img { height: 48px; width: auto; }
.site-header--shop .nav-actions--shop { justify-self: end; }
.site-header--shop .nav-links a,
.site-header--shop .nav-login,
.site-header--shop .user-button {
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--text);
    font-weight: 700;
    font-size: 0.96rem;
}
.site-header--shop .nav-links a:hover,
.site-header--shop .nav-login:hover,
.site-header--shop .user-button:hover { background: rgba(79,70,229,0.08); }
.site-header--shop .user-dropdown { position: relative; }
.site-header--shop .user-button { min-height: 44px; border: 0; background: transparent; cursor: pointer; }
.site-header--shop .dropdown-content {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 180px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 8px;
}
.site-header--shop .dropdown-content a { display: block; padding: 10px 12px; border-radius: 10px; }
.site-header--shop .dropdown-content a:hover { background: #f4f6fb; }
.site-header--shop .dropdown-content[hidden] { display: none !important; }
.site-header--shop .cart-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
}
.site-header--shop .cart-icon { position: relative; font-size: 1.1rem; }
.site-header--shop .cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ef4444;
    color: #fff;
    font-size: 0.72rem;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 999px;
    padding: 0 4px;
}
.site-header--shop .cart-price { font-weight: 700; font-size: 0.9rem; }
.site-header--shop .mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    cursor: pointer;
}
.site-header--shop .mobile-drawer {
    display: none;
    width: min(var(--container), calc(100% - 32px));
    margin: 10px auto 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 10px;
}
.site-header--shop .mobile-drawer[hidden] { display: none !important; }
.site-header--shop .mobile-drawer a { display: block; padding: 12px 14px; border-radius: 12px; font-weight: 700; }
.site-header--shop .mobile-drawer a:hover { background: #f4f6fb; }

main {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 72px;
}
.contest-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    margin-top: 8px;
    padding: clamp(18px, 3vw, 34px) 0 12px;
    border-bottom: 1px solid rgba(230,234,242,0.9);
}
.contest-intro__copy { max-width: 820px; }
.eyebrow {
    margin: 0 0 8px;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 800;
}
.contest-intro h1 {
    margin: 0;
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-size: clamp(2rem, 4.4vw, 3.7rem);
}
.contest-intro p:not(.eyebrow) {
    margin: 14px 0 0;
    max-width: 760px;
    color: var(--muted);
    line-height: 1.65;
    font-size: 1.03rem;
}
.contest-intro__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.hero-link,
.cta a,
.cta button,
.share-btn,
.referral-hint button {
    min-height: 48px;
    padding: 0 18px;
    border: none;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
    background: var(--text);
    color: #fff;
    text-decoration: none;
}
.hero-link--ghost { background: #fff; color: var(--text); border: 1px solid var(--line); }
.contest-status,
.referral-hint,
.cta,
.contest-terms,
#success-anchor {
    border: 1px solid rgba(230,234,242,0.9);
    background: rgba(255,255,255,0.76);
    border-radius: 24px;
    box-shadow: 0 10px 26px rgba(31,41,55,0.05);
}
.status-pill {
    width: fit-content;
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.86rem;
}
.status-pill.is-active { color: #047857; background: rgba(15,159,110,0.12); }
.status-pill.is-ended { color: #92400e; background: rgba(245,158,11,0.15); }

.contest-status,
.referral-hint,
.cta,
.contest-terms,
#success-anchor {
    padding: clamp(20px, 3vw, 32px);
    margin-top: 20px;
}
.referral-hint { line-height: 1.65; text-align: left; }
.referral-hint strong { font-size: 1.1rem; color: var(--text); }
.referral-hint em { color: var(--muted); }
form { margin-top: 24px; }
.contest-products-vertical {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(255px, 100%), 1fr));
    gap: 18px;
    margin: 20px 0;
}
.prize-card,
.prize-card-vertical {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(230,234,242,0.95);
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 26px rgba(31,41,55,0.05);
    padding: 14px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.prize-card:hover,
.prize-card-vertical:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(79,70,229,0.35);
}
.prize-image-frame,
.prize-image-vertical {
    aspect-ratio: 4 / 3;
    width: 100%;
    max-height: 220px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f6f7fb, #eef1f8);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--muted);
    font-weight: 800;
}
.prize-image-frame img,
.prize-image-vertical img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
}
.prize-info-vertical { display: flex; flex-direction: column; gap: 12px; }
.prize-card h3,
.prize-card-vertical h3 {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.35;
    color: var(--text);
}
input[type="checkbox"][name="selections[]"] {
    appearance: none;
    width: 34px;
    height: 34px;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all .16s ease;
}
input[type="checkbox"][name="selections[]"]:checked {
    background: var(--text);
    border-color: var(--text);
}
input[type="checkbox"][name="selections[]"]:checked::after {
    content: "✓";
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}
.selection-note {
    max-width: 760px;
    margin: 22px auto 0;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(79,70,229,0.08);
    color: #3730a3;
    text-align: center;
    font-weight: 800;
}
input[name="promo_consent"] { transform: translateY(2px); margin-right: 8px; }
.cta { text-align: center; }
.cta a:hover,
.cta button:hover,
.hero-link:hover { transform: translateY(-1px); }
#formMessage,
.error-text { color: var(--danger); font-weight: 800; margin-top: 14px; }
#success-anchor {
    color: #047857;
    background: rgba(15,159,110,0.09);
    border-color: rgba(15,159,110,0.22);
}
#success-anchor p { margin-top: 0; }
.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 16px;
}
.share-btn {
    width: 52px;
    height: 52px;
    padding: 0;
    background: #fff;
    color: var(--text);
    border: 1px solid var(--line);
}
.share-btn img,
.share-btn svg { width: 28px; height: 28px; object-fit: contain; }
input#shareLink {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 14px;
    background: #fff;
    color: var(--text);
}
.contest-terms h2 { margin-top: 0; }
.terms-text {
    color: var(--muted);
    line-height: 1.7;
}
.shop-footer {
    width: min(var(--container), calc(100% - 32px));
    margin: 34px auto 28px;
    color: var(--muted);
    text-align: center;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.shop-footer p { margin: 12px 0 0; }

@media (max-width: 860px) {
    .site-header--shop .nav-inner { min-height: 52px; grid-template-columns: 1fr auto; gap: 8px; align-content: center; padding-bottom: 7px; }
    .site-header--shop .desktop-nav { grid-column: 1 / -1; order: 3; display: flex; justify-content: center; gap: 2rem; width: 100%; overflow-x: auto; scrollbar-width: none; }
    .site-header--shop .desktop-nav::-webkit-scrollbar { display: none; }
    .site-header--shop .desktop-nav a, .site-header--shop .nav-login, .site-header--shop .user-button { padding: 6px 10px; font-size: 0.86rem; line-height: 1.1; white-space: nowrap; }
    .site-header--shop .nav-login, .site-header--shop .user-dropdown { display: inline-flex; }
    .site-header--shop .user-greeting { display: none; }
    .site-header--shop .mobile-menu-button { display: none !important; }
    .site-header--shop .mobile-drawer { display: none !important; }
    .site-header--shop .brand--shop img { height: 36px; }
    .contest-intro { grid-template-columns: 1fr; align-items: start; }
    .contest-intro__actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
    main, .shop-footer, .site-header--shop .nav-inner, .site-header--shop .mobile-drawer { width: calc(100% - 24px); }
    .contest-products-vertical { grid-template-columns: 1fr; }
}
.hero-actions{
    padding-bottom: 1rem;
}