/* =========================================================
   numa Waitlist — Swiss Design, 1:1 aus dem Shopify-Theme
   (Website/Shopify/assets/numa.css). Tokens: design/DESIGN.md
   Eine Signalfarbe, reserviert fuer die Haupt-Aktion.
   ========================================================= */

/* ---------- Schriften (lokal, kein Abruf bei Google) ---------- */

@font-face {
  font-family: "Inter Tight"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(../fonts/numa-inter-tight-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Tight"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(../fonts/numa-inter-tight-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/numa-jetbrains-mono-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/numa-jetbrains-mono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */

:root {
  --paper:    #EEECE7;
  --paper-2:  #E3E0D9;
  --ink:      #0A0A0A;
  --mute:     #5E5C57;
  --line:     rgba(10, 10, 10, .16);
  --line-soft:rgba(10, 10, 10, .055);
  --on-dark-mute: rgba(238, 236, 231, .72);
  --on-dark-line: rgba(238, 236, 231, .18);
  --signal:       #84B3CE;
  --signal-hover: #6999B4;
  --error:        #B3261E;
  --error-on-dark:#FF8A80;

  --f-sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 2.6vw, 40px);
  --gap:    clamp(12px, 1.6vw, 24px);
  --header-h: 60px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

/* ---------- Basis ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection { background: var(--signal); color: var(--ink); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
[data-dark] :focus-visible, .header :focus-visible { outline-color: var(--paper); }

.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.4;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--signal);
  color: var(--ink);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.u-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
.u-link:hover { text-decoration-thickness: 2px; }

[hidden] { display: none !important; }

/* ---------- Header (wie Shop: Tinte, 60px) ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  padding-inline: var(--gutter);
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid rgba(238, 236, 231, .08);
}

.header__left,
.header__right { display: flex; align-items: center; gap: 20px; }
.header__right { justify-content: flex-end; }

.header__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 14px;
  color: rgba(238, 236, 231, .75);
  transition: color .2s ease;
}
.header__link:hover { color: var(--paper); }
.header__link svg { width: 12px; height: 12px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9.6px;
  min-height: 44px;
  color: var(--paper);
}
.brand__logo { width: 22px; height: auto; aspect-ratio: 383 / 283; }
.brand__word { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }

/* Sprachumschalter: DE / EN */
.lang {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--on-dark-line);
}
.lang button {
  min-width: 44px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--on-dark-mute);
  transition: background-color .2s ease, color .2s ease;
}
.lang button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.lang button:not([aria-pressed="true"]):hover { color: var(--paper); }

/* ---------- Seitenrahmen ---------- */

.page {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px var(--gutter);
  overflow: hidden;
}

.grid-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  padding-inline: var(--gutter);
  pointer-events: none;
}
.grid-lines span { border-inline: 1px solid var(--line-soft); }

.ghost {
  position: absolute;
  z-index: 0;
  margin: 0;
  font-size: clamp(160px, 31vw, 544px);
  font-weight: 900;
  line-height: .8;
  letter-spacing: -.06em;
  color: var(--paper-2);
  pointer-events: none;
  user-select: none;
}

.meta,
.foot {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.meta { padding-bottom: 14.4px; border-bottom: 1px solid var(--line); }
.foot {
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 14.4px;
  border-top: 1px solid var(--line);
}
.meta time, .tnum { font-variant-numeric: tabular-nums; }
.foot nav { display: flex; gap: 20px; }
.foot a { display: inline-flex; min-height: 32px; align-items: center; }
.foot a:hover { text-decoration: underline; text-underline-offset: .2em; }

.index-line { display: flex; align-items: center; gap: 12px; }
.index-line i { flex: 1; height: 1px; background: currentColor; }

/* ---------- Karte + Ringe ---------- */

.card-wrap {
  position: relative;
  aspect-ratio: 1189 / 879;
}

.rings {
  position: absolute;
  top: 50%; left: 50%;
  width: 64%;
  aspect-ratio: 1;
  margin: -32% 0 0 -32%;
  pointer-events: none;
}
.rings span {
  position: absolute;
  inset: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  opacity: 0;
  animation: numa-ring 3.6s var(--ease-out) infinite;
}
.rings span:nth-child(2) { animation-delay: 1.2s; }
.rings span:nth-child(3) { animation-delay: 2.4s; }

@keyframes numa-ring {
  0%   { transform: scale(.7);  opacity: .55; }
  100% { transform: scale(2.3); opacity: 0; }
}

.card-tilt {
  position: absolute;
  inset: 0;
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.card {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 28px 36px rgba(10, 10, 10, .22));
}

/* ---------- Haupt-CTA (btn-preorder aus dem Shop) ---------- */

.btn-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 88px;
  padding: 14.4px 14.4px 14.4px 22.4px;
  border: 0;
  background: var(--signal);
  color: var(--ink);
  text-align: left;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: background-color .25s ease;
}
.btn-cta:hover { background: var(--signal-hover); }
.btn-cta[disabled] { cursor: progress; }

