/* ──────────────────────────────────────────────
   Swapix Web

   Gestaltungsprinzipien:
   - Tiefe entsteht durch Haarlinien und abgestufte Flächen,
     nicht durch Schatten oder Leuchteffekte.
   - Blau ist ausschließlich für Interaktives und Live-Daten
     reserviert, nie als Dekoration.
   - Alle Zahlen laufen in Monospace mit gleicher Zeichenbreite,
     damit Spalten sauber untereinander stehen.
   - Bewegung nur dort, wo sie etwas bedeutet.
   ────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg:            #08090C;
  --bg-alt:        #0B0D12;
  --surface:       #101319;
  --surface-hi:    #151922;

  --line:          rgba(255, 255, 255, 0.07);
  --line-strong:   rgba(255, 255, 255, 0.13);

  --text:          #E6E9EE;
  --text-dim:      #A8AFBC;
  --muted:         #7D8593;

  --accent:        #2E90F5;
  --accent-dim:    #1F6FC4;
  --up:            #3DD68C;
  --down:          #F0616D;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;

  --wrap: 1180px;
  --pad: 24px;
}

* { box-sizing: border-box; }

/* Breite Inhalte scrollen in ihrem eigenen Container, statt die Seite
   aufzuziehen. Bewusst KEIN overflow-x auf html/body — das wuerde die
   klebende Kopfzeile ausser Kraft setzen. */
img, svg, table { max-width: 100%; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; min-width: 0; }

/* Grid- und Flex-Kinder haben von Haus aus min-width:auto und weigern
   sich deshalb, unter ihre Inhaltsbreite zu schrumpfen. Ein einziges
   breites Kind zieht dadurch die ganze Seite auf. Das hier hebt es auf. */
.fee-groups > *, .live-grid > *, .grid-2 > *,
.rail-inner > *, .quotes > *, .hero-grid > *, .cta-inner > * { min-width: 0; }

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

body {
  margin: 0;
  overflow-wrap: break-word;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.muted { color: var(--muted); }
.small { font-size: 13px; }
.num   { text-align: right; }

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

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }

/* ── Kleines Label über jeder Sektion ── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dim); }

.btn-ghost { border-color: var(--line-strong); color: var(--text-dim); }
.btn-ghost:hover { border-color: var(--text-dim); color: var(--text); }

/* ──────────────────────────────────────────────
   Kopfzeile
   ────────────────────────────────────────────── */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 12, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.head-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 62px;
}

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark {
  width: 18px;
  height: 18px;
  flex: none;
  border: 2px solid var(--accent);
  border-radius: 3px;
  position: relative;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 3px 3px auto auto;
  width: 6px;
  height: 6px;
  background: var(--accent);
}
.brand-name { font-weight: 600; letter-spacing: -0.02em; }

.nav { display: flex; gap: 26px; font-size: 14px; }
.nav a { color: var(--muted); transition: color .15s ease; }
.nav a:hover { color: var(--text); }

/* ──────────────────────────────────────────────
   Kursband
   ────────────────────────────────────────────── */
.tape {
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  overflow: hidden;
}
.tape-inner {
  display: flex;
  gap: 34px;
  padding-top: 9px;
  padding-bottom: 9px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tape-inner::-webkit-scrollbar { display: none; }

.tick { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; font-size: 12.5px; }
.tick-sym { color: var(--muted); font-weight: 500; letter-spacing: 0.04em; }
.tick-price { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tick-chg { font-family: var(--mono); font-size: 11.5px; }

.up   { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--muted); }

/* ──────────────────────────────────────────────
   Hero
   ────────────────────────────────────────────── */
.hero { padding: 96px 0 72px; border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 64px;
  align-items: start;
}

.hero h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.08;
  text-wrap: balance;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  box-shadow: inset 0 -3px 0 var(--accent);
}

.lede {
  max-width: 52ch;
  margin: 0 0 32px;
  font-size: 17px;
  color: var(--text-dim);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: var(--muted);
}
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  flex: none;
}
.hero-facts strong { color: var(--text-dim); font-weight: 500; }

