/* =========================
   GFC Presale – presale.css (v2.5 – unified buttons + topbar socials)
   Premium/Trust: klares Layout, ruhige Tiefe, starke Typo
   Optimiert: Rem-Units, Mobile-First, Reduced Effects
   =========================

   Überarbeitung (No-Regression-Intent):
   - Desktop bleibt unverändert.
   - iPhone 14 Pro Max (~430px) bleibt unverändert.
   - Added: Micro-Breakpoint <=390px (nur kleine Dichte-/Overflow-Fixes).
   - Fix: verhindert seltene X-Overflows durch min-width / long tokens.
   - Fix: Social-Pills + Topbar verhalten sich in 391–900px deterministisch (ohne Design-Shift).
*/

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

html,
body { height: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background:
    radial-gradient(75rem 50rem at 25% -10%, rgba(92,200,255,.12), transparent 60%),
    radial-gradient(56.25rem 37.5rem at 85% 120%, rgba(46,207,143,.10), transparent 60%),
    var(--bg);
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: .2px;
}

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

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

.section { padding: 4rem 0; }

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 1.375rem;
  letter-spacing: .2px;
}

/* leichtes Spacing zwischen Section-Headline und Einleitungstext */
.section-title + p { margin-top: 0.375rem; }

/* ---------- Hero ---------- */
.presale-hero {
  position: relative;
  overflow: clip;
  padding: 5.625rem 0 2.5rem; /* vorher 5.625rem */
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 55%),
    radial-gradient(50rem 23.75rem at 50% -10%, rgba(92,200,255,.20), transparent 60%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* IMPORTANT:
   - Keep your current presale container width (do not rely on global .container).
   - Adds min-width:0 for safe shrinking inside flex/grid contexts.
*/
.presale-hero .container,
.section .container,
.container {
  width: min(70rem, 92%);
  margin-inline: auto;
  min-width: 0;
}

.presale-hero .container { position: relative; z-index: 1; }

/* ---------- Hero-Logo / Layout (Presale) ---------- */
.hero-layout {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2.25rem;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
}

.hero-logo { flex-shrink: 0; }

.hero-logo-img {
  height: 7.5rem;
  width: auto;
  display: block;
  filter: drop-shadow(0 0.25rem 0.75rem rgba(0,0,0,.25));
  transition: transform .25s ease, opacity .25s ease;
  position: relative;
  z-index: 1;
}
.hero-logo-img:hover { transform: scale(1.04); opacity: .95; }

/* Hero main: kein Overflow */
.hero-main { min-width: 0; }

/* ---------- Language switch ---------- */
.hero-lang-switch {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  margin-bottom: .5rem;
  flex-wrap: wrap;
  min-width: 0;
}

/* ---------- Topbar (Left + Socials + Right) ---------- */
.hero-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  color: var(--ink-muted);
  margin-bottom: .75rem;
  min-width: 0;
}

.hero-topbar-left,
.hero-topbar-right {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  min-width: 0;
  flex: 0 0 auto;
}

.hero-topbar-left .divider {
  width: 1px;
  height: 1.125rem; /* 18px */
  background: var(--border);
  opacity: .9;
}

/* Socials in der Topbar: 6 in einer Reihe */
.hero-socials.hero-socials-top {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.hero-socials.hero-socials-top .social-list {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem; /* 10px */
  flex-wrap: nowrap;          /* desktop: 1 Reihe */
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 0;
}

/* Social-Pills (ruhig, referenziell, nicht CTA) */
.hero-socials .social-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem; /* 7px */
  padding: 0.4375rem 0.75rem; /* 7px 12px */
  border-radius: 999px;

  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.2;

  color: var(--ink-muted);
  text-decoration: none;

  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.03);

  transition:
    transform .15s ease,
    box-shadow .2s ease,
    background-color .2s ease,
    border-color .2s ease,
    color .15s ease;
}

.hero-socials .social-icon {
  width: 1.125rem;  /* 18px */
  height: 1.125rem; /* 18px */
  opacity: 0.92;
  flex-shrink: 0;
  display: inline-block;
  object-fit: contain;
  object-position: center;

  filter:
    drop-shadow(0 0 0.375rem rgba(92,200,255,0.35)) /* 6px */
    drop-shadow(0 0 0.875rem rgba(92,200,255,0.18)); /* 14px */

  transition:
    opacity .15s ease,
    filter .2s ease,
    transform .15s ease;
}

.hero-socials svg.social-icon { fill: currentColor; }

