/* /css/sections.css – Überarbeitete Version (breiten-konsistent, konfliktarm)
   =========================================================
   GFC – Sections
   - Dark Mode, Soft-Glass, GFC-Stil
   - Kein Override von global .card / global .note
   - Keine Container-Breiten-/Padding-Overrides
   - Hardening: keine doppelten Hero-Facts Definitionen, keine !important-Spaghetti
   - Safety-Mode: px -> rem 1:1 (16px Basis), Verhalten bleibt unverändert
   ========================================================= */

/* =========================================================
   GLOBAL SECTION WRAPPER
   ========================================================= */
.section {
  padding: 3rem 0; /* 48px */
  color: var(--sec-ink);
  background: transparent;
}

/* Lesbarkeit: NICHT global auf alle <p>.
   Stattdessen: nur für text-lastige Bereiche per Utility-Klasse. */
.prose p,
.section .prose p {
  max-width: 72ch;
}

/* =========================================================
   CTA-ROW (sections-scope)
   ========================================================= */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem; /* 12px */
  margin-top: 1.125rem; /* 18px */
}

/* =========================================================
   TILE / INFO / BOX-STYLES (Soft Glass Dark)
   (bewusst ohne .card / ohne .note)
   ========================================================= */
.tile,
.info,
.rm-body,
.embed-placeholder,
details,
.note-box {
  background: var(--sec-surface);
  border: 1px solid var(--sec-border);
  border-radius: var(--sec-radius);
  box-shadow: var(--sec-shadow);
  backdrop-filter: blur(1.125rem); /* 18px */
}

/* Optional: Glass-Variante für globale Cards */
.card.card--glass {
  background: var(--sec-surface);
  border-color: var(--sec-border);
  box-shadow: var(--sec-shadow);
  backdrop-filter: blur(1.125rem); /* 18px */
}

/* =========================================================
   TOKENOMICS GRID
   ========================================================= */
.tokenomics-grid {
  display: grid;
  gap: 1rem; /* 16px */
  margin: 1.5rem 0; /* 24px */
  grid-template-columns: repeat(auto-fit, minmax(11.25rem, 1fr)); /* 180px */
}

.tile { padding: 1.125rem; } /* 18px */
.tile h3 {
  font-size: 1.1rem;
  margin: 0 0 0.375rem; /* 6px */
  color: var(--sec-accent);
}

/* =========================================================
   INFO-GRID
   ========================================================= */
.info-grid {
  display: grid;
  gap: 1rem; /* 16px */
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); /* 240px */
  margin-top: 1.125rem; /* 18px */
}

.info { padding: 1rem; } /* 16px */
.info h3 {
  color: var(--sec-accent);
  margin: 0 0 0.375rem; /* 6px */
}

/* =========================================================
   CHECKLIST & STEPS
   ========================================================= */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem; /* 28px */
  margin: 0.625rem 0; /* 10px */
}

.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0.1em;
  color: var(--sec-accent-positive, #2ecf8f);
  font-weight: 700;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.steps li {
  padding-left: 2.125rem; /* 34px */
  margin: 0.625rem 0; /* 10px */
  position: relative;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.625rem;  /* 26px */
  height: 1.625rem; /* 26px */
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--sec-surface-soft);
  border: 1px solid var(--sec-border);
  color: var(--sec-accent);
  font-weight: 700;
}

/* =========================================================
   ROADMAP
   ========================================================= */
.roadmap {
  display: grid;
  gap: 1.125rem; /* 18px */
  max-width: min(68.75rem, 100%); /* 1100px */
  margin: 2rem 0 0; /* 32px */
}

.rm-item {
  display: grid;
  grid-template-columns: 8.75rem minmax(0, 1fr); /* 140px */
  gap: 1.5rem; /* 24px */
  align-items: flex-start;
}

.rm-time {
  position: relative;
  padding-left: 0.875rem; /* 14px */
  font-weight: 700;
  color: var(--sec-accent);
  background: none;
  border: 0;
}
.rm-time::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.375rem; /* 6px */
  width: 0.375rem;  /* 6px */
  height: 0.375rem; /* 6px */
  border-radius: 50%;
  background: var(--sec-accent);
}

