/* =========================================================================
   Bona Vita® Portal · bv-tresor-gate.css (Welle 4a — Schritt 1)
   Biometrie-Dialog vor Tresor-Öffnung
   ========================================================================= */

dialog.tg-dialog{
  border:none;
  padding:0;
  background:transparent;
  max-width:460px;
  width:min(92vw, 460px);
  color:#0f1d3f;
  position:fixed;
  inset:0;
  margin:auto;
  height:max-content;
  max-height:calc(100vh - 32px);
  outline:none;
}
dialog.tg-dialog::backdrop{
  background:
    radial-gradient(circle at center, rgba(15,29,63,.75), rgba(15,29,63,.92));
  backdrop-filter:blur(6px);
}

.tg-body{
  position:relative;
  background:#ffffff;
  border-radius:18px;
  padding:36px 34px 28px 34px;
  box-shadow:
    0 24px 64px rgba(0,0,0,.45),
    0 0 0 1px rgba(184,148,90,.32);
  text-align:center;
}

.tg-close{
  position:absolute;
  top:10px; right:12px;
  background:transparent;
  border:none;
  font-size:24px;
  line-height:1;
  color:rgba(15,29,63,.45);
  cursor:pointer;
  padding:6px 10px;
  border-radius:8px;
  transition:background .15s, color .15s;
}
.tg-close:hover{
  background:rgba(15,29,63,.06);
  color:rgba(15,29,63,.85);
}

.tg-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:108px; height:108px;
  margin:0 auto 14px auto;
  border-radius:28px;
  background:
    radial-gradient(circle at 50% 40%, #15275a 0%, #0f1d3f 78%);
  color:#d8c196;
  position:relative;
  transition:box-shadow .3s, color .3s, background .3s;
  box-shadow: 0 0 0 0 rgba(184,148,90,0);
}
.tg-icon svg.tg-bio-icon{
  display:block;
}
.tg-icon--idle{
  box-shadow: 0 6px 22px rgba(15,29,63,.25);
}
.tg-icon--scanning{
  animation: tg-scan-pulse 1.1s ease-in-out infinite;
}
.tg-icon--scanning::before{
  content:'';
  position:absolute;
  left:10%; right:10%;
  top:46%;
  height:2px;
  background:linear-gradient(90deg, transparent, #b8945a, transparent);
  border-radius:2px;
  animation: tg-scanline 1.4s ease-in-out infinite;
}
.tg-icon--ok{
  color:#eaf4ea;
  background: radial-gradient(circle at 50% 40%, #1d4b2b 0%, #11361d 80%);
  box-shadow: 0 0 0 6px rgba(76, 175, 80, .18);
}
.tg-icon--ok::after{
  content:'';
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.12), transparent 60%);
}
.tg-icon--err{
  color:#f6d9d9;
  background: radial-gradient(circle at 50% 40%, #5a1a1a 0%, #3c0f0f 80%);
  box-shadow: 0 0 0 6px rgba(200, 70, 70, .18);
}
.tg-icon--pin{
  font-size:44px;
  line-height:1;
}

@keyframes tg-scan-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(184,148,90,.38); }
  50%     { box-shadow: 0 0 0 14px rgba(184,148,90,0); }
}
@keyframes tg-scanline {
  0%   { transform: translateY(-24px); opacity:0; }
  20%  { opacity:1; }
  80%  { opacity:1; }
  100% { transform: translateY(24px); opacity:0; }
}

.tg-title{
  font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  font-weight:500;
  font-size:26px;
  letter-spacing:.2px;
  margin:2px 0 6px 0;
  color:#0f1d3f;
}
.tg-sub{
  margin:0 0 8px 0;
  font-size:14.5px;
  color:rgba(15,29,63,.78);
  line-height:1.5;
}
.tg-meta{
  margin:0 0 18px 0;
  font-size:12px;
  letter-spacing:.8px;
  text-transform:uppercase;
  color:rgba(15,29,63,.48);
}

.tg-actions{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:14px;
}
.tg-btn{
  appearance:none;
  border:1px solid transparent;
  padding:12px 18px;
  border-radius:10px;
  font-size:14.5px;
  font-weight:500;
  cursor:pointer;
  font-family:inherit;
  transition:background .15s, border-color .15s, transform .1s, box-shadow .15s;
}
.tg-btn[disabled]{ opacity:.55; cursor:progress; }
.tg-btn--gold{
  background:#b8945a;
  color:#fff;
  border-color:#b8945a;
  box-shadow: 0 2px 10px rgba(184,148,90,.28);
}
.tg-btn--gold:hover:not([disabled]){
  background:#a6834d;
  border-color:#a6834d;
  transform:translateY(-1px);
}
.tg-btn--ghost{
  background:#fff;
  color:rgba(15,29,63,.78);
  border-color:rgba(15,29,63,.2);
}
.tg-btn--ghost:hover{
  background:rgba(15,29,63,.04);
  border-color:rgba(15,29,63,.34);
}

.tg-alt{
  margin-top:6px;
  padding-top:12px;
  border-top:1px dashed rgba(15,29,63,.14);
}
.tg-link{
  background:transparent;
  border:none;
  color:rgba(15,29,63,.6);
  font-size:13px;
  cursor:pointer;
  padding:6px 10px;
  border-radius:6px;
  font-family:inherit;
  text-decoration:underline;
  text-decoration-color:rgba(15,29,63,.25);
  text-underline-offset:3px;
}
.tg-link:hover{
  color:#0f1d3f;
  background:rgba(15,29,63,.04);
}

.tg-pin{
  display:block;
  margin:8px auto;
  width:180px;
  text-align:center;
  padding:14px 10px;
  font-size:22px;
  letter-spacing:10px;
  border:1.5px solid rgba(15,29,63,.2);
  border-radius:10px;
  background:#fafbfd;
  color:#0f1d3f;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  outline:none;
  transition:border-color .15s, background .15s;
}
.tg-pin:focus{
  border-color:#b8945a;
  background:#fff;
  box-shadow:0 0 0 3px rgba(184,148,90,.18);
}
.tg-pin + .tg-pin{ margin-top:2px; }

.tg-error{
  margin:8px auto 4px auto;
  font-size:13px;
  color:#a23333;
  min-height:16px;
}

.tg-hint-ki{
  margin:16px 0 0 0;
  padding-top:12px;
  border-top:1px dashed rgba(15,29,63,.1);
  font-size:10px;
  letter-spacing:1.4px;
  text-transform:uppercase;
  color:rgba(15,29,63,.42);
}

/* Mobile */
@media (max-width: 480px){
  .tg-body{ padding:28px 22px 22px 22px; }
  .tg-title{ font-size:22px; }
  .tg-icon{ width:92px; height:92px; }
}
