@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/Archivo-variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('/assets/fonts/SpaceMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('/assets/fonts/SpaceMono-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #F4F1EB;
  --bg: #101214;
  --bg-2: #0A0B0D;
  --accent: #E8823C;
  --accent-dim: rgba(232, 130, 60, 0.16);
  --card-bg: #1A1D21;
  --card-bg-hover: #202329;
  --border: #2A2E33;
  --muted: #8B8F94;
  --max-width: 780px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg-2);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 900px 500px at 50% -10%, rgba(232, 130, 60, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--ink);
  font-family: 'Space Mono', monospace;
  font-size: 16px;
  line-height: 1.55;
  padding: 0 20px 80px;
}

a { color: var(--ink); }
a:hover { color: var(--accent); }

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 0 32px;
  text-align: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  color: var(--accent);
  margin: 0 0 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(232, 130, 60, 0.6);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(232, 130, 60, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(232, 130, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 130, 60, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-dot { animation: none; }
}

h1 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.12;
  margin: 0 0 20px;
  color: var(--ink);
}

.intro {
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto 24px;
  color: #C9C6BF;
}

.intro strong { color: var(--ink); }

.price-note {
  display: inline-block;
  font-size: 13px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 14px 20px;
  max-width: 480px;
  color: #D8D5CD;
}

.price-note strong { color: var(--ink); }

main {
  max-width: 920px;
  margin: 0 auto;
}

.instructions {
  text-align: center;
  font-size: 14px;
  margin: 0 0 18px;
  color: #C9C6BF;
}

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

.charge-meter {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0 0 10px;
}

.charge-meter .cell {
  width: 46px;
  height: 8px;
  border-radius: 3px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.charge-meter .cell.is-filled {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(232, 130, 60, 0.5);
}

#vote-counter {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 32px;
}

.design-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 32px;
}

@media (max-width: 720px) {
  .design-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .design-grid { grid-template-columns: 1fr; }
}

.design-card {
  display: block;
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.design-card:hover {
  border-color: #3a3f46;
  background: var(--card-bg-hover);
}

.design-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.design-card .art {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.design-card .art svg { width: 100%; height: auto; display: block; }

.design-card .num {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
  letter-spacing: 0.08em;
}

.design-card.is-selected {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 0 1px var(--accent), 0 0 24px rgba(232, 130, 60, 0.18);
}

.design-card.is-selected .num { color: var(--accent); }

.design-card.is-selected::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #16130E;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
}

.design-card.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.vote-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0 0 8px;
}

.ghost-button {
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-size: 13px;
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  box-shadow: none;
}

.ghost-button:hover:not(:disabled) { color: var(--accent); }
.ghost-button:disabled { color: #4a4d51; cursor: not-allowed; text-decoration: none; }

button {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 16px;
  background: var(--accent);
  color: #16130E;
  border: none;
  border-radius: 999px;
  padding: 16px 38px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  box-shadow: 0 0 24px rgba(232, 130, 60, 0.25);
}

button:disabled {
  background: var(--card-bg);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
  border: 1px solid var(--border);
}

button:not(:disabled):hover { background: #F49A54; }
button:not(:disabled):active { transform: scale(0.98); }

#vote-status {
  text-align: center;
  font-size: 14px;
  margin: 16px 0 0;
  min-height: 20px;
}

#vote-status.is-error { color: #E5695A; }
#vote-status.is-success { color: #7FCF8F; }

#signup-section {
  max-width: 560px;
  margin: 56px auto 0;
  text-align: center;
  padding: 32px 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
}

#signup-section h2 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--ink);
}

#signup-section p {
  font-size: 14px;
  margin: 0 0 20px;
  color: #C9C6BF;
}

#cleverreach-consent .consent-note {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 16px;
}

#cleverreach-consent .consent-note a { color: var(--muted); text-decoration: underline; }
#cleverreach-consent .consent-note a:hover { color: var(--accent); }

.cr-consent-button {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 15px;
  background: var(--accent);
  color: #16130E;
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(232, 130, 60, 0.22);
}

.cr-consent-button:hover:not(:disabled) { background: #F49A54; }
.cr-consent-button:disabled { opacity: 0.5; cursor: not-allowed; }

/* CleverReach-Formular im dunklen Theme statt im mitgelieferten hellen Standard-Look */
#cleverreach-form-container .cr_body {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  color: var(--ink);
  font-family: 'Space Mono', monospace;
  text-align: left;
}

#cleverreach-form-container .cr_page { width: 100%; max-width: 100%; margin: 0; }

#cleverreach-form-container label {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
}

#cleverreach-form-container .cr_form-input {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: 'Space Mono', monospace;
  font-size: 15px;
  color: var(--ink);
}

#cleverreach-form-container .cr_form-input::placeholder { color: var(--muted); }
#cleverreach-form-container .cr_form-input:focus { outline: none; border-color: var(--accent); }

#cleverreach-form-container .cr_ipe_item { margin: 0 0 18px; }

#cleverreach-form-container .g-recaptcha { transform: scale(0.93); transform-origin: 0 0; }

#cleverreach-form-container .submit_container { text-align: center; margin-top: 4px; }

#cleverreach-form-container .cr_button {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 16px;
  background: var(--accent);
  color: #16130E;
  border: none;
  border-radius: 999px;
  padding: 14px 34px;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(232, 130, 60, 0.25);
}

#cleverreach-form-container .cr_button:hover { background: #F49A54; }

footer {
  max-width: var(--max-width);
  margin: 64px auto 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

footer nav a {
  margin: 0 10px;
  text-decoration: none;
  color: var(--muted);
}

footer nav a:hover { text-decoration: underline; color: var(--accent); }

.legal-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 0 80px;
  color: #D8D5CD;
}

.legal-page h1 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 28px;
  margin-bottom: 24px;
  color: var(--ink);
}

.legal-page h2 {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin: 32px 0 10px;
  color: var(--ink);
}

.legal-page p, .legal-page li {
  font-size: 14px;
}

.legal-page a.back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--muted);
}

.todo-marker {
  background: rgba(232, 130, 60, 0.08);
  border: 1px dashed var(--accent);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin: 16px 0;
  color: #E8CBB0;
}

.todo-marker code {
  color: var(--accent);
}