.btn-cta__text { min-width: 0; display: flex; flex-direction: column; gap: 3.2px; }
.btn-cta__eyebrow { opacity: .78; }

.roll {
  position: relative;
  display: block;
  overflow: hidden;
  height: 1.05em;
  font-size: clamp(28px, 2.4vw, 40px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.roll > span,
.roll::after { display: block; transition: transform .55s var(--ease-out); }
.roll::after { content: attr(data-text); position: absolute; top: 100%; left: 0; }

.btn-cta:hover .roll > span,
.btn-cta:hover .roll::after,
.btn-cta:focus-visible .roll > span,
.btn-cta:focus-visible .roll::after { transform: translateY(-100%); }

.btn-cta__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 60px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  transition: transform .45s var(--ease-out);
}
.btn-cta__icon svg {
  width: 22.4px; height: 22.4px;
  transform: rotate(-45deg);
  transition: transform .45s var(--ease-out);
}
.btn-cta:hover .btn-cta__icon { transform: scale(1.08); }
.btn-cta:hover .btn-cta__icon svg,
.btn-cta:focus-visible .btn-cta__icon svg { transform: rotate(0deg); }
.btn-cta:active .btn-cta__icon { transform: scale(.94); }

.btn-cta--xl { min-height: clamp(88px, 14svh, 112px); }
.btn-cta--xl .roll { font-size: clamp(32px, 3.2vw, 52px); }
.btn-cta--xl .btn-cta__icon { width: 72px; }

/* Ladezustand: Pfeil wird zum drehenden Ring */
.btn-cta[aria-busy="true"] .btn-cta__icon svg { display: none; }
.btn-cta[aria-busy="true"] .btn-cta__icon::after {
  content: "";
  width: 22px; height: 22px;
  border: 2px solid var(--paper);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sekundaer-Button (Rahmen, wie "Alert me" im Shop) ---------- */

.btn-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  padding: 10px 16px 10px 22px;
  border: 1px solid currentColor;
  background: transparent;
  text-align: left;
  transition: background-color .2s ease, color .2s ease;
}
.btn-line:hover:not([disabled]) { background: var(--ink); color: var(--paper); }
[data-dark] .btn-line:hover:not([disabled]) { background: var(--paper); color: var(--ink); }
.btn-line[disabled] { opacity: .55; cursor: not-allowed; }
.btn-line__text { display: flex; flex-direction: column; gap: 2px; }
.btn-line__eyebrow { font-size: 11px; opacity: .72; }
.btn-line__label { font-size: 16px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.btn-line svg { width: 16px; height: 16px; flex: none; }

/* Kleiner Tinten-Button */
.btn-ink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.btn-ink:hover { background: #262626; }
[data-dark] .btn-ink { border-color: var(--paper); background: var(--paper); color: var(--ink); }

/* =========================================================
   Startseite
   ========================================================= */

.home .ghost { top: 6vh; right: -2vw; }
.home__main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 3vh, 36px);
  padding-block: clamp(16px, 3vh, 48px);
}

/* BE [Karte] FIRST. */
.home__title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "w1 card w2";
  align-items: center;
  width: 100%;
  column-gap: clamp(12px, 2vw, 32px);
  font-size: clamp(56px, min(10.4vw, 17svh), 200px);
  font-weight: 800;
  line-height: .84;
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.home__title .w1 { grid-area: w1; justify-self: end; }
.home__title .w2 { grid-area: w2; justify-self: start; }
.home__title .home__card { grid-area: card; }

.line { display: block; overflow: hidden; padding-block: .05em .02em; margin-block: -.05em -.02em; }
.line__inner { display: inline-block; white-space: nowrap; }

.home__card { width: clamp(180px, min(22vw, 34svh), 380px); }

.home__action {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2vh, 16px);
  width: min(100%, 640px);
}

