/* DrivePilot V3.6.4 – Führerschein Aufnahme im Kreditkartenformat */

body.modal-open{
  overflow:hidden;
}

.license-card-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}
.license-card-box{
  border:1px solid var(--line);
  border-radius:18px;
  background:#fbfdff;
  padding:14px;
}
.license-card-box h3{
  margin:0 0 12px;
  color:var(--navy);
  font-size:18px;
}
.license-preview{
  width:100%;
  aspect-ratio:85.6 / 54;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg,#eef8ff,#ffffff);
  border:2px dashed #b7d8ef;
  border-radius:16px;
  overflow:hidden;
  margin-bottom:12px;
}
.license-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.license-preview.empty::before{
  content:"Kreditkarten-Format";
  color:var(--muted);
  font-size:14px;
  font-weight:700;
}
.license-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.license-actions .btn{
  min-width:160px;
}
.license-file-hint{
  margin-top:8px;
  color:var(--muted);
  font-size:12px;
}

.license-camera-modal{
  position:fixed;
  inset:0;
  background:rgba(14,24,34,.62);
  backdrop-filter:blur(8px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
  padding:18px;
}
.license-camera-modal.open{
  display:flex;
}
.license-camera-sheet{
  width:min(760px, 100%);
  background:#fff;
  border-radius:24px;
  padding:16px;
  box-shadow:0 20px 60px rgba(0,0,0,.18);
}
.license-camera-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}
.license-camera-top h3{
  margin:0;
  color:var(--navy);
  font-size:22px;
}
.license-camera-hint{
  color:var(--muted);
  font-size:14px;
  margin:8px 0 14px;
}
.license-video-wrap{
  position:relative;
  width:100%;
  aspect-ratio:4 / 3;
  background:#0b1421;
  border-radius:18px;
  overflow:hidden;
}
.license-video-wrap video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.license-card-frame{
  position:absolute;
  left:50%;
  top:50%;
  width:min(78%, 560px);
  aspect-ratio:85.6 / 54;
  transform:translate(-50%,-50%);
  border:3px solid rgba(255,255,255,.98);
  border-radius:18px;
  box-shadow:0 0 0 9999px rgba(0,0,0,.32);
}
.license-card-frame::after{
  content:"Führerschein im Rahmen ausrichten";
  position:absolute;
  left:50%;
  bottom:-34px;
  transform:translateX(-50%);
  white-space:nowrap;
  color:#fff;
  font-size:13px;
  font-weight:700;
}
.license-camera-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
  margin-top:18px;
}
.license-camera-actions .btn.secondary{
  background:#eef6fb;
}

@media(max-width:700px){
  .license-card-grid{
    grid-template-columns:1fr;
  }
  .license-camera-top h3{
    font-size:18px;
  }
  .license-card-frame{
    width:84%;
  }
  .license-card-frame::after{
    font-size:11px;
    bottom:-28px;
  }
}
