:root {
  --bg: #0d1117;
  --bg-elevated: #161b22;
  --bg-card: #1c2128;
  --border: #2d333b;
  --text: #f0f2f5;
  --text-muted: #9aa4b2;
  --accent: #f7c948;
  --accent-dark: #1a1d1a;
  --success: #3fb950;
  --danger: #f85149;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
}

.site-header__inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.site-header__logo {
  height: 30px;
  width: auto;
}

/* Deadline-Hinweis */
.deadline-bar {
  background: var(--accent);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.88rem;
  text-align: center;
}

.deadline-bar__inner {
  padding: 10px 20px;
}

/* Hero */
.hero {
  padding: 48px 0 32px;
  text-align: left;
}

.hero__eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.hero__title {
  font-size: clamp(1.9rem, 6vw, 2.7rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
}

.hero__subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 56ch;
  margin: 0;
}

/* Section titles */
.section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.section__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 24px;
}

/* Steps */
.steps {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step__number {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1a1a;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step__text h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

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

/* Product cards */
.products {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.product-card__info h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
}

.product-card__price {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px;
}

.stepper__btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.stepper__btn:hover:not(:disabled) {
  background: var(--accent);
  color: #1a1a1a;
}

.stepper__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.stepper__value {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
}

/* Discount banner */
.discount-banner {
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: linear-gradient(135deg, rgba(247, 201, 72, 0.14), rgba(247, 201, 72, 0.04));
  padding: 18px 20px;
  margin-bottom: 18px;
  transition: transform 0.2s ease;
}

.discount-banner.is-pulse {
  animation: pulse 0.5s ease;
}

@keyframes pulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.discount-banner.is-maxed {
  border-color: var(--success);
  background: linear-gradient(135deg, rgba(63, 185, 80, 0.16), rgba(63, 185, 80, 0.04));
}

.discount-banner.is-closed {
  border-color: var(--danger);
  background: linear-gradient(135deg, rgba(248, 81, 73, 0.16), rgba(248, 81, 73, 0.04));
}

.discount-banner__text {
  margin: 0 0 12px;
  font-size: 1.02rem;
  font-weight: 600;
}

.discount-banner__text strong {
  color: var(--accent);
}

.discount-banner.is-maxed .discount-banner__text strong {
  color: var(--success);
}

.discount-banner.is-closed .discount-banner__text strong {
  color: var(--danger);
}

.progress-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: var(--bg-elevated);
  overflow: visible;
}

.progress-track__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.35s ease;
}

.discount-banner.is-maxed .progress-track__fill {
  background: var(--success);
}

.progress-track__marks {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Summary box */
.summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.summary__row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.summary__row--total {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 14px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.summary__row--savings {
  color: var(--success);
}

.cta-button {
  width: 100%;
  margin-top: 20px;
  padding: 16px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #1a1a1a;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
}

.cta-button:hover:not(:disabled) {
  filter: brightness(1.08);
}

.cta-button:active:not(:disabled) {
  transform: scale(0.99);
}

.cta-button:disabled {
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: not-allowed;
}

.cta-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 10px;
}

.cta-deadline-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 6px;
  display: none;
}

.cta-error {
  text-align: center;
  color: var(--danger);
  font-size: 0.88rem;
  margin-top: 10px;
  display: none;
}

.cta-error.is-visible {
  display: block;
}

/* Konditionen */
.conditions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.conditions li::before {
  content: '· ';
  color: var(--accent);
  font-weight: 800;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer__links {
  display: flex;
  gap: 18px;
  margin-bottom: 10px;
}

.site-footer__links a {
  text-decoration: none;
  color: var(--text-muted);
}

.site-footer__links a:hover {
  color: var(--text);
}

/* Danke / Abbruch pages */
.status-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 0;
}

.status-page__icon {
  font-size: 2.6rem;
  margin-bottom: 12px;
}

.status-page__title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 14px;
}

.status-page__text {
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 0 10px;
}

.status-page__link {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #1a1a1a;
  font-weight: 700;
  text-decoration: none;
}

@media (min-width: 640px) {
  .hero {
    padding: 64px 0 40px;
  }
}