.rm-body { padding: 0.875rem; } /* 14px */

@media (max-width: 35rem) { /* 560px */
  .rm-item { grid-template-columns: 1fr; }
}

/* =========================================================
   EMBED PLACEHOLDER
   ========================================================= */
.embed-placeholder {
  display: grid;
  place-items: center;
  height: 13.75rem; /* 220px */
  border: 0.125rem dashed var(--sec-accent); /* 2px */
  padding: 0.75rem; /* 12px */
  color: var(--sec-muted);
}

/* =========================================================
   HIGHLIGHT SECTION
   ========================================================= */
.section.highlight {
  border-top: 1px solid var(--sec-border);
  border-bottom: 1px solid var(--sec-border);
  padding: 2.25rem 0; /* 36px */
}

/* =========================================================
   NOTE BOX (local; not global .note)
   ========================================================= */
.note-box {
  padding: 0.75rem 0.875rem; /* 12px 14px */
  border-radius: var(--sec-radius);
  color: var(--sec-ink);
  border: 1px dashed var(--sec-border);
  background: var(--sec-surface);
}

/* =========================================================
   DETAILS (FAQ)
   ========================================================= */
details { padding: 0.75rem 0.875rem; } /* 12px 14px */
details + details { margin-top: 0.5rem; } /* 8px */

summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  outline: none;
}
summary::marker { content: ""; }

summary::after {
  content: "▾";
  float: right;
  opacity: 0.7;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
details[open] summary::after {
  transform: rotate(180deg);
  opacity: 1;
}
summary:focus-visible {
  outline: 0.125rem solid var(--sec-accent); /* 2px */
  outline-offset: 0.125rem; /* 2px */
}

/* Kompakte Liste ohne Bullets (für Contracts) */
.compact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.compact-list li { margin: 0.125rem 0; } /* 2px */

/* =========================================================
   TRANSPARENZ SECTION (IDs)
   ========================================================= */
#transparenz,
#transparency {
  background: var(--sec-bg-soft);
  color: var(--sec-ink);
}

/* =========================================================
   ERROR BANNER
   ========================================================= */
.gfc-error-banner {
  background: var(--sec-error-bg, #ef4444);
  color: var(--sec-error-ink, #ffffff);
  padding: 0.75rem 1rem; /* 12px 16px */
  border-radius: var(--sec-radius);
  text-align: center;
  font-size: 0.9375rem;
}

/* =========================================================
   HERO FACTS (Badges/Links) — stable grid (2 columns desktop, 1 column mobile)
   Ziel:
   - Desktop: immer 2 gleich breite Spalten
   - Mobile: 1 Spalte
   - Jede Badge/Link füllt die Zellenbreite (kein Spanning)
   - Optionaler Action-Block (.hero-facts-actions) kann Full-Width spannen
   ========================================================= */
.hero-facts {
  display: grid;
  grid-template-columns: 1fr; /* mobile default */
  gap: 0.75rem; /* 12px */
  max-width: 100%;
  align-items: stretch;
}

@media (min-width: 56.3125rem) { /* 901px */
  .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Items: occupy exactly one cell, fill width, wrap cleanly */
.hero-facts > .badge,
.hero-facts > a.badge {
  grid-column: auto;
  grid-row: auto;

  display: flex;
  align-items: center;
  justify-content: flex-start;

  width: 100%;
  min-width: 0;
  box-sizing: border-box;

  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Optional action wrapper spanning full width */
.hero-facts-actions {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.75rem; /* 12px */

  margin-top: 0.375rem; /* 6px */
  padding-top: 0.375rem; /* 6px */
  border-top: 1px solid var(--sec-border);
}

@media (min-width: 56.3125rem) { /* 901px */
  .hero-facts-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Actions: often “button-like” center alignment */
.hero-facts-actions > .badge,
.hero-facts-actions > a.badge {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   MOBILE (≤900px)
   ========================================================= */
@media (max-width: 56.25rem) { /* 900px */
  .tokenomics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-grid { grid-template-columns: 1fr; }

  .cta-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  /* Note: .btn is global; this just ensures full-width in section CTAs */
  .cta-row .btn { width: 100%; }
}
