/* Export-Knopf im Kopf des Inhalts-Dialogs (gebürstetes Messing, passend zum Schließen-Knopf) */
.modal-export {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  margin-right: 10px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, #e2c684 0%, #b08d4a 55%, #8a6b33 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 216, 0.6),
    inset 0 -2px 3px rgba(60, 40, 12, 0.45),
    0 0 0 1px rgba(40, 28, 10, 0.9),
    1px 2px 3px rgba(0, 0, 0, 0.55);
  color: #2a1c0a;
  font: 800 0.9rem/1 var(--font-body, sans-serif);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.modal-export:hover {
  transform: translateY(-1px);
}
.modal-export:active {
  transform: translateY(1px);
}
.modal-export:focus-visible {
  outline: 2px solid #ffcf8a;
  outline-offset: 3px;
}
.modal-export[disabled] {
  opacity: 0.6;
  cursor: progress;
}
@media (max-width: 560px) {
  .modal-export {
    padding: 0 10px;
    margin-right: 6px;
  }
  .modal-export__label {
    display: none;
  }
}

/* Export-Vorschau: zeigt, was exportiert wird, mit Speichern / Kopieren */
.exp-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 5, 3, 0.82);
}
.exp-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(760px, 100%);
  max-height: 92vh;
  padding: 18px 20px 20px;
  border-radius: 8px;
  border: 1px solid #b08d4a;
  background: #f6ecd9;
  color: #2a1c12;
  box-shadow:
    0 0 0 6px #2a1a10,
    0 24px 60px rgba(0, 0, 0, 0.7);
}
.exp-title {
  margin: 0;
  font: 800 1.5rem/1.1 var(--font-display, serif);
  color: #8e1b1f;
}
.exp-file {
  margin: 0;
  font: 700 0.85rem/1.3 Consolas, Menlo, monospace;
  color: #6b4a2a;
  word-break: break-all;
}
.exp-preview {
  flex: 1 1 auto;
  min-height: 80px;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10px;
  border-radius: 6px;
  background: #e6d6b6;
  box-shadow: inset 0 1px 4px rgba(60, 40, 12, 0.35);
}
.exp-image {
  display: block;
  max-width: 100%;
  max-height: 56vh;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.exp-text {
  width: 100%;
  margin: 0;
  font: 0.85rem/1.45 Consolas, Menlo, monospace;
  white-space: pre-wrap;
  word-break: break-word;
  color: #2a1c12;
}
.exp-note,
.exp-status {
  margin: 0;
  font-weight: 700;
  color: #6b4a2a;
}
.exp-status {
  min-height: 1.4em;
}
.exp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.exp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 6px;
  border: 1px solid #5b4320;
  background: #fff8e8;
  color: #2a1c12;
  font: 800 1rem/1 var(--font-body, sans-serif);
  text-decoration: none;
  cursor: pointer;
}
.exp-btn--primary {
  background: linear-gradient(180deg, #a8262b 0%, #8e1b1f 60%, #6d1216 100%);
  border-color: #4a0c0f;
  color: #fff3dc;
}
.exp-btn:focus-visible {
  outline: 3px solid #b08d4a;
  outline-offset: 2px;
}
