/* ═══════════════════════════════════════════════════════════
   Steckbrief-Generator – Styling
   (Druck läuft über ein separates Druckfenster im JS – siehe
    steckbrief-generator.js. Dieses CSS ist nur für die Vorschau.)
   ═══════════════════════════════════════════════════════════ */

/* Fußzeilen-Platzhalter nur im Druck relevant – in Vorschau ausblenden */
.sbg-fusszeile-spacer {
  display: none;
}

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

/* ── Buttons ── */
.sbg-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;
}

.sbg-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;
}
.sbg-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);
}

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

.sbg-btn--remove-foto {
  background: rgba(248,113,113,0.08);
  border-color: rgba(248,113,113,0.3);
  color: #fca5a5;
  margin-top: 10px;
  padding: 8px 14px;
  font-size: 0.85rem;
}
.sbg-btn--remove-foto:hover {
  background: rgba(248,113,113,0.15);
}

/* ── Zwei-Spalten-Layout ── */
.sbg-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .sbg-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.sbg-col-title {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ── Formular ── */
.sbg-field {
  margin-bottom: 16px;
}
.sbg-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 560px) {
  .sbg-field-row {
    grid-template-columns: 1fr;
  }
}

.sbg-label {
  display: block;
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.sbg-input,
.sbg-textarea,
.sbg-file-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.sbg-input::placeholder,
.sbg-textarea::placeholder {
  color: rgba(148,163,184,0.5);
}
.sbg-input:focus,
.sbg-textarea:focus,
.sbg-file-input:focus {
  outline: none;
  border-color: rgba(245,158,11,0.5);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.12);
}
.sbg-textarea {
  resize: vertical;
  min-height: 60px;
}
.sbg-file-input {
  padding: 8px;
  cursor: pointer;
}
.sbg-file-input::-webkit-file-upload-button {
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.4);
  color: #f59e0b;
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 10px;
}

.sbg-field-hint {
  color: #64748b;
  font-size: 0.78rem;
  margin-top: 5px;
  line-height: 1.4;
}
.sbg-field-hint strong {
  color: #94a3b8;
}

.sbg-section-divider {
  color: #f59e0b;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 22px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(245,158,11,0.25);
}

/* ── Vorschau-Spalte ── */
.sbg-preview-col {
  position: sticky;
  top: 20px;
}
@media (max-width: 900px) {
  .sbg-preview-col {
    position: static;
  }
}

.sbg-aufkleben-hinweis {
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
  margin-top: 14px;
}

/* ═══════════════════════════════════════════════════════════
   Steckbrief-Vorschau (Papier-Look)
   ═══════════════════════════════════════════════════════════ */
.sbg-steckbrief {
  background: #f5f1e6;
  color: #1a1a1a;
  border-radius: 6px;
  padding: 0;
  position: relative;
  font-family: 'Inter', system-ui, sans-serif;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  overflow: hidden;
}

/* Akten-Tab oben */
.sbg-akte-tab {
  background: #1a1a1a;
  color: #f5f1e6;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-align: center;
  padding: 6px 0;
  border-radius: 6px 6px 0 0;
}

.sbg-akte-body {
  padding: 22px 24px 18px;
  position: relative;
}

/* Lochung (Deko) */
.sbg-lochung {
  position: absolute;
  top: 10px;
  right: 14px;
  display: flex;
  gap: 8px;
}
.sbg-lochung span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.15);
}

/* Header */
.sbg-header {
  text-align: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #1a1a1a;
}
.sbg-header-titel {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #1a1a1a;
}
.sbg-header-meta {
  font-size: 0.78rem;
  color: #555;
  margin-top: 4px;
}

/* Hauptbereich: Foto + Daten */
.sbg-haupt {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
@media (max-width: 560px) {
  .sbg-haupt {
    grid-template-columns: 120px 1fr;
    gap: 12px;
  }
}

/* Foto-Rahmen */
.sbg-foto-rahmen {
  width: 150px;
  height: 190px;
  border: 2px dashed #1a1a1a;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
}
@media (max-width: 560px) {
  .sbg-foto-rahmen {
    width: 120px;
    height: 155px;
  }
}
.sbg-foto-rahmen--leer {
  background: repeating-linear-gradient(
    45deg,
    #fff,
    #fff 6px,
    #f0ece0 6px,
    #f0ece0 12px
  );
}
.sbg-foto-placeholder {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: #888;
  line-height: 1.3;
}
.sbg-foto-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Daten */
.sbg-daten {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sbg-datenzeile {
  display: flex;
  gap: 6px;
  font-size: 0.85rem;
  line-height: 1.4;
  align-items: baseline;
  padding-bottom: 4px;
  border-bottom: 1px solid #ccc;
}
.sbg-datenzeile--mehrzeilig {
  flex-direction: column;
  gap: 2px;
  padding-bottom: 0;
  border-bottom: none;
}
.sbg-daten-label {
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
  min-width: 90px;
}
.sbg-datenzeile--mehrzeilig .sbg-daten-label {
  min-width: 0;
}

/* Schreiblinien für leere mehrzeilige Felder (Tatvorwurf, Alibi, Merkmale) */
.sbg-antwort-linien {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 6px 0;
}
.sbg-antwort-linien span {
  border-bottom: 1px solid #999;
  height: 20px;
}
.sbg-antwort-text {
  font-size: 0.85rem;
  color: #333;
  line-height: 1.8;
  white-space: pre-wrap;
  padding: 6px 0;
}

/* Header-Fallnummer (wie Verhör-Protokoll) */
.sbg-header-fallnr {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.85rem;
  justify-content: center;
}
.sbg-header-fallnr-label {
  font-weight: 700;
  color: #1a1a1a;
}
.sbg-header-fallnr-wert {
  color: #333;
  font-weight: 600;
}
.sbg-header-fallnr-linie {
  display: inline-block;
  width: 100px;
  border-bottom: 1px solid #1a1a1a;
  height: 1em;
}
.sbg-daten-wert {
  color: #333;
  word-break: break-word;
  flex: 1;
}

/* Tatvorwurf & Alibi */
.sbg-tatbereich {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px;
  background: rgba(0,0,0,0.04);
  border-left: 3px solid #1a1a1a;
  border-radius: 0 4px 4px 0;
}

/* Fingerabdrücke */
.sbg-fingerabdruecke {
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 1px dashed #999;
}
.sbg-finger-titel {
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: #1a1a1a;
}
.sbg-finger-hinweis {
  font-weight: 400;
  font-size: 0.72rem;
  color: #666;
}

.sbg-hand {
  margin-bottom: 12px;
}
.sbg-hand-titel {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #444;
  margin-bottom: 8px;
  text-align: center;
}
.sbg-finger-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.sbg-finger {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.sbg-finger-kreis {
  width: 42px;
  height: 52px;
  border: 2px dashed #1a1a1a;
  border-radius: 50% / 45%;
  background: repeating-linear-gradient(
    45deg,
    #fff,
    #fff 5px,
    #f0ece0 5px,
    #f0ece0 10px
  );
}
.sbg-finger-label {
  font-size: 0.62rem;
  text-align: center;
  color: #444;
  line-height: 1.1;
  font-weight: 600;
}

/* Fußzeile */
.sbg-fusszeile {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #999;
  font-size: 0.72rem;
  color: #555;
  text-align: center;
  font-style: italic;
}