.hero-socials .social-list a:hover,
.hero-socials .social-list a:focus-visible {
  color: var(--ink);
  border-color: rgba(92,200,255,0.35);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0.625rem 1.375rem rgba(0,0,0,0.26); /* 10px 22px */
}

.hero-socials .social-list a:hover .social-icon,
.hero-socials .social-list a:focus-visible .social-icon {
  opacity: 1;
  filter:
    drop-shadow(0 0 0.5625rem rgba(92,200,255,0.65)) /* 9px */
    drop-shadow(0 0 1.25rem rgba(92,200,255,0.32));  /* 20px */
  transform: translateY(-1px) scale(1.03);
}

.hero-socials .social-list a:focus-visible {
  outline: 0.1875rem solid rgba(92,200,255,.45); /* 3px */
  outline-offset: 0.125rem; /* 2px */
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--surface), transparent);
  font-size: 0.75rem;
  white-space: nowrap;
  max-width: 100%;
}
.badge-soft { background: transparent; }

.mono {
  font-variant-ligatures: none;
  font-feature-settings: "tnum" on, "lnum" on;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* ---------- Title / Subtitle ---------- */
.presale-title {
  font-size: var(--step-1);
  line-height: 1.1;
  margin: 0.5rem 0 0.75rem;
}
.presale-subtitle {
  font-size: var(--step-2);
  color: var(--ink-muted);
  margin: 0 0 1.625rem;
}

.text-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-link:hover { color: var(--accent); }

/* ---------- Trust-Facts im Hero ---------- */
.hero-facts {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin: .5rem 0 1rem;
  min-width: 0;
}
.hero-facts .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------- Card Frame ---------- */
.card {
  position: relative;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), transparent 160%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  min-width: 0;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(92,200,255,.18),
    rgba(92,200,255,0) 40%,
    rgba(46,207,143,.15) 100%
  );
  opacity: .9;
}

/* ---------- Countdown ---------- */
.countdown-card {
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  position: relative;
  min-width: 0;
}
.countdown-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(92,200,255,.22),
    rgba(92,200,255,0) 55%,
    rgba(46,207,143,.18) 100%
  );
  opacity: .22;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 0.875rem;
  text-align: center;
}

.cd-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.875rem 0.625rem;
  min-width: 0;
}
.cd-item span {
  display: block;
  font-size: 1.625rem;
  font-weight: 800;
}
.cd-item small {
  display: block;
  opacity: .8;
  font-size: 0.75rem;
}
.countdown-note {
  margin: 0.75rem 0.25rem 0;
  color: var(--ink-muted);
  font-size: 0.875rem;
}

/* ---------- Buttons (Unified, presale-scope) ---------- */
.btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.03);
  color: var(--ink);
  border-radius: 0.875rem; /* 14px */
  padding: 0.875rem 1.25rem; /* 14px 20px */
  min-height: 3.25rem; /* 52px */
  font-weight: 750;
  letter-spacing: .2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem; /* 10px */
  text-decoration: none;

  transition:
    transform .15s ease,
    box-shadow .15s ease,
    background-color .15s ease,
    border-color .15s ease,
    color .15s ease,
    filter .15s ease;
}

.btn:focus-visible {
  outline: 0.1875rem solid rgba(92,200,255,.45); /* 3px */
  outline-offset: 0.125rem; /* 2px */
  border-color: rgba(92,200,255,.55);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
  }
}
.btn:active { transform: translateY(0); }

.btn[aria-disabled="true"],
.btn:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none !important;
  filter: none !important;
}

/* Variants */
.btn-primary {
  border-color: rgba(92,200,255,.55);
  background: linear-gradient(180deg, rgba(92,200,255,.26), rgba(92,200,255,.12));
  box-shadow: 0 0.625rem 1.625rem rgba(92,200,255,0.22); /* 10px 26px */
  color: var(--ink);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    box-shadow: 0 0.75rem 1.875rem rgba(92,200,255,0.28); /* 12px 30px */
    background: linear-gradient(180deg, rgba(92,200,255,.30), rgba(92,200,255,.14));
  }
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.22);
}
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.34);
    box-shadow: 0 0.625rem 1.375rem rgba(0,0,0,0.24); /* 10px 22px */
  }
}

/* Secondary (falls genutzt) */
.btn-secondary {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.20);
}
@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.32);
  }
}

/* Outline + Small (für untergeordnete CTAs, falls später gebraucht) */
.btn-outline {
  background: transparent;
  border-color: rgba(92,200,255,.35);
}
.btn-small {
  min-height: 2.5rem; /* 40px */
  padding: 0.625rem 0.875rem; /* 10px 14px */
  border-radius: 0.75rem; /* 12px */
  font-weight: 650;
  font-size: .95rem;
}