.home__lead {
  max-width: 44ch;
  font-size: clamp(16px, 1.25vw, 20px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.01em;
}

.home__back { display: flex; justify-content: center; }

/* ---------- Countdown ---------- */

.countdown { width: 100%; }

.countdown__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
}

.countdown__cells {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.countdown__cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 12px 0 0;
}
.countdown__cell + .countdown__cell { padding-left: 12px; border-left: 1px solid var(--line); }

.countdown__num {
  display: flex;
  font-size: clamp(32px, min(3.2vw, 6svh), 52px);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}
.countdown__label { color: var(--mute); }

.countdown--xl .countdown__num { font-size: clamp(48px, 9vw, 152px); letter-spacing: -.06em; }
.countdown--xl .countdown__cell { padding-top: 20px; }
[data-dark] .countdown__head { border-color: var(--paper); }
[data-dark] .countdown__cell + .countdown__cell { border-color: var(--on-dark-line); }
[data-dark] .countdown__label { color: var(--on-dark-mute); }

/* Animate Digits (portiert von 21st.dev/@unlumen) */
.digit { position: relative; display: inline-grid; }
.digit > span { grid-area: 1 / 1; will-change: transform, opacity; }

/* =========================================================
   Dialog: Formular -> Belohnung -> "Check deine Mails"
   ========================================================= */

.dialog {
  width: min(100% - 2 * var(--gutter), 600px);
  max-width: none;
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.dialog::backdrop { background: rgba(10, 10, 10, .72); }

.dialog[open] { animation: dialog-in .5s var(--ease-out); }
.dialog[open]::backdrop { animation: fade-in .3s ease; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(24px); } }
@keyframes fade-in { from { opacity: 0; } }

.dialog.is-dark { background: var(--ink); color: var(--paper); border-color: var(--ink); color-scheme: dark; scrollbar-color: rgba(238,236,231,.3) transparent; }

.dialog__inner { position: relative; padding: clamp(20px, 3vw, 32px); }

.dialog__close {
  position: absolute;
  top: 10px; right: 10px;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
}
.dialog__close svg { width: 18px; height: 18px; }

.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 0 44px 24px 0;
}
.section-head .rule { height: 1px; background: currentColor; }

.dialog__title {
  margin-bottom: 12px;
  font-size: clamp(40px, 8vw, 64px);
  font-weight: 800;
  line-height: .88;
  letter-spacing: -.05em;
  text-transform: uppercase;
}
.dialog__lead { margin-bottom: 24px; color: var(--mute); }
.is-dark .dialog__lead { color: var(--on-dark-mute); }

/* ---------- Formular ---------- */

.form { display: flex; flex-direction: column; gap: 18px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { color: var(--ink); }

.input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-size: 16px; /* kein Auto-Zoom auf iOS */
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder { color: var(--mute); opacity: 1; }
.input:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }
.input[aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }

.field__error,
.form__error { color: var(--error); font-size: 14px; line-height: 1.4; }
.field__error::before,
.form__error::before { content: "— "; }

.check {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 15px;
  line-height: 1.45;
}
.check input {
  width: 24px; height: 24px;
  margin: 0;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.check input:checked {
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EEECE7' stroke-width='2.5'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.check input:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.check input[aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.check a { text-decoration: underline; text-underline-offset: .18em; }

/* Honeypot: fuer Menschen unsichtbar, fuer Bots ein normales Feld */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__note { color: var(--mute); font-size: 13px; }

/* ---------- Belohnung ---------- */

.reward { position: relative; text-align: left; }

.reward__stage {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(150px, 30svh, 300px);
  margin: 0 0 clamp(8px, 2svh, 20px);
}

.reward__card { position: relative; width: min(72%, 320px); z-index: 2; }
.reward__card .card { filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .55)); }

/* Glanz, der ueber das gebuerstete Metall faehrt */
.reward__sheen {
  position: absolute;
  inset: 0;
  -webkit-mask: url(../img/numa-card.webp) center / contain no-repeat;
  mask: url(../img/numa-card.webp) center / contain no-repeat;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%) -200% 0 / 250% 100% no-repeat;
  mix-blend-mode: screen;
  pointer-events: none;
}

