/* Carvision Exklusiv – FastLife Gewinnspiel
   CI aus carvision-exklusiv.de (Tailwind-Theme): primary hsl(350 95% 43%),
   dark bg hsl(222 84% 4.9%), Outfit + Inter, radius .75rem. */
:root {
  --bg: #070a12;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --ink: #f4f7fb;
  --ink-soft: #aab4c5;
  --ink-mute: #6c7689;
  --brand: hsl(350 95% 48%);
  --brand-strong: hsl(350 95% 43%);
  --brand-hover: hsl(350 95% 56%);
  --gold: #f4cf47;
  --ok: #00e58f;
  --danger: hsl(0 85% 72%);

  --radius: 0.75rem;
  --radius-lg: 1.25rem;
  --pill: 999px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --shadow-brand: 0 20px 48px -20px hsla(350, 95%, 43%, 0.6);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Outfit", var(--font-sans);
  --duration: 260ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; color: var(--ink);
  font-family: var(--font-sans);
  background:
    radial-gradient(1200px 820px at 88% -12%, hsla(350, 95%, 43%, 0.20), transparent 60%),
    radial-gradient(900px 600px at -5% 0%, rgba(70, 110, 255, 0.08), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--font-heading); font-weight: 800; letter-spacing: -0.02em; line-height: 1.04; margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.shell { width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: clamp(1.2rem, 1rem + 2vw, 2.4rem) 0 4rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.72rem; font-weight: 800; color: var(--brand); margin: 0 0 0.6rem; }
.fineprint { color: var(--ink-mute); font-size: 0.92rem; line-height: 1.55; margin: 0.35rem 0; }
.lead { max-width: 720px; color: var(--ink-soft); font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.6; }

/* ---- Brand mark ---- */
.brand-mark { display: inline-flex; align-items: center; gap: 0.65rem; font-family: var(--font-heading); }
.brand-logo { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 0.65rem;
  background: linear-gradient(160deg, var(--brand), var(--brand-strong)); color: #fff; font-weight: 900; font-size: 1.5rem; box-shadow: var(--shadow-brand); }
.brand-name { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; }
.brand-name b { color: var(--brand); font-weight: 800; }

/* ---- Buttons ---- */
.button, button {
  appearance: none; cursor: pointer; border: 0; font-family: inherit;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem 1.6rem; border-radius: var(--pill); font-weight: 700; font-size: 1rem; text-decoration: none;
  color: #fff; background: linear-gradient(160deg, var(--brand), var(--brand-strong)); box-shadow: var(--shadow-brand);
  transition: transform var(--duration) var(--ease), background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.button:hover, button:hover { transform: translateY(-2px); background: linear-gradient(160deg, var(--brand-hover), var(--brand)); }
.button:active, button:active { transform: translateY(0); }
.button.secondary, button.secondary { background: var(--surface); color: var(--ink); box-shadow: none; border: 1px solid var(--border-strong); }
.button.secondary:hover, button.secondary:hover { background: var(--surface-2); }
.button.ghost { background: transparent; box-shadow: none; border: 1px solid var(--border); color: var(--ink-soft); }
button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }

/* ---- Cards / grids ---- */
.card, .panel, .stat { border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow); padding: clamp(1.4rem, 1rem + 1.6vw, 2rem); backdrop-filter: blur(14px); }
.grid { display: grid; gap: 1.1rem; }
.prize-rank { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-heading); font-weight: 800; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--gold); }
.value { font-family: var(--font-heading); font-weight: 800; color: var(--brand); }

/* ---- Forms ---- */
label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 0.9rem; }
input:not([type="checkbox"]), select { width: 100%; margin-top: 0.45rem; padding: 0.95rem 1.05rem; font-size: 1.05rem; color: var(--ink);
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border-strong); border-radius: var(--radius); font-family: inherit;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease); }
input::placeholder { color: var(--ink-mute); }
input:focus, select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px hsla(350, 95%, 43%, 0.2); }
.checkbox { display: flex; align-items: flex-start; gap: 0.7rem; font-weight: 500; color: var(--ink-soft); cursor: pointer; margin-bottom: 0.9rem; }
.checkbox input { width: 1.25rem; height: 1.25rem; margin: 0.1rem 0 0; accent-color: var(--brand); flex: 0 0 auto; }
.notice { min-height: 1.2rem; font-size: 0.95rem; font-weight: 600; margin: 0.4rem 0 0; color: var(--ink-mute); }
.notice.error { color: var(--danger); }
.notice.success { color: var(--ok); }

/* ---- Scratch card ---- */
.scratch { display: none; position: fixed; inset: 0; background: rgba(3, 5, 10, 0.82); place-items: center; padding: 20px; z-index: 40; backdrop-filter: blur(6px); }
.scratch.open { display: grid; }
.scratch-box { position: relative; width: min(560px, 100%); text-align: center; }
.scratch-result { min-height: 220px; display: grid; place-content: center; gap: 0.5rem; border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong); background: linear-gradient(160deg, #0d1220, #05070d); color: var(--gold); }
.scratch-result strong { font-family: var(--font-heading); font-size: 1.4rem; }
.scratch-result b { font-family: var(--font-heading); font-size: 2.2rem; color: #fff; letter-spacing: 0.04em; }
#scratch-canvas { position: absolute; left: clamp(1.4rem, 5vw, 2rem); right: clamp(1.4rem, 5vw, 2rem); bottom: clamp(1.4rem, 5vw, 2rem);
  width: calc(100% - 2 * clamp(1.4rem, 5vw, 2rem)); height: 220px; border-radius: var(--radius-lg); touch-action: none; cursor: grab; }
.close { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; padding: 0; border-radius: var(--pill); background: var(--surface-2); border: 1px solid var(--border-strong); box-shadow: none; }

/* ---- Admin dashboard ---- */
.login { min-height: 100dvh; display: grid; place-items: center; }
.login .card { width: min(460px, 100%); }
.dashboard-header { display: flex; justify-content: space-between; gap: 1.2rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.4rem; }
.stats { grid-template-columns: repeat(4, 1fr); margin: 1.2rem 0; }
.stat span { color: var(--ink-mute); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.stat strong { display: block; margin-top: 0.4rem; font-family: var(--font-heading); font-size: 2.4rem; color: #fff; }
.dashboard-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
.qr { max-width: 320px; width: 100%; background: #fff; border-radius: var(--radius); padding: 10px; }
.table-wrap { overflow: auto; }
table { width: 100%; min-width: 940px; border-collapse: collapse; }
th, td { padding: 0.75rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--brand); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.badge { display: inline-flex; border-radius: var(--pill); padding: 0.3rem 0.65rem; font-size: 0.75rem; font-weight: 700; border: 1px solid var(--border-strong); color: var(--ink-soft); }
.badge.verified { color: var(--ok); border-color: hsla(158, 100%, 45%, 0.4); }
.badge.pending { color: var(--gold); border-color: rgba(244, 207, 71, 0.4); }
.badge.rejected { color: var(--danger); border-color: hsla(0, 85%, 72%, 0.4); }
.row-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.row-actions button { padding: 0.5rem 0.7rem; font-size: 0.8rem; }
.winners { display: grid; gap: 0.6rem; }
.winner { border: 1px solid hsla(350, 95%, 43%, 0.35); background: hsla(350, 95%, 43%, 0.1); border-radius: var(--radius); padding: 0.9rem; }

@media (max-width: 900px) {
  .stats, .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-header { flex-direction: column; align-items: flex-start; }
}