/* CTA Row */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.125rem;
}

/* ---------- Text / Small ---------- */
.tiny-muted {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 0.5rem;
}

.pill {
  margin-left: 0.625rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

/* ---------- Buy Card (Grid) ---------- */
.buy-card {
  display: grid;
  gap: 1.625rem;
  grid-template-columns: 1fr;
  padding: 0.625rem;
}

@media (min-width: 60rem) { /* 960px */
  .buy-card {
    grid-template-columns: minmax(0,1.1fr) minmax(18.75rem,.9fr); /* 300px */
    align-items: stretch;
  }
}

/* Spalten = Cards (gleich hohe Panels) */
.buy-left,
.buy-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--surface), transparent 160%);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
  min-width: 0; /* prevent clipping in 2-col */
}

/* ---------- Coin-Auswahl & Rechner ---------- */
.label {
  display: block;
  font-weight: 800;
  margin: 0.25rem 0 0.625rem;
  letter-spacing: .2px;
  font-size: 0.9375rem;
}

.price-box {
  margin-top: 0.125rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  background: linear-gradient(180deg, var(--surface), transparent 120%);
  min-width: 0;
}
.price-box > p {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
  white-space: normal;
  min-width: 0;
}
.price-box .pill { flex: 0 0 auto; }

.calc { margin-top: 0.875rem; }

.swap-grid { display: grid; gap: 0.875rem; min-width: 0; }
.swap-row {
  display: grid;
  grid-template-columns: 8.75rem 1fr;
  gap: 0.875rem;
  align-items: center;
  min-width: 0;
}

.rate-label {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  font-weight: 600;
  letter-spacing: .2px;
}

/* Einheitliche Inputs (Desktop + Mobile) */
#asset,
#asset-amount {
  width: 100%;
  height: var(--control-h);
  padding: 0 0.875rem;
  display: flex;
  align-items: center;
  background: #1f2937;
  color: #e5e7eb;
  border: 1px solid rgba(0,0,0,0.25);
  border-radius: 0.75rem;
  font-size: 1rem !important; /* Mobile: kein Auto-Zoom */
  min-width: 0;
}

#asset::placeholder,
#asset-amount::placeholder { color: rgba(229,231,235,0.55); }

#asset:focus,
#asset-amount:focus {
  outline: 0.1875rem solid rgba(92,200,255,0.30); /* 3px */
  outline-offset: 0.125rem; /* 2px */
  border-color: rgba(92,200,255,0.45);
}

.rate-out {
  display: inline-flex;
  gap: 0.625rem;
  align-items: baseline;
  font-weight: 800;
  font-size: 1.125rem;
  min-width: 0;
}
.rate-out .unit { opacity: .7; }

.buy-actions { margin-top: auto; min-width: 0; }

/* ---------- Aside (rechte Spalte) ---------- */
.info-list {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  border: none;
  border-radius: 1rem;
  background: transparent;
  flex: 1;
  min-width: 0;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.625rem;
  min-height: var(--row-h);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: linear-gradient(180deg, var(--surface), transparent);
  min-width: 0;
}

.info-label {
  opacity: .75;
  font-weight: 600;
  line-height: 1;
  min-width: 0;
}

.info-value {
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 62%;
  min-width: 0;
}

.info-item .mono,
.info-item .mono a {
  font-size: 0.8125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  min-width: 0;
}

.link-list { display: grid; gap: 0.625rem; min-width: 0; }
.link-list .btn {
  height: var(--control-h);
  min-height: var(--control-h);
  display: flex;
  align-items: center;
}

/* Assurances */
.assurances {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.375rem;
  color: var(--ink-muted);
  min-width: 0;
}
.assurance {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  min-width: 0;
}
.assurance .dot {
  width: 0.5625rem;
  height: 0.5625rem;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0.1875rem rgba(46,207,143,.18);
}

/* ---------- Howto (scoped) ---------- */
#howto .howto-box {
  border: 1px solid var(--border, rgba(15,23,42,.12));
  background: var(--surface, rgba(255,255,255,.04));
  border-radius: var(--radius-xl, 1.375rem); /* 22px */
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.125rem;
  min-width: 0;
}

#howto .howto-aside {
  border: 1px solid var(--border, rgba(15,23,42,.12));
  background: var(--surface-2, rgba(255,255,255,.06));
  border-radius: var(--radius, 0.875rem); /* 14px */
  padding: 1rem;
  min-width: 0;
}

#howto .h3 { font-size: 1.125rem; margin: 0 0 0.625rem; }
#howto .h4 { font-size: 1rem; margin: 1rem 0 0.5rem; }