/* ── Kurstafel ── */
.rate-board {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}
.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}
.board-title { font-size: 13px; font-weight: 500; letter-spacing: 0.02em; }
.board-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.board-live i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--up);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.board-table { width: 100%; border-collapse: collapse; }
.board-table tr + tr th,
.board-table tr + tr td { border-top: 1px solid var(--line); }
.board-table th,
.board-table td { padding: 12px 18px; font-weight: 400; text-align: left; }
.board-table th { display: flex; flex-direction: column; gap: 1px; }
.coin-sym  { font-size: 13px; font-weight: 500; }
.coin-name { font-size: 11.5px; color: var(--muted); }
.board-table td { font-size: 14px; vertical-align: middle; }
.board-table .chg { font-size: 12.5px; width: 76px; text-align: right; }
.board-empty { padding: 22px 18px; margin: 0; }
.board-foot { padding: 11px 18px; border-top: 1px solid var(--line); background: var(--bg-alt); }

/* ──────────────────────────────────────────────
   Zahlenleiste
   ────────────────────────────────────────────── */
.rail { border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.rail-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.rail-cell { padding: 26px var(--pad); border-left: 1px solid var(--line); }
.rail-cell:first-child { border-left: 0; padding-left: 0; }
.rail-value { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; }
.rail-label { margin-top: 3px; font-size: 12.5px; color: var(--muted); }

/* ──────────────────────────────────────────────
   Sektionen
   ────────────────────────────────────────────── */
.section { padding: 104px 0; border-bottom: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }

.section-title { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 16px; }
.section-lede { max-width: 62ch; margin: 0 0 48px; color: var(--text-dim); font-size: 16px; }

/* ── Ablauf ── */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 12px;
  bottom: 28px;
  width: 1px;
  background: var(--line);
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 22px;
  padding-bottom: 34px;
}
.step:last-child { padding-bottom: 0; }
.step-n {
  position: relative;
  z-index: 1;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--bg);
  font-size: 12px;
  color: var(--muted);
}
.section-alt .step-n { background: var(--bg-alt); }
.step-body { padding-top: 8px; max-width: 60ch; }
.step-body h3 { font-size: 17px; margin-bottom: 5px; }
.step-body p { margin: 0; color: var(--text-dim); font-size: 15px; }

/* ── Sicherheit ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.point { padding: 28px; background: var(--bg-alt); }
.point h3 { font-size: 16px; margin-bottom: 8px; }
.point p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* ── Gebühren ── */
.fee-groups { display: grid; gap: 40px; }
.fee-group-head { margin-bottom: 14px; }
.fee-group-head h3 { font-size: 17px; margin-bottom: 2px; }

.fee-table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  font-size: 14.5px;
}
.fee-table thead th {
  padding: 11px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
}
.fee-table thead th:not(:first-child) { text-align: right; }
.fee-table tbody td { padding: 12px 18px; border-top: 1px solid var(--line); }
.fee-table tbody tr:first-child td { border-top: 0; }
.fee-table tbody tr { transition: background-color .12s ease; }
.fee-table tbody tr:hover { background: var(--surface); }

/* ── Live ── */
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px;
}
.col-title { font-size: 15px; margin-bottom: 16px; color: var(--text-dim); }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.feed li:first-child { border-top: 1px solid var(--line); }
.feed-route { color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-route i { font-style: normal; color: var(--muted); margin: 0 4px; }
.feed-amount { font-size: 13.5px; }
.feed-time { white-space: nowrap; min-width: 86px; text-align: right; }

.bars { list-style: none; margin: 0; padding: 0; }
.bars li {
  display: grid;
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 52px;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
  font-size: 14px;
}
.bar-label { color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 5px; background: var(--surface-hi); border-radius: 3px; overflow: hidden; }
.bar-track i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }

/* Balkenbreiten als feste Klassen statt als style-Attribut.
   Die Content-Security-Policy verbietet Inline-Styles bewusst — ein
   style="width:58%" wuerde vom Browser stillschweigend verworfen und
   alle Balken saehen gleich lang aus. */
.w-5{width:5%}   .w-10{width:10%}  .w-15{width:15%} .w-20{width:20%}
.w-25{width:25%} .w-30{width:30%}  .w-35{width:35%} .w-40{width:40%}
.w-45{width:45%} .w-50{width:50%}  .w-55{width:55%} .w-60{width:60%}
.w-65{width:65%} .w-70{width:70%}  .w-75{width:75%} .w-80{width:80%}
.w-85{width:85%} .w-90{width:90%}  .w-95{width:95%} .w-100{width:100%}
.bar-count { font-size: 12.5px; text-align: right; }

