:root {
  --color-primary: #1e3a5f;
  --color-primary-light: #2d5a8a;
  --color-accent: #f59e0b;
  --color-accent-light: #fbbf24;
  --color-bg: #f8fafc;
  --color-bg-hero: #e0f2fe;
  --color-card: #ffffff;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-success: #22c55e;
  --color-error: #ef4444;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
.header {
  background: var(--color-card);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.5rem;
}

.logo-icon {
  color: var(--color-primary);
  font-size: 1.75rem;
}

.logo-text {
  color: var(--color-primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--color-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-light);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: white;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-nav {
  padding: 0.5rem 1rem;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-bg-hero) 0%, #bae6fd 100%);
  padding: 4rem 1.5rem;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: var(--color-accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.25rem;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--color-text);
}

.hero-title .highlight {
  color: var(--color-primary);
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-security {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.hero-security span::before {
  content: "✓ ";
  color: var(--color-success);
}

/* Sections */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.section-title .highlight {
  color: var(--color-primary);
}

.section-desc {
  text-align: center;
  color: var(--color-text-muted);
  margin: 0 0 2rem;
}

/* Raffle Cards */
.raffle-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.raffle-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 400px;
  width: 100%;
  position: relative;
}

.raffle-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
}

.raffle-badge.heiss {
  background: var(--color-accent);
  color: white;
}

.raffle-image-wrap {
  position: relative;
  background: var(--color-bg);
  padding: 2rem;
  min-height: 200px;
}

.raffle-image-wrap img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.raffle-available {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.raffle-body {
  padding: 1.5rem;
}

.raffle-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.raffle-specs {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.raffle-value {
  font-size: 1rem;
  margin: 0 0 1rem;
}

.raffle-value strong {
  color: var(--color-primary);
}

.raffle-progress {
  margin-bottom: 1rem;
}

.progress-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 4px;
  width: 0%;
  transition: width 0.3s;
}

.raffle-countdown {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.raffle-countdown .countdown {
  font-weight: 700;
  color: var(--color-primary);
}

.countdown span {
  display: inline-block;
  min-width: 2ch;
}

.purchase-inline .purchase-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.purchase-inline input {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  font-size: 1rem;
}

.purchase-inline .total {
  font-weight: 600;
  margin: 0.5rem 0;
  color: var(--color-primary);
}

.purchase-inline button {
  margin-top: 0.5rem;
}

.purchase-inline button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.result-card {
  padding: 2rem;
  text-align: center;
}

.result-card .winner {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-success);
  margin: 1rem 0;
}

.check-winner {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.check-winner input {
  padding: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
}

#check-result {
  font-weight: 500;
}

.loading, .no-raffle {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--color-text-muted);
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.step {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.step-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.step p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.benefit {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.benefit-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
}

.benefit h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.benefit p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Stats bar */
.stats-bar {
  background: var(--color-primary);
  color: white;
  padding: 2rem 1.5rem;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  font-weight: 600;
  text-align: center;
}

/* Footer */
.footer {
  background: #1e293b;
  color: white;
  padding: 3rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col .logo {
  margin-bottom: 1rem;
}

.footer-col .logo-text {
  color: white;
}

.footer-col .logo-icon {
  color: #93c5fd;
}

.footer-col p {
  margin: 0.5rem 0;
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-col h4 {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.footer-col a {
  display: block;
  color: #94a3b8;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: #94a3b8;
}

.payment-icons {
  font-size: 0.8rem;
}

.demo-banner {
  background: #f59e0b;
  color: white;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.demo-banner.hidden {
  display: none;
}

.hidden {
  display: none !important;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.75rem;
  }
}
