/* 1) Einheitliche Breite inkl. Padding/Border */
.mc-wrapper, .mc-wrapper * { box-sizing: border-box; }

.mc-wrapper {
  max-width: 860px;
  margin: 1rem auto;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Formular: alles untereinander, gleiche Spaltenbreite */
.mc-form {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  gap: 0.75rem;
  align-items: stretch;
}

.mc-field label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: #374151;
}

.mc-field input {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
}

.mc-sep {
  text-align: center;
  color: #6b7280;
  padding-bottom: 0.35rem;
}

/* Buttons: volle Breite wie die Inputs */
.mc-btn,
.mc-btn-secondary {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 0.6rem;
  cursor: pointer;
}
.mc-btn { border: 0; background: #111827; color: #fff; }
.mc-btn-secondary { border: 1px solid #d1d5db; background: #fff; }

/* Ergebnisse */
.mc-results { margin-top: 1rem; min-height: 2.5rem; }

.mc-loading, .mc-empty, .mc-error {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 0.8rem;
  border-radius: 0.5rem;
}

/* Tabelle: volle Breite wie die Felder/Buttons */
.mc-table {
  width: 100%;
  table-layout: fixed;          /* gleichmäßige Spaltenbreite/Zeilenumbrüche */
  border-collapse: collapse;
  margin-top: 0.5rem;
}
.mc-table th, .mc-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 0.6rem;
  text-align: left;
  word-wrap: break-word;
}
.mc-table th { background: #f3f4f6; }

/* 2) Print-Button unter den Ergebnissen auch volle Breite */
.mc-actions {
  display: block;               /* statt flex */
  margin-top: 0.5rem;
}
.mc-actions .mc-btn-secondary { width: 100%; }

/* Alles nimmt volle Grid-Breite ein */
.mc-field, .mc-sep, .mc-btn, .mc-btn-secondary { grid-column: 1 / -1; }

@media print {
  .mc-form, .mc-btn, .mc-actions, .mc-actions-inline { display: none !important; }
  .mc-table { font-size: 12pt; }
}
