/* ═══════════════════════════════════════════════════════════════
   NUKLEUS WALLET STYLES — Register-Kartei-Design
   Eingebettet in stufe1/2/3.html — ersetzt .details-table
═══════════════════════════════════════════════════════════════ */

/* ── Wallet-Bühne ──────────────────────────────────────────── */
.wallet-stage {
  background: #1A2F44;
  padding: 0 0 48px;
  overflow: visible;
}

/* Scroll-Hint */
.scroll-hint {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  max-width: 908px; margin: 0 auto;
  padding: 16px 24px 12px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.32);
  transition: opacity .5s;
  user-select: none;
}
.scroll-hint svg {
  width: 15px; height: 15px;
  stroke: rgba(255,255,255,.35); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  animation: hint-bounce 2.2s ease-in-out infinite;
}
@keyframes hint-bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}
@media (max-width: 640px) {
  .scroll-hint span { display: none; }
}

/* Stack-Container */
.wallet-stack {
  position: relative;
  max-width: 860px; margin: 0 auto;
  padding: 0 24px;
  /* Overflow visible: obere Register-Tabs ragen über Container hinaus */
  overflow: visible;
  user-select: none;
}
@media (max-width: 640px) {
  .wallet-stack { padding: 0 12px; }
}

/* ── Einzelne Kachel ───────────────────────────────────────── */
.w-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 36px rgba(0,0,0,.2);
  overflow: hidden;
  /* transition wird per JS gesetzt */
  will-change: transform, opacity;
  touch-action: pan-y;
}

