/* ═══════════════════════════════════════════════════════════
   Detektiv-Ausweis-Generator – Styling
   ═══════════════════════════════════════════════════════════ */

/* ── Aktions-Leiste ── */
.da-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

/* ── Buttons ── */
.da-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.da-btn--print {
  background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(245,158,11,0.05));
  border-color: rgba(245,158,11,0.4);
  color: #f59e0b;
}
.da-btn--print:hover {
  background: linear-gradient(135deg, rgba(245,158,11,0.25), rgba(245,158,11,0.1));
  box-shadow: 0 0 20px rgba(245,158,11,0.25);
  transform: translateY(-1px);
}

.da-btn--reset {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.15);
  color: #cbd5e1;
}
.da-btn--reset:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
}

/* ── Zwei-Spalten-Layout ── */
.da-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .da-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.da-col-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
}

/* ── Formular-Felder ── */
.da-field {
  margin-bottom: 18px;
}

.da-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 500px) {
  .da-field-row {
    grid-template-columns: 1fr;
  }
}

.da-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.da-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.1);
  color: #e2e8f0;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}

.da-input:focus {
  outline: none;
  border-color: rgba(245,158,11,0.5);
  background: rgba(255,255,255,0.06);
}

.da-field-hint {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 4px;
}

/* ── Laminier-Hinweis ── */
.da-laminier-hinweis {
  text-align: center;
  font-size: 0.85rem;
  color: #f59e0b;
  margin-top: 16px;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   Ausweis-Vorschau (Kreditkartengröße)
   ═══════════════════════════════════════════════════════════ */
.da-ausweis-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Einzelne Ausweiskarte – Kreditkartengröße 8,5 × 5,4 cm */
.da-ausweis {
  width: 8.5cm;
  height: 5.4cm;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  color: #f5f1e8;
  font-family: 'Inter', sans-serif;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* ── Vorderseite ── */
.da-ausweis--front {
  background:
    radial-gradient(circle at 80% 20%, rgba(245,158,11,0.18), transparent 50%),
    linear-gradient(135deg, #1a1f2e 0%, #0f1419 100%);
  border: 2px solid rgba(245,158,11,0.35);
  display: flex;
  flex-direction: column;
  padding: 0.5cm 0.6cm;
  box-sizing: border-box;
}

/* Header mit Lupe-Logo */
.da-ausweis-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(245,158,11,0.25);
  margin-bottom: 8px;
}

.da-ausweis-logo {
  font-size: 1.1rem;
  line-height: 1;
}

.da-ausweis-titel {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #f59e0b;
  text-transform: uppercase;
}

/* Hauptbereich */
.da-ausweis-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.da-ausweis-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  word-break: break-word;
  margin-bottom: 2px;
}

.da-ausweis-zeile {
  display: flex;
  gap: 6px;
  font-size: 0.6rem;
  line-height: 1.2;
}

.da-ausweis-zeile-label {
  color: rgba(245,158,11,0.7);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.da-ausweis-zeile-wert {
  color: #e2e8f0;
  font-weight: 600;
  word-break: break-word;
}

/* Siegel/Stempel unten rechts */
.da-ausweis-siegel {
  position: absolute;
  bottom: 0.35cm;
  right: 0.45cm;
  width: 1.1cm;
  height: 1.1cm;
  border: 2px solid rgba(245,158,11,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  font-weight: 800;
  color: rgba(245,158,11,0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transform: rotate(-12deg);
  opacity: 0.85;
}

/* Footer */
.da-ausweis-footer {
  font-size: 0.5rem;
  color: rgba(245,158,11,0.5);
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ── Rückseite ── */
.da-ausweis--back {
  background:
    linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
  border: 2px solid rgba(245,158,11,0.25);
  display: flex;
  flex-direction: column;
  padding: 0.5cm 0.6cm;
  box-sizing: border-box;
}

/* Magnetstreifen */
.da-ausweis-magnet {
  width: 100%;
  height: 0.4cm;
  background: linear-gradient(90deg, #2a2a2a, #1a1a1a, #2a2a2a);
  margin: 0 0 0.4cm 0;
  border-radius: 2px;
}

.da-ausweis-back-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}

.da-ausweis-motto {
  font-size: 0.62rem;
  font-style: italic;
  color: #e2e8f0;
  line-height: 1.3;
  text-align: center;
  padding: 0 4px;
}

.da-ausweis-motto::before,
.da-ausweis-motto::after {
  content: '"';
  color: rgba(245,158,11,0.6);
  font-weight: 700;
}

/* Unterschrift-Feld */
.da-ausweis-unterschrift-wrap {
  border-top: 1px solid rgba(245,158,11,0.25);
  padding-top: 6px;
  margin-top: 4px;
}

.da-ausweis-unterschrift-label {
  font-size: 0.5rem;
  color: rgba(245,158,11,0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 2px;
}

.da-ausweis-unterschrift-feld {
  background: #fff;
  border-radius: 3px;
  min-height: 0.8cm;
  width: 100%;
}

/* Platzhalter-Text */
.da-ausweis-placeholder {
  color: rgba(255,255,255,0.3);
  font-style: italic;
}

/* Beschriftung der Seiten in der Vorschau */
.da-seiten-label {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: -8px;
}

/* ═══════════════════════════════════════════════════════════
   Druck-Layout (@media print)
   ═══════════════════════════════════════════════════════════ */
.da-print-only {
  display: none;
}

@media print {
  .da-no-print {
    display: none !important;
  }
}