#howto .checklist,
#howto .bullets { margin: 0; padding-left: 1.125rem; }

#howto .checklist li,
#howto .bullets li { margin: 0.375rem 0; list-style: disc; }

#howto .note,
#howto .tip {
  border: 1px dashed var(--border, rgba(15,23,42,.18));
  border-radius: 0.625rem;
  padding: 0.625rem 0.75rem;
  font-size: .95rem;
  background: rgba(255,255,255,.04);
  min-width: 0;
}

#howto .steps {
  counter-reset: howto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

#howto .step {
  border: 1px solid var(--border, rgba(15,23,42,.12));
  background: var(--surface, rgba(255,255,255,.04));
  border-radius: var(--radius, 0.875rem); /* 14px */
  padding: 0.875rem;
  min-width: 0;
}

#howto .step-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.625rem;
  align-items: center;
  margin-bottom: 0.375rem;
  min-width: 0;
}

#howto .step-num {
  width: 1.75rem;
  height: 1.75rem;
  line-height: 1.75rem;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  border: 1px solid var(--border, rgba(15,23,42,.2));
  background: var(--bg, #0b0d12);
  color: var(--ink, #eaf2f7);
}

#howto .step-title { margin: 0; font-size: 1.05rem; }
#howto .step-text { margin: 0.375rem 0 0.5rem; color: var(--ink-muted, rgba(234,242,247,.78)); }

#howto .howto-faq details {
  border: 1px solid var(--border, rgba(15,23,42,.12));
  border-radius: 0.625rem;
  padding: 0.625rem 0.75rem;
  background: var(--surface, rgba(255,255,255,.04));
}
#howto .howto-faq details + details { margin-top: 0.5rem; }
#howto .howto-faq summary { cursor: pointer; font-weight: 600; }

#howto .footnote { margin: 0; }

@media (min-width: 56.25rem) { /* 900px */
  #howto .howto-box { grid-template-columns: 20rem 1fr; gap: 1.25rem; }
}

/* ---------- Disclaimer ---------- */
.disclaimer {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.125rem;
  background: linear-gradient(180deg, var(--surface), transparent 160%);
  min-width: 0;
}
.disclaimer h3 { margin-top: 0; }

/* ---------- Presale Info: kompakte Liste ---------- */
#presale-info .compact {
  list-style: none;
  margin: 0;
  padding: 0;
}
#presale-info .compact li {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
}
#presale-info .compact li:first-child { border-top: 0; }
#presale-info .compact li strong {
  min-width: 8.125rem;
  color: var(--brand-blue);
  font-weight: 700;
}

/* ---------- Two-Col Container ---------- */
.container.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.375rem;
  min-width: 0;
}

@media (min-width: 61.25rem) { /* 980px */
  .container.two-col {
    grid-template-columns: 1.1fr .9fr;
    align-items: flex-start;
  }
}

/* ---------- Alt Sections ---------- */
.section.alt {
  background: linear-gradient(180deg, var(--surface), transparent 160%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------- Tokenomics-Aside ---------- */
.tokenomics-aside {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem;
  background: linear-gradient(180deg, var(--surface), transparent 140%);
  min-width: 0;
}

/* ---------- Details / Summary (Mini-FAQ) ---------- */
.section details {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.625rem 0.75rem;
  background: linear-gradient(180deg, var(--surface), transparent 140%);
}
.section details + details { margin-top: 0.625rem; }

.section summary {
  cursor: pointer;
  font-weight: 700;
  outline: none;
}
.section summary::-webkit-details-marker { display: none; }
.section summary::after {
  content: "▾";
  float: right;
  opacity: .7;
  transition: transform .2s ease;
}
.section details[open] summary::after { transform: rotate(180deg); }

/* ---------- Utility ---------- */
:root {
  --line: var(--border);
  --brand-blue: var(--accent);
}

.w-full { width: 100%; }
.small { font-size: .875rem; }
.muted { color: var(--ink-muted); }

/* Monospace-Links */
.mono a { font-family: inherit; text-decoration: none; }

/* Trust-Zeile (Transparenz & Sicherheit) */
#trust-title + .assurances { margin-top: 0.5rem; }

/* Refund-Box Feinheiten */
#refund-title { margin-top: 0; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .buy-left,
  .buy-aside {
    transition: box-shadow .25s ease, transform .25s ease;
  }
  .buy-left:hover,
  .buy-aside:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
  }
}

/* =========================
   Mobile-Optimierung (Presale)
   ========================= */