/* ── Bewertungen ── */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.quote {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.stars { color: var(--accent); font-size: 13px; letter-spacing: 2px; margin-bottom: 12px; }
.stars .dim { color: var(--line-strong); }
.quote blockquote { margin: 0; font-size: 14.5px; color: var(--text-dim); }

/* ── Abschluss ── */
.cta { padding: 76px 0; }
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
}
.cta h2 { font-size: 25px; margin-bottom: 5px; }
.cta p { margin: 0; }

/* ──────────────────────────────────────────────
   Fußzeile
   ────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--line); background: var(--bg-alt); }
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
  padding-top: 52px;
  padding-bottom: 40px;
}
.foot-brand { display: flex; gap: 12px; max-width: 320px; }
.foot-brand p { margin: 4px 0 0; }
.foot-cols { display: flex; gap: 64px; }
.foot-cols h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 500;
}
.foot-cols a { display: block; padding: 4px 0; font-size: 14px; color: var(--text-dim); }
.foot-cols a:hover { color: var(--text); }

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 30px;
  border-top: 1px solid var(--line);
}

/* ── Fehlerseite ── */
.error-page { padding: 140px 0; }
.error-page h1 { font-size: 30px; margin-bottom: 22px; }

/* ──────────────────────────────────────────────
   Schmale Bildschirme
   ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 52px; }
  .section { padding: 72px 0; }
  .nav { display: none; }
  .foot-inner { flex-direction: column; gap: 36px; }
  .foot-cols { gap: 44px; }
  .rail-cell { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .rail-cell:first-child { border-top: 0; }
}

@media (max-width: 560px) {
  :root { --pad: 18px; }
  .live-grid { gap: 40px; }
  .feed li { grid-template-columns: minmax(0, 1fr) auto; }
  .feed-time { display: none; }
  .bars li { grid-template-columns: minmax(0, 110px) minmax(0, 1fr) 44px; }
  .cta-inner { padding: 26px; }
}

/* Wer Bewegung reduziert haben will, bekommt keine. */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ──────────────────────────────────────────────
   Kontoseite
   ────────────────────────────────────────────── */
.narrow { max-width: 640px; }

.account-head { border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.account-head-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 28px;
  padding-bottom: 28px;
}
.avatar { width: 56px; height: 56px; border-radius: 10px; flex: none; background: var(--surface); }
.avatar-fallback {
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
}
.account-id h1 { font-size: 22px; }
.account-id p { margin: 2px 0 0; }
.account-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.account-logout { flex: none; }

/* Statusetiketten */
.pill {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
}
.pill.ok   { border-color: rgba(61, 214, 140, 0.35); color: var(--up); }
.pill.warn { border-color: rgba(240, 97, 109, 0.35); color: var(--down); }
.pill.live { border-color: rgba(46, 144, 245, 0.4);  color: var(--accent); }
.pill.dim  { color: var(--muted); }

/* Hinweiskästen */
.notice {
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 8px;
  background: var(--surface);
  font-size: 14.5px;
  color: var(--text-dim);
  margin-bottom: 26px;
}
.notice.warn { border-left-color: var(--down); }
.notice strong { color: var(--text); font-weight: 600; }

/* Wallet-Kopf */
.wallet-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.balance-label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.balance-value { font-size: 44px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; margin: 4px 0 10px; }

.wallet-figures { display: flex; gap: 36px; flex-wrap: wrap; }
.wallet-figures > div { display: flex; flex-direction: column; }
.fig { font-size: 19px; font-weight: 500; }
.fig-label { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 44px;
}
.wallet-grid > * { min-width: 0; }

/* Einzahlungsadressen */
.addr-list { list-style: none; margin: 0 0 34px; padding: 0; }
.addr-list li { padding: 13px 0; border-top: 1px solid var(--line); }
.addr-list li:last-child { border-bottom: 1px solid var(--line); }
.addr-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 7px; }
.addr-coin { font-size: 13px; font-weight: 500; }
.addr-row { display: flex; align-items: center; gap: 10px; }
.addr {
  flex: 1;
  min-width: 0;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  font-size: 12.5px;
  overflow-x: auto;
  white-space: nowrap;
}
.copy { flex: none; }
.copy.done { border-color: rgba(61, 214, 140, 0.4); color: var(--up); }

@media (max-width: 640px) {
  .account-badges { margin-left: 0; width: 100%; }
  .balance-value { font-size: 36px; }
  .wallet-figures { gap: 24px; }
}

.visually-hidden {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.head-account {
  font-size: 14px;
  color: var(--muted);
  transition: color .15s ease;
  white-space: nowrap;
}
.head-account:hover { color: var(--text); }