/* ── Tab-Header (immer sichtbar) ────────────────────────────── */
.w-tab {
  display: flex; align-items: center; gap: 14px;
  padding: 0 20px;
  height: 60px;
  background: #fff;
  border-bottom: 1px solid var(--border, #e8edf2);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: background .28s, border-color .28s;
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 640px) {
  .w-tab {
    height: 68px;
    padding: 0 16px;
    gap: 12px;
  }
}

.w-card.is-active .w-tab {
  background: linear-gradient(135deg, var(--navy, #2D4D6A) 0%, var(--navy-mid, #3D6080) 100%);
  border-bottom-color: rgba(255,255,255,.1);
}

/* Ripple-Effekt bei Tap */
.w-tab::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: background .15s;
  pointer-events: none;
  border-radius: inherit;
}
.w-tab:active::after { background: rgba(255,255,255,.08); }

/* Nummern-Badge */
.w-nr {
  flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--gold-light, #FDF5E8);
  border: 1px solid var(--gold-border, #DEC99A);
  color: var(--gold-dark, #7A5E2D);
  font-family: 'Source Sans 3', sans-serif;
  font-size: .72rem; font-weight: 800; letter-spacing: .02em;
  display: flex; align-items: center; justify-content: center;
  transition: all .28s;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .w-nr { width: 38px; height: 38px; border-radius: 10px; }
}
.w-card.is-active .w-nr {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.28);
  color: #fff;
}

/* Tab-Text */
.w-tab-text { flex: 1; min-width: 0; }

.w-tab-title {
  font-family: 'Source Sans 3', sans-serif;
  font-size: .97rem; font-weight: 700;
  color: var(--text-dark, #343a40);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.25;
  transition: color .28s;
}
@media (max-width: 640px) {
  .w-tab-title { font-size: .92rem; }
}
.w-card.is-active .w-tab-title { color: #fff; }

.w-tab-sub {
  font-size: .75rem; font-weight: 400;
  color: var(--text-mid, #6A8FA8);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px; line-height: 1.3;
  transition: color .28s;
}
@media (max-width: 640px) {
  .w-tab-sub { font-size: .72rem; }
}
.w-card.is-active .w-tab-sub { color: rgba(255,255,255,.6); }

/* Chevron */
.w-chevron {
  flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy-light, #EEF3F8);
  border: 1px solid var(--navy-border, #C2D4E8);
  color: var(--navy, #2D4D6A);
  display: flex; align-items: center; justify-content: center;
  transition: all .35s cubic-bezier(.32,.72,0,1);
}
.w-chevron svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .35s cubic-bezier(.32,.72,0,1);
}
.w-card.is-active .w-chevron {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.3);
  color: #fff;
}
.w-card.is-active .w-chevron svg { transform: rotate(180deg); }

/* ── Card-Body ──────────────────────────────────────────────── */
.w-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .44s cubic-bezier(.32,.72,0,1), opacity .3s ease;
}
.w-card.is-active .w-body {
  max-height: none;
  overflow: visible;
  opacity: 1;
}



/* ── Card-Inhalte ───────────────────────────────────────────── */
.mod-desc {
  padding: 20px 22px 18px;
  font-size: .97rem; line-height: 1.85;
  color: var(--text-dark, #343a40);
  border-bottom: 1px solid var(--border, #e8edf2);
}
@media (max-width: 640px) {
  .mod-desc { padding: 16px 16px 14px; font-size: .93rem; }
}

.mod-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border, #e8edf2);
}
@media (max-width: 560px) { .mod-grid { grid-template-columns: 1fr; } }

.mod-col { padding: 16px 22px; background: var(--surface, #F8F9FB); }
.mod-col:first-child { border-right: 1px solid var(--border, #e8edf2); }
@media (max-width: 560px) {
  .mod-col { padding: 14px 16px; }
  .mod-col:first-child { border-right: none; border-bottom: 1px solid var(--border, #e8edf2); }
}
.mod-col h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: .74rem; font-weight: 700; color: var(--navy, #2D4D6A);
  text-transform: uppercase; letter-spacing: .08em;
  margin: 0 0 10px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border, #e8edf2);
}
.mod-col ul { list-style: none; margin: 0; padding: 0; }
.mod-col ul li {
  font-size: .9rem; line-height: 1.75;
  padding: 5px 0; border-bottom: 1px solid #f0f4f8;
  color: var(--text-dark, #343a40);
}
.mod-col ul li:last-child { border-bottom: none; }
.mod-col ul li strong { color: var(--navy, #2D4D6A); }

/* Compliance-Box */
.mod-compliance {
  background: var(--surface-warm, #F5F1EB);
  border-top: 2px solid var(--gold, #A8895A);
  padding: 14px 22px 20px;
}
@media (max-width: 640px) {
  .mod-compliance { padding: 12px 16px 18px; }
}
.mod-comp-title {
  font-family: 'Source Sans 3', sans-serif;
  font-size: .74rem; font-weight: 700; color: var(--navy, #2D4D6A);
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: 12px;
}
.mod-comp-row { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.mod-comp-col { flex: 1; min-width: 110px; }
@media (max-width: 640px) {
  .mod-comp-col { min-width: 100px; }
}
.mod-comp-label {
  font-size: .7rem; font-weight: 700; color: var(--text-mid, #6A8FA8);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px;
}
.comp-note { font-size: .8rem; color: #666; margin-top: 4px; }

/* Badges */
.badge-pflicht {
  display: inline-flex;
  background: #FEF3E2; color: #8A5A1E; border: 1px solid #E8C090;
  border-radius: 20px; padding: 2px 9px; font-size: .74rem; font-weight: 700;
}
.badge-keine {
  display: inline-flex;
  background: #EBF5EC; color: #3A7A44; border: 1px solid #B8D8BC;
  border-radius: 20px; padding: 2px 9px; font-size: .74rem; font-weight: 700;
}

/* Comp-Links */
.comp-link {
  display: inline-flex; padding: 2px 8px; border-radius: 20px;
  font-size: .75rem; font-weight: 600; text-decoration: none;
  transition: all .18s; white-space: nowrap;
  margin-right: 3px; margin-bottom: 3px;
}
.comp-link--reg {
  background: var(--navy-light, #EEF3F8); color: var(--navy, #2D4D6A);
  border: 1px solid var(--navy-border, #C2D4E8);
}
.comp-link--reg:hover { background: var(--navy, #2D4D6A); color: #fff; }
.comp-link--dsg {
  background: var(--gold-light, #FDF5E8); color: #7A5225;
  border: 1px solid var(--gold-border, #DEC99A);
}
.comp-link--dsg:hover { background: var(--gold-dark, #7A5E2D); color: #fff; }
.comp-link--glossar {
  background: #EBF5F0; color: #3A7D5E; border: 1px solid #B2D8C8;
}
.comp-link--glossar:hover { background: #3A7D5E; color: #fff; }

/* ── Dot-Navigation ─────────────────────────────────────────── */
.wallet-nav {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  max-width: 908px; margin: 0 auto;
  padding: 20px 0 6px;
}
.w-dot-nav {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.22); border: none; cursor: pointer; padding: 0;
  transition: all .3s; flex-shrink: 0;
}
.w-dot-nav.w-dot-active {
  background: var(--gold, #A8895A); width: 22px; border-radius: 4px;
}

/* ── Swipe-Geste-Hint (Mobile) ──────────────────────────────── */
.swipe-hint {
  display: none;
  text-align: center;
  max-width: 908px; margin: 0 auto;
  padding: 8px 0 0;
  font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.3);
}
@media (max-width: 680px) { .swipe-hint { display: block; } }

/* ── CTA Bereich ────────────────────────────────────────────── */
.wallet-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  padding: 32px 24px 48px;
  max-width: 908px; margin: 0 auto;
}
@media (max-width: 640px) {
  .wallet-cta { padding: 24px 16px 40px; gap: 10px; }
}
.wallet-cta .cta-button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 8px;
  font-size: .9rem; font-weight: 700; text-decoration: none;
  transition: all .2s; border: none; cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE ACCORDION STYLES (≤ 768 px)
   Kein absolutes Positioning — normaler Dokumentenfluss
═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* Stack: normaler Flow */
  .wallet-stack.mode-accordion {
    height: auto !important;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  /* Kacheln: Desktop-Optik — statisch, volle Breite, identischer Shadow */
  .wallet-stack.mode-accordion .w-card {
    position: static !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    transform: none !important;
    border-radius: 16px;
    box-shadow: 0 8px 36px rgba(0,0,0,.2) !important;
    transition: box-shadow .35s ease !important;
  }

  /* Aktive Kachel: leicht verstärkter Shadow als Fokus-Akzent */
  .wallet-stack.mode-accordion .w-card.is-active {
    box-shadow: 0 12px 40px rgba(0,0,0,.24) !important;
  }

  /* Tab: grössere Touch-Fläche, kein Tap-Delay */
  .wallet-stack.mode-accordion .w-tab {
    height: 72px;
    min-height: 72px;
    padding: 0 18px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    gap: 13px;
  }

  /* Haptisches Tap-Feedback — visueller Press-Effekt */
  .wallet-stack.mode-accordion .w-tab.tapped {
    transform: scale(0.985);
    transition: transform .1s ease;
  }

  /* Nummer-Badge etwas grösser */
  .wallet-stack.mode-accordion .w-nr {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: .8rem;
  }

  /* Titel etwas grösser für mobile Lesbarkeit */
  .wallet-stack.mode-accordion .w-tab-title {
    font-size: .95rem;
  }

  /* Body: CSS-Transition (JS setzt max-height inline) */
  .wallet-stack.mode-accordion .w-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
  }
  .wallet-stack.mode-accordion .w-card.is-active .w-body {
    max-height: none;
    overflow: visible;
    opacity: 1;
  }

  /* Inhalt: kompakter auf Mobile */
  .wallet-stack.mode-accordion .mod-desc {
    padding: 16px 16px 14px;
    font-size: .93rem;
    line-height: 1.8;
  }

  .wallet-stack.mode-accordion .mod-grid {
    grid-template-columns: 1fr;
  }
  .wallet-stack.mode-accordion .mod-col:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border, #e8edf2);
  }
  .wallet-stack.mode-accordion .mod-col {
    padding: 14px 16px;
  }
  .wallet-stack.mode-accordion .mod-compliance {
    padding: 12px 16px 18px;
  }

  /* Wallet-Stage auf Mobile: kein Abstand oben */
  .wallet-stage {
    padding-top: 8px;
  }

  /* CTA-Buttons: volle Breite auf sehr kleinen Screens */
  @media (max-width: 420px) {
    .wallet-cta .cta-button {
      flex: 1 1 100%;
      justify-content: center;
    }
  }
}

/* ═══════════════════════════════════════════════════════════════
   WALLET PAGE HEADER — Nav + Banner in einheitlichem Container
   Garantiert identische Ausrichtung mit den Kacheln
═══════════════════════════════════════════════════════════════ */
.wallet-page-header {
  max-width: 908px;
  margin: 0 auto;
  padding: 0 24px;
}
.wallet-page-header .stufe-nav {
  /* Überschreibt eigenständige Zentrierung — Elterncontainer übernimmt */
  max-width: none;
  margin: 0;
  padding: 18px 0 0;
}
.wallet-page-header .intro-wrap {
  max-width: none;
  margin: 0;
  padding: 20px 0 0;
}
@media (max-width: 640px) {
  .wallet-page-header {
    padding: 0 12px;
  }
  .wallet-page-header .stufe-nav {
    padding: 14px 0 0;
  }
  .wallet-page-header .intro-wrap {
    padding: 16px 0 0;
  }
}