@media (max-width: 56.25rem) { /* 900px */
  html, body { overflow-x: hidden; }

  .presale-hero { padding: 4.5rem 0 2rem; } /* 72px 0 32px */

  .hero-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.125rem; /* 18px */
  }

  .hero-logo-img { height: 6rem; } /* 96px */

  .presale-title { font-size: clamp(1.5rem, 6vw, 1.875rem); } /* 24px–30px */

  .presale-subtitle {
    font-size: clamp(0.9375rem, 4vw, 1.125rem); /* 15px–18px */
    margin-bottom: 1.125rem; /* 18px */
  }

  .section { padding: 3rem 0; } /* 48px */

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-row .btn { width: 100%; }

  /* Topbar: auf Mobile sauber stacken */
  .hero-topbar {
    flex-wrap: wrap;
    gap: 0.625rem;
    align-items: flex-start;
  }
  .hero-topbar-left,
  .hero-topbar-right { flex: 0 0 auto; }

  .hero-socials.hero-socials-top {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .hero-socials.hero-socials-top .social-list {
    flex-wrap: wrap;             /* mobile: Umbruch erlaubt */
    gap: 0.625rem 0.75rem;       /* 10px 12px */
  }
}

@media (max-width: 40rem) { /* 640px */
  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 0.625rem; /* 10px */
  }

  .cd-item { padding: 0.625rem 0.5rem; } /* 10px 8px */
  .cd-item span { font-size: 1.25rem; } /* 20px */
  .cd-item small { font-size: 0.6875rem; } /* 11px */
  .countdown-note { font-size: 0.8125rem; } /* 13px */

  .info-item {
    padding: 0.625rem 0.5rem; /* 10px 8px */
    min-height: 2.875rem; /* 46px */
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .info-value {
    flex: 1 1 auto;
    text-align: right;
    max-width: 100%;
    white-space: normal;
  }

  .info-item .mono,
  .info-item .mono a {
    word-break: break-all;
    white-space: normal;
  }

  /* Socials auf sehr kleinen Phones: 2 Zeilen à 3 */
  .hero-socials.hero-socials-top .social-list {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    justify-content: start;
    gap: 0.625rem 0.75rem; /* 10px 12px */
  }
}

/* Micro-fixes for very small phones (<=390px)
   - does NOT affect iPhone 14 Pro Max (430px)
*/
@media (max-width: 24.375rem) { /* 390px */
  .hero-socials .social-list a {
    padding: 0.375rem 0.625rem; /* 6px 10px */
    font-size: 0.86rem;
  }
  .hero-socials .social-icon {
    width: 1rem;  /* 16px */
    height: 1rem; /* 16px */
  }

  .swap-row {
    grid-template-columns: 7.5rem 1fr; /* prevents label squeezing + overflow */
  }

  .section-title {
    font-size: 1.6rem;
  }

  /* keep buttons tappable but slightly denser */
  .btn {
    padding: 0.8125rem 1rem; /* 13px 16px */
    min-height: 3.125rem; /* 50px */
  }
}

/* =========================
   Wallet Cards (kompakt)
   ========================= */
.cards-group { margin: 2.25rem 0; }

.cards-group .h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.875rem;
  color: var(--ink);
}

.cards-group .cards-list {
  display: grid;
  gap: 0.625rem;
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cards-group .cards-list > li { margin: 0; }

.cards-group .card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--bg-soft);
  padding: 0.625rem 0.875rem;
  box-shadow: none;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
  margin: 0;
}

/* generisches Card-Overlay hier deaktivieren */
.cards-group .card::before { content: none; }

.cards-group .card:hover {
  background: var(--surface);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.cards-group .card-header { margin-bottom: 0.375rem; }

.cards-group .card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.cards-group .addr-link {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9rem;
  color: var(--ink-muted);
  word-break: break-all;
  transition: color .2s ease;
}
.cards-group .addr-link:hover { color: var(--accent); }

.cards-group .card-body { padding: 0; margin-bottom: 0.5rem; }

.cards-group .card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: none;
  padding-top: 0.25rem;
  min-width: 0;
}

.cards-group .btn.copy-btn,
.cards-group .btn.btn-secondary {
  font-size: .8rem;
  padding: 0.625rem 0.875rem; /* 10px 14px */
  min-height: 2.5rem; /* 40px */
  border-radius: 0.75rem; /* 12px */
}

.cards-group .small { font-size: .8rem; }
.cards-group .muted { opacity: .75; font-size: .8rem; }

@media (min-width: 50rem) { /* 800px */
  .cards-group .cards-list { grid-template-columns: repeat(2, 1fr); }
}