.reward__burst { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.reward__burst span {
  position: absolute;
  top: 50%; left: 50%;
  width: 40%;
  aspect-ratio: 1;
  margin: -20% 0 0 -20%;
  border: 1.5px solid var(--signal);
  border-radius: 50%;
  opacity: 0;
}

.confetti { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: 0; left: 0; display: block; will-change: transform, opacity; }

.reward__title {
  font-size: clamp(40px, min(9vw, 9svh), 76px);
  font-weight: 800;
  line-height: .86;
  letter-spacing: -.055em;
  text-transform: uppercase;
}

.reward__body { display: flex; flex-direction: column; gap: clamp(10px, 2svh, 16px); margin-top: clamp(12px, 2.4svh, 20px); }
.reward__text { color: var(--on-dark-mute); font-size: 17px; }
.reward__text strong { color: var(--paper); font-weight: 600; word-break: break-all; }

.steps-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--on-dark-line);
}
.steps-mini li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 10px 0 0;
  font-size: 14px;
  line-height: 1.3;
  color: var(--on-dark-mute);
}
.steps-mini li + li { padding-left: 10px; border-left: 1px solid var(--on-dark-line); }
.steps-mini b { color: var(--paper); font-family: var(--f-mono); font-size: 12px; font-weight: 500; }
.steps-mini li.is-current b { color: var(--signal); }

.resend__status { min-height: 1.4em; font-size: 14px; color: var(--on-dark-mute); }
.resend__status.is-error { color: var(--error-on-dark); }

.reward__links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--on-dark-mute); }
.reward__links button { min-height: 44px; padding: 0; border: 0; background: none; text-decoration: underline; text-underline-offset: .18em; }

/* =========================================================
   Platz-Seite
   ========================================================= */

.me .ghost { bottom: -4vw; left: -2vw; }
.me__main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  row-gap: clamp(28px, 5vh, 56px);
  padding-block: clamp(24px, 5vh, 64px);
}

.me__hello { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 12px;
  background: var(--ink);
  color: var(--paper);
}
.badge svg { width: 14px; height: 14px; }
.badge--signal { background: var(--signal); color: var(--ink); }
.badge--line { background: transparent; color: var(--ink); border: 1px solid var(--ink); }

.me__place { grid-column: 1 / 8; align-self: end; }
.me__place-label { display: block; margin-bottom: 8px; color: var(--mute); }
.me__num {
  display: flex;
  align-items: flex-start;
  font-size: clamp(120px, 24vw, 400px);
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.07em;
  font-variant-numeric: tabular-nums;
}
.me__num .hash { font-size: .42em; line-height: 1; margin: .08em .04em 0 0; letter-spacing: -.04em; }

.me__status { grid-column: 8 / 13; align-self: end; display: flex; flex-direction: column; gap: 16px; }

.status {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--ink);
}
.status--signal { background: var(--signal); border-color: var(--signal); }
.status--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.status__title {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.04em;
  text-transform: uppercase;
}
.status__text { font-size: 16px; }
.status--ink .status__text { color: var(--on-dark-mute); }

.code {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--ink);
  background: var(--paper);
}
.code__value {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  font-family: var(--f-mono);
  font-size: clamp(16px, 1.6vw, 22px);
  letter-spacing: .08em;
  overflow-wrap: anywhere;
}
.code button { flex: none; border: 0; border-left: 1px solid var(--ink); }

.timer { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.timer__value { font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }

.me__drop { grid-column: 1 / -1; }

.me__manage {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  row-gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.me__manage .mono { grid-column: 1 / 4; color: var(--mute); }
.me__manage p { grid-column: 4 / 10; color: var(--mute); }
.me__manage .actions { grid-column: 10 / 13; display: flex; justify-content: flex-end; align-items: start; }

/* Einfache Status-Seiten (Bestaetigen, Abmelden, Fehler) */
.simple {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  max-width: 880px;
  padding-block: clamp(40px, 10vh, 120px);
}
.simple__title {
  font-size: clamp(52px, 11vw, 176px);
  font-weight: 800;
  line-height: .84;
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.simple__text { max-width: 46ch; font-size: clamp(17px, 1.4vw, 22px); font-weight: 500; line-height: 1.4; }
.simple__actions { display: flex; flex-direction: column; gap: 12px; width: min(100%, 520px); }

/* Rechtstexte */
.legal {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-block: clamp(32px, 8vh, 96px);
}
.legal h1 {
  margin-bottom: 32px;
  font-size: clamp(48px, 9vw, 120px);
  font-weight: 800;
  line-height: .96;   /* Platz fuer Umlaut-Punkte (ERKLAERUNG) */
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.legal h2 {
  margin: 40px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.legal p, .legal li { font-size: 17px; line-height: 1.6; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; }
.legal .placeholder { background: var(--signal); padding: 0 .2em; }
.legal .notice { margin-bottom: 24px; padding: 14px 16px; border: 1px solid var(--ink); font-size: 15px; }

/* =========================================================
   Testmodus-Panel (nur backend: mock)
   ========================================================= */

.devbar {
  position: fixed;
  right: 12px;
  bottom: 64px;
  z-index: 50;
  font-family: var(--f-mono);
}
.devbar__toggle {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  background: #FFE55C;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.devbar__panel {
  position: absolute;
  right: 0;
  bottom: 48px;
  width: min(92vw, 380px);
  max-height: 70svh;
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--ink);
  background: #FFFBE0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}
.devbar__panel h3 { margin: 14px 0 6px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.devbar__panel h3:first-child { margin-top: 0; }
.devbar__row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.devbar__panel button, .devbar__panel select, .devbar__panel input {
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid var(--ink);
  background: #fff;
  font-family: var(--f-mono);
  font-size: 12px;
}
.devbar__panel input { width: 80px; }
.devbar__mail { padding: 8px 0; border-top: 1px dashed var(--line); }
.devbar__mail a { text-decoration: underline; }
.devbar__muted { color: var(--mute); }

/* =========================================================
   Tablet & Mobile
   ========================================================= */

@media (max-width: 900px) {
  .hide-sm { display: none !important; }

  .home__title {
    grid-template-columns: auto auto;
    grid-template-areas: "w1 w2" "card card";
    justify-content: center;
    column-gap: .2em;
    row-gap: clamp(20px, 5vw, 36px);
    font-size: clamp(56px, 18vw, 132px);
  }
  .home__title .home__card { justify-self: center; width: min(62vw, 300px); }
  .home .ghost { top: auto; bottom: 30%; font-size: 44vw; }

  .me__place, .me__status { grid-column: 1 / -1; }
  .me__manage .mono, .me__manage p, .me__manage .actions { grid-column: 1 / -1; }
  .me__manage .actions { justify-content: flex-start; }

  .btn-cta { min-height: 76px; }
  .btn-cta--xl { min-height: 92px; }
  .btn-cta--xl .roll { font-size: clamp(26px, 7.5vw, 38px); }
  .btn-cta__icon { width: 52px; }
  .btn-cta--xl .btn-cta__icon { width: 60px; }
}

@media (max-width: 600px) {
  .header { grid-template-columns: auto 1fr; }
  .header__center { display: none; }
  .header__right { gap: 12px; }

  .dialog {
    width: 100%;
    max-height: 100svh;
    height: 100svh;
    margin: 0;
    border: 0;
  }
  .dialog[open] { animation-name: sheet-in; }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }

  .countdown__cell { padding-right: 6px; }
  .countdown__cell + .countdown__cell { padding-left: 8px; }
  .countdown__num { font-size: clamp(28px, 9vw, 40px); }
  .countdown--xl .countdown__num { font-size: clamp(36px, 12vw, 64px); }

  .steps-mini { grid-template-columns: 1fr; }
  .steps-mini li { flex-direction: row; gap: 10px; padding: 10px 0; }
  .steps-mini li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--on-dark-line); }

  .foot { font-size: 11px; }
  .devbar { bottom: 8px; right: 8px; }
  .devbar__toggle { min-height: 32px; padding: 0 10px; font-size: 11px; }
}

/* ---------- Bewegung reduzieren ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rings span { animation: none !important; }
  .rings span:nth-child(1) { transform: scale(1.35); opacity: .35; }
  .rings span:nth-child(2) { transform: scale(1.75); opacity: .2; }
  .rings span:nth-child(3) { transform: scale(2.15); opacity: .1; }
  .btn-cta { transform: none; }
}
